Commit graph

134 commits

Author SHA1 Message Date
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
Dana Jansens
3dcebcf56c Added Util.h, which contains only an ASSERT macro for now 2002-04-14 15:57:07 +00:00
Dana Jansens
ffce7be325 using references instead of pointers if possible in Image 2002-04-14 14:28:02 +00:00
Dana Jansens
9bf23ee332 using a Screen reference instead of pointer in Workspace 2002-04-14 14:20:02 +00:00
Dana Jansens
ba6e2034e7 using a reference for Openbox instead of a pointer 2002-04-14 14:04:16 +00:00
Dana Jansens
72af8cea6a using some references instead of pointers where possible in Screen, ScreenInfo, Slit, Toolbar, and Netizen 2002-04-14 13:58:17 +00:00
Dana Jansens
351f1d0331 Using some references instead of pointers for the menus. 2002-04-14 11:37:22 +00:00
Dana Jansens
e17c54e3f8 removed all Xrm database calls from Screen.cc (style loading).
This completes the conversion to using the obResource class, there are no class to Xrm* except in Resource.cc/h
2002-04-13 22:42:31 +00:00
Dana Jansens
6ea740cd0e load_rc(BScreen *) now uses the obResource class to load its configuration
added a few consts in BScreen to be compatible with the new code.
reordered the compilation in src/ so that Resource.cc is in alphabetical order
2002-04-11 06:58:53 +00:00
Dana Jansens
dfc5f03458 Initial revision 2002-04-11 03:20:38 +00:00