diff libgui/src/resource-manager.h @ 15787:b081fbe80174

provide separate icons for gui's floating widgets * resource.qrc: add new icons to the list of resources * settings-dialog.ui: new tab with radio buttons for icon set * settings-dialog.cc: configure radio buttons in settings_dialog(), write the selected icon set to settings file in write_changed_settings() * resource-manager.h: added constasnts for the icon sets * main-window.cc: set the icons for all dock-widgets in notice-settings() * libgui/src/icons: added 12 icons (two sets of 6 icons)
author Torsten <ttl@justmail.de>
date Fri, 14 Dec 2012 13:18:14 +0100
parents fd27e10b9b05
children 9cd14e53e906
line wrap: on
line diff
--- a/libgui/src/resource-manager.h	Thu Dec 13 15:58:25 2012 -0500
+++ b/libgui/src/resource-manager.h	Fri Dec 14 13:18:14 2012 +0100
@@ -28,6 +28,19 @@
 #include <QMap>
 #include <QSettings>
 
+// constants for the widget's icons
+enum widget_icon_set
+  {
+    NO_ICON_SET = 0,
+    GRAPHIC_ICON_SET,
+    LETTER_ICON_SET
+  };
+static const char* WIDGET_ICON_SET_PREFIX[] =
+    {":/actions/icons/logo.png",
+     ":/actions/icons/graphic_logo_",
+     ":/actions/icons/letter_logo_"};
+
+
 class resource_manager
 {
 protected: