Dana Jansens [Fri, 19 Apr 2002 06:51:08 +0000 (06:51 +0000)]
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.
Dana Jansens [Thu, 18 Apr 2002 20:56:23 +0000 (20:56 +0000)]
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.
Dana Jansens [Wed, 17 Apr 2002 23:07:11 +0000 (23:07 +0000)]
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.
Dana Jansens [Wed, 17 Apr 2002 08:30:55 +0000 (08:30 +0000)]
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.
Dana Jansens [Tue, 16 Apr 2002 01:10:53 +0000 (01:10 +0000)]
applied Ruhi's cleanup patch. moves colSmartPlacement into its own function
using Geomtry objects instead of integer pairs in all of the placeWindow code now
Dana Jansens [Sun, 14 Apr 2002 18:28:11 +0000 (18:28 +0000)]
changed OpenboxWindow to not have getFrameX/getWidth/etc functions, and to return Origins and Sizes and Rects, in fuctions like size(), origin(), and area().
Dana Jansens [Sun, 14 Apr 2002 09:39:14 +0000 (09:39 +0000)]
made shaded windows snap properly at their bottom, using their shaded height.
window.getHeight() now returns the different/correct value when a window is shaded.
Dana Jansens [Sun, 14 Apr 2002 01:11:51 +0000 (01:11 +0000)]
added first revision of the BestFit placement type.
moved RowSmart placement type out of placeWindow() to its own function like bestFit. Will continue moving other placement types into their own functions.
Dana Jansens [Sat, 13 Apr 2002 22:42:31 +0000 (22:42 +0000)]
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
Dana Jansens [Thu, 11 Apr 2002 06:58:53 +0000 (06:58 +0000)]
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