Commit c3a1a712 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: get rid of the infamous 'get' prefixes everywhere and finally respect...

macosx: get rid of the infamous 'get' prefixes everywhere and finally respect Cocoa's naming scheme here
parent ef93d6eb
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
return nil; return nil;
} }
VLCControls * o_controls = (VLCControls *)[[NSApp delegate] getControls]; VLCControls * o_controls = (VLCControls *)[[NSApp delegate] controls];
if ( o_controls ) if ( o_controls )
{ {
...@@ -145,12 +145,12 @@ ...@@ -145,12 +145,12 @@
@implementation NSApplication(ScriptSupport) @implementation NSApplication(ScriptSupport)
- (BOOL) scriptFullscreenMode { - (BOOL) scriptFullscreenMode {
VLCControls * o_controls = (VLCControls *)[[self delegate] getControls]; VLCControls * o_controls = (VLCControls *)[[self delegate] controls];
return [o_controls isFullscreen]; return [o_controls isFullscreen];
} }
- (void) setScriptFullscreenMode: (BOOL) mode { - (void) setScriptFullscreenMode: (BOOL) mode {
VLCControls * o_controls = (VLCControls *)[[self delegate] getControls]; VLCControls * o_controls = (VLCControls *)[[self delegate] controls];
if (mode == [o_controls isFullscreen]) return; if (mode == [o_controls isFullscreen]) return;
[o_controls toogleFullscreen: self]; [o_controls toogleFullscreen: self];
} }
......
...@@ -64,5 +64,5 @@ ...@@ -64,5 +64,5 @@
- (void)initStrings; - (void)initStrings;
- (void)showBookmarks; - (void)showBookmarks;
- (id)getDataTable; - (id)dataTable;
@end @end
...@@ -318,7 +318,7 @@ clear: ...@@ -318,7 +318,7 @@ clear:
msg_Dbg( VLCIntf, "calling wizard"); msg_Dbg( VLCIntf, "calling wizard");
char *psz_uri = input_item_GetURI( input_GetItem( p_input ) ); char *psz_uri = input_item_GetURI( input_GetItem( p_input ) );
[[[VLCMain sharedInstance] getWizard] initWithExtractValuesFrom: [[[VLCMain sharedInstance] wizard] initWithExtractValuesFrom:
[[NSNumber numberWithInt: [[NSNumber numberWithInt:
(pp_bookmarks[i_first]->i_time_offset/1000000)] stringValue] (pp_bookmarks[i_first]->i_time_offset/1000000)] stringValue]
to: [[NSNumber numberWithInt: to: [[NSNumber numberWithInt:
...@@ -366,7 +366,7 @@ clear: ...@@ -366,7 +366,7 @@ clear:
* callback stuff * callback stuff
*****************************************************************************/ *****************************************************************************/
-(id)getDataTable -(id)dataTable
{ {
return o_tbl_dataTable; return o_tbl_dataTable;
} }
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
- (IBAction)goToSpecificTime:(id)sender; - (IBAction)goToSpecificTime:(id)sender;
- (id)getFSPanel; - (id)fspanel;
@end @end
......
...@@ -162,14 +162,14 @@ ...@@ -162,14 +162,14 @@
{ {
id window; id window;
id voutView = nil; id voutView = nil;
id embeddedViewList = [[VLCMain sharedInstance] getEmbeddedList]; id embeddedViewList = [[VLCMain sharedInstance] embeddedList];
NSEnumerator *enumerator = [[NSApp orderedWindows] objectEnumerator]; NSEnumerator *enumerator = [[NSApp orderedWindows] objectEnumerator];
while( !voutView && ( window = [enumerator nextObject] ) ) while( !voutView && ( window = [enumerator nextObject] ) )
{ {
/* We have an embedded vout */ /* We have an embedded vout */
if( [embeddedViewList windowContainsEmbedded: window] ) if( [embeddedViewList windowContainsEmbedded: window] )
{ {
voutView = [embeddedViewList getViewForWindow: window]; voutView = [embeddedViewList viewForWindow: window];
} }
/* We have a detached vout */ /* We have a detached vout */
else if( [[window className] isEqualToString: @"VLCVoutWindow"] ) else if( [[window className] isEqualToString: @"VLCVoutWindow"] )
...@@ -485,7 +485,7 @@ ...@@ -485,7 +485,7 @@
[o_vout_view toggleFloatOnTop]; [o_vout_view toggleFloatOnTop];
else if( [o_title isEqualToString: _NS("Fit to Screen") ] ) else if( [o_title isEqualToString: _NS("Fit to Screen") ] )
{ {
id o_window = [o_vout_view getWindow]; id o_window = [o_vout_view voutWindow];
if( ![o_window isZoomed] ) if( ![o_window isZoomed] )
[o_window performZoom:self]; [o_window performZoom:self];
} }
...@@ -960,7 +960,7 @@ ...@@ -960,7 +960,7 @@
} }
} }
- (id)getFSPanel - (id)fspanel
{ {
if( o_fs_panel ) if( o_fs_panel )
return o_fs_panel; return o_fs_panel;
...@@ -1074,7 +1074,7 @@ ...@@ -1074,7 +1074,7 @@
while( (o_window = [o_enumerator nextObject])) while( (o_window = [o_enumerator nextObject]))
{ {
if( [[o_window className] isEqualToString: @"VLCVoutWindow"] || if( [[o_window className] isEqualToString: @"VLCVoutWindow"] ||
[[[VLCMain sharedInstance] getEmbeddedList] [[[VLCMain sharedInstance] embeddedList]
windowContainsEmbedded: o_window]) windowContainsEmbedded: o_window])
{ {
bEnabled = TRUE; bEnabled = TRUE;
...@@ -1179,7 +1179,7 @@ ...@@ -1179,7 +1179,7 @@
- (void)mouseDown: (NSEvent *)ourEvent - (void)mouseDown: (NSEvent *)ourEvent
{ {
if( [ourEvent clickCount] > 1 ) if( [ourEvent clickCount] > 1 )
[[[VLCMain sharedInstance] getControls] goToSpecificTime: nil]; [[[VLCMain sharedInstance] controls] goToSpecificTime: nil];
else else
[[VLCMain sharedInstance] timeFieldWasClicked: self]; [[VLCMain sharedInstance] timeFieldWasClicked: self];
} }
......
...@@ -87,6 +87,6 @@ ...@@ -87,6 +87,6 @@
-(void)showProgressDialog: (NSValue *)o_value; -(void)showProgressDialog: (NSValue *)o_value;
-(IBAction)progDialogAction:(id)sender; -(IBAction)progDialogAction:(id)sender;
-(id)getErrorPanel; -(id)errorPanel;
@end @end
\ No newline at end of file
...@@ -237,13 +237,13 @@ void updateProgressPanel (void *priv, const char *text, float value) ...@@ -237,13 +237,13 @@ void updateProgressPanel (void *priv, const char *text, float value)
NSString *o_txt; NSString *o_txt;
if( text != NULL ) if( text != NULL )
o_txt = [NSString stringWithUTF8String: text]; o_txt = [NSString stringWithUTF8String: text];
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCCoreDialogProgressBarUpdateNotification" object:[[VLCMain sharedInstance] getCoreDialogProvider] userInfo:[NSDictionary dictionaryWithObjectsAndKeys: o_txt, @"Text", [NSNumber numberWithInt: ((int)(value * 1000.))], @"IntValue", nil]]; [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCCoreDialogProgressBarUpdateNotification" object:[[VLCMain sharedInstance] coreDialogProvider] userInfo:[NSDictionary dictionaryWithObjectsAndKeys: o_txt, @"Text", [NSNumber numberWithInt: ((int)(value * 1000.))], @"IntValue", nil]];
} }
void destroyProgressPanel (void *priv) void destroyProgressPanel (void *priv)
{ {
NSLog( @"we should destroy" ); NSLog( @"we should destroy" );
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCCoreDialogProgressBarDestroyNotification" object:[[VLCMain sharedInstance] getCoreDialogProvider] userInfo: nil]; [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCCoreDialogProgressBarDestroyNotification" object:[[VLCMain sharedInstance] coreDialogProvider] userInfo: nil];
} }
bool checkProgressPanel (void *priv) bool checkProgressPanel (void *priv)
...@@ -258,7 +258,7 @@ bool checkProgressPanel (void *priv) ...@@ -258,7 +258,7 @@ bool checkProgressPanel (void *priv)
b_progress_cancelled = YES; b_progress_cancelled = YES;
} }
-(id)getErrorPanel -(id)errorPanel
{ {
return o_error_panel; return o_error_panel;
} }
......
...@@ -379,18 +379,18 @@ ...@@ -379,18 +379,18 @@
- (void)hasBecomeFullscreen - (void)hasBecomeFullscreen
{ {
[o_fullscreen_window makeFirstResponder: [[[VLCMain sharedInstance] getControls] voutView]]; [o_fullscreen_window makeFirstResponder: [[[VLCMain sharedInstance] controls] voutView]];
[o_fullscreen_window makeKeyWindow]; [o_fullscreen_window makeKeyWindow];
[o_fullscreen_window setAcceptsMouseMovedEvents: TRUE]; [o_fullscreen_window setAcceptsMouseMovedEvents: TRUE];
/* tell the fspanel to move itself to front next time it's triggered */ /* tell the fspanel to move itself to front next time it's triggered */
[[[[VLCMain sharedInstance] getControls] getFSPanel] setVoutWasUpdated: (int)[[o_fullscreen_window screen] displayID]]; [[[[VLCMain sharedInstance] controls] fspanel] setVoutWasUpdated: (int)[[o_fullscreen_window screen] displayID]];
if([self isVisible]) if([self isVisible])
[super orderOut: self]; [super orderOut: self];
[[[[VLCMain sharedInstance] getControls] getFSPanel] setActive: nil]; [[[[VLCMain sharedInstance] controls] fspanel] setActive: nil];
b_fullscreen = YES; b_fullscreen = YES;
[self unlockFullscreenAnimation]; [self unlockFullscreenAnimation];
...@@ -430,7 +430,7 @@ ...@@ -430,7 +430,7 @@
CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &token); CGAcquireDisplayFadeReservation(kCGMaxDisplayReservationInterval, &token);
CGDisplayFade( token, 0.3, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, YES ); CGDisplayFade( token, 0.3, kCGDisplayBlendNormal, kCGDisplayBlendSolidColor, 0, 0, 0, YES );
[[[[VLCMain sharedInstance] getControls] getFSPanel] setNonActive: nil]; [[[[VLCMain sharedInstance] controls] fspanel] setNonActive: nil];
SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar); SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
/* Will release the lock */ /* Will release the lock */
...@@ -448,7 +448,7 @@ ...@@ -448,7 +448,7 @@
[self setAlphaValue: 0.0]; [self setAlphaValue: 0.0];
[self orderFront: self]; [self orderFront: self];
[[[[VLCMain sharedInstance] getControls] getFSPanel] setNonActive: nil]; [[[[VLCMain sharedInstance] controls] fspanel] setNonActive: nil];
SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar); SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
if (o_fullscreen_anim1) if (o_fullscreen_anim1)
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
- (void)awakeFromNib; - (void)awakeFromNib;
- (void)setValue: (float)value forSlider: (int)index; - (void)setValue: (float)value forSlider: (int)index;
- (id)getSliderByIndex: (int)index; - (id)sliderByIndex: (int)index;
- (void)setBandSlidersValues: (float *)values; - (void)setBandSlidersValues: (float *)values;
- (void)initBandSliders; - (void)initBandSliders;
......
...@@ -457,7 +457,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf, ...@@ -457,7 +457,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
} }
- (id)getSliderByIndex:(int)index - (id)sliderByIndex:(int)index
{ {
switch(index) switch(index)
{ {
...@@ -495,7 +495,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf, ...@@ -495,7 +495,7 @@ static bool GetFiltersStatus( intf_thread_t *p_intf,
- (void)setValue:(float)value forSlider:(int)index - (void)setValue:(float)value forSlider:(int)index
{ {
id slider = [self getSliderByIndex:index]; id slider = [self sliderByIndex:index];
if (slider != nil) if (slider != nil)
{ {
......
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
- (IBAction)moreInfoVideoFilters:(id)sender; - (IBAction)moreInfoVideoFilters:(id)sender;
+ (VLCExtended *)sharedInstance; + (VLCExtended *)sharedInstance;
- (BOOL)getConfigChanged; - (BOOL)configChanged;
- (void)showPanel; - (void)showPanel;
- (void)initStrings; - (void)initStrings;
......
...@@ -180,7 +180,7 @@ static VLCExtended *_o_sharedInstance = nil; ...@@ -180,7 +180,7 @@ static VLCExtended *_o_sharedInstance = nil;
[self initStrings]; [self initStrings];
} }
- (BOOL)getConfigChanged - (BOOL)configChanged
{ {
return o_config_changed; return o_config_changed;
} }
...@@ -416,13 +416,13 @@ static VLCExtended *_o_sharedInstance = nil; ...@@ -416,13 +416,13 @@ static VLCExtended *_o_sharedInstance = nil;
if( p_vout != NULL ) if( p_vout != NULL )
{ {
p_real_vout = [VLCVoutView getRealVout: p_vout]; p_real_vout = [VLCVoutView realVout: p_vout];
var_Set( p_real_vout, "macosx-opaqueness", val ); var_Set( p_real_vout, "macosx-opaqueness", val );
while ((o_window = [o_enumerator nextObject])) while ((o_window = [o_enumerator nextObject]))
{ {
if( [[o_window className] isEqualToString: @"VLCVoutWindow"] || if( [[o_window className] isEqualToString: @"VLCVoutWindow"] ||
[[[VLCMain sharedInstance] getEmbeddedList] [[[VLCMain sharedInstance] embeddedList]
windowContainsEmbedded: o_window]) windowContainsEmbedded: o_window])
{ {
[o_window setAlphaValue: val.f_float]; [o_window setAlphaValue: val.f_float];
......
...@@ -178,9 +178,9 @@ ...@@ -178,9 +178,9 @@
- (void)setActive:(id)noData - (void)setActive:(id)noData
{ {
if( [[[VLCMain sharedInstance] getControls] voutView] != nil ) if( [[[VLCMain sharedInstance] controls] voutView] != nil )
{ {
if( [[[[VLCMain sharedInstance] getControls] voutView] isFullscreen] ) if( [[[[VLCMain sharedInstance] controls] voutView] isFullscreen] )
{ {
b_nonActive = NO; b_nonActive = NO;
[self fadeIn]; [self fadeIn];
...@@ -247,8 +247,8 @@ ...@@ -247,8 +247,8 @@
- (void)mouseExited:(NSEvent *)theEvent - (void)mouseExited:(NSEvent *)theEvent
{ {
/* give up our focus, so the vout may show us again without letting the user clicking it */ /* give up our focus, so the vout may show us again without letting the user clicking it */
if( [[[[VLCMain sharedInstance] getControls] voutView] isFullscreen] ) if( [[[[VLCMain sharedInstance] controls] voutView] isFullscreen] )
[[[[[VLCMain sharedInstance] getControls] voutView] window] makeKeyWindow]; [[[[[VLCMain sharedInstance] controls] voutView] window] makeKeyWindow];
} }
- (void)hideMouse - (void)hideMouse
...@@ -524,32 +524,32 @@ ...@@ -524,32 +524,32 @@
- (IBAction)play:(id)sender - (IBAction)play:(id)sender
{ {
[[[VLCMain sharedInstance] getControls] play: sender]; [[[VLCMain sharedInstance] controls] play: sender];
} }
- (IBAction)forward:(id)sender - (IBAction)forward:(id)sender
{ {
[[[VLCMain sharedInstance] getControls] forward: sender]; [[[VLCMain sharedInstance] controls] forward: sender];
} }
- (IBAction)backward:(id)sender - (IBAction)backward:(id)sender
{ {
[[[VLCMain sharedInstance] getControls] backward: sender]; [[[VLCMain sharedInstance] controls] backward: sender];
} }
- (IBAction)prev:(id)sender - (IBAction)prev:(id)sender
{ {
[[[VLCMain sharedInstance] getControls] prev: sender]; [[[VLCMain sharedInstance] controls] prev: sender];
} }
- (IBAction)next:(id)sender - (IBAction)next:(id)sender
{ {
[[[VLCMain sharedInstance] getControls] next: sender]; [[[VLCMain sharedInstance] controls] next: sender];
} }
- (IBAction)windowAction:(id)sender - (IBAction)windowAction:(id)sender
{ {
[[[VLCMain sharedInstance] getControls] windowAction: sender]; [[[VLCMain sharedInstance] controls] windowAction: sender];
} }
- (IBAction)fsTimeSliderUpdate:(id)sender - (IBAction)fsTimeSliderUpdate:(id)sender
...@@ -559,7 +559,7 @@ ...@@ -559,7 +559,7 @@
- (IBAction)fsVolumeSliderUpdate:(id)sender - (IBAction)fsVolumeSliderUpdate:(id)sender
{ {
[[[VLCMain sharedInstance] getControls] volumeSliderUpdated: sender]; [[[VLCMain sharedInstance] controls] volumeSliderUpdated: sender];
} }
#define addImage(image, _x, _y, mode, _width) \ #define addImage(image, _x, _y, mode, _width) \
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
*****************************************************************************/ *****************************************************************************/
unsigned int CocoaKeyToVLC( unichar i_key ); unsigned int CocoaKeyToVLC( unichar i_key );
#define VLCIntf [[VLCMain sharedInstance] getIntf] #define VLCIntf [[VLCMain sharedInstance] intf]
#define _NS(s) [[VLCMain sharedInstance] localizedString: _(s)] #define _NS(s) [[VLCMain sharedInstance] localizedString: _(s)]
/* Get an alternate version of the string. /* Get an alternate version of the string.
...@@ -341,25 +341,25 @@ static void MsgCallback( msg_cb_data_t *, msg_item_t *, unsigned ); ...@@ -341,25 +341,25 @@ static void MsgCallback( msg_cb_data_t *, msg_item_t *, unsigned );
+ (VLCMain *)sharedInstance; + (VLCMain *)sharedInstance;
- (intf_thread_t *)getIntf; - (intf_thread_t *)intf;
- (void)setIntf:(intf_thread_t *)p_mainintf; - (void)setIntf:(intf_thread_t *)p_mainintf;
- (void)controlTintChanged; - (void)controlTintChanged;
- (id)getControls; - (id)controls;
- (id)getSimplePreferences; - (id)simplePreferences;
- (id)getPreferences; - (id)preferences;
- (id)getPlaylist; - (id)playlist;
- (BOOL)isPlaylistCollapsed; - (BOOL)isPlaylistCollapsed;
- (id)getInfo; - (id)info;
- (id)getWizard; - (id)wizard;
- (id)getBookmarks; - (id)bookmarks;
- (id)getEmbeddedList; - (id)embeddedList;
- (id)getCoreDialogProvider; - (id)coreDialogProvider;
- (id)getMainIntfPgbar; - (id)mainIntfPgbar;
- (id)getControllerWindow; - (id)controllerWindow;
- (id)getVoutMenu; - (id)voutMenu;
- (id)getEyeTVController; - (id)eyeTVController;
- (void)applicationWillTerminate:(NSNotification *)notification; - (void)applicationWillTerminate:(NSNotification *)notification;
- (NSString *)localizedString:(const char *)psz; - (NSString *)localizedString:(const char *)psz;
- (char *)delocalizeString:(NSString *)psz; - (char *)delocalizeString:(NSString *)psz;
......
...@@ -234,7 +234,7 @@ static int DialogCallback( vlc_object_t *p_this, const char *type, vlc_value_t p ...@@ -234,7 +234,7 @@ static int DialogCallback( vlc_object_t *p_this, const char *type, vlc_value_t p
const dialog_fatal_t *p_dialog = (const dialog_fatal_t *)value.p_address; const dialog_fatal_t *p_dialog = (const dialog_fatal_t *)value.p_address;
NSValue *o_value = [NSValue valueWithPointer:p_dialog]; NSValue *o_value = [NSValue valueWithPointer:p_dialog];
[[NSNotificationCenter defaultCenter] postNotificationName: @"VLCNewCoreDialogEventNotification" object:[interface getCoreDialogProvider] userInfo:[NSDictionary dictionaryWithObjectsAndKeys: o_value, @"VLCDialogPointer", [NSString stringWithUTF8String: type], @"VLCDialogType", nil]]; [[NSNotificationCenter defaultCenter] postNotificationName: @"VLCNewCoreDialogEventNotification" object:[interface coreDialogProvider] userInfo:[NSDictionary dictionaryWithObjectsAndKeys: o_value, @"VLCDialogPointer", [NSString stringWithUTF8String: type], @"VLCDialogType", nil]];
[o_pool release]; [o_pool release];
return VLC_SUCCESS; return VLC_SUCCESS;
...@@ -314,7 +314,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -314,7 +314,7 @@ static VLCMain *_o_sharedMainInstance = nil;
p_intf = p_mainintf; p_intf = p_mainintf;
} }
- (intf_thread_t *)getIntf { - (intf_thread_t *)intf {
return p_intf; return p_intf;
} }
...@@ -745,7 +745,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -745,7 +745,7 @@ static VLCMain *_o_sharedMainInstance = nil;
config_PutInt( p_intf->p_libvlc, "volume", i_lastShownVolume ); config_PutInt( p_intf->p_libvlc, "volume", i_lastShownVolume );
/* save the prefs if they were changed in the extended panel */ /* save the prefs if they were changed in the extended panel */
if(o_extended && [o_extended getConfigChanged]) if(o_extended && [o_extended configChanged])
{ {
[o_extended savePrefs]; [o_extended savePrefs];
} }
...@@ -1315,9 +1315,8 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1315,9 +1315,8 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
#pragma mark - #pragma mark -
#pragma mark Other objects getters #pragma mark Other objects getters
// FIXME: this is ugly and does not respect cocoa naming scheme
- (id)getControls - (id)controls
{ {
if( o_controls ) if( o_controls )
return o_controls; return o_controls;
...@@ -1325,7 +1324,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1325,7 +1324,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return nil; return nil;
} }
- (id)getSimplePreferences - (id)simplePreferences
{ {
if( !o_sprefs ) if( !o_sprefs )
return nil; return nil;
...@@ -1336,7 +1335,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1336,7 +1335,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return o_sprefs; return o_sprefs;
} }
- (id)getPreferences - (id)preferences
{ {
if( !o_prefs ) if( !o_prefs )
return nil; return nil;
...@@ -1347,7 +1346,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1347,7 +1346,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return o_prefs; return o_prefs;
} }
- (id)getPlaylist - (id)playlist
{ {
if( o_playlist ) if( o_playlist )
return o_playlist; return o_playlist;
...@@ -1360,7 +1359,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1360,7 +1359,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return ![o_btn_playlist state]; return ![o_btn_playlist state];
} }
- (id)getInfo - (id)info
{ {
if( o_info ) if( o_info )
return o_info; return o_info;
...@@ -1368,7 +1367,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1368,7 +1367,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return nil; return nil;
} }
- (id)getWizard - (id)wizard
{ {
if( o_wizard ) if( o_wizard )
return o_wizard; return o_wizard;
...@@ -1376,12 +1375,12 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1376,12 +1375,12 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return nil; return nil;
} }
- (id)getVLM - (id)vlm
{ {
return o_vlm; return o_vlm;
} }
- (id)getBookmarks - (id)bookmarks
{ {
if( o_bookmarks ) if( o_bookmarks )
return o_bookmarks; return o_bookmarks;
...@@ -1389,7 +1388,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1389,7 +1388,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return nil; return nil;
} }
- (id)getEmbeddedList - (id)embeddedList
{ {
if( o_embedded_list ) if( o_embedded_list )
return o_embedded_list; return o_embedded_list;
...@@ -1397,7 +1396,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1397,7 +1396,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return nil; return nil;
} }
- (id)getCoreDialogProvider - (id)coreDialogProvider
{ {
if( o_coredialogs ) if( o_coredialogs )
return o_coredialogs; return o_coredialogs;
...@@ -1405,7 +1404,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1405,7 +1404,7 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return nil; return nil;
} }
- (id)getMainIntfPgbar - (id)mainIntfPgbar
{ {
if( o_main_pgbar ) if( o_main_pgbar )
return o_main_pgbar; return o_main_pgbar;
...@@ -1413,19 +1412,19 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -1413,19 +1412,19 @@ static unsigned int VLCModifiersToCocoa( unsigned int i_key )
return nil; return nil;
} }
- (id)getControllerWindow - (id)controllerWindow
{ {
if( o_window ) if( o_window )
return o_window; return o_window;
return nil; return nil;
} }
- (id)getVoutMenu - (id)voutMenu
{ {
return o_vout_menu; return o_vout_menu;
} }
- (id)getEyeTVController - (id)eyeTVController
{ {
if( o_eyetv ) if( o_eyetv )
return o_eyetv; return o_eyetv;
...@@ -1596,7 +1595,7 @@ static void manage_cleanup( void * args ) ...@@ -1596,7 +1595,7 @@ static void manage_cleanup( void * args )
if( [self isPlaylistCollapsed] == YES ) if( [self isPlaylistCollapsed] == YES )
{ {
PL_LOCK; PL_LOCK;
[[self getInfo] updatePanelWithItem: playlist_CurrentPlayingItem( p_playlist )->p_input]; [[self info] updatePanelWithItem: playlist_CurrentPlayingItem( p_playlist )->p_input];
PL_UNLOCK; PL_UNLOCK;
} }
...@@ -1633,8 +1632,8 @@ static void manage_cleanup( void * args ) ...@@ -1633,8 +1632,8 @@ static void manage_cleanup( void * args )
[o_timeslider setFloatValue: 0.0]; [o_timeslider setFloatValue: 0.0];
[o_timeslider setEnabled: b_seekable]; [o_timeslider setEnabled: b_seekable];
[o_timefield setStringValue: @"00:00"]; [o_timefield setStringValue: @"00:00"];
[[[self getControls] getFSPanel] setStreamPos: 0 andTime: @"00:00"]; [[[self controls] fspanel] setStreamPos: 0 andTime: @"00:00"];
[[[self getControls] getFSPanel] setSeekable: b_seekable]; [[[self controls] fspanel] setSeekable: b_seekable];
[o_embedded_window setSeekable: b_seekable]; [o_embedded_window setSeekable: b_seekable];
...@@ -1662,7 +1661,7 @@ static void manage_cleanup( void * args ) ...@@ -1662,7 +1661,7 @@ static void manage_cleanup( void * args )
if( p_intf->p_sys->b_intf_show ) if( p_intf->p_sys->b_intf_show )
{ {
if( [[o_controls voutView] isFullscreen] && config_GetInt( VLCIntf, "macosx-fspanel" ) ) if( [[o_controls voutView] isFullscreen] && config_GetInt( VLCIntf, "macosx-fspanel" ) )
[[o_controls getFSPanel] fadeIn]; [[o_controls fspanel] fadeIn];
else else
[o_window makeKeyAndOrderFront: self]; [o_window makeKeyAndOrderFront: self];
...@@ -1688,7 +1687,7 @@ static void manage_cleanup( void * args ) ...@@ -1688,7 +1687,7 @@ static void manage_cleanup( void * args )
free(name); free(name);
[self setScrollField: aString stopAfter:-1]; [self setScrollField: aString stopAfter:-1];
[[[self getControls] getFSPanel] setStreamTitle: aString]; [[[self controls] fspanel] setStreamTitle: aString];
[[o_controls voutView] updateTitle]; [[o_controls voutView] updateTitle];
...@@ -1720,7 +1719,7 @@ static void manage_cleanup( void * args ) ...@@ -1720,7 +1719,7 @@ static void manage_cleanup( void * args )
o_time = [NSString stringWithUTF8String: secstotimestr( psz_time, (time.i_time / 1000000) )]; o_time = [NSString stringWithUTF8String: secstotimestr( psz_time, (time.i_time / 1000000) )];
[o_timefield setStringValue: o_time]; [o_timefield setStringValue: o_time];
[[[self getControls] getFSPanel] setStreamPos: f_updated andTime: o_time]; [[[self controls] fspanel] setStreamPos: f_updated andTime: o_time];
[o_embedded_window setTime: o_time position: f_updated]; [o_embedded_window setTime: o_time position: f_updated];
} }
...@@ -1756,7 +1755,7 @@ static void manage_cleanup( void * args ) ...@@ -1756,7 +1755,7 @@ static void manage_cleanup( void * args )
i_volume_step = config_GetInt( p_intf->p_libvlc, "volume-step" ); i_volume_step = config_GetInt( p_intf->p_libvlc, "volume-step" );
[o_volumeslider setFloatValue: (float)i_lastShownVolume / i_volume_step]; [o_volumeslider setFloatValue: (float)i_lastShownVolume / i_volume_step];
[o_volumeslider setEnabled: TRUE]; [o_volumeslider setEnabled: TRUE];
[[[self getControls] getFSPanel] setVolumeLevel: (float)i_lastShownVolume / i_volume_step]; [[[self controls] fspanel] setVolumeLevel: (float)i_lastShownVolume / i_volume_step];
p_intf->p_sys->b_mute = ( i_lastShownVolume == 0 ); p_intf->p_sys->b_mute = ( i_lastShownVolume == 0 );
p_intf->p_sys->b_volume_update = FALSE; p_intf->p_sys->b_volume_update = FALSE;
} }
...@@ -1912,7 +1911,7 @@ end: ...@@ -1912,7 +1911,7 @@ end:
o_temp = [NSString stringWithUTF8String:p_item->p_input->psz_name]; o_temp = [NSString stringWithUTF8String:p_item->p_input->psz_name];
PL_UNLOCK; PL_UNLOCK;
[self setScrollField: o_temp stopAfter:-1]; [self setScrollField: o_temp stopAfter:-1];
[[[self getControls] getFSPanel] setStreamTitle: o_temp]; [[[self controls] fspanel] setStreamTitle: o_temp];
vlc_object_release( p_input ); vlc_object_release( p_input );
pl_Release( p_intf ); pl_Release( p_intf );
return; return;
...@@ -1925,7 +1924,7 @@ end: ...@@ -1925,7 +1924,7 @@ end:
{ {
if( i_status == PLAYING_S ) if( i_status == PLAYING_S )
{ {
[[[self getControls] getFSPanel] setPause]; [[[self controls] fspanel] setPause];
[o_btn_play setImage: o_img_pause]; [o_btn_play setImage: o_img_pause];
[o_btn_play setAlternateImage: o_img_pause_pressed]; [o_btn_play setAlternateImage: o_img_pause_pressed];
[o_btn_play setToolTip: _NS("Pause")]; [o_btn_play setToolTip: _NS("Pause")];
...@@ -1935,7 +1934,7 @@ end: ...@@ -1935,7 +1934,7 @@ end:
} }
else else
{ {
[[[self getControls] getFSPanel] setPlay]; [[[self controls] fspanel] setPlay];
[o_btn_play setImage: o_img_play]; [o_btn_play setImage: o_img_play];
[o_btn_play setAlternateImage: o_img_play_pressed]; [o_btn_play setAlternateImage: o_img_play_pressed];
[o_btn_play setToolTip: _NS("Play")]; [o_btn_play setToolTip: _NS("Play")];
...@@ -2005,7 +2004,7 @@ end: ...@@ -2005,7 +2004,7 @@ end:
o_time = [NSString stringWithUTF8String: secstotimestr( psz_time, (time.i_time / 1000000) )]; o_time = [NSString stringWithUTF8String: secstotimestr( psz_time, (time.i_time / 1000000) )];
[o_timefield setStringValue: o_time]; [o_timefield setStringValue: o_time];
[[[self getControls] getFSPanel] setStreamPos: f_updated andTime: o_time]; [[[self controls] fspanel] setStreamPos: f_updated andTime: o_time];
[o_embedded_window setTime: o_time position: f_updated]; [o_embedded_window setTime: o_time position: f_updated];
vlc_object_release( p_input ); vlc_object_release( p_input );
} }
...@@ -2437,7 +2436,7 @@ end: ...@@ -2437,7 +2436,7 @@ end:
- (IBAction)viewErrorsAndWarnings:(id)sender - (IBAction)viewErrorsAndWarnings:(id)sender
{ {
[[[self getCoreDialogProvider] getErrorPanel] showPanel]; [[[self coreDialogProvider] errorPanel] showPanel];
} }
- (IBAction)showMessagesPanel:(id)sender - (IBAction)showMessagesPanel:(id)sender
...@@ -2633,7 +2632,7 @@ end: ...@@ -2633,7 +2632,7 @@ end:
else else
[o_btn_playlist setState: YES]; [o_btn_playlist setState: YES];
[[self getPlaylist] outlineViewSelectionDidChange: NULL]; [[self playlist] outlineViewSelectionDidChange: NULL];
} }
- (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize - (NSSize)windowWillResize:(NSWindow *)sender toSize:(NSSize)proposedFrameSize
......
...@@ -433,7 +433,7 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -433,7 +433,7 @@ static NSMutableArray *blackoutWindows = NULL;
return TRUE; return TRUE;
return [[VLCMain sharedInstance] hasDefinedShortcutKey:o_event] || return [[VLCMain sharedInstance] hasDefinedShortcutKey:o_event] ||
[(VLCControls *)[[VLCMain sharedInstance] getControls] keyEvent:o_event]; [(VLCControls *)[[VLCMain sharedInstance] controls] keyEvent:o_event];
} }
@end @end
...@@ -498,7 +498,7 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -498,7 +498,7 @@ static NSMutableArray *blackoutWindows = NULL;
o_dic = [NSDictionary dictionaryWithObject:[o_values objectAtIndex:i] forKey:@"ITEM_URL"]; o_dic = [NSDictionary dictionaryWithObject:[o_values objectAtIndex:i] forKey:@"ITEM_URL"];
o_array = [o_array arrayByAddingObject: o_dic]; o_array = [o_array arrayByAddingObject: o_dic];
} }
[(VLCPlaylist *)[[VLCMain sharedInstance] getPlaylist] appendArray: o_array atPos: -1 enqueue:NO]; [(VLCPlaylist *)[[VLCMain sharedInstance] playlist] appendArray: o_array atPos: -1 enqueue:NO];
return YES; return YES;
} }
} }
...@@ -578,9 +578,9 @@ static NSMutableArray *blackoutWindows = NULL; ...@@ -578,9 +578,9 @@ static NSMutableArray *blackoutWindows = NULL;
o_array = [o_array arrayByAddingObject: o_dic]; o_array = [o_array arrayByAddingObject: o_dic];
} }
if( b_autoplay ) if( b_autoplay )
[[[VLCMain sharedInstance] getPlaylist] appendArray: o_array atPos: -1 enqueue:NO]; [[[VLCMain sharedInstance] playlist] appendArray: o_array atPos: -1 enqueue:NO];
else else
[[[VLCMain sharedInstance] getPlaylist] appendArray: o_array atPos: -1 enqueue:YES]; [[[VLCMain sharedInstance] playlist] appendArray: o_array atPos: -1 enqueue:YES];
return YES; return YES;
} }
} }
......
...@@ -400,10 +400,10 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -400,10 +400,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
} }
if( [o_output_ckbox state] == NSOnState ) if( [o_output_ckbox state] == NSOnState )
{ {
for (i = 0 ; i < [[o_sout_options getMRL] count] ; i++) for (i = 0 ; i < [[o_sout_options mrl] count] ; i++)
{ {
[o_options addObject: [NSString stringWithString: [o_options addObject: [NSString stringWithString:
[[(VLCOutput *)o_sout_options getMRL] objectAtIndex: i]]]; [[(VLCOutput *)o_sout_options mrl] objectAtIndex: i]]];
} }
} }
if( [[[o_tabview selectedTabViewItem] label] isEqualToString: _NS("Capture")] ) if( [[[o_tabview selectedTabViewItem] label] isEqualToString: _NS("Capture")] )
...@@ -961,9 +961,9 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -961,9 +961,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
{ {
if( [[[o_capture_mode_pop selectedItem] title] isEqualToString: @"EyeTV"] ) if( [[[o_capture_mode_pop selectedItem] title] isEqualToString: @"EyeTV"] )
{ {
if( [[[VLCMain sharedInstance] getEyeTVController] isEyeTVrunning] == YES ) if( [[[VLCMain sharedInstance] eyeTVController] isEyeTVrunning] == YES )
{ {
if( [[[VLCMain sharedInstance] getEyeTVController] isDeviceConnected] == YES ) if( [[[VLCMain sharedInstance] eyeTVController] isDeviceConnected] == YES )
{ {
[self showCaptureView: o_eyetv_running_view]; [self showCaptureView: o_eyetv_running_view];
[self setupChannelInfo]; [self setupChannelInfo];
...@@ -1019,20 +1019,20 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -1019,20 +1019,20 @@ static VLCOpen *_o_sharedMainInstance = nil;
{ {
if( sender == o_eyetv_nextProgram_btn ) if( sender == o_eyetv_nextProgram_btn )
{ {
int chanNum = [[[VLCMain sharedInstance] getEyeTVController] switchChannelUp: YES]; int chanNum = [[[VLCMain sharedInstance] eyeTVController] switchChannelUp: YES];
[o_eyetv_channels_pop selectItemWithTag:chanNum]; [o_eyetv_channels_pop selectItemWithTag:chanNum];
[o_mrl setStringValue: [NSString stringWithFormat:@"eyetv:// :eyetv-channel=%d", chanNum]]; [o_mrl setStringValue: [NSString stringWithFormat:@"eyetv:// :eyetv-channel=%d", chanNum]];
} }
else if( sender == o_eyetv_previousProgram_btn ) else if( sender == o_eyetv_previousProgram_btn )
{ {
int chanNum = [[[VLCMain sharedInstance] getEyeTVController] switchChannelUp: NO]; int chanNum = [[[VLCMain sharedInstance] eyeTVController] switchChannelUp: NO];
[o_eyetv_channels_pop selectItemWithTag:chanNum]; [o_eyetv_channels_pop selectItemWithTag:chanNum];
[o_mrl setStringValue: [NSString stringWithFormat:@"eyetv:// :eyetv-channel=%d", chanNum]]; [o_mrl setStringValue: [NSString stringWithFormat:@"eyetv:// :eyetv-channel=%d", chanNum]];
} }
else if( sender == o_eyetv_channels_pop ) else if( sender == o_eyetv_channels_pop )
{ {
int chanNum = [[sender selectedItem] tag]; int chanNum = [[sender selectedItem] tag];
[[[VLCMain sharedInstance] getEyeTVController] selectChannel:chanNum]; [[[VLCMain sharedInstance] eyeTVController] selectChannel:chanNum];
[o_mrl setStringValue: [NSString stringWithFormat:@"eyetv:// :eyetv-channel=%d", chanNum]]; [o_mrl setStringValue: [NSString stringWithFormat:@"eyetv:// :eyetv-channel=%d", chanNum]];
} }
else else
...@@ -1041,7 +1041,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -1041,7 +1041,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
- (IBAction)eyetvLaunch:(id)sender - (IBAction)eyetvLaunch:(id)sender
{ {
[[[VLCMain sharedInstance] getEyeTVController] launchEyeTV]; [[[VLCMain sharedInstance] eyeTVController] launchEyeTV];
} }
- (IBAction)eyetvGetPlugin:(id)sender - (IBAction)eyetvGetPlugin:(id)sender
...@@ -1091,7 +1091,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -1091,7 +1091,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
[o_eyetv_chn_status_txt setHidden: NO]; [o_eyetv_chn_status_txt setHidden: NO];
/* retrieve info */ /* retrieve info */
NSEnumerator *channels = [[[VLCMain sharedInstance] getEyeTVController] allChannels]; NSEnumerator *channels = [[[VLCMain sharedInstance] eyeTVController] allChannels];
int x = -2; int x = -2;
[[[o_eyetv_channels_pop menu] addItemWithTitle: _NS("Composite input") [[[o_eyetv_channels_pop menu] addItemWithTitle: _NS("Composite input")
action: nil action: nil
...@@ -1112,7 +1112,7 @@ static VLCOpen *_o_sharedMainInstance = nil; ...@@ -1112,7 +1112,7 @@ static VLCOpen *_o_sharedMainInstance = nil;
keyEquivalent: @""] setTag:++x]; keyEquivalent: @""] setTag:++x];
} }
/* make Tuner the default */ /* make Tuner the default */
[o_eyetv_channels_pop selectItemWithTag:[[[VLCMain sharedInstance] getEyeTVController] currentChannel]]; [o_eyetv_channels_pop selectItemWithTag:[[[VLCMain sharedInstance] eyeTVController] currentChannel]];
} }
/* clean up GUI */ /* clean up GUI */
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
} }
- (void)setMRL:(NSArray *)o_mrl_string; - (void)setMRL:(NSArray *)o_mrl_string;
- (NSArray *)getMRL; - (NSArray *)mrl;
- (void)setTranscode:(NSString *)o_transcode_string; - (void)setTranscode:(NSString *)o_transcode_string;
- (void)initStrings; - (void)initStrings;
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
o_mrl = [o_mrl_array copy]; o_mrl = [o_mrl_array copy];
} }
- (NSArray *)getMRL - (NSArray *)mrl
{ {
return [o_mrl copy]; return [o_mrl copy];
} }
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
case NSEnterCharacter: case NSEnterCharacter:
case NSCarriageReturnCharacter: case NSCarriageReturnCharacter:
[(VLCPlaylist *)[[VLCMain sharedInstance] getPlaylist] playItem:self]; [(VLCPlaylist *)[[VLCMain sharedInstance] playlist] playItem:self];
break; break;
default: default:
...@@ -478,8 +478,8 @@ ...@@ -478,8 +478,8 @@
// TODO Find a way to keep the dict size to a minimum // TODO Find a way to keep the dict size to a minimum
//[o_outline_dict removeAllObjects]; //[o_outline_dict removeAllObjects];
[o_outline_view reloadData]; [o_outline_view reloadData];
[[[[VLCMain sharedInstance] getWizard] getPlaylistWizard] reloadOutlineView]; [[[[VLCMain sharedInstance] wizard] playlistWizard] reloadOutlineView];
[[[[VLCMain sharedInstance] getBookmarks] getDataTable] reloadData]; [[[[VLCMain sharedInstance] bookmarks] dataTable] reloadData];
playlist_t *p_playlist = pl_Hold( VLCIntf ); playlist_t *p_playlist = pl_Hold( VLCIntf );
...@@ -510,13 +510,13 @@ ...@@ -510,13 +510,13 @@
bool loop = var_GetBool( p_playlist, "loop" ); bool loop = var_GetBool( p_playlist, "loop" );
bool repeat = var_GetBool( p_playlist, "repeat" ); bool repeat = var_GetBool( p_playlist, "repeat" );
if( repeat ) if( repeat )
[[[VLCMain sharedInstance] getControls] repeatOne]; [[[VLCMain sharedInstance] controls] repeatOne];
else if( loop ) else if( loop )
[[[VLCMain sharedInstance] getControls] repeatAll]; [[[VLCMain sharedInstance] controls] repeatAll];
else else
[[[VLCMain sharedInstance] getControls] repeatOff]; [[[VLCMain sharedInstance] controls] repeatOff];
[[[VLCMain sharedInstance] getControls] shuffle]; [[[VLCMain sharedInstance] controls] shuffle];
pl_Release( VLCIntf ); pl_Release( VLCIntf );
} }
...@@ -553,7 +553,7 @@ ...@@ -553,7 +553,7 @@
if( [[VLCMain sharedInstance] isPlaylistCollapsed] == NO ) if( [[VLCMain sharedInstance] isPlaylistCollapsed] == NO )
{ {
/* update our info-panel to reflect the new item, if we aren't collapsed */ /* update our info-panel to reflect the new item, if we aren't collapsed */
[[[VLCMain sharedInstance] getInfo] updatePanelWithItem:p_item->p_input]; [[[VLCMain sharedInstance] info] updatePanelWithItem:p_item->p_input];
} }
} }
} }
......
...@@ -452,7 +452,7 @@ error: ...@@ -452,7 +452,7 @@ error:
if( [[o_mi title] isEqualToString: _NS("Information")] ) if( [[o_mi title] isEqualToString: _NS("Information")] )
{ {
return ![[[VLCMain sharedInstance] getPlaylist] isSelectionEmpty]; return ![[[VLCMain sharedInstance] playlist] isSelectionEmpty];
} }
return TRUE; return TRUE;
...@@ -505,7 +505,7 @@ error: ...@@ -505,7 +505,7 @@ error:
o_value = [o_item_value copy]; o_value = [o_item_value copy];
i_object_id = i_id; i_object_id = i_id;
o_parent = o_parent_item; o_parent = o_parent_item;
p_item = [[[VLCMain sharedInstance] getInfo] item]; p_item = [[[VLCMain sharedInstance] info] item];
o_children = nil; o_children = nil;
} }
return( self ); return( self );
...@@ -584,7 +584,7 @@ error: ...@@ -584,7 +584,7 @@ error:
- (void)refresh - (void)refresh
{ {
input_item_t * oldItem = p_item; input_item_t * oldItem = p_item;
p_item = [[[VLCMain sharedInstance] getInfo] item]; p_item = [[[VLCMain sharedInstance] info] item];
if( oldItem && oldItem != p_item ) vlc_gc_decref( oldItem ); if( oldItem && oldItem != p_item ) vlc_gc_decref( oldItem );
[o_children release]; [o_children release];
......
...@@ -228,7 +228,7 @@ static VLCPrefs *_o_sharedMainInstance = nil; ...@@ -228,7 +228,7 @@ static VLCPrefs *_o_sharedMainInstance = nil;
[o_prefs_window orderOut: self]; [o_prefs_window orderOut: self];
[[o_basicFull_matrix cellAtRow:0 column:0] setState: NSOnState]; [[o_basicFull_matrix cellAtRow:0 column:0] setState: NSOnState];
[[o_basicFull_matrix cellAtRow:0 column:1] setState: NSOffState]; [[o_basicFull_matrix cellAtRow:0 column:1] setState: NSOffState];
[[[VLCMain sharedInstance] getSimplePreferences] showSimplePrefs]; [[[VLCMain sharedInstance] simplePreferences] showSimplePrefs];
} }
- (void)loadConfigTree - (void)loadConfigTree
...@@ -505,15 +505,15 @@ static VLCPrefs *_o_sharedMainInstance = nil; ...@@ -505,15 +505,15 @@ static VLCPrefs *_o_sharedMainInstance = nil;
NSRect frame; NSRect frame;
while( ( widget = [enumerator nextObject] ) ) while( ( widget = [enumerator nextObject] ) )
if( i_max_label < [widget getLabelSize] ) if( i_max_label < [widget labelSize] )
i_max_label = [widget getLabelSize]; i_max_label = [widget labelSize];
enumerator = [_subviews objectEnumerator]; enumerator = [_subviews objectEnumerator];
while( ( widget = [enumerator nextObject] ) ) while( ( widget = [enumerator nextObject] ) )
{ {
int i_widget; int i_widget;
i_widget = [widget getViewType]; i_widget = [widget viewType];
i_yPos += [VLCConfigControl calcVerticalMargin:i_widget lastItem:i_lastItem]; i_yPos += [VLCConfigControl calcVerticalMargin:i_widget lastItem:i_lastItem];
[widget setYPos:i_yPos]; [widget setYPos:i_yPos];
frame = [widget frame]; frame = [widget frame];
......
...@@ -40,16 +40,16 @@ ...@@ -40,16 +40,16 @@
+ (VLCConfigControl *)newControl: (module_config_t *)_p_item + (VLCConfigControl *)newControl: (module_config_t *)_p_item
withView: (NSView *)o_parent_view; withView: (NSView *)o_parent_view;
- (id)initWithFrame: (NSRect)frame item: (module_config_t *)p_item; - (id)initWithFrame: (NSRect)frame item: (module_config_t *)p_item;
- (NSString *)getName; - (NSString *)name;
- (int)getType; - (int)type;
- (int)getViewType; - (int)viewType;
- (BOOL)isAdvanced; - (BOOL)isAdvanced;
- (void)setYPos:(int)i_yPos; - (void)setYPos:(int)i_yPos;
- (int)intValue; - (int)intValue;
- (float)floatValue; - (float)floatValue;
- (char *)stringValue; - (char *)stringValue;
- (void)applyChanges; - (void)applyChanges;
- (int)getLabelSize; - (int)labelSize;
- (void) alignWithXPosition:(int)i_xPos; - (void) alignWithXPosition:(int)i_xPos;
static NSMenu *o_keys_menu = nil; static NSMenu *o_keys_menu = nil;
......
...@@ -863,17 +863,17 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -863,17 +863,17 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
return p_control; return p_control;
} }
- (NSString *)getName - (NSString *)name
{ {
return [[VLCMain sharedInstance] localizedString: psz_name]; return [[VLCMain sharedInstance] localizedString: psz_name];
} }
- (int)getType - (int)type
{ {
return i_type; return i_type;
} }
- (int)getViewType - (int)viewType
{ {
return i_view_type; return i_view_type;
} }
...@@ -926,7 +926,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -926,7 +926,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
} }
} }
- (int)getLabelSize - (int)labelSize
{ {
return [o_label frame].size.width; return [o_label frame].size.width;
} }
...@@ -1132,7 +1132,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \ ...@@ -1132,7 +1132,7 @@ o_textfield = [[[NSSecureTextField alloc] initWithFrame: s_rc] retain]; \
localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP]; localizedString: (char *)p_item->psz_longtext ] toWidth: PREFS_WRAP];
/* is it a directory */ /* is it a directory */
b_directory = ( [self getType] == CONFIG_ITEM_DIRECTORY ) ? YES : NO; b_directory = ( [self type] == CONFIG_ITEM_DIRECTORY ) ? YES : NO;
/* add the label */ /* add the label */
if( p_item->psz_text ) if( p_item->psz_text )
......
...@@ -626,7 +626,7 @@ create_toolbar_item( NSString * o_itemIdent, NSString * o_name, NSString * o_des ...@@ -626,7 +626,7 @@ create_toolbar_item( NSString * o_itemIdent, NSString * o_name, NSString * o_des
[o_sprefs_win orderOut: self]; [o_sprefs_win orderOut: self];
[[o_sprefs_basicFull_matrix cellAtRow:0 column:0] setState: NSOffState]; [[o_sprefs_basicFull_matrix cellAtRow:0 column:0] setState: NSOffState];
[[o_sprefs_basicFull_matrix cellAtRow:0 column:1] setState: NSOnState]; [[o_sprefs_basicFull_matrix cellAtRow:0 column:1] setState: NSOnState];
[[[VLCMain sharedInstance] getPreferences] showPrefs]; [[[VLCMain sharedInstance] preferences] showPrefs];
} }
else else
msg_Warn( p_intf, "unknown buttonAction sender" ); msg_Warn( p_intf, "unknown buttonAction sender" );
...@@ -1276,7 +1276,7 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch ...@@ -1276,7 +1276,7 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
if( key ) if( key )
{ {
i_key |= CocoaKeyToVLC( key ); i_key |= CocoaKeyToVLC( key );
return [[[VLCMain sharedInstance] getSimplePreferences] changeHotkeyTo: i_key]; return [[[VLCMain sharedInstance] simplePreferences] changeHotkeyTo: i_key];
} }
return FALSE; return FALSE;
} }
...@@ -1292,6 +1292,6 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch ...@@ -1292,6 +1292,6 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
- (void)changeFont:(id)sender - (void)changeFont:(id)sender
{ {
[[[VLCMain sharedInstance] getSimplePreferences] changeFont: sender]; [[[VLCMain sharedInstance] simplePreferences] changeFont: sender];
} }
@end @end
...@@ -34,11 +34,11 @@ ...@@ -34,11 +34,11 @@
NSMutableArray * o_embedded_array; NSMutableArray * o_embedded_array;
} }
- (id)getEmbeddedVout; - (id)embeddedVout;
- (void)releaseEmbeddedVout: (id)o_vout_view; - (void)releaseEmbeddedVout: (id)o_vout_view;
- (void)addEmbeddedVout: (id)o_vout_view; - (void)addEmbeddedVout: (id)o_vout_view;
- (BOOL)windowContainsEmbedded: (id)o_window; - (BOOL)windowContainsEmbedded: (id)o_window;
- (id)getViewForWindow: (id)o_window; - (id)viewForWindow: (id)o_window;
@end @end
...@@ -70,11 +70,11 @@ ...@@ -70,11 +70,11 @@
- (void)toggleFullscreen; - (void)toggleFullscreen;
- (BOOL)isFullscreen; - (BOOL)isFullscreen;
- (void)snapshot; - (void)snapshot;
- (id)getWindow; - (id)voutWindow;
+ (id)voutView: (vout_thread_t *)p_vout subView: (NSView *) view + (id)voutView: (vout_thread_t *)p_vout subView: (NSView *) view
frame: (NSRect *) s_frame; frame: (NSRect *) s_frame;
+ (vout_thread_t *)getRealVout: (vout_thread_t *)p_vout; + (vout_thread_t *)realVout: (vout_thread_t *)p_vout;
- (void)enterFullscreen; - (void)enterFullscreen;
- (void)leaveFullscreen; - (void)leaveFullscreen;
......
...@@ -80,7 +80,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -80,7 +80,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
return self; return self;
} }
- (id)getEmbeddedVout - (id)embeddedVout
{ {
unsigned int i; unsigned int i;
...@@ -122,10 +122,10 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -122,10 +122,10 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
{ {
NSLog( @"We were not given a VLCVoutWindow" ); NSLog( @"We were not given a VLCVoutWindow" );
}*/ }*/
return ([self getViewForWindow: o_window] == nil ? NO : YES ); return ([self viewForWindow: o_window] == nil ? NO : YES );
} }
- (id)getViewForWindow: (id)o_window - (id)viewForWindow: (id)o_window
{ {
if( o_embedded_array != nil ) if( o_embedded_array != nil )
{ {
...@@ -135,7 +135,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -135,7 +135,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
{ {
while( (o_current_embedded = [o_enumerator nextObject]) ) while( (o_current_embedded = [o_enumerator nextObject]) )
{ {
if( [o_current_embedded getWindow] == o_window ) if( [o_current_embedded voutWindow] == o_window )
{ {
return o_current_embedded; return o_current_embedded;
} }
...@@ -182,7 +182,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -182,7 +182,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
return NO; return NO;
} }
p_real_vout = [VLCVoutView getRealVout: p_vout]; p_real_vout = [VLCVoutView realVout: p_vout];
/* Get the pref value when this is the first time, otherwise retrieve the device from the top level video-device var */ /* Get the pref value when this is the first time, otherwise retrieve the device from the top level video-device var */
if( var_Type( p_real_vout->p_libvlc, "video-device" ) == 0 ) if( var_Type( p_real_vout->p_libvlc, "video-device" ) == 0 )
...@@ -266,10 +266,10 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -266,10 +266,10 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
- (void)closeVout - (void)closeVout
{ {
[[[[VLCMain sharedInstance] getControls] getFSPanel] fadeOut]; [[[[VLCMain sharedInstance] controls] fspanel] fadeOut];
/* Make sure we don't see a white flash */ /* Make sure we don't see a white flash */
[[self window] disableScreenUpdatesUntilFlush]; [[self voutWindow] disableScreenUpdatesUntilFlush];
[o_view removeFromSuperview]; [o_view removeFromSuperview];
o_view = nil; o_view = nil;
p_vout = NULL; p_vout = NULL;
...@@ -460,14 +460,14 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -460,14 +460,14 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
UpdateSystemActivity( UsrActivity ); UpdateSystemActivity( UsrActivity );
} }
- (id)getWindow - (id)voutWindow
{ {
return o_window; return o_window;
} }
- (void)scrollWheel:(NSEvent *)theEvent - (void)scrollWheel:(NSEvent *)theEvent
{ {
VLCControls * o_controls = (VLCControls *)[[NSApp delegate] getControls]; VLCControls * o_controls = (VLCControls *)[[NSApp delegate] controls];
[o_controls scrollWheel: theEvent]; [o_controls scrollWheel: theEvent];
} }
...@@ -541,7 +541,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -541,7 +541,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
( [o_event modifierFlags] & NSControlKeyMask ) ) ) ( [o_event modifierFlags] & NSControlKeyMask ) ) )
{ {
msg_Dbg( p_vout, "received NSRightMouseDown (generic method) or Ctrl clic" ); msg_Dbg( p_vout, "received NSRightMouseDown (generic method) or Ctrl clic" );
[NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] voutView]]; [NSMenu popUpContextMenu: [[VLCMain sharedInstance] voutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] controls] voutView]];
} }
} }
...@@ -567,7 +567,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -567,7 +567,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if( p_vout && [o_event type] == NSRightMouseDown ) if( p_vout && [o_event type] == NSRightMouseDown )
{ {
msg_Dbg( p_vout, "received NSRightMouseDown (specific method)" ); msg_Dbg( p_vout, "received NSRightMouseDown (specific method)" );
[NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] voutView]]; [NSMenu popUpContextMenu: [[VLCMain sharedInstance] voutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] controls] voutView]];
} }
[super mouseDown: o_event]; [super mouseDown: o_event];
...@@ -610,7 +610,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -610,7 +610,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
/* FIXME: this isn't the appropriate place, but we can't receive /* FIXME: this isn't the appropriate place, but we can't receive
* NSRightMouseDown some how */ * NSRightMouseDown some how */
msg_Dbg( p_vout, "received NSRightMouseUp" ); msg_Dbg( p_vout, "received NSRightMouseUp" );
[NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] voutView]]; [NSMenu popUpContextMenu: [[VLCMain sharedInstance] voutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] controls] voutView]];
} }
[super mouseUp: o_event]; [super mouseUp: o_event];
...@@ -672,7 +672,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -672,7 +672,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
var_Set( p_vout, "mouse-moved", val ); var_Set( p_vout, "mouse-moved", val );
} }
if( [self isFullscreen] ) if( [self isFullscreen] )
[[[[VLCMain sharedInstance] getControls] getFSPanel] fadeIn]; [[[[VLCMain sharedInstance] controls] fspanel] fadeIn];
} }
[super mouseMoved: o_event]; [super mouseMoved: o_event];
...@@ -697,7 +697,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -697,7 +697,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
/* Class methods used by the different vout modules */ /* Class methods used by the different vout modules */
+ (vout_thread_t *)getRealVout: (vout_thread_t *)p_vout + (vout_thread_t *)realVout: (vout_thread_t *)p_vout
{ {
/* p_real_vout: the vout we have to use to check for video-on-top /* p_real_vout: the vout we have to use to check for video-on-top
and a few other things. If we are the QuickTime output, it's us. and a few other things. If we are the QuickTime output, it's us.
...@@ -751,8 +751,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -751,8 +751,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
!(var_GetBool( p_vout, "macosx-background" )) && !(var_GetBool( p_vout, "macosx-background" )) &&
var_GetBool( p_vout, "embedded-video") ) var_GetBool( p_vout, "embedded-video") )
{ {
o_return = [[[VLCMain sharedInstance] getEmbeddedList] o_return = [[[VLCMain sharedInstance] embeddedList] embeddedVout];
getEmbeddedVout];
} }
} }
} }
...@@ -922,7 +921,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -922,7 +921,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
if(self = [super initWithFrame: frameRect]) if(self = [super initWithFrame: frameRect])
{ {
b_used = NO; b_used = NO;
[[[VLCMain sharedInstance] getEmbeddedList] addEmbeddedVout: self]; [[[VLCMain sharedInstance] embeddedList] addEmbeddedVout: self];
o_embeddedwindow = nil; /* Filled later on in -awakeFromNib */ o_embeddedwindow = nil; /* Filled later on in -awakeFromNib */
} }
return self; return self;
...@@ -1001,7 +1000,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -1001,7 +1000,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
/* FIXME: fix core */ /* FIXME: fix core */
[o_embeddedwindow performSelector:@selector(orderOut:) withObject:nil afterDelay:3.]; [o_embeddedwindow performSelector:@selector(orderOut:) withObject:nil afterDelay:3.];
[[[VLCMain sharedInstance] getEmbeddedList] releaseEmbeddedVout: self]; [[[VLCMain sharedInstance] embeddedList] releaseEmbeddedVout: self];
} }
- (void)enterFullscreen - (void)enterFullscreen
...@@ -1125,8 +1124,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -1125,8 +1124,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[self setLevel:NSNormalWindowLevel]; [self setLevel:NSNormalWindowLevel];
/* tell the fspanel to move itself to front next time it's triggered */ /* tell the fspanel to move itself to front next time it's triggered */
[[[[VLCMain sharedInstance] getControls] getFSPanel] setVoutWasUpdated: i_device]; [[[[VLCMain sharedInstance] controls] fspanel] setVoutWasUpdated: i_device];
[[[[VLCMain sharedInstance] getControls] getFSPanel] setActive: nil]; [[[[VLCMain sharedInstance] controls] fspanel] setActive: nil];
fullscreen = YES; fullscreen = YES;
} }
...@@ -1138,7 +1137,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -1138,7 +1137,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[NSScreen unblackoutScreens]; [NSScreen unblackoutScreens];
[[[[VLCMain sharedInstance] getControls] getFSPanel] setNonActive: nil]; [[[[VLCMain sharedInstance] controls] fspanel] setNonActive: nil];
SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar); SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
[self setFrame:initialFrame display:YES animate:YES]; [self setFrame:initialFrame display:YES animate:YES];
[self setMovableByWindowBackground: YES]; [self setMovableByWindowBackground: YES];
......
...@@ -357,7 +357,7 @@ static void Unlock( vout_thread_t * p_vout ) ...@@ -357,7 +357,7 @@ static void Unlock( vout_thread_t * p_vout )
p_vout->p_sys->s_frame.size = p_vout->p_sys->s_frame.size =
[p_vout->p_sys->o_vout_view frame].size; [p_vout->p_sys->o_vout_view frame].size;
p_vout->p_sys->s_frame.origin = p_vout->p_sys->s_frame.origin =
[[p_vout->p_sys->o_vout_view getWindow ]frame].origin; [[p_vout->p_sys->o_vout_view voutWindow]frame].origin;
p_vout->p_sys->b_saved_frame = true; p_vout->p_sys->b_saved_frame = true;
} }
...@@ -673,7 +673,7 @@ static int aglManage( vout_thread_t * p_vout ) ...@@ -673,7 +673,7 @@ static int aglManage( vout_thread_t * p_vout )
if( !p_vout->p_sys->theWindow ) if( !p_vout->p_sys->theWindow )
{ {
/* Create a window */ /* Create a window */
WindowAttributes windowAttrs; WindowAttributes windowAttrs;
windowAttrs = kWindowStandardDocumentAttributes windowAttrs = kWindowStandardDocumentAttributes
| kWindowStandardHandlerAttribute | kWindowStandardHandlerAttribute
......
...@@ -178,7 +178,7 @@ ...@@ -178,7 +178,7 @@
- (void)resetWizard; - (void)resetWizard;
- (void)createOpts; - (void)createOpts;
- (void)rebuildCodecMenus; - (void)rebuildCodecMenus;
- (id)getPlaylistWizard; - (id)playlistWizard;
- (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to ofItem: (NSString *)item; - (void)initWithExtractValuesFrom: (NSString *)from to: (NSString *)to ofItem: (NSString *)item;
@end @end
...@@ -477,7 +477,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -477,7 +477,7 @@ static VLCWizard *_o_sharedInstance = nil;
[o_wizard_window close]; [o_wizard_window close];
} }
- (id)getPlaylistWizard - (id)playlistWizard
{ {
return o_playlist_wizard; return o_playlist_wizard;
} }
...@@ -1665,7 +1665,7 @@ static VLCWizard *_o_sharedInstance = nil; ...@@ -1665,7 +1665,7 @@ static VLCWizard *_o_sharedInstance = nil;
@"Input"]) @"Input"])
{ {
/* reset the wizard before going backwards. Otherwise, we might get /* reset the wizard before going backwards. Otherwise, we might get
* unwanted behaviours in the Encap-Selection */ * unwanted behaviour in the Encap-Selection */
[self resetWizard]; [self resetWizard];
/* show "Hello" */ /* show "Hello" */
[o_tab_pageHolder selectTabViewItemAtIndex:0]; [o_tab_pageHolder selectTabViewItemAtIndex:0];
......
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