itom
Loading...
Searching...
No Matches
dialogIconBrowser.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 DIALOGICONBROWSER_H
24#define DIALOGICONBROWSER_H
25
26#include <qdialog.h>
27#include <qtreewidget.h>
28#include <qfuturewatcher.h>
29#include <qlist.h>
30
31#include "ui_dialogIconBrowser.h"
32
33class QTreeWidgetItem; //forward declaration
34
35namespace ito
36{
37
38class DialogIconBrowser : public QDialog
39{
40 Q_OBJECT
41
42public:
43 DialogIconBrowser(QWidget *parent = NULL);
45
46protected:
47 Ui::DialogIconBrowser ui;
48
49 QList<QTreeWidgetItem*> loadIcons();
50
51private:
52 QFutureWatcher<QList<QTreeWidgetItem*> > m_loadWatcher;
53
54signals:
55 void sendIconBrowserText(QString iconLink);
56
57private slots:
58// void on_applyButton_clicked(); //!< Write the current settings to the internal paramsVals and sent them to the grabber
59 void on_treeWidget_currentItemChanged(QTreeWidgetItem *current, QTreeWidgetItem *previous);
60 void on_pushButtonClipboard_clicked(bool value);
61 void on_pushButtonInsert_clicked(bool value);
62 void on_txtFilter_textChanged(const QString &text);
63
64 void loadFinished();
65};
66
67} //end namespace ito
68
69#endif
Definition dialogIconBrowser.h:39
void loadFinished()
this method is called if the async load mechanism of the icons has been finished
Definition dialogIconBrowser.cpp:118
Definition apiFunctionsGraph.cpp:40