diff options
Diffstat (limited to 'src/gui/styleeditor.h')
-rw-r--r-- | src/gui/styleeditor.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/gui/styleeditor.h b/src/gui/styleeditor.h new file mode 100644 index 0000000..3a8dd9d --- /dev/null +++ b/src/gui/styleeditor.h @@ -0,0 +1,41 @@ +#ifndef STYLEEDITOR_H +#define STYLEEDITOR_H + +#include "nodestyle.h" +#include "edgestyle.h" + +#include <QMainWindow> +#include <QPushButton> +#include <QStandardItemModel> + +namespace Ui { +class StyleEditor; +} + +class StyleEditor : public QMainWindow +{ + Q_OBJECT + +public: + explicit StyleEditor(QWidget *parent = 0); + ~StyleEditor(); + + void showEvent(QShowEvent *) override; + void updateFields(); + +public slots: + void on_fillColor_clicked(); + void on_styleListView_clicked(); + void on_edgeStyleListView_clicked(); + +private: + Ui::StyleEditor *ui; + void setColor(QPushButton *btn, QColor col); + QColor color(QPushButton *btn); + QStandardItemModel *_nodeModel; + QStandardItemModel *_edgeModel; + NodeStyle *_activeNodeStyle; + EdgeStyle *_activeEdgeStyle; +}; + +#endif // STYLEEDITOR_H |