summaryrefslogtreecommitdiff
path: root/src/gui/styleeditor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/styleeditor.h')
-rw-r--r--src/gui/styleeditor.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/gui/styleeditor.h b/src/gui/styleeditor.h
index 82f019e..f5df025 100644
--- a/src/gui/styleeditor.h
+++ b/src/gui/styleeditor.h
@@ -21,14 +21,18 @@ public:
explicit StyleEditor(QWidget *parent = 0);
~StyleEditor();
- void refreshDisplay();
void open();
void save();
void closeEvent(QCloseEvent *event) override;
public slots:
+ void refreshDisplay();
void nodeItemChanged(QModelIndex sel);
void edgeItemChanged(QModelIndex sel);
+ void categoryChanged();
+ void currentCategoryChanged();
+ void refreshCategories();
+ void propertyChanged();
void on_styleListView_clicked();
void on_edgeStyleListView_clicked();
@@ -39,17 +43,29 @@ public slots:
void on_tikzitFillColor_clicked();
void on_tikzitDrawColor_clicked();
+ void on_addProperty_clicked();
+ void on_addAtom_clicked();
+ void on_removeProperty_clicked();
+ void on_propertyUp_clicked();
+ void on_propertyDown_clicked();
+
void on_save_clicked();
+ void on_currentCategory_currentIndexChanged(int);
+
+
private:
Ui::StyleEditor *ui;
void setColor(QPushButton *btn, QColor col);
+ void setPropertyModel(GraphElementData *d);
QColor color(QPushButton *btn);
QStandardItemModel *_nodeModel;
QStandardItemModel *_edgeModel;
QStandardItem *_activeItem;
NodeStyle *_activeNodeStyle;
EdgeStyle *_activeEdgeStyle;
+ //QString _activeCategory;
+ Style *activeStyle();
TikzStyles *_styles;
void updateColor(QPushButton *btn, QString name, QString propName);
QVector<QWidget*> _formWidgets;