MacOSX/VLC_app: port the fullscreen zoom and the fspanel from gui/macosx to VLC_app.
[vlc.git] / extras / MacOSX / VLC_app / Sources / VLCMainWindow.m
index d3511d6..7d61470 100644 (file)
@@ -27,6 +27,7 @@
 #import "VLCMediaArrayController.h"
 #import "VLCBrowsableVideoView.h"
 #import "VLCAppAdditions.h"
+#import "VLCFullScreenControllerWindow.h"
 
 @interface VLCMainWindow (NavigatorViewHidingShowing)
 @property float contentHeight; /* animatable, keep the mainSplitView cursor at the same place, enabling playlist(navigator) togling */
  * VLCMainWindow
  */
 @implementation VLCMainWindow
+
+@synthesize mediaPlayer;
+@synthesize videoView;
+
 - (void)awakeFromNib;
 {
     NSTableColumn * tableColumn;
     /***********************************
      * Init the media player
      */
-    mediaPlayer = [[VLCMediaPlayer alloc] initWithVideoView:videoView];
+    [mediaPlayer setVideoView:videoView];
 
     /***********************************
      * CategoriesList OutlineView content
     [mediaPlayerBackwardPrevButton  setAction:@selector(rewind)];
     [mediaPlayerPlayPauseStopButton setTarget:mediaPlayer];
     [mediaPlayerPlayPauseStopButton setAction:@selector(pause)];
-    
+
     /* Last minute setup */
     [categoriesListView expandItem:nil expandChildren:YES];
     [categoriesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:[categoriesListView numberOfRows] > 0 ? [categoriesListView numberOfRows]-1 : 0] byExtendingSelection:NO];