itom
Loading...
Searching...
No Matches
dialogLoadedPlugins.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom.
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 itom is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17 General Public Licence for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22
23#ifndef DIALOGLOADEDPLUGINS_H
24#define DIALOGLOADEDPLUGINS_H
25
26#include "../global.h"
27
28#include <qcolor.h>
29#include <qdialog.h>
30#include <qfileiconprovider.h>
31#include <qlist.h>
32#include <qtreewidget.h>
33
34#include "ui_dialogLoadedPlugins.h"
35
36namespace ito {
37
38struct PluginLoadStatus; // forward declaration
39
40class DialogLoadedPlugins : public QDialog
41{
42 Q_OBJECT
43
44public:
45 DialogLoadedPlugins(QWidget* parent = nullptr);
47
48protected:
49 void init();
50 void filter();
51 void setSortChar(int column, QTreeWidgetItem& item);
52
53 Ui::DialogLoadedPlugins ui;
54 QList<PluginLoadStatus> m_content;
55 QList<QPair<int, QTreeWidgetItem*>> m_items;
56 QFileIconProvider* m_fileIconProvider;
57 QString m_windowTitle;
58 QString m_cmdMessage;
59 QString m_cmdWarning;
60 QString m_cmdError;
61 QString m_cmdIgnored;
62
63private slots:
64 void on_onlyCompatibleCheck_clicked(bool /*value*/)
65 {
66 filter();
67 };
68 void on_cmdError_clicked(bool /*value*/)
69 {
70 filter();
71 };
72 void on_cmdWarning_clicked(bool /*value*/)
73 {
74 filter();
75 };
76 void on_cmdMessage_clicked(bool /*value*/)
77 {
78 filter();
79 };
80 void on_cmdIgnored_clicked(bool /*value*/)
81 {
82 filter();
83 };
84 void on_filterEdit_textChanged(const QString /*value*/)
85 {
86 filter();
87 };
88 void on_tree_itemSelectionChanged();
89};
90
91} // end namespace ito
92
93#endif
Definition dialogLoadedPlugins.h:41
Definition apiFunctionsGraph.cpp:40