Commit 62282b6d authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: Multiple GUI improvements follow j-b's and my approach to synchronise...

macosx: Multiple GUI improvements follow j-b's and my approach to synchronise the QT4 and OSX intfs, more to come
- "Use DVD Menus" is inverted now, so it's "No DVD Menus"
- 3 dots at the end of a menu-item's caption mean that the entry will trigger a window (following Apple's HIGL)
- removed the entries for "Report a Bug" and "License". The first isn't necessary as we got enough of them and users doing useable reports know how to do, the latter will re-appear in the to-be-re-designed About panel.
- additionally, removed useless occurences of vlc_bool_t in favour of BOOL
- preparations to add fps to Statistics
parent a7c86cab
...@@ -144,6 +144,8 @@ ...@@ -144,6 +144,8 @@
"o_description_txt" = id; "o_description_txt" = id;
"o_displayed_lbl" = id; "o_displayed_lbl" = id;
"o_displayed_txt" = id; "o_displayed_txt" = id;
"o_fps_lbl" = id;
"o_fps_txt" = id;
"o_genre_lbl" = id; "o_genre_lbl" = id;
"o_genre_txt" = id; "o_genre_txt" = id;
"o_info_window" = id; "o_info_window" = id;
...@@ -199,11 +201,9 @@ ...@@ -199,11 +201,9 @@
openDocumentation = id; openDocumentation = id;
openDonate = id; openDonate = id;
openForum = id; openForum = id;
openLicense = id;
openReadMe = id; openReadMe = id;
openRecentItem = id; openRecentItem = id;
openWebsite = id; openWebsite = id;
reportABug = id;
showBookmarks = id; showBookmarks = id;
showExtended = id; showExtended = id;
showMessagesPanel = id; showMessagesPanel = id;
...@@ -270,7 +270,6 @@ ...@@ -270,7 +270,6 @@
"o_mi_hide" = id; "o_mi_hide" = id;
"o_mi_hide_others" = id; "o_mi_hide_others" = id;
"o_mi_info" = id; "o_mi_info" = id;
"o_mi_license" = id;
"o_mi_loop" = id; "o_mi_loop" = id;
"o_mi_messages" = id; "o_mi_messages" = id;
"o_mi_minimize" = id; "o_mi_minimize" = id;
...@@ -293,7 +292,6 @@ ...@@ -293,7 +292,6 @@
"o_mi_random" = id; "o_mi_random" = id;
"o_mi_readme" = id; "o_mi_readme" = id;
"o_mi_repeat" = id; "o_mi_repeat" = id;
"o_mi_reportabug" = id;
"o_mi_screen" = id; "o_mi_screen" = id;
"o_mi_select_all" = id; "o_mi_select_all" = id;
"o_mi_services" = id; "o_mi_services" = id;
......
...@@ -25,13 +25,14 @@ ...@@ -25,13 +25,14 @@
<array/> <array/>
<key>IBOpenObjects</key> <key>IBOpenObjects</key>
<array> <array>
<integer>21</integer>
<integer>1789</integer>
<integer>29</integer> <integer>29</integer>
<integer>2769</integer> <integer>2769</integer>
<integer>21</integer>
<integer>2730</integer> <integer>2730</integer>
</array> </array>
<key>IBSystem Version</key> <key>IBSystem Version</key>
<string>8L2127</string> <string>8R3032</string>
<key>IBUsesTextArchiving</key> <key>IBUsesTextArchiving</key>
<true/> <true/>
</dict> </dict>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>IBDocumentLocation</key> <key>IBDocumentLocation</key>
<string>-8 61 505 517 0 0 800 578 </string> <string>-8 61 505 517 0 0 800 578 </string>
<key>IBFramework Version</key> <key>IBFramework Version</key>
<string>456.0</string> <string>446.1</string>
<key>IBLockedObjects</key> <key>IBLockedObjects</key>
<array> <array>
<integer>2203</integer> <integer>2203</integer>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<integer>636</integer> <integer>636</integer>
</array> </array>
<key>IBSystem Version</key> <key>IBSystem Version</key>
<string>9A377a</string> <string>8R3032</string>
<key>IBUsesTextArchiving</key> <key>IBUsesTextArchiving</key>
<true/> <true/>
</dict> </dict>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
productName = vlc; productName = vlc;
productReference = 014CEA410018CDE011CA2923 /* VLC.bundle */; productReference = 014CEA410018CDE011CA2923 /* VLC.bundle */;
productSettingsXML = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> productSettingsXML = "<?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\"> <!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">
<plist version=\"1.0\"> <plist version=\"1.0\">
<dict> <dict>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
...@@ -1312,12 +1312,10 @@ ...@@ -1312,12 +1312,10 @@
089C1669FE841209C02AAC07 /* Project object */ = { 089C1669FE841209C02AAC07 /* Project object */ = {
isa = PBXProject; isa = PBXProject;
buildConfigurationList = C2F2A6EA09588F1B00018C74 /* Build configuration list for PBXProject "vlc" */; buildConfigurationList = C2F2A6EA09588F1B00018C74 /* Build configuration list for PBXProject "vlc" */;
compatibilityVersion = "Xcode 2.4";
hasScannedForEncodings = 1; hasScannedForEncodings = 1;
mainGroup = 089C166AFE841209C02AAC07 /* vlc */; mainGroup = 089C166AFE841209C02AAC07 /* vlc */;
projectDirPath = ""; projectDirPath = "";
projectRoot = ../..; projectRoot = ../..;
shouldCheckCompatibility = 1;
targets = ( targets = (
089C1673FE841209C02AAC07 /* vlc */, 089C1673FE841209C02AAC07 /* vlc */,
); );
......
...@@ -255,9 +255,7 @@ struct intf_sys_t ...@@ -255,9 +255,7 @@ struct intf_sys_t
IBOutlet id o_mu_help; IBOutlet id o_mu_help;
IBOutlet id o_mi_readme; IBOutlet id o_mi_readme;
IBOutlet id o_mi_documentation; IBOutlet id o_mi_documentation;
IBOutlet id o_mi_reportabug;
IBOutlet id o_mi_website; IBOutlet id o_mi_website;
IBOutlet id o_mi_license;
IBOutlet id o_mi_donation; IBOutlet id o_mi_donation;
IBOutlet id o_mi_forum; IBOutlet id o_mi_forum;
IBOutlet id o_mi_errorsAndWarnings; IBOutlet id o_mi_errorsAndWarnings;
......
...@@ -565,7 +565,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -565,7 +565,7 @@ static VLCMain *_o_sharedMainInstance = nil;
/* messages panel */ /* messages panel */
[o_msgs_panel setTitle: _NS("Messages")]; [o_msgs_panel setTitle: _NS("Messages")];
[o_msgs_btn_crashlog setTitle: _NS("Open CrashLog")]; [o_msgs_btn_crashlog setTitle: _NS("Open CrashLog...")];
/* main menu */ /* main menu */
[o_mi_about setTitle: [_NS("About VLC media player") \ [o_mi_about setTitle: [_NS("About VLC media player") \
...@@ -655,25 +655,23 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -655,25 +655,23 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_mu_window setTitle: _NS("Window")]; [o_mu_window setTitle: _NS("Window")];
[o_mi_minimize setTitle: _NS("Minimize Window")]; [o_mi_minimize setTitle: _NS("Minimize Window")];
[o_mi_close_window setTitle: _NS("Close Window")]; [o_mi_close_window setTitle: _NS("Close Window")];
[o_mi_controller setTitle: _NS("Controller")]; [o_mi_controller setTitle: _NS("Controller...")];
[o_mi_equalizer setTitle: _NS("Equalizer")]; [o_mi_equalizer setTitle: _NS("Equalizer...")];
[o_mi_extended setTitle: _NS("Extended Controls")]; [o_mi_extended setTitle: _NS("Extended Controls...")];
[o_mi_bookmarks setTitle: _NS("Bookmarks")]; [o_mi_bookmarks setTitle: _NS("Bookmarks...")];
[o_mi_playlist setTitle: _NS("Playlist")]; [o_mi_playlist setTitle: _NS("Playlist...")];
[o_mi_info setTitle: _NS("Information")]; [o_mi_info setTitle: _NS("Media Information...")];
[o_mi_messages setTitle: _NS("Messages")]; [o_mi_messages setTitle: _NS("Messages...")];
[o_mi_errorsAndWarnings setTitle: _NS("Errors and Warnings")]; [o_mi_errorsAndWarnings setTitle: _NS("Errors and Warnings...")];
[o_mi_bring_atf setTitle: _NS("Bring All to Front")]; [o_mi_bring_atf setTitle: _NS("Bring All to Front")];
[o_mu_help setTitle: _NS("Help")]; [o_mu_help setTitle: _NS("Help")];
[o_mi_readme setTitle: _NS("ReadMe...")]; [o_mi_readme setTitle: _NS("ReadMe / FAQ...")];
[o_mi_documentation setTitle: _NS("Online Documentation")]; [o_mi_documentation setTitle: _NS("Online Documentation...")];
[o_mi_reportabug setTitle: _NS("Report a Bug")]; [o_mi_website setTitle: _NS("VideoLAN Website...")];
[o_mi_website setTitle: _NS("VideoLAN Website")]; [o_mi_donation setTitle: _NS("Make a donation...")];
[o_mi_license setTitle: _NS("License")]; [o_mi_forum setTitle: _NS("Online Forum...")];
[o_mi_donation setTitle: _NS("Make a donation")];
[o_mi_forum setTitle: _NS("Online Forum")];
/* dock menu */ /* dock menu */
[o_dmi_play setTitle: _NS("Play")]; [o_dmi_play setTitle: _NS("Play")];
...@@ -693,7 +691,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -693,7 +691,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_vmi_fullscreen setTitle: _NS("Fullscreen")]; [o_vmi_fullscreen setTitle: _NS("Fullscreen")];
[o_vmi_snapshot setTitle: _NS("Snapshot")]; [o_vmi_snapshot setTitle: _NS("Snapshot")];
[o_info_window setTitle: _NS("Information")]; [o_info_window setTitle: _NS("Media Information")];
} }
- (void)applicationWillFinishLaunching:(NSNotification *)o_notification - (void)applicationWillFinishLaunching:(NSNotification *)o_notification
...@@ -1923,14 +1921,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1923,14 +1921,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[[NSWorkspace sharedWorkspace] openURL: o_url]; [[NSWorkspace sharedWorkspace] openURL: o_url];
} }
- (IBAction)reportABug:(id)sender
{
NSURL * o_url = [NSURL URLWithString:
@"http://www.videolan.org/support/bug-reporting.html"];
[[NSWorkspace sharedWorkspace] openURL: o_url];
}
- (IBAction)openWebsite:(id)sender - (IBAction)openWebsite:(id)sender
{ {
NSURL * o_url = [NSURL URLWithString: @"http://www.videolan.org/"]; NSURL * o_url = [NSURL URLWithString: @"http://www.videolan.org/"];
...@@ -1938,15 +1928,6 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1938,15 +1928,6 @@ static VLCMain *_o_sharedMainInstance = nil;
[[NSWorkspace sharedWorkspace] openURL: o_url]; [[NSWorkspace sharedWorkspace] openURL: o_url];
} }
- (IBAction)openLicense:(id)sender
{
NSString * o_path = [[NSBundle mainBundle]
pathForResource: @"COPYING" ofType: nil];
[[NSWorkspace sharedWorkspace] openFile: o_path
withApplication: @"TextEdit"];
}
- (IBAction)openForum:(id)sender - (IBAction)openForum:(id)sender
{ {
NSURL * o_url = [NSURL URLWithString: @"http://forum.videolan.org/"]; NSURL * o_url = [NSURL URLWithString: @"http://forum.videolan.org/"];
......
...@@ -170,7 +170,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -170,7 +170,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_disc_title_lbl setStringValue: _NS("Title")]; [o_disc_title_lbl setStringValue: _NS("Title")];
[o_disc_chapter_lbl setStringValue: _NS("Chapter")]; [o_disc_chapter_lbl setStringValue: _NS("Chapter")];
[o_disc_videots_btn_browse setTitle: _NS("Browse...")]; [o_disc_videots_btn_browse setTitle: _NS("Browse...")];
[o_disc_dvd_menus setTitle: _NS("Use DVD menus")]; [o_disc_dvd_menus setTitle: _NS("No DVD menus")];
[[o_disc_type cellAtRow:0 column:0] setTitle: _NS("VIDEO_TS directory")]; [[o_disc_type cellAtRow:0 column:0] setTitle: _NS("VIDEO_TS directory")];
[[o_disc_type cellAtRow:1 column:0] setTitle: _NS("DVD")]; [[o_disc_type cellAtRow:1 column:0] setTitle: _NS("DVD")];
...@@ -499,7 +499,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -499,7 +499,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
- (IBAction)openDiscTypeChanged:(id)sender - (IBAction)openDiscTypeChanged:(id)sender
{ {
NSString *o_type; NSString *o_type;
vlc_bool_t b_device, b_menus, b_title_chapter; BOOL b_device, b_no_menus, b_title_chapter;
[o_disc_device removeAllItems]; [o_disc_device removeAllItems];
b_title_chapter = ![o_disc_dvd_menus state]; b_title_chapter = ![o_disc_dvd_menus state];
...@@ -508,34 +508,32 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -508,34 +508,32 @@ static VLCOpen *_o_sharedMainInstance = nil;
if ( [o_type isEqualToString: _NS("VIDEO_TS directory")] ) if ( [o_type isEqualToString: _NS("VIDEO_TS directory")] )
{ {
b_device = 0; b_menus = 1; b_device = NO; b_no_menus = YES;
} }
else else
{ {
NSArray *o_devices; NSArray *o_devices;
NSString *o_disc; NSString *o_disc;
const char *psz_class = NULL; const char *psz_class = NULL;
b_device = 1; b_device = YES;
if ( [o_type isEqualToString: _NS("VCD")] ) if ( [o_type isEqualToString: _NS("VCD")] )
{ {
psz_class = kIOCDMediaClass; psz_class = kIOCDMediaClass;
o_disc = o_type; o_disc = o_type;
b_menus = 0; b_title_chapter = 1; b_no_menus = NO; b_title_chapter = YES;
[o_disc_dvd_menus setState: FALSE]; }
}
else if ( [o_type isEqualToString: _NS("Audio CD")]) else if ( [o_type isEqualToString: _NS("Audio CD")])
{ {
psz_class = kIOCDMediaClass; psz_class = kIOCDMediaClass;
o_disc = o_type; o_disc = o_type;
b_menus = 0; b_title_chapter = 0; b_no_menus = NO; b_title_chapter = NO;
[o_disc_dvd_menus setState: FALSE];
} }
else else
{ {
psz_class = kIODVDMediaClass; psz_class = kIODVDMediaClass;
o_disc = o_type; o_disc = o_type;
b_menus = 1; b_no_menus = YES;
} }
o_devices = GetEjectableMediaOfClass( psz_class ); o_devices = GetEjectableMediaOfClass( psz_class );
...@@ -545,9 +543,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -545,9 +543,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
if ( i_devices ) if ( i_devices )
{ {
int i; for( int i = 0; i < i_devices; i++ )
for( i = 0; i < i_devices; i++ )
{ {
[o_disc_device [o_disc_device
addItemWithObjectValue: [o_devices objectAtIndex: i]]; addItemWithObjectValue: [o_devices objectAtIndex: i]];
...@@ -570,7 +566,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -570,7 +566,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_disc_chapter_stp setEnabled: b_title_chapter]; [o_disc_chapter_stp setEnabled: b_title_chapter];
[o_disc_videots_folder setEnabled: !b_device]; [o_disc_videots_folder setEnabled: !b_device];
[o_disc_videots_btn_browse setEnabled: !b_device]; [o_disc_videots_btn_browse setEnabled: !b_device];
[o_disc_dvd_menus setEnabled: b_menus]; [o_disc_dvd_menus setEnabled: b_no_menus];
[self openDiscInfoChanged: nil]; [self openDiscInfoChanged: nil];
} }
...@@ -598,14 +594,14 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -598,14 +594,14 @@ static VLCOpen *_o_sharedMainInstance = nil;
NSString *o_videots; NSString *o_videots;
NSString *o_mrl_string; NSString *o_mrl_string;
int i_title, i_chapter; int i_title, i_chapter;
vlc_bool_t b_menus; BOOL b_no_menus;
o_type = [[o_disc_type selectedCell] title]; o_type = [[o_disc_type selectedCell] title];
o_device = [o_disc_device stringValue]; o_device = [o_disc_device stringValue];
i_title = [o_disc_title intValue]; i_title = [o_disc_title intValue];
i_chapter = [o_disc_chapter intValue]; i_chapter = [o_disc_chapter intValue];
o_videots = [o_disc_videots_folder stringValue]; o_videots = [o_disc_videots_folder stringValue];
b_menus = [o_disc_dvd_menus state]; b_no_menus = [o_disc_dvd_menus state];
if ( [o_type isEqualToString: _NS("VCD")] ) if ( [o_type isEqualToString: _NS("VCD")] )
{ {
...@@ -628,21 +624,22 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -628,21 +624,22 @@ static VLCOpen *_o_sharedMainInstance = nil;
if ( [o_device isEqualToString: if ( [o_device isEqualToString:
[NSString stringWithFormat: _NS("No %@s found"), o_type]] ) [NSString stringWithFormat: _NS("No %@s found"), o_type]] )
o_device = @""; o_device = @"";
if ( b_menus ) if ( b_no_menus )
o_mrl_string = [NSString stringWithFormat: @"dvdnav://%@",
o_device];
else
o_mrl_string = [NSString stringWithFormat: @"dvdread://%@@%i:%i-", o_mrl_string = [NSString stringWithFormat: @"dvdread://%@@%i:%i-",
o_device, i_title, i_chapter]; o_device, i_title, i_chapter];
else
o_mrl_string = [NSString stringWithFormat: @"dvdnav://%@",
o_device];
} }
else /* VIDEO_TS folder */ else /* VIDEO_TS folder */
{ {
if ( b_menus ) if ( b_no_menus )
o_mrl_string = [NSString stringWithFormat: @"dvdnav://%@",
o_videots];
else
o_mrl_string = [NSString stringWithFormat: @"dvdread://%@@%i:%i", o_mrl_string = [NSString stringWithFormat: @"dvdread://%@@%i:%i",
o_videots, i_title, i_chapter]; o_videots, i_title, i_chapter];
else
o_mrl_string = [NSString stringWithFormat: @"dvdnav://%@",
o_videots];
} }
[o_mrl setStringValue: o_mrl_string]; [o_mrl setStringValue: o_mrl_string];
......
...@@ -95,6 +95,8 @@ ...@@ -95,6 +95,8 @@
IBOutlet id o_video_box; IBOutlet id o_video_box;
IBOutlet id o_video_decoded_lbl; IBOutlet id o_video_decoded_lbl;
IBOutlet id o_video_decoded_txt; IBOutlet id o_video_decoded_txt;
IBOutlet id o_fps_lbl;
IBOutlet id o_fps_txt;
playlist_item_t * p_item; playlist_item_t * p_item;
NSTimer * o_statUpdateTimer; NSTimer * o_statUpdateTimer;
......
...@@ -87,6 +87,7 @@ ...@@ -87,6 +87,7 @@
[o_video_decoded_lbl setStringValue: _NS("Decoded blocks")]; [o_video_decoded_lbl setStringValue: _NS("Decoded blocks")];
[o_displayed_lbl setStringValue: _NS("Displayed frames")]; [o_displayed_lbl setStringValue: _NS("Displayed frames")];
[o_lost_frames_lbl setStringValue: _NS("Lost frames")]; [o_lost_frames_lbl setStringValue: _NS("Lost frames")];
[o_fps_lbl setStringValue: _NS("Frames per Second")];
[o_sout_box setTitle: _NS("Streaming")]; [o_sout_box setTitle: _NS("Streaming")];
[o_sent_packets_lbl setStringValue: _NS("Sent packets")]; [o_sent_packets_lbl setStringValue: _NS("Sent packets")];
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment