diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-09-28 20:09:25 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-09-28 20:09:25 +0000 |
commit | e93e064373c382b80ecb37919335fbfe424efeea (patch) | |
tree | c090ee89b74f1b92c58ec2641eeb9a9f80471ec7 /src/gui/window.cpp | |
parent | afaf7b68b8761268fdc54066e02cfe8df1d23dec (diff) | |
download | mana-e93e064373c382b80ecb37919335fbfe424efeea.tar.gz mana-e93e064373c382b80ecb37919335fbfe424efeea.tar.bz2 mana-e93e064373c382b80ecb37919335fbfe424efeea.tar.xz mana-e93e064373c382b80ecb37919335fbfe424efeea.zip |
Added window internal name to every window. Useful to later get and save X, Y, Height, and Width of these wins.
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r-- | src/gui/window.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp index 642b891f..706780be 100644 --- a/src/gui/window.cpp +++ b/src/gui/window.cpp @@ -68,6 +68,7 @@ class WindowConfigListener : public ConfigListener Window::Window(const std::string& caption, bool modal, Window *parent): gcn::Window(caption), parent(parent), + mWindowName("window"), snapSize(8), title(true), modal(modal), @@ -405,3 +406,13 @@ gcn::Rectangle Window::getGripDimension () return gcn::Rectangle(getWidth() - resizeGrip->getWidth(), getHeight() - resizeGrip->getHeight(), getWidth(), getHeight()); } + +void Window::setWindowName(std::string name) +{ + mWindowName = name; +} + +std::string Window::getWindowName() +{ + return mWindowName; +} |