From f23a2d9daa1eb62b2afac8997f1d76eb881628f7 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 4 Dec 2012 18:55:25 +0000 Subject: Refactor GraphInputHandler into Tools --- tikzit/src/gtk/Application.h | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'tikzit/src/gtk/Application.h') 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 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 activeTool; /** * The folder last actively chosen by a user for opening a file -- cgit v1.2.3