diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-08-03 23:22:11 +0200 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-08-03 23:22:11 +0200 |
commit | 247d9e6b004b2920d696245838b9969690637fd2 (patch) | |
tree | c5120e553ed37ddd1ed899f61eaba141af57f9b2 /src/gui/styleeditor.h | |
parent | 31a78ae551b781eccc47546a2f6d4bf121af24cf (diff) |
support for RGB colors, edit color and name in style editor
Diffstat (limited to 'src/gui/styleeditor.h')
-rw-r--r-- | src/gui/styleeditor.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gui/styleeditor.h b/src/gui/styleeditor.h index 3a8dd9d..080fb6f 100644 --- a/src/gui/styleeditor.h +++ b/src/gui/styleeditor.h @@ -3,6 +3,7 @@ #include "nodestyle.h" #include "edgestyle.h" +#include "tikzstyles.h" #include <QMainWindow> #include <QPushButton> @@ -20,22 +21,29 @@ public: explicit StyleEditor(QWidget *parent = 0); ~StyleEditor(); - void showEvent(QShowEvent *) override; void updateFields(); + void open(); public slots: - void on_fillColor_clicked(); void on_styleListView_clicked(); void on_edgeStyleListView_clicked(); + void on_name_editingFinished(); + void on_fillColor_clicked(); + void on_drawColor_clicked(); + void on_tikzitFillColor_clicked(); + void on_tikzitDrawColor_clicked(); private: Ui::StyleEditor *ui; void setColor(QPushButton *btn, QColor col); QColor color(QPushButton *btn); QStandardItemModel *_nodeModel; QStandardItemModel *_edgeModel; + QStandardItem *_activeItem; NodeStyle *_activeNodeStyle; EdgeStyle *_activeEdgeStyle; + TikzStyles *_styles; + void updateColor(QPushButton *btn, QString name, QString propName); }; #endif // STYLEEDITOR_H |