itom 1.3.0
D:/git-itom/sources/itom/Qitom/ui/dialogLoadedPlugins.h
00001 /* ********************************************************************
00002     itom software
00003     URL: http://www.uni-stuttgart.de/ito
00004     Copyright (C) 2013, Institut für Technische Optik (ITO),
00005     Universität 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 <qtreewidget.h>
00031 #include <qfileiconprovider.h>
00032 
00033 #include "ui_dialogLoadedPlugins.h"
00034 
00035 namespace ito {
00036 
00037 struct PluginLoadStatus; //forward declaration
00038 
00039 class DialogLoadedPlugins : public QDialog 
00040 {
00041     Q_OBJECT
00042 
00043 public:
00044     DialogLoadedPlugins(QWidget *parent = NULL);
00045     ~DialogLoadedPlugins();
00046 
00047 protected:
00048     void init();
00049     void filter();
00050     void setSortChar(int column, QTreeWidgetItem &item);
00051     
00052     Ui::DialogLoadedPlugins ui;
00053     QList<PluginLoadStatus> m_content;
00054     QList< QPair<int, QTreeWidgetItem*> > m_items;
00055     QFileIconProvider *m_fileIconProvider;
00056     QString m_windowTitle;
00057     QString m_cmdMessage;
00058     QString m_cmdWarning;
00059     QString m_cmdError;
00060     QString m_cmdIgnored;
00061 
00062 private slots:
00063     void on_onlyCompatibleCheck_clicked(bool /*value*/) { filter(); };
00064     void on_cmdError_clicked(bool /*value*/) { filter(); };
00065     void on_cmdWarning_clicked(bool /*value*/) { filter(); };
00066     void on_cmdMessage_clicked(bool /*value*/) { filter(); };
00067     void on_cmdIgnored_clicked(bool /*value*/) { filter(); };
00068     void on_filterEdit_textChanged(const QString /*value*/) { filter(); };
00069     void on_tree_itemSelectionChanged();
00070 };
00071 
00072 } //end namespace ito
00073 
00074 #endif
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends