<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
<data>
<int key="IBDocument.SystemTarget">1040</int>
- <string key="IBDocument.SystemVersion">11A511</string>
+ <string key="IBDocument.SystemVersion">11C35</string>
<string key="IBDocument.InterfaceBuilderVersion">851</string>
- <string key="IBDocument.AppKitVersion">1138</string>
- <string key="IBDocument.HIToolboxVersion">566.00</string>
+ <string key="IBDocument.AppKitVersion">1138.15</string>
+ <string key="IBDocument.HIToolboxVersion">567.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSArray" key="dict.sortedKeys">
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
- <integer value="4596"/>
- <integer value="915"/>
- <integer value="1617"/>
<integer value="2730"/>
- <integer value="4722"/>
- <integer value="283"/>
+ <integer value="915"/>
<integer value="2"/>
+ <integer value="283"/>
+ <integer value="1617"/>
<integer value="334"/>
+ <integer value="4722"/>
+ <integer value="4596"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>2769.IBPluginDependency</string>
<string>2769.IBWindowTemplateEditedContentRect</string>
<string>2769.ImportedFromIB2</string>
+ <string>2769.NSWindowTemplate.visibleAtLaunch</string>
<string>2770.IBPluginDependency</string>
<string>2770.ImportedFromIB2</string>
<string>2789.IBPluginDependency</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{340, 658}, {549, 87}}</string>
<boolean value="YES"/>
+ <boolean value="NO"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
- (void)setNativeVideoSize:(NSSize)size;
/* fullscreen handling */
+- (void)showFullscreenController;
- (BOOL)isFullscreen;
- (void)lockFullscreenAnimation;
- (void)unlockFullscreenAnimation;
- (void)hasBecomeFullscreen;
- (void)setFrameOnMainThread:(NSData*)packedargs;
-- (id)fspanel;
-
@end
@interface VLCProgressBarGradientEffect : NSView {
o_temp_view = [[NSView alloc] init];
[o_temp_view setAutoresizingMask:NSViewHeightSizable | NSViewWidthSizable];
- /* reset the interface */
- [self updateVolumeSlider];
- [self updateTimeSlider];
-
/* create the sidebar */
o_sidebaritems = [[NSMutableArray alloc] init];
SideBarItem *libraryItem = [SideBarItem itemWithTitle:_NS("LIBRARY") identifier:@"library"];
int i_volume_step = 0;
i_volume_step = config_GetInt( VLCIntf->p_libvlc, "volume-step" );
[o_volume_sld setFloatValue: (float)i_lastShownVolume / i_volume_step];
-// if ([o_fspanel respondsToSelector:@selector(setVolumeLevel:)])
-// [o_fspanel setVolumeLevel: (float)i_lastShownVolume / i_volume_step];
+ [o_fspanel setVolumeLevel: (float)i_lastShownVolume / i_volume_step];
}
}
#pragma mark -
#pragma mark Fullscreen support
+- (void)showFullscreenController
+{
+ if (b_fullscreen)
+ [o_fspanel fadeIn];
+}
+
- (BOOL)isFullscreen
{
return b_fullscreen;
}
}
-- (id)fspanel
-{
- return o_fspanel;
-}
-
#pragma mark -
#pragma mark Side Bar Data handling
/* taken under BSD-new from the PXSourceList sample project, adapted for VLC */
- (void)setActive:(id)noData
{
- vout_thread_t *p_vout = getVout();
- if (p_vout)
- {
- if (var_GetBool( p_vout, "fullscreen" ))
- {
- b_nonActive = NO;
- [self fadeIn];
- }
- vlc_object_release( p_vout );
- }
+ b_nonActive = NO;
+ [[VLCMain sharedInstance] showFullscreenController];
}
/* This routine is called repeatedly to fade in the window */
addButton( o_play, @"fs_play" , @"fs_play_highlight" , 267, 10, play );
addButton( o_fwd, @"fs_forward" , @"fs_forward_highlight" , 313, 14, forward );
addButton( o_next, @"fs_skip_next" , @"fs_skip_next_highlight" , 365, 15, next );
- addButton( o_fullscreen, @"fs_exit_fullscreen", @"fs_exit_fullscreen_hightlight", 507, 13, windowAction );
+ addButton( o_fullscreen, @"fs_exit_fullscreen", @"fs_exit_fullscreen_hightlight", 507, 13, toggleFullscreen );
/*
addButton( o_button, @"image (off state)", @"image (on state)", 38, 51, something );
*/
- (IBAction)play:(id)sender
{
- [[[VLCMain sharedInstance] controls] play: sender];
+ [[VLCCoreInteraction sharedInstance] play];
}
- (IBAction)forward:(id)sender
{
- [[[VLCMain sharedInstance] controls] forward: sender];
+ [[VLCCoreInteraction sharedInstance] forward];
}
- (IBAction)backward:(id)sender
{
- [[[VLCMain sharedInstance] controls] backward: sender];
+ [[VLCCoreInteraction sharedInstance] backward];
}
- (IBAction)prev:(id)sender
{
- [[[VLCMain sharedInstance] controls] prev: sender];
+ [[VLCCoreInteraction sharedInstance] previous];
}
- (IBAction)next:(id)sender
{
- [[[VLCMain sharedInstance] controls] next: sender];
+ [[VLCCoreInteraction sharedInstance] next];
}
-- (IBAction)windowAction:(id)sender
+- (IBAction)toggleFullscreen:(id)sender
{
- [[[VLCMain sharedInstance] controls] windowAction: sender];
+ [[VLCCoreInteraction sharedInstance] toggleFullscreen];
}
- (IBAction)fsTimeSliderUpdate:(id)sender
- (void)playlistUpdated;
- (void)updateInfoandMetaPanel;
- (void)updateMainWindow;
+- (void)showFullscreenController;
- (void)updateDelays;
- (void)initStrings;
- (BOOL)application:(NSApplication *)o_app openFile:(NSString *)o_filename;
[self _removeOldPreferences];
+ [o_mainwindow updateTimeSlider];
+ [o_mainwindow updateVolumeSlider];
[o_mainwindow makeKeyAndOrderFront: self];
/* Handle sleep notification */
[o_mainwindow updateWindow];
}
+- (void)showFullscreenController
+{
+ [o_mainwindow showFullscreenController];
+}
+
- (void)updateDelays
{
[[VLCTrackSynchronization sharedInstance] performSelectorOnMainThread: @selector(updateValues) withObject: nil waitUntilDone:NO];
#import <string.h>
#import "intf.h"
-#import "fspanel.h"
#import "vout.h"
#import "CoreInteraction.h"
#import "MainMenu.h"
{
var_SetCoords( p_vout, "mouse-moved", ((int)ml.x), ((int)ml.y) );
}
-// if( var_GetBool( p_vout, "fullscreen") )
- [[[VLCMainWindow sharedInstance] fspanel] fadeIn];
vlc_object_release( p_vout );
+ [[VLCMain sharedInstance] showFullscreenController];
}
[super mouseMoved: o_event];