diff --git a/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIQtStyleManager.h b/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIQtStyleManager.h index 6eb4a8b420..7cba05eecc 100644 --- a/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIQtStyleManager.h +++ b/BlueBerry/Bundles/org.blueberry.ui.qt/src/berryIQtStyleManager.h @@ -1,89 +1,115 @@ /*=================================================================== BlueBerry Platform Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LICENSE.txt or http://www.mitk.org for details. ===================================================================*/ #ifndef BERRYIQTSTYLEMANAGER_H_ #define BERRYIQTSTYLEMANAGER_H_ #include #include #include #include #include #include namespace berry { struct BERRY_UI_QT IQtStyleManager : public Service { berryInterfaceMacro(IQtStyleManager, berry); struct Style { QString name; QString fileName; Style() {} Style(const QString& name, const QString& fn) : name(name), fileName(fn) {} Style& operator=(const Style& s) { this->name = s.name; this->fileName = s.fileName; return *this; } bool operator<(const Style& s) const { return name < s.name; } bool operator==(const Style& s) const { return name == s.name; } }; + struct IconTheme { + QString name; + + IconTheme() {} + + IconTheme(const QString& name) + : name(name) {} + + IconTheme& operator=(const IconTheme& s) + { + this->name = s.name; + return *this; + } + + bool operator<(const IconTheme& s) const + { return name < s.name; } + + bool operator==(const IconTheme& s) const + { return name == s.name; } + }; + static const std::string ID; // = "org.blueberry.service.qtstylemanager"; typedef QList