summaryrefslogtreecommitdiff
path: root/RealtimeSync/resources.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:15:16 +0200
commitbd6336c629841c6db3a6ca53a936d629d34db53b (patch)
tree3721ef997864108df175ce677a8a7d4342a6f1d2 /RealtimeSync/resources.h
parent4.0 (diff)
downloadFreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.gz
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.tar.bz2
FreeFileSync-bd6336c629841c6db3a6ca53a936d629d34db53b.zip
4.1
Diffstat (limited to 'RealtimeSync/resources.h')
-rw-r--r--RealtimeSync/resources.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/RealtimeSync/resources.h b/RealtimeSync/resources.h
index fec82358..4c41d47d 100644
--- a/RealtimeSync/resources.h
+++ b/RealtimeSync/resources.h
@@ -7,29 +7,29 @@
#ifndef RESOURCES_H_INCLUDED
#define RESOURCES_H_INCLUDED
-#include <wx/bitmap.h>
-#include <wx/string.h>
#include <map>
+#include <wx/bitmap.h>
+#include <wx/icon.h>
class GlobalResources
{
public:
- static const GlobalResources& getInstance();
+ static const GlobalResources& instance();
- const wxBitmap& getImageByName(const wxString& imageName) const;
+ static const wxBitmap& getImage(const wxString& name) { return instance().getImageInt(name); }
//image resource objects
- wxIcon* programIcon;
-
- void load() const; //loads bitmap resources on program startup: logical const!
+ wxIcon programIcon;
private:
GlobalResources();
- ~GlobalResources();
+ GlobalResources(const GlobalResources&); //=delete
+ GlobalResources& operator=(const GlobalResources&); //=delete
+
+const wxBitmap& getImageInt(const wxString& name) const;
- //resource mapping
- mutable std::map<wxString, wxBitmap*> bitmapResource;
+ std::map<wxString, wxBitmap> bitmaps;
};
#endif // RESOURCES_H_INCLUDED
bgstack15