summaryrefslogtreecommitdiff
path: root/tikzit/src/gui/toolpalette.h
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2017-12-18 15:29:33 +0000
committerAleks Kissinger <aleks0@gmail.com>2017-12-18 15:29:33 +0000
commit2bf85f71dc07b2c4785b9408e3c426ccaab55b74 (patch)
tree29ed038fa42f7ba5f11a2af305b6c350149a1a9b /tikzit/src/gui/toolpalette.h
parent5816cd5d5e3edf7ee7a7273c7c3a3d907dc54a4a (diff)
introduced some comments for source navigation
Diffstat (limited to 'tikzit/src/gui/toolpalette.h')
-rw-r--r--tikzit/src/gui/toolpalette.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/tikzit/src/gui/toolpalette.h b/tikzit/src/gui/toolpalette.h
index 05b2e12..ba6aed5 100644
--- a/tikzit/src/gui/toolpalette.h
+++ b/tikzit/src/gui/toolpalette.h
@@ -1,3 +1,7 @@
+/**
+ * A small window that lets the user select the current editing tool.
+ */
+
#ifndef TOOLPALETTE_H
#define TOOLPALETTE_H
@@ -11,6 +15,14 @@ class ToolPalette : public QToolBar
Q_OBJECT
public:
ToolPalette(QWidget *parent = 0);
+ enum Tool {
+ SELECT,
+ VERTEX,
+ EDGE,
+ CROP
+ };
+
+ Tool currentTool() const;
private:
QActionGroup *tools;
QAction *select;