Commit c9c04bd3 authored by David Fuhrmann's avatar David Fuhrmann

macosx: group methods in simple_prefs.m for better clarity

(cherry picked from commit 31f985a5)
Signed-off-by: default avatarDavid Fuhrmann <david.fuhrmann@googlemail.com>
parent 193bb48c
......@@ -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
......
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