Tulip 5.7.1
Large graphs analysis and drawing
Loading...
Searching...
No Matches
TulipFontIconDialog.h
1/*
2 *
3 * This file is part of Tulip (https://tulip.labri.fr)
4 *
5 * Authors: David Auber and the Tulip development Team
6 * from LaBRI, University of Bordeaux
7 *
8 * Tulip is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation, either version 3
11 * of the License, or (at your option) any later version.
12 *
13 * Tulip is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
17 *
18 */
19///@cond DOXYGEN_HIDDEN
20#ifndef TULIPFONTICONDIALOG_H
21#define TULIPFONTICONDIALOG_H
22
23#include <tulip/tulipconf.h>
24
25#include <QDialog>
26#include <QString>
27#include <QIcon>
28
29namespace Ui {
30class TulipFontIconDialog;
31}
32
33namespace tlp {
34
35class TLP_QT_SCOPE TulipFontIconDialog : public QDialog {
36
37 Q_OBJECT
38
39 Ui::TulipFontIconDialog *_ui;
40 QString _selectedIconName;
41
42public:
43 TulipFontIconDialog(QWidget *parent = nullptr);
44
45 QString getSelectedIconName() const;
46
47 void setSelectedIconName(const QString &iconName);
48
49 void accept() override;
50
51 void showEvent(QShowEvent *) override;
52
53protected slots:
54
55 void updateIconList();
56
57 void openUrlInBrowser(const QString &url);
58
59protected:
60 bool eventFilter(QObject *, QEvent *e) override;
61};
62} // namespace tlp
63
64#endif
65///@endcond