diff options
author | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
---|---|---|
committer | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
commit | 702a3875c5c7c5c937e55d50039ccb0c7bced754 (patch) | |
tree | ee41f8802ec6b7904de7921fb97fa7f262e129aa /tikzit/src/osx | |
parent | 310d4379dd0f439e9a988c3202add12021384690 (diff) |
Anchor support for the parser and osx gui
Diffstat (limited to 'tikzit/src/osx')
-rw-r--r-- | tikzit/src/osx/PropertyInspectorController.h | 10 | ||||
-rw-r--r-- | tikzit/src/osx/PropertyInspectorController.m | 7 |
2 files changed, 15 insertions, 2 deletions
diff --git a/tikzit/src/osx/PropertyInspectorController.h b/tikzit/src/osx/PropertyInspectorController.h index cb14021..0625f9b 100644 --- a/tikzit/src/osx/PropertyInspectorController.h +++ b/tikzit/src/osx/PropertyInspectorController.h @@ -18,6 +18,8 @@ IBOutlet NSView *nodePropertiesView; IBOutlet NSView *graphPropertiesView; IBOutlet NSView *edgePropertiesView; + IBOutlet NSComboBox *sourceAnchorComboBox; + IBOutlet NSComboBox *targetAnchorComboBox; IBOutlet NSTextField *edgeNodeLabelField; IBOutlet NSButton *edgeNodeCheckbox; IBOutlet NSArrayController *nodeDataArrayController; @@ -25,6 +27,12 @@ IBOutlet NSArrayController *edgeDataArrayController; IBOutlet NSArrayController *edgeNodeDataArrayController; + NSMutableArray *sourceAnchorNames; + IBOutlet NSArrayController *sourceAnchorNamesArrayController; + + NSMutableArray *targetAnchorNames; + IBOutlet NSArrayController *targetAnchorNamesArrayController; + NSMutableArray *selectedNodes; IBOutlet NSArrayController *selectedNodesArrayController; @@ -46,6 +54,8 @@ //@property (readonly) BOOL enableEdgeDataControls; @property (retain) NSMutableArray *selectedNodes; @property (retain) NSMutableArray *selectedEdges; +@property (retain) NSMutableArray *sourceAnchorNames; +@property (retain) NSMutableArray *targetAnchorNames; @property (retain) StylePaletteController *stylePaletteController; - (id)initWithWindowNibName:(NSString *)windowNibName; diff --git a/tikzit/src/osx/PropertyInspectorController.m b/tikzit/src/osx/PropertyInspectorController.m index 8254949..1411549 100644 --- a/tikzit/src/osx/PropertyInspectorController.m +++ b/tikzit/src/osx/PropertyInspectorController.m @@ -22,6 +22,7 @@ @synthesize stylePaletteController; @synthesize selectedNodes, selectedEdges; +@synthesize sourceAnchorNames, targetAnchorNames; - (id)initWithWindowNibName:(NSString *)windowNibName { [super initWithWindowNibName:windowNibName]; @@ -50,8 +51,10 @@ name:@"NSWindowDidBecomeMainNotification" object:nil]; - - + [self setSourceAnchorNames: [[NSMutableArray alloc] initWithArray: [@"north south west east" componentsSeparatedByString:@" "]]]; + + [self setTargetAnchorNames: [[NSMutableArray alloc] initWithArray:[@"north south west east" componentsSeparatedByString:@" "]]]; + [[self window] setLevel:NSNormalWindowLevel]; [self showWindow:self]; |