summaryrefslogtreecommitdiff
path: root/RealtimeSync/resources.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:00:17 +0200
commitfd0853d2623dd278b08288331ed42e3be59252fb (patch)
treea7645daeaef8bdbed064faf4eb88e72cee58726c /RealtimeSync/resources.h
parent2.1 (diff)
downloadFreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.gz
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.tar.bz2
FreeFileSync-fd0853d2623dd278b08288331ed42e3be59252fb.zip
2.2
Diffstat (limited to 'RealtimeSync/resources.h')
-rw-r--r--RealtimeSync/resources.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/RealtimeSync/resources.h b/RealtimeSync/resources.h
new file mode 100644
index 00000000..3a0cde7b
--- /dev/null
+++ b/RealtimeSync/resources.h
@@ -0,0 +1,33 @@
+#ifndef RESOURCES_H_INCLUDED
+#define RESOURCES_H_INCLUDED
+
+#include <wx/bitmap.h>
+#include <wx/string.h>
+#include <map>
+
+
+class GlobalResources
+{
+public:
+ static const GlobalResources& getInstance();
+
+ const wxBitmap& getImageByName(const wxString& imageName) const;
+
+ //image resource objects
+ wxBitmap* bitmapStart;
+ wxBitmap* bitmapAddFolderPair;
+ wxBitmap* bitmapRemoveFolderPair;
+
+ wxIcon* programIcon;
+
+ void load() const; //loads bitmap resources on program startup: logical const!
+
+private:
+ GlobalResources();
+ ~GlobalResources();
+
+ //resource mapping
+ mutable std::map<wxString, wxBitmap*> bitmapResource;
+};
+
+#endif // RESOURCES_H_INCLUDED
bgstack15