From 9f43e32022ac261c6475fc68832cbe9ba9645362 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 20 Apr 2009 17:12:58 -0600 Subject: Fix up window visibility saving/restoring --- src/gui/widgets/window.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/gui/widgets/window.h') 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 @@ -172,6 +172,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. * @@ -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 */ -- cgit v1.2.3-70-g09d2