itom  4.1.0
dialogIconBrowser.h
1 /* ********************************************************************
2  itom software
3  URL: http://www.uni-stuttgart.de/ito
4  Copyright (C) 2020, Institut fuer Technische Optik (ITO),
5  Universitaet 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 
33 class QTreeWidgetItem; //forward declaration
34 
35 namespace ito
36 {
37 
38 class DialogIconBrowser : public QDialog
39 {
40  Q_OBJECT
41 
42 public:
43  DialogIconBrowser(QWidget *parent = NULL);
45 
46 protected:
47  Ui::DialogIconBrowser ui;
48 
49  QList<QTreeWidgetItem*> loadIcons();
50 
51 private:
52  QFutureWatcher<QList<QTreeWidgetItem*> > m_loadWatcher;
53 
54 signals:
55  void sendIconBrowserText(QString iconLink);
56 
57 private 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
void loadFinished()
this method is called if the async load mechanism of the icons has been finished
Definition: dialogIconBrowser.cpp:111
Definition: dialogIconBrowser.h:38
Definition: apiFunctionsGraph.cpp:39