Commit graph

465 commits

Author SHA1 Message Date
Dana Jansens
8269fc2b39 set the gravity to center the dialog.
size it off the minSize which is already calculated, not off the size() with is nto
2003-02-16 16:24:01 +00:00
Dana Jansens
e07ea84865 only fire the clickHandler if the button is released with the cursor over it 2003-02-16 15:54:23 +00:00
Dana Jansens
cee0482c78 make DialogButtons take char*'s meaning that the label will always be Utf-8 2003-02-16 12:30:34 +00:00
Dana Jansens
213df2814b only hide the dialog if a default button exists when enter is hit 2003-02-16 12:25:42 +00:00
Dana Jansens
c71738f3f4 let you .focus() a messagedialog 2003-02-16 12:23:35 +00:00
Dana Jansens
010e12c42a only show() if the dialog is not already visible 2003-02-16 12:20:10 +00:00
Dana Jansens
7a41f7730d add otk::MessageDialog 2003-02-16 11:59:12 +00:00
Dana Jansens
f325abe4e4 use the current size, which will get capped by max/mins 2003-02-16 11:48:43 +00:00
Dana Jansens
33e87b3969 dont forget borders/bevels 2003-02-16 11:39:54 +00:00
Dana Jansens
c7d4901f41 set the style 2003-02-16 09:37:21 +00:00
Dana Jansens
a89166a14f cleaner while loop 2003-02-16 08:03:49 +00:00
Dana Jansens
d2dcef4675 initialize _font 2003-02-15 12:46:40 +00:00
Dana Jansens
7fe3301e7e Add the "obsetroot" tool. Use it to set the root background. 2003-02-14 23:05:59 +00:00
Dana Jansens
f65e21ce1d use ctdio 2003-02-14 21:51:54 +00:00
Dana Jansens
0d59a002c0 sync before changing the ignore_errors state 2003-02-14 20:05:47 +00:00
Dana Jansens
e3f6e0ff81 make reduceDepth set the im->data member, with newly allocated data, so the pixelData in the surface isn't reduced 2003-02-14 19:18:19 +00:00
Dana Jansens
7393a17bf9 use the same alogo to pick a color in allocateColor as in reduceDepth, break it off into an inline function. 2003-02-14 17:13:26 +00:00
Dana Jansens
01a37dfe18 allocate colors in pseudocolor from the map we allocate in the rendercontrol 2003-02-14 08:01:44 +00:00
Dana Jansens
059bc4dc24 add a Config class with config data from the scripts.
set up the functions for loading a style from a file.
use the Config class throughout instead of reading out of the python namespace all the time.
2003-02-14 03:04:23 +00:00
Derek Foreman
1431cd1958 8bpp pseudo color. it's horrid code. the graphics are horrid.
I have done many terrible things and I'm so very very sorry. :(
2003-02-14 01:49:27 +00:00
Dana Jansens
8446eaedc7 scale images down to the available surface size 2003-02-13 22:45:11 +00:00
Dana Jansens
576f03f629 don use gradient for titlebar.. waste of cycles 2003-02-13 10:38:04 +00:00
Dana Jansens
e71fb6c66e | NOT & YOU BASTARD 2003-02-13 10:30:17 +00:00
Dana Jansens
1e58c863bb render images properly, minus the scaling 2003-02-13 10:19:25 +00:00
Dana Jansens
afd477692d uncomment the _NET_WM_ICON property 2003-02-13 07:42:33 +00:00
Dana Jansens
3e504ae5f3 rm a stupid bb format 2003-02-13 05:18:41 +00:00
Dana Jansens
329de788cb add _created 2003-02-13 05:15:17 +00:00
Dana Jansens
ea20fcc272 only free allocated colors 2003-02-13 05:12:01 +00:00
Dana Jansens
15f2208209 borked the build 2003-02-13 05:11:39 +00:00
Dana Jansens
dca8c61a91 free the colors on shutdown 2003-02-13 05:07:25 +00:00
Dana Jansens
68482ff556 no segfault plz tnx 2003-02-13 04:54:54 +00:00
Dana Jansens
0ebf6a1754 only store what we need to in the class 2003-02-13 04:52:08 +00:00
Dana Jansens
e451c08ac5 alloc colors only when needed, and free them properly on destruction 2003-02-13 04:50:57 +00:00
Dana Jansens
ec2113ca5b move comment 2003-02-12 06:20:48 +00:00
Dana Jansens
7a2a461582 only store what we need to in the class 2003-02-12 06:18:28 +00:00
Dana Jansens
dd89811570 alloc colors.. i think! 2003-02-12 06:14:25 +00:00
Dana Jansens
6b1381d69d add mising ()s 2003-02-12 01:22:51 +00:00
Dana Jansens
a0738a0197 more efficient/nicer way to get the XColor values 2003-02-12 01:22:31 +00:00
Dana Jansens
044c8ae416 start of pseudo init 2003-02-12 01:14:02 +00:00
Dana Jansens
5e0fc865a8 start of pseudocolor init 2003-02-12 01:12:34 +00:00
Dana Jansens
325a909dcd move printf.. 2003-02-12 00:42:19 +00:00
Dana Jansens
9faca110ac kill all the old commented vars in rendercontrol.hh
add some preliminary vars in pseudorendercontrol.hh
2003-02-12 00:34:22 +00:00
Dana Jansens
72ff846dbb make all the rendering code in RenderControl. use true/pseudo RenderControl classes just for reducing the pixel32 data to the appropriate bitdepth. 2003-02-12 00:27:32 +00:00
Dana Jansens
f30b2a8908 can draw icons in truecolor! 2003-02-12 00:10:45 +00:00
Dana Jansens
e1473968b4 increment x 2003-02-12 00:03:18 +00:00
Dana Jansens
3147ad1a60 start on the rendering images code 2003-02-11 23:58:33 +00:00
Dana Jansens
555facb9c7 free the surfaces' pixeldata after rendering it 2003-02-11 22:38:29 +00:00
Dana Jansens
aceea3c081 add skeleton for RenderControl::drawImage 2003-02-11 22:17:02 +00:00
Dana Jansens
2808ab5bad add RenderControl::drawMask 2003-02-11 22:10:50 +00:00
Dana Jansens
58847af218 store the pixel32 data in the surface so it can be reused 2003-02-11 21:50:06 +00:00