Search
lxdream.org :: lxdream/src/cocoaui/cocoaui.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/cocoaui/cocoaui.c
changeset 691:ad3356543392
prev686:afd1bd3f1acc
next693:b16608c4ad1e
author nkeynes
date Thu Jun 19 04:40:37 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Refactor the gd-rom list management out of the GUI (devices, recent files, etc).
Add gd-rom list to the cocoa UI.
file annotate diff log raw
1.1 --- a/src/cocoaui/cocoaui.c Sat Jun 14 10:19:35 2008 +0000
1.2 +++ b/src/cocoaui/cocoaui.c Thu Jun 19 04:40:37 2008 +0000
1.3 @@ -96,9 +96,12 @@
1.4 NSMenu *menu = [NSMenu new];
1.5 [menu addItem: menuItem];
1.6
1.7 + NSMenu *gdromMenu = cocoa_gdrom_menu_new();
1.8 +
1.9 NSMenu *fileMenu = [[NSMenu alloc] initWithTitle: NS_("File")];
1.10 [fileMenu addItemWithTitle: NS_("Load Binary") action: @selector(load_binary_action:) keyEquivalent: @"b"];
1.11 - [fileMenu addItemWithTitle: NS_("GD-Rom") action: @selector(mount_action:) keyEquivalent: @"g"];
1.12 + [[fileMenu addItemWithTitle: NS_("GD-Rom") action: nil keyEquivalent: @""]
1.13 + setSubmenu: gdromMenu];
1.14 [fileMenu addItem: [NSMenuItem separatorItem]];
1.15 [[fileMenu addItemWithTitle: NS_("Reset") action: @selector(reset_action:) keyEquivalent: @"r"]
1.16 setKeyEquivalentModifierMask:(NSAlternateKeyMask|NSCommandKeyMask)];
1.17 @@ -194,6 +197,10 @@
1.18 {
1.19 dreamcast_run();
1.20 }
1.21 +- (void) gdrom_list_action: (id)sender
1.22 +{
1.23 + gdrom_list_set_selection( [sender tag] );
1.24 +}
1.25 @end
1.26
1.27
.