]> git.sesse.net Git - vlc/commitdiff
macosx: renamed getVoutView to voutView in order to make it conform to the cocoa...
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 3 Oct 2008 14:44:26 +0000 (16:44 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 3 Oct 2008 14:44:26 +0000 (16:44 +0200)
NEWS
modules/gui/macosx/controls.h
modules/gui/macosx/controls.m
modules/gui/macosx/embeddedwindow.m
modules/gui/macosx/fspanel.m
modules/gui/macosx/intf.m
modules/gui/macosx/vlm.m
modules/gui/macosx/vout.h
modules/gui/macosx/vout.m
modules/gui/macosx/voutgl.m

diff --git a/NEWS b/NEWS
index cf6fdebbc19b0f5c58bbf8044f2933b847cb784a..5e3c70f1a9081e25cfcf1e997554336fd988ac81 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,9 @@ Stream output:
  * Multiple bridge-in instances are now possible.
  * bridge-in can be used to configure a placeholder stream.
 
+Mac OS X Interface:
+ * Reveal-in-Finder functionality for locally stored items
+
 
 Changes between 0.9.2 and 0.9.3:
 --------------------------------
index 9161a2ac26d175b7f67a19d4fba5bd68d5cca9c0..4fbbd6919d15642e895e249987051b227092a361 100644 (file)
@@ -56,7 +56,7 @@
 }
 - (void)controlTintChanged;
 
-- (id)getVoutView;
+- (id)voutView;
 
 - (IBAction)play:(id)sender;
 - (IBAction)stop:(id)sender;
index b6ccf0a26d6c196ff646e408e59cee51be5110e0..3eaadf9bbfdab7dcdb1c96ff27ec49b94fd0d5ce 100644 (file)
     var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_PLAY_PAUSE );
 }
 
-/* FIXME: I want to be Private */
-
-- (id)getVoutView
+- (id)voutView
 {
     id window;
     id voutView = nil;
         /* We have a detached vout */
         else if( [[window className] isEqualToString: @"VLCVoutWindow"] )
         {
-            msg_Dbg( VLCIntf, "detached vout controls.m call getVoutView" );
-            voutView = [window getVoutView];
+            msg_Dbg( VLCIntf, "detached vout controls.m call voutView" );
+            voutView = [window voutView];
         }
     }
     return [[voutView retain] autorelease];
     var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_STOP );
     /* Close the window directly, because we do know that there
      * won't be anymore video. It's currently waiting a bit. */
-    [[[self _voutView] window] orderOut:self];
+    [[[self voutView] window] orderOut:self];
 }
 
 - (IBAction)faster:(id)sender
index 4b2cea48fcde744a4f4de9b1e40b540237aec74c..540cbfc3c5692f4cb2411817fc0c092b66814d7b 100644 (file)
 
 - (void)hasBecomeFullscreen
 {
-    [o_fullscreen_window makeFirstResponder: [[[VLCMain sharedInstance] getControls] getVoutView]];
+    [o_fullscreen_window makeFirstResponder: [[[VLCMain sharedInstance] getControls] voutView]];
 
     [o_fullscreen_window makeKeyWindow];
     [o_fullscreen_window setAcceptsMouseMovedEvents: TRUE];
index d3ceab14d3df584771270492ab28288ac5e5e3ad..5fabdfeda8a5df5ab4915e813a27bf4831991e47 100644 (file)
 
 - (void)setActive:(id)noData
 {
-    if( [[[[VLCMain sharedInstance] getControls] getVoutView] isFullscreen] )
+    if( [[[[VLCMain sharedInstance] getControls] voutView] isFullscreen] )
     {
         b_nonActive = NO;
         [self fadeIn];
 - (void)mouseExited:(NSEvent *)theEvent
 {
     /* give up our focus, so the vout may show us again without letting the user clicking it */
-    if( [[[[VLCMain sharedInstance] getControls] getVoutView] isFullscreen] )
-        [[[[[VLCMain sharedInstance] getControls] getVoutView] window] makeKeyWindow];
+    if( [[[[VLCMain sharedInstance] getControls] voutView] isFullscreen] )
+        [[[[[VLCMain sharedInstance] getControls] voutView] window] makeKeyWindow];
 }
 
 - (void)hideMouse
index 75a346cd288fd9fb29d17d63fdc6986d86c1c9fd..4785786cdfa7095071ddbbe669ae8d3f218b7733 100644 (file)
@@ -1599,7 +1599,7 @@ static void * manage_cleanup( void * args )
             [self setScrollField: aString stopAfter:-1];
             [[[self getControls] getFSPanel] setStreamTitle: aString];
 
-            [[o_controls getVoutView] updateTitle];
+            [[o_controls voutView] updateTitle];
  
             [o_playlist updateRowSelection];
             p_intf->p_sys->b_current_title_update = FALSE;
index de8cde60b7afbc834d7c09f9c2ea7adbfdbf7d65..c66beb03ccb29a893a5e5449d5307d04d308a9a8 100644 (file)
@@ -87,7 +87,7 @@ create_toolbar_item( NSString * o_itemIdent, NSString * o_name, NSString * o_des
     return o_toolbarItem;
 }
 
-- (NSToolbarItem *) toolbar: (NSToolbar *)o_sprefs_toolbar 
+- (NSToolbarItem *) toolbar: (NSToolbar *)o_vlm_toolbar 
       itemForItemIdentifier: (NSString *)o_itemIdent 
   willBeInsertedIntoToolbar: (BOOL)b_willBeInserted
 {
index 314fba02de4bcdeafc22c5d3529c96cbf7000226..3a35d119f68e035b04e088f29e0174af25202e4d 100644 (file)
@@ -72,8 +72,8 @@
 - (void)snapshot;
 - (id)getWindow;
 
-+ (id)getVoutView: (vout_thread_t *)p_vout subView: (NSView *) view
-            frame: (NSRect *) s_frame;
++ (id)voutView: (vout_thread_t *)p_vout subView: (NSView *) view
+         frame: (NSRect *) s_frame;
 + (vout_thread_t *)getRealVout: (vout_thread_t *)p_vout;
 
 - (void)enterFullscreen;
 - (id)initMainThread: (id) sender;
 - (void)leaveFullscreen;
 - (void)enterFullscreen;
-- (id)getVoutView;
+- (id)voutView;
 @end
index 68bc7ae521b5353bacde074f4e3fddb3a569e482..8152b4452bcf322c7ba8ed9e7178c02bd75467f4 100644 (file)
@@ -532,7 +532,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
                  ( [o_event modifierFlags] &  NSControlKeyMask ) ) )
         {
             msg_Dbg( p_vout, "received NSRightMouseDown (generic method) or Ctrl clic" );
-            [NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] getVoutView]];
+            [NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] voutView]];
         }
     }
 
@@ -558,7 +558,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
     if( p_vout && [o_event type] == NSRightMouseDown )
     {
         msg_Dbg( p_vout, "received NSRightMouseDown (specific method)" );
-        [NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] getVoutView]];
+        [NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] voutView]];
     }
 
     [super mouseDown: o_event];
@@ -603,7 +603,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
         /* FIXME: this isn't the appropriate place, but we can't receive
          * NSRightMouseDown some how */
         msg_Dbg( p_vout, "received NSRightMouseUp" );
-        [NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] getVoutView]];
+        [NSMenu popUpContextMenu: [[VLCMain sharedInstance] getVoutMenu] withEvent: o_event forView: [[[VLCMain sharedInstance] getControls] voutView]];
     }
 
     [super mouseUp: o_event];
@@ -701,8 +701,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
     return (vout_thread_t *) p_vout->p_parent;
 }
 
-+ (id)getVoutView: (vout_thread_t *)p_vout subView: (NSView *)view
-                                    frame: (NSRect *)s_frame
++ (id)voutView: (vout_thread_t *)p_vout subView: (NSView *)view
+         frame: (NSRect *)s_frame
 {
     vlc_value_t value_drawable;
     int i_timeout;
@@ -1139,7 +1139,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
         [self setLevel: NSStatusWindowLevel];
 }
 
-- (id)getVoutView // FIXME Naming scheme!
+- (id)voutView
 {
     return o_view;
 }
index fff52ee28559bbe1afe0be8bb68564075dc69fc7..fbdadd1557fab04d04b155c51f34b0592ec7ac6f 100644 (file)
@@ -320,8 +320,8 @@ static void Unlock( vout_thread_t * p_vout )
 
     /* Spawn the window */
     id old_vout = p_vout->p_sys->o_vout_view;
-    p_vout->p_sys->o_vout_view = [[VLCVoutView getVoutView: p_vout
-                        subView: p_vout->p_sys->o_glview frame: nil] retain];
+    p_vout->p_sys->o_vout_view = [[VLCVoutView voutView: p_vout
+                                                subView: p_vout->p_sys->o_glview frame: nil] retain];
     [old_vout release];
 }
 
@@ -348,16 +348,16 @@ static void Unlock( vout_thread_t * p_vout )
     if( p_vout->p_sys->b_saved_frame )
     {
         id old_vout = p_vout->p_sys->o_vout_view;
-        p_vout->p_sys->o_vout_view = [[VLCVoutView getVoutView: p_vout
-                                                      subView: o_glview
-                                                        frame: &p_vout->p_sys->s_frame] retain];
+        p_vout->p_sys->o_vout_view = [[VLCVoutView voutView: p_vout
+                                                    subView: o_glview
+                                                      frame: &p_vout->p_sys->s_frame] retain];
         [old_vout release];
     }
     else
     {
         id old_vout = p_vout->p_sys->o_vout_view;
-        p_vout->p_sys->o_vout_view = [[VLCVoutView getVoutView: p_vout
-                                                      subView: o_glview frame: nil] retain];
+        p_vout->p_sys->o_vout_view = [[VLCVoutView voutView: p_vout
+                                                    subView: o_glview frame: nil] retain];
         [old_vout release];
     }
 #undef o_glview