summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-18 22:20:08 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-05-18 22:20:08 +0000
commit32ca8ca9551070ba1086cd5b6c973620052061ed (patch)
treeac3909b6ed48d51e367094bb7e908fdd98ee9807 /src/gui/window.h
parent15b899a6651fcdb79ff7a2040327564c2a99124f (diff)
downloadmana-client-32ca8ca9551070ba1086cd5b6c973620052061ed.tar.gz
mana-client-32ca8ca9551070ba1086cd5b6c973620052061ed.tar.bz2
mana-client-32ca8ca9551070ba1086cd5b6c973620052061ed.tar.xz
mana-client-32ca8ca9551070ba1086cd5b6c973620052061ed.zip
Upgrade to Guichan 0.4.0, TMW can no longer compile, link or run against 0.3.0.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h51
1 files changed, 28 insertions, 23 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 5632a292..d0112e97 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -38,24 +38,6 @@
*/
class Window : public gcn::Window, public ConfigListener
{
- protected:
- gcn::Container *chrome; /**< Contained container */
- Window *parent; /**< The parent window */
- int snapSize; /**< Snap distance to window edge */
- bool modal; /**< Window is modal */
-
- ImageRect border; /**< The window border and background */
-
- bool resizeable; /**< Window can be resized */
- int minWinWidth; /**< Minimum window width */
- int minWinHeight; /**< Minimum window height */
- int maxWinWidth; /**< Maximum window width */
- int maxWinHeight; /**< Maximum window height */
-
-
- /** The window container windows add themselves to. */
- static WindowContainer* windowContainer;
-
public:
/**
* Constructor. Initializes the title to the given text and hooks
@@ -86,11 +68,6 @@ class Window : public gcn::Window, public ConfigListener
void draw(gcn::Graphics *graphics);
/**
- * Calls logic on content widget (cause Guichan 0.3.0 forgot this)
- */
- void logic();
-
- /**
* Adds a widget to the window.
*/
void add(gcn::Widget *w);
@@ -174,6 +151,34 @@ class Window : public gcn::Window, public ConfigListener
* Called when an config option changes.
*/
void optionChanged(const std::string &name);
+
+ protected:
+ gcn::Container *chrome; /**< Contained container */
+ gcn::Widget *prevModal; /**< Previous modal widget */
+ Window *parent; /**< The parent window */
+ int snapSize; /**< Snap distance to window edge */
+ bool modal; /**< Window is modal */
+ bool resizeable; /**< Window can be resized */
+ int minWinWidth; /**< Minimum window width */
+ int minWinHeight; /**< Minimum window height */
+ int maxWinWidth; /**< Maximum window width */
+ int maxWinHeight; /**< Maximum window height */
+
+ /** The window container windows add themselves to. */
+ static WindowContainer* windowContainer;
+
+ static int instances; /**< Number of Window instances */
+ static ImageRect border; /**< The window border and background */
+
+ /**
+ * Loads window resources.
+ */
+ void loadResources();
+
+ /**
+ * Unloads window resources.
+ */
+ void unloadResources();
};
#endif