diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-16 23:50:53 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-16 23:50:53 +0000 |
| commit | 73a3c979b39ae0b51298d16bc5e76b61d31c89d5 (patch) | |
| tree | bb9fc01c03957c308b2bd2878e910fe57940f7c8 /src/Screen.h | |
| parent | fe9b1efde5e46c00679d0435601f915099a574b0 (diff) | |
Slit loads its own settings and saves them as they are changed
added an assert in Resource
Diffstat (limited to 'src/Screen.h')
| -rw-r--r-- | src/Screen.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/Screen.h b/src/Screen.h index 4b3e4dc3..8d413529 100644 --- a/src/Screen.h +++ b/src/Screen.h @@ -103,6 +103,7 @@ private: Window geom_window; Openbox &openbox; + Resource &config; BImageControl *image_control; Configmenu *configmenu; Iconmenu *iconmenu; @@ -175,7 +176,7 @@ protected: public: - BScreen(Openbox &, int); + BScreen(Openbox &, int, Resource &); ~BScreen(void); inline const Bool &isToolbarOnTop(void) const @@ -207,18 +208,7 @@ public: inline Rootmenu *getRootmenu(void) { return rootmenu; } #ifdef SLIT - inline const Bool &isSlitOnTop(void) const { return resource.slit_on_top; } - inline const Bool &doSlitAutoHide(void) const - { return resource.slit_auto_hide; } inline Slit *getSlit(void) { return slit; } - inline const int &getSlitPlacement(void) const - { return resource.slit_placement; } - inline const int &getSlitDirection(void) const - { return resource.slit_direction; } - inline void saveSlitPlacement(int p) { resource.slit_placement = p; } - inline void saveSlitDirection(int d) { resource.slit_direction = d; } - inline void saveSlitOnTop(Bool t) { resource.slit_on_top = t; } - inline void saveSlitAutoHide(Bool t) { resource.slit_auto_hide = t; } #endif // SLIT inline int getWindowZones(void) const |
