diff options
author | Alex Merry <dev@randomguy3.me.uk> | 2012-06-29 15:12:49 +0100 |
---|---|---|
committer | Alex Merry <dev@randomguy3.me.uk> | 2012-06-29 15:12:49 +0100 |
commit | 7b4db7aa75f8e60702fe7828e4be9b06ef7c5fc9 (patch) | |
tree | 6b136cdd1b8161fe6eb53d0f9269ffccc57aeb6a /tikzit/src/gtk/GraphInputHandler.h | |
parent | 626622b7e570015f5f49e327dfe24660fb221411 (diff) |
Be helpful about which panes are visible
If only one property/style pane is visible, auto-switch between them
depending on the tool.
Diffstat (limited to 'tikzit/src/gtk/GraphInputHandler.h')
-rw-r--r-- | tikzit/src/gtk/GraphInputHandler.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tikzit/src/gtk/GraphInputHandler.h b/tikzit/src/gtk/GraphInputHandler.h index 9955459..7277e82 100644 --- a/tikzit/src/gtk/GraphInputHandler.h +++ b/tikzit/src/gtk/GraphInputHandler.h @@ -20,6 +20,8 @@ #import "InputDelegate.h" #import "StyleManager.h" +@class MainWindow; + typedef enum { SelectMode, CreateNodeMode, @@ -41,6 +43,7 @@ typedef enum { } MouseState; @interface GraphInputHandler: NSObject { + MainWindow *window; GraphRenderer *renderer; InputMode mode; MouseState state; @@ -54,13 +57,10 @@ typedef enum { NSPoint oldOrigin; } -- (id) initWithGraphRenderer:(GraphRenderer*)r; - -- (float) edgeFuzz; -- (void) setEdgeFuzz:(float)fuzz; +@property (assign) float edgeFuzz; +@property (assign) InputMode mode; -- (InputMode) mode; -- (void) setMode:(InputMode)mode; +- (id) initWithGraphRenderer:(GraphRenderer*)r window:(MainWindow*)w; - (void) resetState; |