diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-20 17:12:58 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-20 17:12:58 -0600 |
commit | 9f43e32022ac261c6475fc68832cbe9ba9645362 (patch) | |
tree | e7adfbfd17ade39fe03671e2be677934a7e894cd /src/gui/widgets/window.h | |
parent | 3a7224117dfb6709b059fc258876699e969ec119 (diff) | |
download | mana-9f43e32022ac261c6475fc68832cbe9ba9645362.tar.gz mana-9f43e32022ac261c6475fc68832cbe9ba9645362.tar.bz2 mana-9f43e32022ac261c6475fc68832cbe9ba9645362.tar.xz mana-9f43e32022ac261c6475fc68832cbe9ba9645362.zip |
Fix up window visibility saving/restoring
Diffstat (limited to 'src/gui/widgets/window.h')
-rw-r--r-- | src/gui/widgets/window.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 510b0f04..aa9872d3 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -173,6 +173,26 @@ class Window : public gcn::Window, gcn::WidgetListener void setVisible(bool visible, bool forceSticky); /** + * Returns whether the window will save it's visibility. + */ + bool isDefaultVisible() const { return mDefaultVisible; } + + /** + * Returns whether the window will save it's visibility. + */ + void setDefaultVisible(bool save) { mDefaultVisible = save; } + + /** + * Returns whether the window will save it's visibility. + */ + bool willSaveVisible() const { return mSaveVisible; } + + /** + * Returns whether the window will save it's visibility. + */ + void setSaveVisible(bool save) { mSaveVisible = save; } + + /** * Returns the parent window. * * @return The parent window or <code>NULL</code> if there is none. @@ -335,6 +355,8 @@ class Window : public gcn::Window, gcn::WidgetListener bool mShowTitle; /**< Window has a title bar */ bool mModal; /**< Window is modal */ bool mCloseButton; /**< Window has a close button */ + bool mDefaultVisible; /**< Window's default visibility */ + bool mSaveVisible; /**< Window will save visibility */ bool mStickyButton; /**< Window has a sticky button */ bool mSticky; /**< Window resists hiding*/ int mMinWinWidth; /**< Minimum window width */ |