summaryrefslogtreecommitdiff
path: root/src/gui/stylepalette.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-04-10 16:07:44 +0200
committerAleks Kissinger <aleks0@gmail.com>2018-04-10 16:07:44 +0200
commiteac7dee2d8ba86001afbc61c4e9d7baae7341cb8 (patch)
tree4214eb557fbeee94144c298bd2ec5e5a0e2df27f /src/gui/stylepalette.h
parentfacfa3e8aa7e3c278b0016c02c6a9f1f019903e2 (diff)
added edgestyles, but cant apply to nodes yet
Diffstat (limited to 'src/gui/stylepalette.h')
-rw-r--r--src/gui/stylepalette.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/src/gui/stylepalette.h b/src/gui/stylepalette.h
new file mode 100644
index 0000000..8663cc4
--- /dev/null
+++ b/src/gui/stylepalette.h
@@ -0,0 +1,42 @@
+#ifndef STYLEPALETTE_H
+#define STYLEPALETTE_H
+
+#include <QDockWidget>
+#include <QStandardItemModel>
+
+namespace Ui {
+class StylePalette;
+}
+
+class StylePalette : public QDockWidget
+{
+ Q_OBJECT
+
+public:
+ explicit StylePalette(QWidget *parent = 0);
+ ~StylePalette();
+ void reloadStyles();
+ void nextNodeStyle();
+ void previousNodeStyle();
+ QString activeNodeStyleName();
+
+
+public slots:
+ void nodeStyleDoubleClicked(const QModelIndex &index);
+ void edgeStyleDoubleClicked(const QModelIndex &index);
+ void on_buttonOpenTikzstyles_clicked();
+ void on_buttonRefreshTikzstyles_clicked();
+ //void on_buttonApplyNodeStyle_clicked();
+
+private:
+ void changeNodeStyle(int increment);
+
+ Ui::StylePalette *ui;
+ QStandardItemModel *_nodeModel;
+ QStandardItemModel *_edgeModel;
+
+protected:
+ void closeEvent(QCloseEvent *event) override;
+};
+
+#endif // STYLEPALETTE_H