Commit graph

355 commits

Author SHA1 Message Date
Dana Jansens
b34824a4e2 global python scripts. client motion/resizing is all done via python now 2002-12-25 04:54:44 +00:00
Dana Jansens
f9107b5c5a use the -I's in CFLAGS for swig 2002-12-25 02:05:39 +00:00
Dana Jansens
bf49e76420 python. no more guile. python. 2002-12-24 23:31:38 +00:00
Dana Jansens
5a139f7263 add the swig generated files 2002-12-24 21:27:39 +00:00
Dana Jansens
5869cc29ef wrap otk with swig/python 2002-12-24 21:27:16 +00:00
Dana Jansens
06de24ec66 more api cleanups 2002-12-20 15:33:58 +00:00
Dana Jansens
723739dafe api cleanups 2002-12-20 15:26:34 +00:00
Dana Jansens
77a8e11660 can tell where events are coming from! 2002-12-18 11:34:29 +00:00
Dana Jansens
db23fe0584 do need display then 2002-12-18 10:24:22 +00:00
Dana Jansens
e25a69cce8 dont need to include application here 2002-12-18 10:23:41 +00:00
Dana Jansens
25d1e3538b use OB Widgets for everything 2002-12-18 09:46:24 +00:00
Dana Jansens
84d777e89f make shit protected 2002-12-18 08:46:48 +00:00
Dana Jansens
62d719d6b7 dont pass a const 2002-12-18 08:42:40 +00:00
Dana Jansens
e7bb906637 show all children on show() 2002-12-18 08:39:16 +00:00
Dana Jansens
70eb03ad50 add an OBBackgroundWidget and use it for setting colors so far. 2002-12-18 02:28:44 +00:00
Dana Jansens
dd3decc319 fuck you basewidget 2002-12-11 00:50:26 +00:00
Dana Jansens
d691094cf7 handle config req's in dispatcher properly.
no more basewidget again.
2002-12-08 06:48:09 +00:00
Dana Jansens
1cfc76577d reverting.. that was lame 2002-12-04 14:23:25 +00:00
Dana Jansens
c187fbdf60 move event handling into basewidget again <FLINCH>
add the basewidget class
2002-12-04 13:14:11 +00:00
Dana Jansens
301adc8bc2 split up widget and basewidget 2002-12-04 13:07:40 +00:00
Dana Jansens
7dc834cc93 make setStyle() recursive 2002-12-04 11:25:43 +00:00
Dana Jansens
777be62a3a change the builtin testing font 2002-12-04 09:26:42 +00:00
Dana Jansens
fbc516442d add suport for XMotionEvents 2002-12-04 08:54:43 +00:00
Dana Jansens
56d7b547ae button press/releases WORK 2002-12-04 07:55:52 +00:00
Dana Jansens
4f01802c8c actions class can sorta handle mouse enter/leave and press/release events 2002-12-04 07:12:13 +00:00
Dana Jansens
fa05dc56ea give the grips cursors 2002-12-04 03:47:59 +00:00
Dana Jansens
bdc491ccfe map and unmap work great now yay 2002-12-04 01:29:01 +00:00
Dana Jansens
22bd294c7b unregister for events when destroyed 2002-12-04 01:02:56 +00:00
Dana Jansens
1fa445c880 handle configure requests 2002-12-04 00:26:45 +00:00
Dana Jansens
bbdfd8f1d6 scratch that 2002-12-04 00:04:27 +00:00
Dana Jansens
52b83a9dbb handle configurerequests when we cant find a target registered for them 2002-12-04 00:03:48 +00:00
Dana Jansens
829ce05c7c reverse the logic. makes more sense i think 2002-12-03 23:56:04 +00:00
Dana Jansens
ee896d9d66 no space on teh top or bottom of text.. 2002-12-03 21:32:03 +00:00
Dana Jansens
26adc8853b label and focuslabel update their textures automatically on a style change 2002-12-03 19:10:03 +00:00
Dana Jansens
f890d31d6b make setStyle virtual 2002-12-03 19:02:36 +00:00
Dana Jansens
948feddc2e update the textures being used on setStyle() calls 2002-12-03 19:01:41 +00:00
Dana Jansens
bf95658de2 show the Xft version nicer 2002-12-03 15:41:03 +00:00
Dana Jansens
cac2131e68 add otk_test 2002-12-03 09:02:37 +00:00
Dana Jansens
646a10bcc3 labels use half the bevel width for text 2002-12-03 08:58:45 +00:00
Dana Jansens
c6f228f3ff xft2 works. and works good. 2002-12-03 08:54:51 +00:00
Dana Jansens
74cb09bb2c handle map events with the Openbox class 2002-12-02 21:06:16 +00:00
Dana Jansens
fb3848450e window decorations use "unmanaged" widgets now. 2002-12-01 11:45:55 +00:00
Dana Jansens
fac1a6581b typo in comment 2002-12-01 11:40:52 +00:00
Dana Jansens
4d1a90b0d2 add a recursive flags to OtkWidget::show/hide
dont delet eshit in the style from button's destructor
2002-12-01 10:57:49 +00:00
Dana Jansens
6f0b72e8e5 big nono 2002-11-17 16:00:12 +00:00
Dana Jansens
1d897f432e add the config header and emacs comment to all the .cc's 2002-11-17 09:41:58 +00:00
Dana Jansens
638d4e6f19 change the style-load-error msg 2002-11-16 14:32:26 +00:00
Dana Jansens
12a95bfdb3 add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display.
Exit when all the "root windows" are hidden.
Support the WM_DELETE protocol to hide a "root window".
2002-11-16 14:30:18 +00:00
Dana Jansens
3bc1f37469 better msgs 2002-11-16 13:53:03 +00:00
Dana Jansens
34a9f87ed2 print a warning if more than one main widget is set 2002-11-16 13:52:13 +00:00
Dana Jansens
81e1982744 set the close protocol on the app's main widget 2002-11-16 13:50:59 +00:00
Dana Jansens
77342413ef change how the widgets' _dirty flag works so that all inheritence levels of the widget class can use it 2002-11-16 13:28:26 +00:00
Dana Jansens
d4d15160fe new button that is a focuslabel 2002-11-16 13:21:24 +00:00
Dana Jansens
3ce8b540aa add a Label class that doesnt change with focus 2002-11-16 13:08:10 +00:00
Dana Jansens
bd06e8961d actually add this shit. yay 2002-11-16 13:02:29 +00:00
Dana Jansens
6b977b2ded add OtkFocusLabel 2002-11-16 13:00:22 +00:00
Dana Jansens
804b8cc6e5 check to make sure the style config could be loaded 2002-11-16 12:12:38 +00:00
Marius Nita
6223b6a3ef : 2002-11-16 12:10:59 +00:00
Dana Jansens
7df3b620e2 use the timer queue manager 2002-11-16 12:10:04 +00:00
Dana Jansens
36ed114f49 add a constructor for strut that takes margin sizes 2002-11-16 11:55:03 +00:00
Marius Nita
6f5e60f033 fixed bugs, got otkapp to select on a fd, modded widget to make use of otkapp, press/release events on buttons 2002-11-16 09:59:37 +00:00
Marius Nita
0680daeef5 there 2002-11-16 02:18:37 +00:00
Marius Nita
a3d036f60e added otkapplication and event stuff, changed other files to accomodate for this, changed the test.
no idea if anything runs yet. it compiles =)
2002-11-16 02:15:49 +00:00
Marius Nita
e53fbcf092 event handling classes 2002-11-16 02:11:44 +00:00
Marius Nita
1210e6d688 more crap 2002-11-15 11:30:41 +00:00
Marius Nita
0eb665769d initial commit 2002-11-15 10:58:56 +00:00
Marius Nita
9f1facd3a1 hopefully caught stupid assert 2002-11-15 10:13:29 +00:00
Marius Nita
c090955544 heh 2002-11-15 05:12:49 +00:00
Dana Jansens
5be1363981 better fix for configure 2002-11-15 05:07:32 +00:00
Marius Nita
e8b74211e7 erm 2002-11-15 05:02:07 +00:00
Marius Nita
a3b2e7d905 made resizing sexier 2002-11-15 05:01:37 +00:00
Dana Jansens
d55ede56a0 use the rect 2002-11-15 03:36:28 +00:00
Dana Jansens
bcb7dddf94 dont set dirty if not resizing 2002-11-15 03:31:15 +00:00
Dana Jansens
8d397c0d8b update headers to whats required 2002-11-15 03:21:16 +00:00
Dana Jansens
d7848facac updates dependancies 2002-11-15 03:20:37 +00:00
Dana Jansens
62326fde58 dont hide label 2002-11-15 03:18:05 +00:00
Dana Jansens
30a23b6450 it resizes now 2002-11-15 03:16:45 +00:00
Dana Jansens
5a71f5b094 only do shit if the size changed 2002-11-15 03:11:35 +00:00
Dana Jansens
0856b11de8 resizes 2002-11-15 03:10:34 +00:00
Dana Jansens
d97db16430 button::updte sets _dirty back to false 2002-11-15 02:42:26 +00:00
Dana Jansens
6d68ac2256 smarter expose. stop when the window is found 2002-11-15 02:40:57 +00:00
Dana Jansens
b7dba88a0a try make drawing work better but its busted 2002-11-15 02:38:52 +00:00
Dana Jansens
b3822fcfb1 make stuff draw on expose events 2002-11-15 02:30:14 +00:00
Dana Jansens
ed4696f691 more deps 2002-11-15 01:02:31 +00:00
Dana Jansens
5f436ee81d blef 2002-11-15 00:28:47 +00:00
Dana Jansens
e6026ed9a5 build otk_test 2002-11-15 00:23:33 +00:00
Dana Jansens
e40e3d68ef use configure's xft flags 2002-11-15 00:18:14 +00:00
Marius Nita
5a9f3b5de2 button crap 2002-11-14 11:44:14 +00:00
Marius Nita
2efa2b3271 blef 2002-11-14 11:43:39 +00:00
Marius Nita
0cb338e00d gotta iron out this pressed button crap 2002-11-14 11:43:08 +00:00
Marius Nita
9834a687fc widget update fix 2002-11-14 11:42:38 +00:00
Marius Nita
b169547797 working button class (minus fonts) 2002-11-14 11:41:50 +00:00
Marius Nita
b33e8f6612 adding vertical dynamic resize code 2002-11-13 10:39:35 +00:00
Marius Nita
f0a1bdd606 er 2002-11-13 10:39:04 +00:00
Marius Nita
23f331270d add focuswidget to the build 2002-11-13 10:22:44 +00:00
Marius Nita
9e1b254905 updated for the new MAD SEXY widget and focuswidget 2002-11-13 10:22:04 +00:00
Marius Nita
f6724de2a4 HOOGE improvements. now widgets calculate their size according to the sizes of their children, they stretch stretchable elements to fit a maximum size, take into account bevel width, and much more 2002-11-13 10:21:17 +00:00
Marius Nita
09fa1f3a98 initial commit of focus widget 2002-11-13 10:19:28 +00:00
Dana Jansens
0da967a831 remove the redundant _size property in OBScreen, and set the geometry root property properly.
add otk::Point::setPoint
2002-11-11 11:33:32 +00:00
Dana Jansens
c4a1fac49d manages windows that exist before running. 2002-11-11 11:25:40 +00:00
Dana Jansens
fb0dd6cf9a some small cleanups
make style not take a screen separate from the image control
make style::load() take a const ref
2002-11-11 10:03:11 +00:00
Dana Jansens
590f7f58a6 unused include 2002-11-11 08:48:43 +00:00
Dana Jansens
9c398557df fix some errs 2002-11-11 08:42:19 +00:00
Marius Nita
1694901f7a added missing header 2002-11-11 07:29:12 +00:00
Marius Nita
2fb9440684 small test for OtkWidget 2002-11-11 03:49:09 +00:00
Marius Nita
a923a55002 added new files to the build 2002-11-11 03:48:02 +00:00
Marius Nita
cbf9dd0c4c beginnings of button class 2002-11-11 03:47:12 +00:00
Marius Nita
f0e2abf573 can now map windows and render textures 2002-11-11 03:46:25 +00:00
Marius Nita
6852efaa9e added accessors for elements 2002-11-11 03:45:46 +00:00
Marius Nita
18378aaba1 initial commit 2002-11-10 13:33:34 +00:00
Dana Jansens
b067510b61 cleanups.
OBScreen almost ready for some action
2002-11-10 12:20:29 +00:00
Dana Jansens
00b96c7846 fixups 2002-11-10 12:16:26 +00:00
Dana Jansens
c5e4a18588 x() and y() should return values :) 2002-11-10 12:15:03 +00:00
Dana Jansens
1eef416eee include the point header 2002-11-10 11:31:12 +00:00
Dana Jansens
18645bf9c7 get rid of unsigneds 2002-11-10 11:27:51 +00:00
Dana Jansens
bf160f210a make methods for Rect that use Point 2002-11-10 11:25:40 +00:00
Dana Jansens
8693dd95a2 document the Point class 2002-11-10 10:52:56 +00:00
Dana Jansens
5dc5cc32b0 add the otk::Point type 2002-11-10 10:46:28 +00:00
Dana Jansens
410a826458 more layout fixes for the decoration elements 2002-11-10 10:14:20 +00:00
Dana Jansens
3762f3c88f pretty sure all frame elements are placed correctly now 2002-11-10 09:44:27 +00:00
Dana Jansens
f424471009 frames' subemelents are created and positioned and everything 2002-11-10 08:12:53 +00:00
Dana Jansens
9d5865a160 support for the shape extension works! 2002-11-10 05:54:12 +00:00
Dana Jansens
ec4548a19b s/NULL/0/ 2002-11-06 18:26:39 +00:00
Dana Jansens
196996230c dont need to specify otk:: when already in the namespace 2002-11-06 18:25:48 +00:00
Marius Nita
9c82f9418b seg fix 2002-11-06 14:10:02 +00:00
Marius Nita
35fcb62ddd added style class, moved util and config to otk 2002-11-06 13:51:23 +00:00
Dana Jansens
16c00e34f3 show badwindow errors again 2002-11-06 10:40:17 +00:00
Dana Jansens
83322ce3be dont show badwindow errors 2002-11-06 10:39:50 +00:00
Dana Jansens
d3b7c84d4c moving strut into its own .hh. adding OBClient class 2002-11-06 07:01:59 +00:00
Dana Jansens
22c770d90f include algoritm 2002-11-06 06:12:25 +00:00
Dana Jansens
c9f36d34a4 finish conversion to the new otk::OBProperty class with its new interface 2002-11-05 09:13:46 +00:00
Dana Jansens
68016ac352 mode documentation updates 2002-11-05 08:49:01 +00:00
Dana Jansens
c822c895f0 updated documentation 2002-11-05 08:46:23 +00:00
Dana Jansens
d2c380fb54 add OBProperty to otk, which was formerly known as ob::XAtom
it does have a few interface changes
2002-11-05 08:44:46 +00:00
Dana Jansens
45c2589ef6 xeventhandler can handle everything except client messages now.
blackbox is no longer the event handler
2002-11-04 09:25:26 +00:00
Dana Jansens
7ebccbf39a new OBTimer interface 2002-11-04 06:06:13 +00:00
Dana Jansens
578bedc289 fix for documentation 2002-11-04 05:54:42 +00:00
Dana Jansens
d0b55be2c7 OBTimer is fully documented.
change how the timerqueuemanager makes timers fire recursively, so that OBTimer::halt could go away
2002-11-04 05:40:32 +00:00
Dana Jansens
b0a532db8a split the OBTimerQueueManager and TimerQueue into their own files 2002-11-04 03:59:09 +00:00
Dana Jansens
d4d89ce0bb documenting classes! 2002-11-04 03:37:17 +00:00
Dana Jansens
e9085c3a45 documented 2002-11-04 02:54:15 +00:00
Dana Jansens
cb71b2fb09 stop using the Utf8 functions. will use them later for ONLY Utf-8 encoded strings!! 2002-11-03 21:18:42 +00:00
Dana Jansens
f8f73b7422 missing include 2002-11-03 19:50:09 +00:00
Dana Jansens
9259ec5732 new timer infrastructure. takes a function pointer for the timeout, with a void* parameter (useful for holding a class instance!) 2002-11-03 14:29:34 +00:00
Dana Jansens
373de009f7 new timers, timer manager 2002-11-03 12:48:10 +00:00
Dana Jansens
c5f62494f1 fix compiling in display.
make the timer manager work in and of itself
2002-11-03 12:27:49 +00:00
Dana Jansens
ace8c8896a WE DONT USE BASE DISPLAY FOR ANYTHING ANY MORE!!@^!*@*!! YAY 2002-11-03 11:46:05 +00:00
Dana Jansens
37e5600768 move Rect and PointerAssassin into the toolkit 2002-11-03 10:38:14 +00:00
Dana Jansens
fa8cefef63 add an OBDisplay class and the old ScreenInfo class to the toolkit.
wrap the toolkit in the 'otk' namespace
it compiles. broke the timer cache tho.
2002-11-03 10:07:16 +00:00
Dana Jansens
bbdca49193 gettext is ready to rock and roll 2002-11-03 05:56:15 +00:00
Dana Jansens
90f2414285 add gettext
change CXXFLAGS back to CPPFLAGS in the .am's
2002-11-01 10:08:32 +00:00
Dana Jansens
f127273aba make compile again 2002-11-01 04:02:33 +00:00
Dana Jansens
1824e6b100 add a cvsignore for otk.
make sexier automake shit
2002-11-01 03:45:34 +00:00
Marius Nita
9247a7a616 oops 2002-11-01 03:28:26 +00:00
Marius Nita
85c41a1aec adding toolkit beginnings 2002-11-01 03:27:41 +00:00