summaryrefslogtreecommitdiff
path: root/src/gui/window.h
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-11 14:38:26 -0600
committerIra Rice <irarice@gmail.com>2009-03-11 14:38:26 -0600
commit2a6b52f6467bfb4babb2a33205752f58554b651b (patch)
tree62934e146a8cb5a9be2a786d1f45795ffea51731 /src/gui/window.h
parentbb45b6a8ca4ea751bceb5853060251a3eefcd4fc (diff)
downloadmana-client-2a6b52f6467bfb4babb2a33205752f58554b651b.tar.gz
mana-client-2a6b52f6467bfb4babb2a33205752f58554b651b.tar.bz2
mana-client-2a6b52f6467bfb4babb2a33205752f58554b651b.tar.xz
mana-client-2a6b52f6467bfb4babb2a33205752f58554b651b.zip
Moved the Skin class outside of the Window class, in order to allow
other widget containers to use skins as well, and to make it easier to extend later. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/window.h')
-rw-r--r--src/gui/window.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/src/gui/window.h b/src/gui/window.h
index c5660c58..7ae7ebba 100644
--- a/src/gui/window.h
+++ b/src/gui/window.h
@@ -23,8 +23,6 @@
#ifndef WINDOW_H
#define WINDOW_H
-#include <map>
-
#include <guichan/widgetlistener.hpp>
#include <guichan/widgets/window.hpp>
@@ -35,24 +33,13 @@
class ConfigListener;
class GCContainer;
class ContainerPlacer;
-class Image;
class Layout;
class LayoutCell;
class ResizeGrip;
+class Skin;
+class SkinLoader;
class WindowContainer;
-class Skin
-{
- public:
- Skin();
- ~Skin();
-
- std::string mName; /**< Name of the skin to use */
- ImageRect border; /**< The window border and background */
- Image *closeImage; /**< Close Button Image */
- int instances;
-};
-
/**
* A window. This window can be dragged around and has a title bar. Windows are
* invisible by default.
@@ -297,11 +284,6 @@ class Window : public gcn::Window, gcn::WidgetListener
void reflowLayout(int w = 0, int h = 0);
/**
- * Loads a window skin
- */
- void loadSkin(const std::string &filename);
-
- /**
* Adds a widget to the window and sets it at given cell.
*/
LayoutCell &place(int x, int y, gcn::Widget *, int w = 1, int h = 1);
@@ -317,17 +299,6 @@ class Window : public gcn::Window, gcn::WidgetListener
* on window close they couldn't do otherwise.
*/
virtual void close();
-
- /**
- * Map containing all window skins
- */
- typedef std::map<std::string, Skin*> Skins;
-
- /**
- * Iterator for window skins
- */
- typedef Skins::iterator SkinIterator;
-
protected:
/** The window container windows add themselves to. */