summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-17 22:13:24 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-12-17 22:13:24 +0100
commitfcc90586d1d1631c31b2799fdaf410af1b073cf0 (patch)
tree589d81d377b087ac607b4a79a2eea065ee9c5893 /src/gui/window.h
parent1b3cb122be1a418ce82b66fb9ce1ecf3aa5813fb (diff)
downloadmana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.tar.gz
mana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.tar.bz2
mana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.tar.xz
mana-fcc90586d1d1631c31b2799fdaf410af1b073cf0.zip
Reintroduced window name property
Still used in the eAthena client and it seems saner to me to have it.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index 493bce37..6f49e062 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -153,8 +153,7 @@ class Window : public gcn::Window, gcn::WidgetListener
*
* @return The parent window or <code>NULL</code> if there is none.
*/
- Window*
- getParentWindow() { return mParent; }
+ Window *getParentWindow() { return mParent; }
/**
* Schedule this window for deletion. It will be deleted at the start
@@ -192,13 +191,23 @@ class Window : public gcn::Window, gcn::WidgetListener
void mouseExited(gcn::MouseEvent &event);
/**
+ * Sets the name of the window. This is not the window title.
+ */
+ void setWindowName(const std::string &name) { mWindowName = name; }
+
+ /**
+ * Returns the name of the window. This is not the window title.
+ */
+ const std::string &getWindowName() { return mWindowName; }
+
+ /**
* Reads the position (and the size for resizable windows) in the
* configuration based on the given string.
* Uses the default values when config values are missing.
* Don't forget to set these default values and resizable before
* calling this function.
*/
- void loadWindowState(const std::string &);
+ void loadWindowState();
/**
* Set the default win pos and size.
@@ -267,7 +276,7 @@ class Window : public gcn::Window, gcn::WidgetListener
ResizeGrip *mGrip; /**< Resize grip */
Window *mParent; /**< The parent window */
Layout *mLayout; /**< Layout handler */
- std::string mConfigName; /**< Name used for saving window-related data */
+ std::string mWindowName; /**< Name of the window */
bool mShowTitle; /**< Window has a title bar */
bool mModal; /**< Window is modal */
bool mCloseButton; /**< Window has a close button */