Tulip  5.0.0
Large graphs analysis and drawing
TulipFontIconDialog.h
1 #ifndef TULIPFONTICONDIALOG_H
2 #define TULIPFONTICONDIALOG_H
3 
4 #include <tulip/tulipconf.h>
5 
6 #include <QDialog>
7 #include <QString>
8 #include <QIcon>
9 
10 namespace Ui {
11 class TulipFontIconDialog;
12 }
13 
14 namespace tlp {
15 
16 class TLP_QT_SCOPE TulipFontIconDialog : public QDialog {
17 
18  Q_OBJECT
19 
20  Ui::TulipFontIconDialog *_ui;
21  QString _selectedIconName;
22 
23 public:
24 
25  TulipFontIconDialog(QWidget *parent=0);
26 
27  QString getSelectedIconName() const;
28 
29  void setSelectedIconName(const QString &iconName);
30 
31  void accept();
32 
33  void showEvent(QShowEvent *);
34 
35  static QIcon getFontAwesomeIcon(const QString &iconName);
36 
37  static QIcon getMaterialDesignIcon(const QString &iconName);
38 
39 protected slots:
40 
41  void updateIconList();
42 
43  void openUrlInBrowser(const QString &url);
44 
45 };
46 
47 }
48 
49 #endif