Commit graph

355 commits

Author SHA1 Message Date
Dana Jansens
a6f1d6b82f add a header for including everything for otk 2003-01-10 06:34:57 +00:00
Dana Jansens
e0878c9fc2 typosnsuch 2003-01-10 03:15:50 +00:00
Dana Jansens
915b171bef install the shadow wrappers 2003-01-10 03:15:11 +00:00
Dana Jansens
385de86d90 add the shadow class wrappers 2003-01-10 03:12:42 +00:00
Dana Jansens
345d957e1e new python callbacks data, infrastructure. going to rework bindings code. cvs wont work for shit now. but thats life. 2003-01-09 22:54:31 +00:00
Dana Jansens
93811226bb ignore much fewer focus events. only ignore focusout's from activating a grab 2003-01-08 09:10:34 +00:00
Dana Jansens
b8f89ee368 ignore focus events from grabs 2003-01-08 09:05:38 +00:00
Dana Jansens
d5cff9617c rm _focus, its no longer used 2003-01-08 08:43:41 +00:00
Dana Jansens
fade5572e3 handle focus events SOO much more simply. and it works. fuck yes. at last. i think i can rest. 2003-01-08 08:40:03 +00:00
Dana Jansens
bd748f7402 rework focus event handling. does it basically like ob2 did now. and it seems to work too :> 2003-01-08 07:41:17 +00:00
Dana Jansens
3b4d453f90 rm old debug printfs 2003-01-08 06:47:13 +00:00
Dana Jansens
9bfc977827 make focus work without races. 2003-01-08 05:26:49 +00:00
Dana Jansens
bcc9f6812b stop compressing enter/leave events.. this might be responsible for the focu sfuckups? 2003-01-07 22:02:43 +00:00
Dana Jansens
e5eb783aa2 ignore the right about of unmap notifies 2003-01-07 19:54:00 +00:00
Dana Jansens
a2de94e91e in synch mode, chew up 100% cpu, cuz we cant select on the display's fd 2003-01-07 19:24:38 +00:00
Dana Jansens
6062fe404c handle unmaps better. all thanks to acroread sending wacky unmap events 2003-01-07 09:30:00 +00:00
Dana Jansens
f1ce4e660f send config req's to the master too 2003-01-07 07:34:11 +00:00
Dana Jansens
19eb13679d abort() on X errors that aren't BadWindow errors 2003-01-07 07:24:39 +00:00
Dana Jansens
4c768d5d63 use client messages to switch desktops/move windows between desktops 2003-01-07 04:51:55 +00:00
Dana Jansens
85b0dc80cf add comment for findScreen 2003-01-07 04:06:34 +00:00
Dana Jansens
711a7d8c56 supply python routines for next/prev workspace 2003-01-07 02:24:43 +00:00
Dana Jansens
1f8b8425ae killa a debug printf 2003-01-06 07:32:26 +00:00
Dana Jansens
f3865bb12c ignore num/caps/scroll lock in events 2003-01-06 06:02:22 +00:00
Dana Jansens
d13f021b8b add support for wm_window_role 2003-01-04 19:09:52 +00:00
Dana Jansens
83ff31f8bf when a window focused that was the last focused already (this happens from grabs), dont unfocus it, just let it be 2003-01-04 06:02:42 +00:00
Dana Jansens
bf404e092b make the frame window override-redirect 2003-01-04 05:18:33 +00:00
Dana Jansens
1fd2c6c2b6 s/True/true/ 2003-01-04 04:51:49 +00:00
Dana Jansens
c33ccf60cb make the frame window override-redirect 2003-01-04 04:49:53 +00:00
Dana Jansens
867d3d9a94 rm consts that wont compile on some libfreetype's 2003-01-04 01:31:47 +00:00
Dana Jansens
8c4357fccb keep track of the last input event time 2003-01-04 01:18:24 +00:00
Dana Jansens
527697d6ae add -shadow 2003-01-04 00:12:21 +00:00
Dana Jansens
06388d73b7 restart works 2003-01-03 22:06:08 +00:00
Dana Jansens
86a2bed659 remove the block on shutdown 2003-01-03 20:10:25 +00:00
Dana Jansens
89e6d5c0e6 add/lower work 2003-01-03 18:21:28 +00:00
Dana Jansens
37c2e0f329 dont print every focus/crossing event 2003-01-03 18:17:54 +00:00
Dana Jansens
9ec1f7cdba fire the master first 2003-01-02 21:51:30 +00:00
Dana Jansens
a6661d587c bindings work. now they have a reset key too. 2002-12-31 06:59:46 +00:00
Dana Jansens
d7a30f93b5 so close to keybindings. wont link for now. 2002-12-30 22:27:46 +00:00
Dana Jansens
5fdd493d0d buttons have their pixmaps! 2002-12-27 10:07:57 +00:00
Dana Jansens
8bae1352cb fix braces 2002-12-27 09:25:40 +00:00
Dana Jansens
8c2dfe5de4 deal with when nothing has focus anymore 2002-12-27 09:18:54 +00:00
Dana Jansens
3a4f91b537 enter/leave and focus events are working beautifully 2002-12-27 08:33:57 +00:00
Dana Jansens
e9ec2ce0eb some focus improvements.. 2002-12-26 19:55:55 +00:00
Dana Jansens
236f68056d fix booge bug that makes widgets not change their background when changing from a texture to a color when a color had been set previously 2002-12-26 18:08:48 +00:00
Dana Jansens
2b2f81b93c support the button pressed resources better 2002-12-26 17:22:53 +00:00
Dana Jansens
5029fc97c8 add newish stuff 2002-12-26 12:03:13 +00:00
Dana Jansens
e32610e7b1 better support for gettext 2002-12-26 11:58:57 +00:00
Dana Jansens
150c28620e build fixes for evetdispatcher 2002-12-26 10:58:05 +00:00
Dana Jansens
2ae2b257d3 might not compile... ob uses its own widgets now, which subclass only the base otk widget. working on compressing focus events and handling them etc. 2002-12-25 22:02:34 +00:00
Dana Jansens
41bdbec9c6 set CXXFLAGS better 2002-12-25 20:28:12 +00:00
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