Commit graph

59 commits

Author SHA1 Message Date
Dana Jansens
5377e3fde1 added "Hide Toolbar" option. 2002-05-27 05:06:04 +00:00
Dana Jansens
341c4e04ff mouse wheel support
custom titlebar layout
2002-05-27 03:12:21 +00:00
Dana Jansens
59cea4f2d3 save workspace names properly with the new Configuration class. 2002-05-26 20:51:12 +00:00
Dana Jansens
0305cbdc3a add Configuration class for generic configuration data load/save-ing.
use Configuration class throughout code. no longer save rc file on exit, save when any options are changed.
2002-05-26 20:25:38 +00:00
Dana Jansens
0c7e8e4011 fixed the geometry window not getting the proper pixmap. This was caused by using a style with the window.label.focus set to parentrelative. The window label's parent is the title bar but the geometry window's parent is root. The code now detects the parentrelative and tries to use the window.title as intended. 2002-05-25 15:46:08 +00:00
Dana Jansens
b3737edc7c use openbox/ dir for rc file and menu file. turn menu into a command line option instead of an rc file option 2002-05-25 02:24:30 +00:00
Dana Jansens
8794d357e6 import from bb-cvs
added slit and enable-clobber defines back in Makefile.am
2002-05-25 00:29:44 +00:00
Dana Jansens
d03852ad25 fix compliling with --disable-slit 2002-05-23 15:00:15 +00:00
Dana Jansens
67b4df1eff merge the sticky window fix from 1.2. 2002-05-23 14:27:52 +00:00
Dana Jansens
ae3dc273c4 new i18n class using overloaded operator() instead of getMessage() 2002-05-16 22:35:59 +00:00
Dana Jansens
a3a23c28f0 moved menu from a rc file option to a command line option 2002-05-15 22:23:35 +00:00
Dana Jansens
1b1efab489 compile with -Wall -W -pendantic when --enable-debug is set. 2002-05-14 19:28:34 +00:00
Dana Jansens
f00ed578ba new focus code! working better than ever! 2002-05-14 07:53:22 +00:00
Dana Jansens
d6c02ad70c fix segfaut from uninitialized focused_screen pointer 2002-05-13 23:09:20 +00:00
Dana Jansens
6d16679486 focus code updates 2002-05-13 00:23:59 +00:00
Dana Jansens
ebdf25bf67 removed all 'using namespace std;' calls. 2002-05-12 21:15:40 +00:00
Dana Jansens
30b899fc02 converted all of the openbox class LinkedLists to STL objects 2002-05-12 20:46:02 +00:00
Dana Jansens
57fb41c806 converted the remaining LinkedLists in Screen to STL objects. 2002-05-12 09:15:09 +00:00
Dana Jansens
addc23faf5 not initializing a pointer to NULL 2002-05-12 01:40:36 +00:00
Dana Jansens
a0dbb0e13f couple of LinkedLists converted to STL lists in BScreen
changed teh calls to XSetInputFocus. Using the root window as the fallback when there is nothing to focus instead of the toolbar. Also, always using 'RevertToPointerRoot' instead of sometimes 'RevertToParent'
2002-05-12 01:23:48 +00:00
Dana Jansens
f804f86c3e use screen instead of its ImageControl to get/set the image dither value 2002-05-11 18:36:26 +00:00
Dana Jansens
c7810a3c38 make image dithering value load correctly 2002-05-11 18:33:29 +00:00
Dana Jansens
9f9cdf1194 fixes for using ostrstream in gcc3. have to unfreeze the string more. annoying.
save workspace names/count properly
2002-05-10 07:13:40 +00:00
Dana Jansens
098fae70a6 better gcc3 compat. using ostrstream again. and using namespace std;
some focus changes. workspace contains a focused window instead of openbox class. this fixes a seg
2002-05-10 02:58:09 +00:00
Dana Jansens
8956328138 gcc 3 compatibility, converted strstreams to stringstreams 2002-05-07 15:34:46 +00:00
Dana Jansens
73f0a90993 BScreen::resource.root_command wasnt being initialized 2002-05-01 22:21:12 +00:00
Dana Jansens
8ef0610e90 added ClickMouse window placement policy 2002-04-28 12:12:24 +00:00
Dana Jansens
20cd70c466 added UnderMouse windwo placement. 2002-04-28 00:11:19 +00:00
Dana Jansens
e5685e3cfd added BScreen::availableArea() which returns a rect specifying where windows can be placed on the screen, and what area they can fill when maximized 2002-04-27 19:25:20 +00:00
Dana Jansens
3001cec790 more dithering fix. 2002-04-26 07:38:17 +00:00
Dana Jansens
b2453eec0e that segfaulted. oops. added a workaround so setImageDither doesnt reconfig when saving off all the rc values 2002-04-26 07:19:22 +00:00
Dana Jansens
3f6f897d88 when Image Dither is changed in the menu, make ob reconfigure so it uses the dithering 2002-04-26 07:13:22 +00:00
Dana Jansens
18499a6920 specify the std:: namespace for the ostrstreams. 2002-04-21 02:17:34 +00:00
Dana Jansens
de7a567d5b on reconfigure, if an option isn't specified in the rc file, then it will revert to its default value instead of staying at its current value. 2002-04-20 18:24:12 +00:00
Dana Jansens
874d0ea446 comment typo and function spacing fix 2002-04-20 18:13:55 +00:00
Scott Moynes
0a3cfdfcb9 fixed memory leaks for strftime_format and rootcommand 2002-04-20 15:28:14 +00:00
Dana Jansens
8f8eba7b96 fixed memory leak in screen::load() 2002-04-19 21:05:49 +00:00
Dana Jansens
940c1f614f temprary fix for the memleaks in ::load() and ::set* when using ostrstreams. Need to find a better solution for strings than std::string and ostrstream, or else put up with memory leaks all over the place. 2002-04-19 06:51:08 +00:00
Dana Jansens
5067369f76 fix 2 bus errors on osx:
- it's std::string doesnt like being set to NULL.
 - in Window.cc, caught someone using a membr variable after calling 'delete this'. bad.
2002-04-18 20:56:23 +00:00
Dana Jansens
4602d87180 now yuo can change styles again! (oops) wasnt saving teh nwe style file to the Resource class when it changed. 2002-04-18 03:00:12 +00:00
Dana Jansens
e148f58d0e maps/unmaps the toolbar when its resource setting is loaded from the file so it takes effect during a reconfigure. 2002-04-18 02:05:51 +00:00
Dana Jansens
d99593673c accidently removed a line somehow. OpaqueMove is now read from the rc file. 2002-04-18 00:47:08 +00:00
Dana Jansens
307da13fff menus update their values when they are reconfigure()d.
the screen, toolbar and slit rc values are reloaded in BScreen::reconfigure() before the menus.
the toolbar and slit rc values are explicitly loaded in their constructors, as is BScreen's.
2002-04-17 23:07:11 +00:00
Dana Jansens
9cd9d92bb1 configuration changes "done"!!
on start, the config file is read entirely off the disc, and missing values are assigned defaults.
the config file is immediately written back to the disk to populate missing defaults in the file.
any time a config option is changed the control, the config file is re-written with the change.
choosing reconfig will reload the current config file on the disc.
on shutdown, nothing is written to the config file.
2002-04-17 08:30:55 +00:00
Dana Jansens
66c879bd5c Toolbar saves its settings as their changed
Main config's Hide Toolbar option is also saved when it is changed
Removed 2 debug couts from Slit
2002-04-17 03:44:09 +00:00
Dana Jansens
73a3c979b3 Slit loads its own settings and saves them as they are changed
added an assert in Resource
2002-04-16 23:50:53 +00:00
Dana Jansens
43e9d583c5 renamed the obResource class to Resource. 2002-04-16 22:08:37 +00:00
Scott Moynes
29fff5f56f Added a runtime option for hiding the toolbar totally. Will be cleaner
later. Stay tuned.
2002-04-16 20:22:01 +00:00
Dana Jansens
251dd4034f get rid of the STDC_HEADERS check... this failed on IRIX with MIPSpro, use checks for individual headers instead 2002-04-16 06:25:00 +00:00
Dana Jansens
44e3582d5e BScreen (ScreenInfo) now contains a size() instead of a getWidth/getHeight 2002-04-14 18:48:32 +00:00