vlc | branch: master | David Fuhrmann <[email protected]> | Tue Mar 13 14:09:29 2012 +0100| [31f985a586958bfb31779936555e4bb98cebc71b] | committer: David Fuhrmann
macosx: group methods in simple_prefs.m for better clarity > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=31f985a586958bfb31779936555e4bb98cebc71b --- 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 fa2b172..9f67bce 100644 --- a/modules/gui/macosx/simple_prefs.m +++ b/modules/gui/macosx/simple_prefs.m @@ -51,6 +51,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]; @@ -344,6 +346,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; @@ -705,6 +710,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 */ @@ -1035,6 +1043,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 ) @@ -1227,6 +1238,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
