diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-15 22:55:02 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-04-15 22:55:02 +0200 |
commit | ddd7f8acbbfbe7cf2787279babdb5c1279c7fd73 (patch) | |
tree | b803ae0a601e46cfa0539f79f76c731dc28652f2 /src/gui/skin.h | |
parent | 2a3f16f5673e6482e422a65f6f23f958dd78955f (diff) | |
download | mana-ddd7f8acbbfbe7cf2787279babdb5c1279c7fd73.tar.gz mana-ddd7f8acbbfbe7cf2787279babdb5c1279c7fd73.tar.bz2 mana-ddd7f8acbbfbe7cf2787279babdb5c1279c7fd73.tar.xz mana-ddd7f8acbbfbe7cf2787279babdb5c1279c7fd73.zip |
Made the PopupMenu a Popup subclass
It's a natural better fit. The SkinLoader was changed into a singleton,
since it's used by both Window and Popup classes.
Diffstat (limited to 'src/gui/skin.h')
-rw-r--r-- | src/gui/skin.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/gui/skin.h b/src/gui/skin.h index 25a9f0e4..c56072d3 100644 --- a/src/gui/skin.h +++ b/src/gui/skin.h @@ -98,8 +98,8 @@ class Skin class SkinLoader { public: - SkinLoader(); - ~SkinLoader(); + static SkinLoader *instance(); + static void deleteInstance(); /** * Loads a skin. @@ -113,6 +113,9 @@ class SkinLoader void updateAlpha(); private: + SkinLoader(); + ~SkinLoader(); + Skin *readSkin(const std::string &filename); // Map containing all window skins @@ -125,8 +128,8 @@ class SkinLoader * The config listener that listens to changes relevant to all skins. */ ConfigListener *mSkinConfigListener; -}; -extern SkinLoader *skinLoader; + static SkinLoader *mInstance; +}; #endif |