itom
Loading...
Searching...
No Matches
dialogReloadModule.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 DIALOGRELOADMODULE_H
24#define DIALOGRELOADMODULE_H
25
26#include <QtGui>
27#include <qdialog.h>
28#include <qstring.h>
29#include <qtreewidget.h>
30
31#include "ui_dialogReloadModule.h"
32
33namespace ito
34{
35
36class DialogReloadModule : public QDialog
37{
38 Q_OBJECT
39
40public:
41 DialogReloadModule(QWidget *parent = NULL);
42 ~DialogReloadModule() { m_items.clear(); };
43
44protected:
45 void enableUI(bool enabled);
46 void filterItems();
47
48private:
49 Ui::DialogReloadModule ui;
50
51 QMap<QString, QTreeWidgetItem*> m_items;
52
53private slots:
54 void loadModules();
55 void currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
56 void checkBuildinClicked(bool /*checked*/) { filterItems(); }
57 void checkPythonPathClicked(bool /*checked*/) { filterItems(); }
58
59public slots:
60 void dialogAccepted();
61
62private slots:
63
64};
65
66} //end namespace ito
67
68#endif
Definition dialogReloadModule.h:37
Definition apiFunctionsGraph.cpp:40