diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-08-02 17:44:37 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-08-02 17:44:37 +0200 |
commit | 31a78ae551b781eccc47546a2f6d4bf121af24cf (patch) | |
tree | b997a471d484f9b096878919fcd38b074dc7a59a /src/gui/styleeditor.h | |
parent | f978634e8607f568b83952db9255e08f3f7cbe92 (diff) |
started style editor
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 |