summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/Application.h
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-04 18:55:25 +0000
committerAlex Merry <dev@randomguy3.me.uk>2012-12-06 12:08:03 +0000
commitf23a2d9daa1eb62b2afac8997f1d76eb881628f7 (patch)
tree378c1cc752b7aa1fd52f35da23bce7de855bef5d /tikzit/src/gtk/Application.h
parent134de8169993f23f2c3a733a7bf96622965e7d7d (diff)
Refactor GraphInputHandler into Tools
Diffstat (limited to 'tikzit/src/gtk/Application.h')
-rw-r--r--tikzit/src/gtk/Application.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/tikzit/src/gtk/Application.h b/tikzit/src/gtk/Application.h
index 1967132..b05a9cd 100644
--- a/tikzit/src/gtk/Application.h
+++ b/tikzit/src/gtk/Application.h
@@ -26,6 +26,7 @@
@class StyleManager;
@class TikzDocument;
@class Window;
+@protocol Tool;
extern Application* app;
@@ -43,15 +44,16 @@ extern Application* app;
NSString *lastOpenFolder;
NSString *lastSaveAsFolder;
- // the open (active) document
- TikzDocument *activeDocument;
-
PreambleEditor *preambleWindow;
PreviewWindow *previewWindow;
SettingsDialog *settingsDialog;
// the open windows (array of Window*)
NSMutableArray *openWindows;
+
+ // tools
+ id<Tool> activeTool;
+ NSArray *tools;
}
/**
@@ -70,9 +72,14 @@ extern Application* app;
@property (readonly) Preambles *preambles;
/**
- * The document the user is currently editing
+ * The tools
+ */
+@property (readonly) NSArray *tools;
+
+/**
+ * The currently-selected tool
*/
-@property (retain) TikzDocument *activeDocument;
+@property (retain) id<Tool> activeTool;
/**
* The folder last actively chosen by a user for opening a file