Commit 9b11fa7e authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: move from manual to automatic property synthesis

parent 0b9b7eab
...@@ -93,18 +93,12 @@ The class is not thread safe ...@@ -93,18 +93,12 @@ The class is not thread safe
NSDictionary* _cookieToButtonMapping; NSDictionary* _cookieToButtonMapping;
CFRunLoopSourceRef eventSource; CFRunLoopSourceRef eventSource;
BOOL _openInExclusiveMode;
BOOL _simulatePlusMinusHold;
BOOL _processesBacklog;
/* state for simulating plus/minus hold */ /* state for simulating plus/minus hold */
BOOL lastEventSimulatedHold; BOOL lastEventSimulatedHold;
AppleRemoteEventIdentifier lastPlusMinusEvent; AppleRemoteEventIdentifier lastPlusMinusEvent;
NSTimeInterval lastPlusMinusEventTime; NSTimeInterval lastPlusMinusEventTime;
int remoteId; int remoteId;
unsigned int _clickCountEnabledButtons;
NSTimeInterval _maxClickTimeDifference;
NSTimeInterval lastClickCountEventTime; NSTimeInterval lastClickCountEventTime;
AppleRemoteEventIdentifier lastClickCountEvent; AppleRemoteEventIdentifier lastClickCountEvent;
unsigned int eventClickCount; unsigned int eventClickCount;
......
...@@ -64,8 +64,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4; ...@@ -64,8 +64,6 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
@implementation AppleRemote @implementation AppleRemote
@synthesize openInExclusiveMode = _openInExclusiveMode, clickCountEnabledButtons = _clickCountEnabledButtons, maximumClickCountTimeDifference = _maxClickTimeDifference, processesBacklog=_processesBacklog, simulatesPlusMinusHold = _simulatePlusMinusHold;
#pragma public interface #pragma public interface
static AppleRemote *_o_sharedInstance = nil; static AppleRemote *_o_sharedInstance = nil;
...@@ -107,8 +105,8 @@ static AppleRemote *_o_sharedInstance = nil; ...@@ -107,8 +105,8 @@ static AppleRemote *_o_sharedInstance = nil;
_cookieToButtonMapping = [[NSDictionary alloc] initWithDictionary: mutableCookieToButtonMapping]; _cookieToButtonMapping = [[NSDictionary alloc] initWithDictionary: mutableCookieToButtonMapping];
/* defaults */ /* defaults */
_simulatePlusMinusHold = YES; _simulatesPlusMinusHold = YES;
_maxClickTimeDifference = DEFAULT_MAXIMUM_CLICK_TIME_DIFFERENCE; _maximumClickCountTimeDifference = DEFAULT_MAXIMUM_CLICK_TIME_DIFFERENCE;
} }
return _o_sharedInstance; return _o_sharedInstance;
...@@ -361,7 +359,7 @@ static AppleRemote* sharedInstance=nil; ...@@ -361,7 +359,7 @@ static AppleRemote* sharedInstance=nil;
} }
[self performSelector: @selector(executeClickCountEvent:) [self performSelector: @selector(executeClickCountEvent:)
withObject: [NSArray arrayWithObjects: eventNumber, timeNumber, nil] withObject: [NSArray arrayWithObjects: eventNumber, timeNumber, nil]
afterDelay: _maxClickTimeDifference]; afterDelay: _maximumClickCountTimeDifference];
} else { } else {
[delegate appleRemoteButton:event pressedDown: pressedDown clickCount:1]; [delegate appleRemoteButton:event pressedDown: pressedDown clickCount:1];
} }
......
...@@ -54,11 +54,6 @@ ...@@ -54,11 +54,6 @@
@implementation BWQuincyManager @implementation BWQuincyManager
@synthesize submissionURL = _submissionURL;
@synthesize companyName = _companyName;
@synthesize appIdentifier = _appIdentifier;
@synthesize autoSubmitCrashReport = _autoSubmitCrashReport;
+ (BWQuincyManager *)sharedQuincyManager { + (BWQuincyManager *)sharedQuincyManager {
static BWQuincyManager *quincyManager = nil; static BWQuincyManager *quincyManager = nil;
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
@interface VLCControlsBarCommon : NSObject @interface VLCControlsBarCommon : NSObject
{ {
IBOutlet id o_bottombar_view;
IBOutlet VLCDragDropView *o_drop_view; IBOutlet VLCDragDropView *o_drop_view;
IBOutlet id o_play_btn; IBOutlet id o_play_btn;
...@@ -54,7 +53,7 @@ ...@@ -54,7 +53,7 @@
IBOutlet id o_resize_view; IBOutlet id o_resize_view;
} }
@property (readonly) id bottomBarView; @property (readwrite, strong) IBOutlet id bottomBarView;
@property (readonly) BOOL darkInterface; @property (readonly) BOOL darkInterface;
@property (readonly) BOOL nativeFullscreenMode; @property (readonly) BOOL nativeFullscreenMode;
......
...@@ -52,8 +52,6 @@ ...@@ -52,8 +52,6 @@
@implementation VLCControlsBarCommon @implementation VLCControlsBarCommon
@synthesize bottomBarView=o_bottombar_view;
- (void)awakeFromNib - (void)awakeFromNib
{ {
_darkInterface = config_GetInt(VLCIntf, "macosx-interfacestyle"); _darkInterface = config_GetInt(VLCIntf, "macosx-interfacestyle");
...@@ -87,7 +85,7 @@ ...@@ -87,7 +85,7 @@
[[o_fullscreen_btn cell] accessibilitySetOverrideValue:[o_fullscreen_btn toolTip] forAttribute:NSAccessibilityTitleAttribute]; [[o_fullscreen_btn cell] accessibilitySetOverrideValue:[o_fullscreen_btn toolTip] forAttribute:NSAccessibilityTitleAttribute];
if (!_darkInterface) { if (!_darkInterface) {
[o_bottombar_view setImagesLeft: imageFromRes(@"bottom-background") middle: imageFromRes(@"bottom-background") right: imageFromRes(@"bottom-background")]; [self.bottomBarView setImagesLeft: imageFromRes(@"bottom-background") middle: imageFromRes(@"bottom-background") right: imageFromRes(@"bottom-background")];
[o_bwd_btn setImage: imageFromRes(@"backward-3btns")]; [o_bwd_btn setImage: imageFromRes(@"backward-3btns")];
[o_bwd_btn setAlternateImage: imageFromRes(@"backward-3btns-pressed")]; [o_bwd_btn setAlternateImage: imageFromRes(@"backward-3btns-pressed")];
...@@ -104,7 +102,7 @@ ...@@ -104,7 +102,7 @@
[o_fullscreen_btn setImage: imageFromRes(@"fullscreen-one-button")]; [o_fullscreen_btn setImage: imageFromRes(@"fullscreen-one-button")];
[o_fullscreen_btn setAlternateImage: imageFromRes(@"fullscreen-one-button-pressed")]; [o_fullscreen_btn setAlternateImage: imageFromRes(@"fullscreen-one-button-pressed")];
} else { } else {
[o_bottombar_view setImagesLeft: imageFromRes(@"bottomdark-left") middle: imageFromRes(@"bottom-background_dark") right: imageFromRes(@"bottomdark-right")]; [self.bottomBarView setImagesLeft: imageFromRes(@"bottomdark-left") middle: imageFromRes(@"bottom-background_dark") right: imageFromRes(@"bottomdark-right")];
[o_bwd_btn setImage: imageFromRes(@"backward-3btns-dark")]; [o_bwd_btn setImage: imageFromRes(@"backward-3btns-dark")];
[o_bwd_btn setAlternateImage: imageFromRes(@"backward-3btns-dark-pressed")]; [o_bwd_btn setAlternateImage: imageFromRes(@"backward-3btns-dark-pressed")];
...@@ -154,7 +152,7 @@ ...@@ -154,7 +152,7 @@
if (!OSX_SNOW_LEOPARD) if (!OSX_SNOW_LEOPARD)
[o_resize_view setImage: NULL]; [o_resize_view setImage: NULL];
if ([[o_bottombar_view window] styleMask] & NSResizableWindowMask) if ([[self.bottomBarView window] styleMask] & NSResizableWindowMask)
[o_resize_view removeFromSuperviewWithoutNeedingDisplay]; [o_resize_view removeFromSuperviewWithoutNeedingDisplay];
...@@ -180,7 +178,7 @@ ...@@ -180,7 +178,7 @@
- (CGFloat)height - (CGFloat)height
{ {
return [o_bottombar_view frame].size.height; return [self.bottomBarView frame].size.height;
} }
- (void)toggleForwardBackwardMode:(BOOL)b_alt - (void)toggleForwardBackwardMode:(BOOL)b_alt
...@@ -707,7 +705,7 @@ else \ ...@@ -707,7 +705,7 @@ else \
} }
} }
[o_bottombar_view setNeedsDisplay:YES]; [self.bottomBarView setNeedsDisplay:YES];
} }
- (void)removeEffectsButton:(BOOL)b_fast - (void)removeEffectsButton:(BOOL)b_fast
...@@ -756,7 +754,7 @@ else \ ...@@ -756,7 +754,7 @@ else \
} }
} }
[o_bottombar_view setNeedsDisplay:YES]; [self.bottomBarView setNeedsDisplay:YES];
} }
- (void)toggleJumpButtons - (void)toggleJumpButtons
...@@ -861,11 +859,11 @@ else \ ...@@ -861,11 +859,11 @@ else \
// wait until the animation is done, if displayed // wait until the animation is done, if displayed
if (b_fast) { if (b_fast) {
[o_bottombar_view addSubview:o_prev_btn]; [self.bottomBarView addSubview:o_prev_btn];
[o_bottombar_view addSubview:o_next_btn]; [self.bottomBarView addSubview:o_next_btn];
} else { } else {
[o_bottombar_view performSelector:@selector(addSubview:) withObject:o_prev_btn afterDelay:.2]; [self.bottomBarView performSelector:@selector(addSubview:) withObject:o_prev_btn afterDelay:.2];
[o_bottombar_view performSelector:@selector(addSubview:) withObject:o_next_btn afterDelay:.2]; [self.bottomBarView performSelector:@selector(addSubview:) withObject:o_next_btn afterDelay:.2];
} }
[self toggleForwardBackwardMode: YES]; [self toggleForwardBackwardMode: YES];
...@@ -938,7 +936,7 @@ else \ ...@@ -938,7 +936,7 @@ else \
[self toggleForwardBackwardMode: NO]; [self toggleForwardBackwardMode: NO];
[o_bottombar_view setNeedsDisplay:YES]; [self.bottomBarView setNeedsDisplay:YES];
} }
- (void)togglePlaymodeButtons - (void)togglePlaymodeButtons
......
...@@ -46,15 +46,9 @@ ...@@ -46,15 +46,9 @@
@interface VLCConvertAndSave() @interface VLCConvertAndSave()
{ {
NSString * _MRL; NSArray *_videoCodecs;
NSString * _outputDestination; NSArray *_audioCodecs;
NSArray * _profileNames; NSArray *_subsCodecs;
NSArray * _profileValueList;
NSArray * _videoCodecs;
NSArray * _audioCodecs;
NSArray * _subsCodecs;
NSMutableArray * _currentProfile;
BOOL b_streaming; BOOL b_streaming;
} }
...@@ -71,10 +65,6 @@ ...@@ -71,10 +65,6 @@
@implementation VLCConvertAndSave @implementation VLCConvertAndSave
@synthesize MRL=_MRL, outputDestination=_outputDestination, profileNames=_profileNames, profileValueList=_profileValueList, currentProfile=_currentProfile;
@synthesize vidBitrate, vidFramerate, audBitrate, audChannels;
static VLCConvertAndSave *_o_sharedInstance = nil; static VLCConvertAndSave *_o_sharedInstance = nil;
#pragma mark - #pragma mark -
......
...@@ -41,7 +41,6 @@ ...@@ -41,7 +41,6 @@
NSMutableDictionary *p_extDict; NSMutableDictionary *p_extDict;
BOOL b_unloading; ///< Work around threads + emit issues, see isUnloading
BOOL b_failed; ///< Flag set to true if we could not load the module BOOL b_failed; ///< Flag set to true if we could not load the module
id <ExtensionsDelegate> delegate; id <ExtensionsDelegate> delegate;
...@@ -52,8 +51,6 @@ ...@@ -52,8 +51,6 @@
static ExtensionsManager* instance = nil; static ExtensionsManager* instance = nil;
@synthesize isUnloading = b_unloading;
+ (ExtensionsManager *)getInstance:(intf_thread_t *)_p_intf + (ExtensionsManager *)getInstance:(intf_thread_t *)_p_intf
{ {
if (!instance) if (!instance)
...@@ -70,7 +67,7 @@ static ExtensionsManager* instance = nil; ...@@ -70,7 +67,7 @@ static ExtensionsManager* instance = nil;
p_extDict = [[NSMutableDictionary alloc] init]; p_extDict = [[NSMutableDictionary alloc] init];
b_unloading = false; _isUnloading = false;
b_failed = false; b_failed = false;
delegate = nil; delegate = nil;
...@@ -203,7 +200,7 @@ static ExtensionsManager* instance = nil; ...@@ -203,7 +200,7 @@ static ExtensionsManager* instance = nil;
[delegate extensionsUpdated]; [delegate extensionsUpdated];
return false; return false;
} }
b_unloading = false; _isUnloading = false;
} }
b_failed = false; b_failed = false;
[delegate extensionsUpdated]; [delegate extensionsUpdated];
...@@ -214,7 +211,7 @@ static ExtensionsManager* instance = nil; ...@@ -214,7 +211,7 @@ static ExtensionsManager* instance = nil;
{ {
if (!p_extensions_manager) if (!p_extensions_manager)
return; return;
b_unloading = true; _isUnloading = true;
module_unneed(p_extensions_manager, p_extensions_manager->p_module); module_unneed(p_extensions_manager, p_extensions_manager->p_module);
vlc_object_release(p_extensions_manager); vlc_object_release(p_extensions_manager);
p_extensions_manager = NULL; p_extensions_manager = NULL;
...@@ -336,7 +333,7 @@ static ExtensionsManager* instance = nil; ...@@ -336,7 +333,7 @@ static ExtensionsManager* instance = nil;
- (BOOL)cannotLoad - (BOOL)cannotLoad
{ {
return b_unloading || b_failed; return self.isUnloading || b_failed;
} }
@end @end
...@@ -725,7 +725,7 @@ static VLCMainMenu *_o_sharedInstance = nil; ...@@ -725,7 +725,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
{ {
BOOL b_value = !config_GetInt(VLCIntf, "macosx-show-effects-button"); BOOL b_value = !config_GetInt(VLCIntf, "macosx-show-effects-button");
config_PutInt(VLCIntf, "macosx-show-effects-button", b_value); config_PutInt(VLCIntf, "macosx-show-effects-button", b_value);
[[[[VLCMain sharedInstance] mainWindow] controlsBar] toggleEffectsButton]; [(VLCMainWindowControlsBar *)[[[VLCMain sharedInstance] mainWindow] controlsBar] toggleEffectsButton];
[o_mi_toggleEffectsButton setState: b_value]; [o_mi_toggleEffectsButton setState: b_value];
} }
...@@ -734,7 +734,7 @@ static VLCMainMenu *_o_sharedInstance = nil; ...@@ -734,7 +734,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
BOOL b_value = !config_GetInt(VLCIntf, "macosx-show-playback-buttons"); BOOL b_value = !config_GetInt(VLCIntf, "macosx-show-playback-buttons");
config_PutInt(VLCIntf, "macosx-show-playback-buttons", b_value); config_PutInt(VLCIntf, "macosx-show-playback-buttons", b_value);
[[[[VLCMain sharedInstance] mainWindow] controlsBar] toggleJumpButtons]; [(VLCMainWindowControlsBar *)[[[VLCMain sharedInstance] mainWindow] controlsBar] toggleJumpButtons];
[[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) { [[[VLCMain sharedInstance] voutController] updateWindowsUsingBlock:^(VLCVideoWindowCommon *o_window) {
[[o_window controlsBar] toggleForwardBackwardMode: b_value]; [[o_window controlsBar] toggleForwardBackwardMode: b_value];
}]; }];
...@@ -746,7 +746,7 @@ static VLCMainMenu *_o_sharedInstance = nil; ...@@ -746,7 +746,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
{ {
BOOL b_value = !config_GetInt(VLCIntf, "macosx-show-playmode-buttons"); BOOL b_value = !config_GetInt(VLCIntf, "macosx-show-playmode-buttons");
config_PutInt(VLCIntf, "macosx-show-playmode-buttons", b_value); config_PutInt(VLCIntf, "macosx-show-playmode-buttons", b_value);
[[[[VLCMain sharedInstance] mainWindow] controlsBar] togglePlaymodeButtons]; [(VLCMainWindowControlsBar *)[[[VLCMain sharedInstance] mainWindow] controlsBar] togglePlaymodeButtons];
[o_mi_togglePlaymodeButtons setState: b_value]; [o_mi_togglePlaymodeButtons setState: b_value];
} }
......
...@@ -86,9 +86,7 @@ typedef enum { ...@@ -86,9 +86,7 @@ typedef enum {
@property (readonly) BOOL nativeFullscreenMode; @property (readonly) BOOL nativeFullscreenMode;
@property (readwrite) BOOL nonembedded; @property (readwrite) BOOL nonembedded;
@property (readonly) VLCFSPanel* fsPanel; @property (readonly) VLCFSPanel* fspanel;
- (VLCMainWindowControlsBar *)controlsBar;
- (void)changePlaylistState:(VLCPlaylistStateEvent)event; - (void)changePlaylistState:(VLCPlaylistStateEvent)event;
......
This diff is collapsed.
...@@ -26,32 +26,16 @@ ...@@ -26,32 +26,16 @@
#pragma mark - #pragma mark -
@interface PLItem()
{
input_item_t *p_input;
int _playlistId;
NSMutableArray *_children;
PLItem *_parent;
}
@end
@implementation PLItem @implementation PLItem
@synthesize children=_children;
@synthesize plItemId=_playlistId;
@synthesize input=p_input;
@synthesize parent=_parent;
- (id)initWithPlaylistItem:(playlist_item_t *)p_item; - (id)initWithPlaylistItem:(playlist_item_t *)p_item;
{ {
self = [super init]; self = [super init];
if(self) { if(self) {
_playlistId = p_item->i_id; _plItemId = p_item->i_id;
p_input = p_item->p_input; _input = p_item->p_input;
input_item_Hold(p_input); input_item_Hold(_input);
_children = [[NSMutableArray alloc] init]; _children = [[NSMutableArray alloc] init];
} }
...@@ -60,7 +44,7 @@ ...@@ -60,7 +44,7 @@
- (void)dealloc - (void)dealloc
{ {
input_item_Release(p_input); input_item_Release(_input);
} }
// own hash and isEqual methods are important to retain expandable state // own hash and isEqual methods are important to retain expandable state
......
...@@ -40,14 +40,9 @@ ...@@ -40,14 +40,9 @@
@interface PLModel () @interface PLModel ()
{ {
PLItem *_rootItem;
playlist_t *p_playlist; playlist_t *p_playlist;
NSOutlineView *_outlineView; NSOutlineView *_outlineView;
// TODO: write these objects to the pastboard properly?
NSMutableArray *_draggedItems;
// TODO: for transition // TODO: for transition
VLCPlaylist *_playlist; VLCPlaylist *_playlist;
} }
...@@ -55,9 +50,6 @@ ...@@ -55,9 +50,6 @@
@implementation PLModel @implementation PLModel
@synthesize rootItem=_rootItem;
@synthesize draggedItems=_draggedItems;
#pragma mark - #pragma mark -
#pragma mark Init and Stuff #pragma mark Init and Stuff
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
{ {
id <PXSourceListDelegate> _secondaryDelegate; //Used to store the publicly visible delegate id <PXSourceListDelegate> _secondaryDelegate; //Used to store the publicly visible delegate
id <PXSourceListDataSource> _secondaryDataSource; //Used to store the publicly visible data source id <PXSourceListDataSource> _secondaryDataSource; //Used to store the publicly visible data source
NSSize _iconSize; //The size of icons in the Source List. Defaults to 16x16
} }
@property (nonatomic) NSSize iconSize; @property (nonatomic) NSSize iconSize;
......
...@@ -49,7 +49,6 @@ NSString * const PXSLDeleteKeyPressedOnRowsNotification = @"PXSourceListDeleteKe ...@@ -49,7 +49,6 @@ NSString * const PXSLDeleteKeyPressedOnRowsNotification = @"PXSourceListDeleteKe
#pragma mark - #pragma mark -
@implementation PXSourceList @implementation PXSourceList
@synthesize iconSize = _iconSize;
@dynamic dataSource; @dynamic dataSource;
@dynamic delegate; @dynamic delegate;
......
...@@ -12,13 +12,8 @@ ...@@ -12,13 +12,8 @@
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
@interface SPInvocationGrabber : NSObject { @interface SPInvocationGrabber : NSObject {
id _object;
NSInvocation *_invocation;
int frameCount; int frameCount;
char **frameStrings; char **frameStrings;
BOOL backgroundAfterForward;
BOOL onMainAfterForward;
BOOL waitUntilDone;
} }
-(id)initWithObject:(id)obj; -(id)initWithObject:(id)obj;
-(id)initWithObject:(id)obj stacktraceSaving:(BOOL)saveStack; -(id)initWithObject:(id)obj stacktraceSaving:(BOOL)saveStack;
......
...@@ -40,9 +40,7 @@ ...@@ -40,9 +40,7 @@
self.object = nil; self.object = nil;
self.invocation = nil; self.invocation = nil;
} }
@synthesize invocation = _invocation, object = _object;
@synthesize backgroundAfterForward, onMainAfterForward, waitUntilDone;
- (void)runInBackground; - (void)runInBackground;
{ {
@autoreleasepool { @autoreleasepool {
...@@ -61,10 +59,10 @@ ...@@ -61,10 +59,10 @@
anInvocation.target = _object; anInvocation.target = _object;
self.invocation = anInvocation; self.invocation = anInvocation;
if(backgroundAfterForward) if(_backgroundAfterForward)
[NSThread detachNewThreadSelector:@selector(runInBackground) toTarget:self withObject:nil]; [NSThread detachNewThreadSelector:@selector(runInBackground) toTarget:self withObject:nil];
else if(onMainAfterForward) else if(_onMainAfterForward)
[self performSelectorOnMainThread:@selector(invoke) withObject:nil waitUntilDone:waitUntilDone]; [self performSelectorOnMainThread:@selector(invoke) withObject:nil waitUntilDone:_waitUntilDone];
} }
- (NSMethodSignature *)methodSignatureForSelector:(SEL)inSelector { - (NSMethodSignature *)methodSignatureForSelector:(SEL)inSelector {
......
...@@ -26,16 +26,6 @@ ...@@ -26,16 +26,6 @@
static VLCEnterTextPanel *_textPanelInstance = nil; static VLCEnterTextPanel *_textPanelInstance = nil;
static VLCSelectItemInPopupPanel *_selectItemPanelInstance = nil; static VLCSelectItemInPopupPanel *_selectItemPanelInstance = nil;
@interface VLCEnterTextPanel()
{
__unsafe_unretained NSString * _title;
__unsafe_unretained NSString * _subtitle;
__unsafe_unretained NSString * _okTitle;
__unsafe_unretained NSString * _cancelTitle;
__unsafe_unretained id _target;
}
@end
@implementation VLCEnterTextPanel @implementation VLCEnterTextPanel
+ (VLCEnterTextPanel *)sharedInstance + (VLCEnterTextPanel *)sharedInstance
{ {
...@@ -50,8 +40,6 @@ static VLCSelectItemInPopupPanel *_selectItemPanelInstance = nil; ...@@ -50,8 +40,6 @@ static VLCSelectItemInPopupPanel *_selectItemPanelInstance = nil;
return _textPanelInstance; return _textPanelInstance;
} }
@synthesize title=_title, subTitle=_subtitle, OKButtonLabel=_okTitle, CancelButtonLabel=_cancelTitle, target=_target;
- (IBAction)windowElementAction:(id)sender - (IBAction)windowElementAction:(id)sender
{ {
[_panel orderOut:sender]; [_panel orderOut:sender];
...@@ -85,20 +73,7 @@ static VLCSelectItemInPopupPanel *_selectItemPanelInstance = nil; ...@@ -85,20 +73,7 @@ static VLCSelectItemInPopupPanel *_selectItemPanelInstance = nil;
@end @end
@interface VLCSelectItemInPopupPanel()
{
__unsafe_unretained NSString * _title;
__unsafe_unretained NSString * _subtitle;
__unsafe_unretained NSString * _okTitle;
__unsafe_unretained NSString * _cancelTitle;
__unsafe_unretained NSArray * _popData;
__unsafe_unretained id _target;
}
@end
@implementation VLCSelectItemInPopupPanel @implementation VLCSelectItemInPopupPanel
@synthesize title=_title, subTitle=_subtitle, OKButtonLabel=_okTitle, CancelButtonLabel=_cancelTitle, popupButtonContent=_popData, target=_target;
+ (VLCSelectItemInPopupPanel *)sharedInstance + (VLCSelectItemInPopupPanel *)sharedInstance
{ {
......
...@@ -28,21 +28,7 @@ ...@@ -28,21 +28,7 @@
*/ */
@interface SideBarItem : NSObject { @interface SideBarItem : NSObject
NSString *title;
NSString *identifier;
NSString *untranslatedTitle;
NSImage *icon;
NSInteger badgeValue;
NSInteger sdtype;
NSArray *children;
}
@property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *identifier; @property (nonatomic, copy) NSString *identifier;
......
...@@ -15,23 +15,14 @@ ...@@ -15,23 +15,14 @@
@implementation SideBarItem @implementation SideBarItem
@synthesize title;
@synthesize untranslatedTitle;
@synthesize identifier;
@synthesize icon;
@synthesize badgeValue;
@synthesize children;
@synthesize sdtype;
#pragma mark - #pragma mark -
#pragma mark Init/Dealloc/Finalize #pragma mark Init/Dealloc/Finalize
- (id)init - (id)init
{ {
if(self=[super init]) if (self=[super init]) {
{ _badgeValue = -1; //We don't want a badge value by default
badgeValue = -1; //We don't want a badge value by default _sdtype = -1; //no sd type set
sdtype = -1; //no sd type set
} }
return self; return self;
...@@ -63,17 +54,17 @@ ...@@ -63,17 +54,17 @@
- (BOOL)hasBadge - (BOOL)hasBadge
{ {
return badgeValue!=-1; return _badgeValue!=-1;
} }
- (BOOL)hasChildren - (BOOL)hasChildren
{ {
return [children count]>0; return [_children count]>0;
} }
- (BOOL)hasIcon - (BOOL)hasIcon
{ {
return icon!=nil; return _icon!=nil;
} }
@end @end
...@@ -46,7 +46,6 @@ ...@@ -46,7 +46,6 @@
// save the status level if at least one video window is on status level // save the status level if at least one video window is on status level
NSUInteger i_statusLevelWindowCounter; NSUInteger i_statusLevelWindowCounter;
NSInteger i_currentWindowLevel; NSInteger i_currentWindowLevel;
NSInteger i_currentFloatingWindowLevel;
BOOL b_mainwindow_has_video; BOOL b_mainwindow_has_video;
} }
...@@ -60,7 +59,7 @@ ...@@ -60,7 +59,7 @@
o_vout_dict = [[NSMutableDictionary alloc] init]; o_vout_dict = [[NSMutableDictionary alloc] init];
o_keyboard_backlight = [[KeyboardBacklight alloc] init]; o_keyboard_backlight = [[KeyboardBacklight alloc] init];
i_currentWindowLevel = NSNormalWindowLevel; i_currentWindowLevel = NSNormalWindowLevel;
i_currentFloatingWindowLevel = NSFloatingWindowLevel; _currentStatusWindowLevel = NSFloatingWindowLevel;
return self; return self;
} }
...@@ -420,22 +419,21 @@ ...@@ -420,22 +419,21 @@
i_currentWindowLevel = i_level; i_currentWindowLevel = i_level;
if (i_level == NSNormalWindowLevel) { if (i_level == NSNormalWindowLevel) {
i_currentFloatingWindowLevel = NSFloatingWindowLevel; _currentStatusWindowLevel = NSFloatingWindowLevel;
} else { } else {
i_currentFloatingWindowLevel = i_level + 1; _currentStatusWindowLevel = i_level + 1;
} }
[[VLCMainWindow sharedInstance] setWindowLevel:i_level]; NSInteger currentStatusWindowLevel = self.currentStatusWindowLevel;
[[VLCVideoEffects sharedInstance] updateCocoaWindowLevel:i_currentFloatingWindowLevel]; [[VLCMainWindow sharedInstance] setWindowLevel:i_level];
[[VLCAudioEffects sharedInstance] updateCocoaWindowLevel:i_currentFloatingWindowLevel];
[[[VLCMain sharedInstance] info] updateCocoaWindowLevel:i_currentFloatingWindowLevel];
[[VLCBookmarks sharedInstance] updateCocoaWindowLevel:i_currentFloatingWindowLevel];
[[VLCTrackSynchronization sharedInstance] updateCocoaWindowLevel:i_currentFloatingWindowLevel];
[[[VLCMain sharedInstance] resumeDialog] updateCocoaWindowLevel:i_currentFloatingWindowLevel]; [[VLCVideoEffects sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[VLCAudioEffects sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[[VLCMain sharedInstance] info] updateCocoaWindowLevel:currentStatusWindowLevel];
[[VLCBookmarks sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[VLCTrackSynchronization sharedInstance] updateCocoaWindowLevel:currentStatusWindowLevel];
[[[VLCMain sharedInstance] resumeDialog] updateCocoaWindowLevel:currentStatusWindowLevel];
} }
@synthesize currentStatusWindowLevel=i_currentFloatingWindowLevel;
@end @end
...@@ -41,13 +41,6 @@ ...@@ -41,13 +41,6 @@
@implementation VLCVideoEffects @implementation VLCVideoEffects
static VLCVideoEffects *_o_sharedInstance = nil; static VLCVideoEffects *_o_sharedInstance = nil;
@synthesize cropLeftValue, cropTopValue, cropRightValue, cropBottomValue;
@synthesize puzzleRowsValue, puzzleColumnsValue;
@synthesize wallRowsValue, wallColumnsValue;
@synthesize cloneValue;
@synthesize sepiaValue;
@synthesize posterizeValue;
+ (VLCVideoEffects *)sharedInstance + (VLCVideoEffects *)sharedInstance
{ {
return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init]; return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init];
......
...@@ -69,19 +69,15 @@ static const float f_min_video_height = 70.0; ...@@ -69,19 +69,15 @@ static const float f_min_video_height = 70.0;
*****************************************************************************/ *****************************************************************************/
@interface VLCVideoWindowCommon : VLCWindow <NSWindowDelegate, NSAnimationDelegate> @interface VLCVideoWindowCommon : VLCWindow <NSWindowDelegate, NSAnimationDelegate>
{
IBOutlet VLCMainWindowTitleView *o_titlebar_view; // only set in main or detached window @property (nonatomic, weak) IBOutlet VLCMainWindowTitleView *titlebarView; // only set in main or detached window
IBOutlet __unsafe_unretained VLCVoutView *o_video_view; @property (nonatomic, weak) IBOutlet VLCVoutView* videoView;
IBOutlet VLCControlsBarCommon *o_controls_bar; @property (nonatomic, weak) IBOutlet VLCControlsBarCommon* controlsBar;
}
@property (nonatomic, assign) VLCVoutView* videoView;
@property (readonly) VLCControlsBarCommon* controlsBar;
@property (readonly) BOOL inFullscreenTransition; @property (readonly) BOOL inFullscreenTransition;
@property (readonly) BOOL darkInterface; @property (readonly) BOOL darkInterface;
@property (readonly) BOOL windowShouldExitFullscreenWhenFinished; @property (readonly) BOOL windowShouldExitFullscreenWhenFinished;
@property (readwrite, assign) NSRect previousSavedFrame; @property (readwrite, assign) NSRect previousSavedFrame;
@property (readwrite, assign) NSSize nativeVideoSize; @property (nonatomic, readwrite, assign) NSSize nativeVideoSize;
- (void)setWindowLevel:(NSInteger)i_state; - (void)setWindowLevel:(NSInteger)i_state;
- (void)resizeWindow; - (void)resizeWindow;
......
This diff is collapsed.
...@@ -46,8 +46,6 @@ ...@@ -46,8 +46,6 @@
*****************************************************************************/ *****************************************************************************/
@implementation VLCControls @implementation VLCControls
@synthesize jumpTimeValue;
- (void)awakeFromNib - (void)awakeFromNib
{ {
[o_specificTime_mi setTitle: _NS("Jump to Time")]; [o_specificTime_mi setTitle: _NS("Jump to Time")];
......
...@@ -35,7 +35,6 @@ ...@@ -35,7 +35,6 @@
@interface VLCCoreDialogProvider() @interface VLCCoreDialogProvider()
{ {
ErrorWindowController *o_error_panel; ErrorWindowController *o_error_panel;
BOOL b_progress_cancelled;
} }
@end @end
...@@ -43,8 +42,6 @@ ...@@ -43,8 +42,6 @@
static VLCCoreDialogProvider *_o_sharedInstance = nil; static VLCCoreDialogProvider *_o_sharedInstance = nil;
@synthesize progressCancelled=b_progress_cancelled;
+ (VLCCoreDialogProvider *)sharedInstance + (VLCCoreDialogProvider *)sharedInstance
{ {
return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init]; return _o_sharedInstance ? _o_sharedInstance : [[self alloc] init];
...@@ -54,7 +51,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil; ...@@ -54,7 +51,7 @@ static VLCCoreDialogProvider *_o_sharedInstance = nil;
{ {
if (!_o_sharedInstance) { if (!_o_sharedInstance) {
_o_sharedInstance = [super init]; _o_sharedInstance = [super init];
b_progress_cancelled = NO; _progressCancelled = NO;
} }
return _o_sharedInstance; return _o_sharedInstance;
......
...@@ -28,17 +28,8 @@ ...@@ -28,17 +28,8 @@
/* for various VLC core related calls */ /* for various VLC core related calls */
#import "intf.h" #import "intf.h"
@interface VLCEyeTVController()
{
BOOL b_eyeTVactive;
BOOL b_deviceConnected;
}
@end
@implementation VLCEyeTVController @implementation VLCEyeTVController
@synthesize eyeTVRunning = b_eyeTVactive, deviceConnected = b_deviceConnected;
static VLCEyeTVController *_o_sharedInstance = nil; static VLCEyeTVController *_o_sharedInstance = nil;
+ (VLCEyeTVController *)sharedInstance + (VLCEyeTVController *)sharedInstance
...@@ -66,15 +57,15 @@ static VLCEyeTVController *_o_sharedInstance = nil; ...@@ -66,15 +57,15 @@ static VLCEyeTVController *_o_sharedInstance = nil;
{ {
/* update our info on the used device */ /* update our info on the used device */
if ([[theNotification name] isEqualToString: @"DeviceAdded"]) if ([[theNotification name] isEqualToString: @"DeviceAdded"])
b_deviceConnected = YES; _deviceConnected = YES;
if ([[theNotification name] isEqualToString: @"DeviceRemoved"]) if ([[theNotification name] isEqualToString: @"DeviceRemoved"])
b_deviceConnected = NO; _deviceConnected = NO;
/* is eyetv running? */ /* is eyetv running? */
if ([[theNotification name] isEqualToString: @"PluginInit"]) if ([[theNotification name] isEqualToString: @"PluginInit"])
b_eyeTVactive = YES; _eyeTVRunning = YES;
if ([[theNotification name] isEqualToString: @"PluginQuit"]) if ([[theNotification name] isEqualToString: @"PluginQuit"])
b_eyeTVactive = NO; _eyeTVRunning = NO;
} }
- (void)launchEyeTV - (void)launchEyeTV
......
...@@ -513,7 +513,6 @@ audio_output_t *getAout(void) ...@@ -513,7 +513,6 @@ audio_output_t *getAout(void)
BOOL nib_coredialogs_loaded; /* CoreDialogs nibfile */ BOOL nib_coredialogs_loaded; /* CoreDialogs nibfile */
BOOL nib_bookmarks_loaded; /* Bookmarks nibfile */ BOOL nib_bookmarks_loaded; /* Bookmarks nibfile */
BOOL b_active_videoplayback; BOOL b_active_videoplayback;
BOOL b_nativeFullscreenMode;
bool b_intf_terminating; /* Makes sure applicationWillTerminate will be called only once */ bool b_intf_terminating; /* Makes sure applicationWillTerminate will be called only once */
...@@ -528,8 +527,6 @@ audio_output_t *getAout(void) ...@@ -528,8 +527,6 @@ audio_output_t *getAout(void)
NSArray *o_usedHotkeys; NSArray *o_usedHotkeys;
VLCVoutWindowController *o_vout_controller;
InputManager *o_input_manager; InputManager *o_input_manager;
} }
...@@ -544,9 +541,6 @@ audio_output_t *getAout(void) ...@@ -544,9 +541,6 @@ audio_output_t *getAout(void)
*****************************************************************************/ *****************************************************************************/
@implementation VLCMain @implementation VLCMain
@synthesize voutController=o_vout_controller;
@synthesize nativeFullscreenMode=b_nativeFullscreenMode;
#pragma mark - #pragma mark -
#pragma mark Initialization #pragma mark Initialization
...@@ -580,7 +574,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -580,7 +574,7 @@ static VLCMain *_o_sharedMainInstance = nil;
NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"LiveUpdateTheMessagesPanel"]; NSDictionary *appDefaults = [NSDictionary dictionaryWithObject:@"NO" forKey:@"LiveUpdateTheMessagesPanel"];
[defaults registerDefaults:appDefaults]; [defaults registerDefaults:appDefaults];
o_vout_controller = [[VLCVoutWindowController alloc] init]; _voutController = [[VLCVoutWindowController alloc] init];
return _o_sharedMainInstance; return _o_sharedMainInstance;
} }
...@@ -650,10 +644,10 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -650,10 +644,10 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_remote setDelegate: _o_sharedMainInstance]; [o_remote setDelegate: _o_sharedMainInstance];
/* yeah, we are done */ /* yeah, we are done */
b_nativeFullscreenMode = NO; _nativeFullscreenMode = NO;
#ifdef MAC_OS_X_VERSION_10_7 #ifdef MAC_OS_X_VERSION_10_7
if (!OSX_SNOW_LEOPARD) if (!OSX_SNOW_LEOPARD)
b_nativeFullscreenMode = var_InheritBool(p_intf, "macosx-nativefullscreenmode"); _nativeFullscreenMode = var_InheritBool(p_intf, "macosx-nativefullscreenmode");
#endif #endif
if (config_GetInt(VLCIntf, "macosx-icon-change")) { if (config_GetInt(VLCIntf, "macosx-icon-change")) {
...@@ -798,7 +792,7 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -798,7 +792,7 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_vout_provider_lock lock]; [o_vout_provider_lock lock];
// closes all open vouts // closes all open vouts
o_vout_controller = nil; _voutController = nil;
[o_vout_provider_lock unlock]; [o_vout_provider_lock unlock];
/* unsubscribe from libvlc's debug messages */ /* unsubscribe from libvlc's debug messages */
...@@ -1224,18 +1218,20 @@ static VLCMain *_o_sharedMainInstance = nil; ...@@ -1224,18 +1218,20 @@ static VLCMain *_o_sharedMainInstance = nil;
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");
VLCMainWindowControlsBar *controlsBar = (VLCMainWindowControlsBar *)[o_mainwindow controlsBar];
if (repeat) { if (repeat) {
[[o_mainwindow controlsBar] setRepeatOne]; [controlsBar setRepeatOne];
[o_mainmenu setRepeatOne]; [o_mainmenu setRepeatOne];
} else if (loop) { } else if (loop) {
[[o_mainwindow controlsBar] setRepeatAll]; [controlsBar setRepeatAll];
[o_mainmenu setRepeatAll]; [o_mainmenu setRepeatAll];
} else { } else {
[[o_mainwindow controlsBar] setRepeatOff]; [controlsBar setRepeatOff];
[o_mainmenu setRepeatOff]; [o_mainmenu setRepeatOff];
} }
[[o_mainwindow controlsBar] setShuffle]; [controlsBar setShuffle];
[o_mainmenu setShuffle]; [o_mainmenu setShuffle];
} }
......
...@@ -317,16 +317,11 @@ static bool b_old_spaces_style = YES; ...@@ -317,16 +317,11 @@ static bool b_old_spaces_style = YES;
@interface VLCDragDropView() @interface VLCDragDropView()
{ {
bool b_activeDragAndDrop; bool b_activeDragAndDrop;
__unsafe_unretained id _dropHandler;
} }
@end @end
@implementation VLCDragDropView @implementation VLCDragDropView
@synthesize dropHandler=_dropHandler;
@synthesize drawBorder;
- (id)initWithFrame:(NSRect)frame - (id)initWithFrame:(NSRect)frame
{ {
self = [super initWithFrame:frame]; self = [super initWithFrame:frame];
...@@ -592,16 +587,8 @@ void _drawFrameInRect(NSRect frameRect) ...@@ -592,16 +587,8 @@ void _drawFrameInRect(NSRect frameRect)
* VLCVolumeSliderCommon * VLCVolumeSliderCommon
*****************************************************************************/ *****************************************************************************/
@interface VLCVolumeSliderCommon()
{
BOOL _usesBrightArtwork;
}
@end
@implementation VLCVolumeSliderCommon : NSSlider @implementation VLCVolumeSliderCommon : NSSlider
@synthesize usesBrightArtwork = _usesBrightArtwork;
- (void)scrollWheel:(NSEvent *)o_event - (void)scrollWheel:(NSEvent *)o_event
{ {
BOOL b_up = NO; BOOL b_up = NO;
......
...@@ -94,8 +94,6 @@ struct display_info_t ...@@ -94,8 +94,6 @@ struct display_info_t
@implementation VLCOpen @implementation VLCOpen
@synthesize fileSubDelay, fileSubFps;
#pragma mark - #pragma mark -
#pragma mark Init #pragma mark Init
......
...@@ -79,9 +79,7 @@ ...@@ -79,9 +79,7 @@
IBOutlet id o_http_chkbox; IBOutlet id o_http_chkbox;
IBOutlet id o_file_chkbox; IBOutlet id o_file_chkbox;
} }
@property (readwrite, retain) NSArray * soutMRL; @property (readwrite, retain) NSArray *soutMRL;
- (void)setTranscode:(NSString *)o_transcode_string;
- (void)initStrings; - (void)initStrings;
......
...@@ -40,18 +40,16 @@ ...@@ -40,18 +40,16 @@
@interface VLCOutput() @interface VLCOutput()
{ {
NSArray *o_mrl;
NSString *o_transcode; NSString *o_transcode;
} }
@end @end
@implementation VLCOutput @implementation VLCOutput
@synthesize soutMRL=o_mrl;
- (id)init - (id)init
{ {
self = [super init]; self = [super init];
o_mrl = [[NSArray alloc] init]; _soutMRL = [[NSArray alloc] init];
o_transcode = [[NSString alloc] init]; o_transcode = [[NSString alloc] init];
return self; return self;
} }
......
...@@ -429,8 +429,6 @@ error: ...@@ -429,8 +429,6 @@ error:
@interface VLCInfoTreeItem () @interface VLCInfoTreeItem ()
{ {
NSString *_name;
NSString *_value;
int i_object_id; int i_object_id;
input_item_t * p_item; input_item_t * p_item;
VLCInfoTreeItem *_parent; VLCInfoTreeItem *_parent;
...@@ -442,8 +440,6 @@ error: ...@@ -442,8 +440,6 @@ error:
@implementation VLCInfoTreeItem @implementation VLCInfoTreeItem
@synthesize name = _name, value = _value;
- (id)initWithName:(NSString *)item_name - (id)initWithName:(NSString *)item_name
value:(NSString *)item_value value:(NSString *)item_value
ID:(int)i_id ID:(int)i_id
......
...@@ -388,13 +388,10 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: s_rc]; \ ...@@ -388,13 +388,10 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: s_rc]; \
@interface VLCConfigControl() @interface VLCConfigControl()
{ {
char *psz_name; char *psz_name;
int i_type;
bool b_advanced;
} }
@end @end
@implementation VLCConfigControl @implementation VLCConfigControl
@synthesize type = i_type, advanced = b_advanced;
- (id)initWithFrame:(NSRect)frame - (id)initWithFrame:(NSRect)frame
{ {
...@@ -410,8 +407,8 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: s_rc]; \ ...@@ -410,8 +407,8 @@ o_textfield = [[NSSecureTextField alloc] initWithFrame: s_rc]; \
if (self != nil) { if (self != nil) {
_p_item = p_item; _p_item = p_item;
psz_name = p_item->psz_name; psz_name = p_item->psz_name;
i_type = p_item->i_type; _type = p_item->i_type;
b_advanced = p_item->b_advanced; _advanced = p_item->b_advanced;
[self setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin ]; [self setAutoresizingMask:NSViewWidthSizable | NSViewMinYMargin ];
} }
return (self); return (self);
......
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