Tulip  5.0.0
Large graphs analysis and drawing
ShapeDialog.h
1 #ifndef NODESHAPEDIALOG_H
2 #define NODESHAPEDIALOG_H
3 
4 #include <tulip/tulipconf.h>
5 
6 #include <QDialog>
7 #include <QString>
8 #include <QPixmap>
9 
10 namespace Ui {
11 class ShapeDialog;
12 }
13 
14 namespace tlp {
15 
16 class TLP_QT_SCOPE ShapeDialog : public QDialog {
17 
18  Q_OBJECT
19 
20  Ui::ShapeDialog *_ui;
21  QString _selectedShapeName;
22  std::list<std::pair<QString, QPixmap> > shapes;
23 
24 public:
25 
26  ShapeDialog(std::list<std::pair<QString, QPixmap> >& nodeShapes,
27  QWidget *parent = NULL);
28  ~ShapeDialog();
29 
30  QString getSelectedShapeName() const;
31 
32  void setSelectedShapeName(const QString &shapeName);
33 
34  void accept();
35 
36  void showEvent(QShowEvent *);
37 
38 protected slots:
39  void updateShapeList();
40 };
41 
42 }
43 
44 #endif