Removing keys submenu

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7508 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Ronald Reagan
2013-07-20 20:29:04 +00:00
parent 8f3041de28
commit 2a8183b605
6 changed files with 3427 additions and 118 deletions
-90
View File
@@ -1,90 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBClasses</key>
<array>
<dict>
<key>ACTIONS</key>
<dict>
<key>helpAction</key>
<string>id</string>
<key>multiplayerAction</key>
<string>id</string>
<key>openUserdir</key>
<string>id</string>
<key>playAction</key>
<string>id</string>
<key>playMap</key>
<string>id</string>
<key>playRpg</key>
<string>id</string>
<key>showForum</key>
<string>id</string>
</dict>
<key>CLASS</key>
<string>Launcher</string>
<key>LANGUAGE</key>
<string>ObjC</string>
<key>OUTLETS</key>
<dict>
<key>admin_password</key>
<string>NSTextField</string>
<key>console</key>
<string>ConsoleView</string>
<key>keys</key>
<string>NSArrayController</string>
<key>maps</key>
<string>NSArrayController</string>
<key>multiplayer</key>
<string>NSButton</string>
<key>prog</key>
<string>NSProgressIndicator</string>
<key>resolutions</key>
<string>NSPopUpButton</string>
<key>stencil</key>
<string>NSButton</string>
<key>tabs</key>
<string>NSTabView</string>
<key>view1</key>
<string>NSView</string>
<key>view2</key>
<string>NSView</string>
<key>view3</key>
<string>NSView</string>
<key>view4</key>
<string>NSView</string>
<key>view5</key>
<string>NSView</string>
<key>window</key>
<string>NSWindow</string>
</dict>
<key>SUPERCLASS</key>
<string>NSObject</string>
</dict>
<dict>
<key>ACTIONS</key>
<dict>
<key></key>
<string>id</string>
</dict>
<key>CLASS</key>
<string>FirstResponder</string>
<key>LANGUAGE</key>
<string>ObjC</string>
<key>SUPERCLASS</key>
<string>NSObject</string>
</dict>
<dict>
<key>CLASS</key>
<string>ConsoleView</string>
<key>LANGUAGE</key>
<string>ObjC</string>
<key>SUPERCLASS</key>
<string>NSView</string>
</dict>
</array>
<key>IBVersion</key>
<string>1</string>
</dict>
</plist>
File diff suppressed because it is too large Load Diff
-24
View File
@@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBFramework Version</key>
<string>677</string>
<key>IBLastKnownRelativeProjectPath</key>
<string>../actioncube.xcodeproj</string>
<key>IBOldestOS</key>
<integer>4</integer>
<key>IBOpenObjects</key>
<array>
<integer>21</integer>
<integer>264</integer>
<integer>792</integer>
<integer>213</integer>
<integer>29</integer>
</array>
<key>IBSystem Version</key>
<string>9J61</string>
<key>targetFramework</key>
<string>IBCocoaFramework</string>
</dict>
</plist>
Binary file not shown.
+2 -1
View File
@@ -9,7 +9,8 @@
//able to leave these disconnected
IBOutlet NSView *view1; //Main
IBOutlet NSView *view3; //Keys
//20/7/13: RR Removing keys submenu
// IBOutlet NSView *view3; //Keys
IBOutlet NSView *view4; //Server
+9 -3
View File
@@ -125,7 +125,9 @@ static int numberForKey(CFDictionaryRef desc, CFStringRef key)
- (void)switchViews:(NSToolbarItem *)item
{
NSView *views[] = {view1, view3, view4};
//20/7/13: RR Removing keys submenu
// NSView *views[] = {view1, view3, view4};
NSView *views[] = {view1, view4};
NSView *prefsView = views[[item tag]-1];
//to stop flicker, we make a temp blank view.
@@ -159,7 +161,9 @@ static int numberForKey(CFDictionaryRef desc, CFStringRef key)
SEL action = @selector(displayHelp:);
id target = self;
if(tag) {
NSString *names[] = {tkMAIN, tkKEYS, tkSERVER};
//20/7/13: RR Removing keys submenu
// NSString *names[] = {tkMAIN, tkKEYS, tkSERVER};
NSString *names[] = {tkMAIN, tkSERVER};
name = names[tag-1];
action = @selector(switchViews:);
target = self;
@@ -209,7 +213,9 @@ static int numberForKey(CFDictionaryRef desc, CFStringRef key)
- (NSArray *)toolbarSelectableItemIdentifiers: (NSToolbar *)toolbar
{
NSMutableArray *array = [NSMutableArray array];
NSView *views[] = {view1, view3, view4};
//20/7/13: RR Removing keys submenu
// NSView *views[] = {view1, view3, view4};
NSView *views[] = {view1, view4};
int i;
for(i = 0; i < sizeof(views)/sizeof(NSView*); i++) if(views[i]) [array addObject:[NSString stringWithFormat:@"%d", i+1]];
return array;