From dbbcc4144a7abef479ae9982563ed3a1cbdb725c Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 6 Dec 2010 08:58:38 +0000 Subject: =?UTF-8?q?=E2=80=A2=20finished=20implementation=20of=20SPChooseMe?= =?UTF-8?q?nuItemDialog=20=E2=80=A2=20simplified=20bundle=20command=20hand?= =?UTF-8?q?ling=20and=20handling=20for=20bundle=20commands=20which=20have?= =?UTF-8?q?=20the=20same=20key=20equivalent=20to=20be=20able=20to=20group?= =?UTF-8?q?=20similar=20bundle=20commands=20=E2=80=A2=20minor=20code=20imp?= =?UTF-8?q?rovements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPChooseMenuItemDialog.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'Source/SPChooseMenuItemDialog.h') diff --git a/Source/SPChooseMenuItemDialog.h b/Source/SPChooseMenuItemDialog.h index e268ab84..3513c2a6 100644 --- a/Source/SPChooseMenuItemDialog.h +++ b/Source/SPChooseMenuItemDialog.h @@ -24,17 +24,22 @@ #import +@class SPChooseMenuItemDialogTextView; @interface SPChooseMenuItemDialog : NSWindow { NSMenu *contextMenu; - NSTextView *tv; + NSInteger selectedItemIndex; + BOOL waitForChoice; + SPChooseMenuItemDialogTextView *dummyTextView; } -@property(readwrite,retain) NSMenu* contextMenu; +@property(readwrite, retain) NSMenu* contextMenu; +@property(readwrite, assign) NSInteger selectedItemIndex; +@property(readwrite, assign) BOOL waitForChoice; -- (void)initMeWithOptions:(NSDictionary *)displayOptions; -+ (void)displayMenu:(NSMenu*)theMenu atPosition:(NSPoint)location; +- (void)initDialog; ++ (NSInteger)withItems:(NSArray*)theList atPosition:(NSPoint)location; @end -- cgit v1.2.3