summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/GraphEditorPanel.h
diff options
context:
space:
mode:
Diffstat (limited to 'tikzit/src/gtk/GraphEditorPanel.h')
-rw-r--r--tikzit/src/gtk/GraphEditorPanel.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/tikzit/src/gtk/GraphEditorPanel.h b/tikzit/src/gtk/GraphEditorPanel.h
index 857b0ba..2b93259 100644
--- a/tikzit/src/gtk/GraphEditorPanel.h
+++ b/tikzit/src/gtk/GraphEditorPanel.h
@@ -24,15 +24,20 @@
@class TikzDocument;
@class WidgetSurface;
+@protocol PreviewHandler <NSObject>
+- (void) showPreview;
+@end
@interface GraphEditorPanel : NSObject {
- GraphRenderer *renderer;
- WidgetSurface *surface;
- GraphInputHandler *inputHandler;
- id<Tool> tool;
+ GraphRenderer *renderer;
+ WidgetSurface *surface;
+ GraphInputHandler *inputHandler;
+ id<PreviewHandler> previewHandler;
+ id<Tool> tool;
}
@property (retain) TikzDocument *document;
@property (readonly) GtkWidget *widget;
@property (retain) id<Tool> activeTool;
+@property (assign) id<PreviewHandler> previewHandler;
- (id) init;
- (id) initWithDocument:(TikzDocument*)document;