diff options
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 |