Tulip  5.2.1
Large graphs analysis and drawing
TulipFontIconDialog.h
1 /*
2  *
3  * This file is part of Tulip (http://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 
29 namespace Ui {
30 class TulipFontIconDialog;
31 }
32 
33 namespace tlp {
34 
35 class TLP_QT_SCOPE TulipFontIconDialog : public QDialog {
36 
37  Q_OBJECT
38 
39  Ui::TulipFontIconDialog *_ui;
40  QString _selectedIconName;
41 
42 public:
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 
53 protected slots:
54 
55  void updateIconList();
56 
57  void openUrlInBrowser(const QString &url);
58 };
59 } // namespace tlp
60 
61 #endif
62 ///@endcond