summaryrefslogtreecommitdiff
path: root/src/gui/window.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-05 21:16:23 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-02-09 19:45:29 +0100
commit0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f (patch)
tree24c19cd4af285fd8ede2d9d866668d005b5f6e26 /src/gui/window.cpp
parent1a769276ce68285040bffd63bd1c01495ce411a7 (diff)
downloadmana-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.tar.gz
mana-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.tar.bz2
mana-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.tar.xz
mana-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.zip
Mostly whitespace and formatting changes
(merged from eAthena client)
Diffstat (limited to 'src/gui/window.cpp')
-rw-r--r--src/gui/window.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/gui/window.cpp b/src/gui/window.cpp
index 582e4a67..64607243 100644
--- a/src/gui/window.cpp
+++ b/src/gui/window.cpp
@@ -31,7 +31,6 @@
#include "window.h"
#include "gui.h"
-#include "gccontainer.h"
#include "windowcontainer.h"
#include "widgets/layout.h"
@@ -87,8 +86,7 @@ Window::Window(const std::string& caption, bool modal, Window *parent):
{
logger->log("Window::Window(\"%s\")", caption.c_str());
- if (!windowContainer)
- {
+ if (!windowContainer) {
throw GCN_EXCEPTION("Window::Window(): no windowContainer set");
}
@@ -128,17 +126,15 @@ Window::Window(const std::string& caption, bool modal, Window *parent):
Window::~Window()
{
logger->log("UNLOAD: Window::~Window(\"%s\")", getCaption().c_str());
-
const std::string &name = mWindowName;
- if (!name.empty())
- {
- // Saving X, Y and Width and Height for resizables in the config
+
+ // Saving X, Y and Width and Height for resizables in the config
+ if (!name.empty()) {
config.setValue(name + "WinX", getX());
config.setValue(name + "WinY", getY());
config.setValue(name + "Visible", isVisible());
- if (mGrip)
- {
+ if (mGrip) {
config.setValue(name + "WinWidth", getWidth());
config.setValue(name + "WinHeight", getHeight());
}