From fd0853d2623dd278b08288331ed42e3be59252fb Mon Sep 17 00:00:00 2001 From: Daniel Wilhelm Date: Fri, 18 Apr 2014 17:00:17 +0200 Subject: 2.2 --- RealtimeSync/resources.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 RealtimeSync/resources.h (limited to 'RealtimeSync/resources.h') 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 +#include +#include + + +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 bitmapResource; +}; + +#endif // RESOURCES_H_INCLUDED -- cgit