vlc/vlc-2.0 | branch: master | David Fuhrmann <[email protected]> | Tue Mar 13 14:09:29 2012 +0100| [c9c04bd360b91002101492db8df3ce767fdcfe45] | committer: David Fuhrmann
macosx: group methods in simple_prefs.m for better clarity (cherry picked from commit 31f985a586958bfb31779936555e4bb98cebc71b) Signed-off-by: David Fuhrmann <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=c9c04bd360b91002101492db8df3ce767fdcfe45 --- modules/gui/macosx/simple_prefs.m | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m index b5627c8..758c078 100644 --- a/modules/gui/macosx/simple_prefs.m +++ b/modules/gui/macosx/simple_prefs.m @@ -50,6 +50,8 @@ static NSString* VLCHotkeysSettingToolbarIdentifier = @"Hotkeys Settings Item Id static VLCSimplePrefs *_o_sharedInstance = nil; +#pragma mark Initialisation + + (VLCSimplePrefs *)sharedInstance { return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init]; @@ -343,6 +345,9 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na return NULL; } +#pragma mark - +#pragma mark Setup controls + - (void)setupButton: (NSPopUpButton *)object forStringList: (const char *)name { module_config_t *p_item; @@ -704,6 +709,9 @@ static inline char * __config_GetLabel( vlc_object_t *p_this, const char *psz_na [o_hotkeys_listbox reloadData]; } +#pragma mark - +#pragma mark General actions + - (void)showSimplePrefs { /* we want to show the interface settings, if no category was chosen */ @@ -1034,6 +1042,9 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch [o_currentlyShownCategoryView retain]; } +#pragma mark - +#pragma mark Specific actions + - (IBAction)interfaceSettingChanged:(id)sender { if( sender == o_intf_embedded_ckb && [o_intf_embedded_ckb state] == NSOffState ) @@ -1226,6 +1237,9 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch [self showSettingsForCategory: o_input_view]; } +#pragma mark - +#pragma mark Hotkey actions + - (void)hotkeyTableDoubleClick:(id)object { // -1 is header _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
