diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
commit | 8bf668665b107469086f16cb8ad23e47d479d2b4 (patch) | |
tree | 66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /library/resources.h | |
parent | 3.21 (diff) | |
download | FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2 FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip |
4.0
Diffstat (limited to 'library/resources.h')
-rw-r--r-- | library/resources.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/library/resources.h b/library/resources.h index f812ac90..e985d9bf 100644 --- a/library/resources.h +++ b/library/resources.h @@ -16,9 +16,13 @@ class GlobalResources { public: - static const GlobalResources& instance(); + static const wxBitmap& getImage(const wxString& name) + { + const GlobalResources& inst = instance(); + return inst.getImageInt(name); + } - const wxBitmap& getImage(const wxString& imageName) const; + static const GlobalResources& instance(); //global image resource objects wxAnimation* animationMoney; @@ -26,10 +30,13 @@ public: wxIcon* programIcon; private: - void load(); //loads bitmap resources on program startup - GlobalResources(); ~GlobalResources(); + GlobalResources(const GlobalResources&); + GlobalResources& operator=(const GlobalResources&); + + const wxBitmap& getImageInt(const wxString& name) const; + //resource mapping std::map<wxString, wxBitmap*> bitmapResource; |