itom 2.2.1
|
00001 /* ******************************************************************** 00002 itom software 00003 URL: http://www.uni-stuttgart.de/ito 00004 Copyright (C) 2016, Institut fuer Technische Optik (ITO), 00005 Universitaet Stuttgart, Germany 00006 00007 This file is part of itom. 00008 00009 itom is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU Library General Public Licence as published by 00011 the Free Software Foundation; either version 2 of the Licence, or (at 00012 your option) any later version. 00013 00014 itom is distributed in the hope that it will be useful, but 00015 WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library 00017 General Public Licence for more details. 00018 00019 You should have received a copy of the GNU Library General Public License 00020 along with itom. If not, see <http://www.gnu.org/licenses/>. 00021 *********************************************************************** */ 00022 00023 #ifndef DIALOGLOADEDPLUGINS_H 00024 #define DIALOGLOADEDPLUGINS_H 00025 00026 #include "../global.h" 00027 00028 #include <qdialog.h> 00029 #include <qlist.h> 00030 #include <qcolor.h> 00031 #include <qtreewidget.h> 00032 #include <qfileiconprovider.h> 00033 00034 #include "ui_dialogLoadedPlugins.h" 00035 00036 namespace ito { 00037 00038 struct PluginLoadStatus; //forward declaration 00039 00040 class DialogLoadedPlugins : public QDialog 00041 { 00042 Q_OBJECT 00043 00044 Q_PROPERTY(QColor pluginBackgroundColor READ pluginBackgroundColor WRITE setPluginBackgroundColor DESIGNABLE true); 00045 00046 public: 00047 DialogLoadedPlugins(QWidget *parent = NULL); 00048 ~DialogLoadedPlugins(); 00049 00050 protected: 00051 void init(); 00052 void filter(); 00053 void setSortChar(int column, QTreeWidgetItem &item); 00054 00055 QColor pluginBackgroundColor() const { return m_pluginBackgroundColor; } 00056 void setPluginBackgroundColor(const QColor &color); 00057 00058 Ui::DialogLoadedPlugins ui; 00059 QList<PluginLoadStatus> m_content; 00060 QList< QPair<int, QTreeWidgetItem*> > m_items; 00061 QFileIconProvider *m_fileIconProvider; 00062 QString m_windowTitle; 00063 QString m_cmdMessage; 00064 QString m_cmdWarning; 00065 QString m_cmdError; 00066 QString m_cmdIgnored; 00067 QColor m_pluginBackgroundColor; 00068 00069 private slots: 00070 void on_onlyCompatibleCheck_clicked(bool /*value*/) { filter(); }; 00071 void on_cmdError_clicked(bool /*value*/) { filter(); }; 00072 void on_cmdWarning_clicked(bool /*value*/) { filter(); }; 00073 void on_cmdMessage_clicked(bool /*value*/) { filter(); }; 00074 void on_cmdIgnored_clicked(bool /*value*/) { filter(); }; 00075 void on_filterEdit_textChanged(const QString /*value*/) { filter(); }; 00076 void on_tree_itemSelectionChanged(); 00077 }; 00078 00079 } //end namespace ito 00080 00081 #endif