Commit 31f985a5 authored by David Fuhrmann's avatar David Fuhrmann

macosx: group methods in simple_prefs.m for better clarity

parent 5ff8299f
......@@ -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
......
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