diff options
author | ritsuka <[email protected]> | 2013-10-25 18:21:54 +0000 |
---|---|---|
committer | ritsuka <[email protected]> | 2013-10-25 18:21:54 +0000 |
commit | ef19311ee492b85995da5446d75e2cc0fdb40549 (patch) | |
tree | bd28a616c62f9a9c2eaa5d56f52795279ebf0adc /macosx/Controller.h | |
parent | 32a56184a88817091950a94335dbf1036677eaf1 (diff) |
MacGUI: Varius warnings fixes:
- NSUInteger and NSInteger instead of int (where the Cocoa 64bit api uses them).
- Cast to int when needed because NSInteger on 64bit is defined as long.
- NSURL instead of NSString when possible.
- Replaced some deprecated methods/functions.
- numberWithInteger instead of numberWithInt.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5854 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.h')
-rw-r--r-- | macosx/Controller.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/macosx/Controller.h b/macosx/Controller.h index 607960f6d..50bc852d3 100644 --- a/macosx/Controller.h +++ b/macosx/Controller.h @@ -36,7 +36,7 @@ BOOL fIsDragging; } @end -@interface HBController : NSObject <GrowlApplicationBridgeDelegate> +@interface HBController : NSObject <GrowlApplicationBridgeDelegate, NSToolbarDelegate, NSDrawerDelegate> { NSImage * fApplicationIcon; IBOutlet NSWindow * fWindow; @@ -217,7 +217,7 @@ BOOL fIsDragging; FSEventStreamRef QueueStream; NSString * QueueFile; NSMutableArray * QueueFileArray; - int currentQueueEncodeIndex; // Used to track the currently encoding queueu item + NSInteger currentQueueEncodeIndex; // Used to track the currently encoding queueu item /* User Preset variables here */ HBPresets * fPresetsBuiltin; @@ -266,8 +266,8 @@ BOOL fIsDragging; int fCanceledCount; int fWorkingCount; - int fqueueEditRescanItemNum; // queue array item to be reloaded into the main window - int pidNum; // The pid number for this instance + NSInteger fqueueEditRescanItemNum; // queue array item to be reloaded into the main window + pid_t pidNum; // The pid number for this instance NSString * currentQueueEncodeNameString; /* integer to set to determine the previous state @@ -297,7 +297,7 @@ BOOL fIsDragging; returnCode: (int) returnCode contextInfo: (void *) contextInfo; - (IBAction) showSourceTitleScanPanel: (id) sender; - (IBAction) closeSourceTitleScanPanel: (id) sender; -- (void) performScan:(NSString *) scanPath scanTitleNum: (int) scanTitleNum; +- (void) performScan:(NSString *) scanPath scanTitleNum: (NSInteger) scanTitleNum; - (IBAction) showNewScan: (id) sender; @@ -305,7 +305,7 @@ BOOL fIsDragging; - (void) updateUI: (NSTimer*) timer; - (void) enableUI: (bool) enable; -- (void) setupX264PresetsWidgets: (id) sender; +- (IBAction) setupX264PresetsWidgets: (id) sender; - (void) enableX264Widgets: (bool) enable; - (IBAction) updateX264Widgets: (id) sender; - (IBAction) x264PresetsChangedDisplayExpandedOptions: (id) sender; @@ -363,16 +363,16 @@ BOOL fIsDragging; - (void) reloadQueue; - (NSDictionary *)createQueueFileItem; - (void)saveQueueFileItem; -- (void) incrementQueueItemDone:(int) queueItemDoneIndexNum; -- (void) performNewQueueScan:(NSString *) scanPath scanTitleNum: (int) scanTitleNum; +- (void) incrementQueueItemDone:(NSInteger) queueItemDoneIndexNum; +- (void) performNewQueueScan:(NSString *) scanPath scanTitleNum: (NSInteger) scanTitleNum; - (void) processNewQueueEncode; - (void) clearQueueEncodedItems; /* Queue Editing */ - (IBAction)applyQueueSettingsToMainWindow:(id)sender; -- (IBAction)rescanQueueItemToMainWindow:(NSString *) scanPath scanTitleNum: (int) scanTitleNum selectedQueueItem: (int) selectedQueueItem; +- (IBAction)rescanQueueItemToMainWindow:(NSString *) scanPath scanTitleNum: (NSUInteger) scanTitleNum selectedQueueItem: (NSUInteger) selectedQueueItem; -- (void) removeQueueFileItem:(int) queueItemToRemove; +- (void) removeQueueFileItem:(NSUInteger) queueItemToRemove; - (void) clearQueueAllItems; - (void)moveObjectsInQueueArray:(NSMutableArray *)array fromIndexes:(NSIndexSet *)indexSet toIndex:(NSUInteger)insertIndex; - (void)getQueueStats; @@ -411,7 +411,7 @@ BOOL fIsDragging; /* We use this to determine if an item should be expandable */ - (BOOL)outlineView:(NSOutlineView *)fPresetsOutlineView isItemExpandable:(id)item; /* used to specify the number of levels to show for each item */ -- (int)outlineView:(NSOutlineView *)fPresetsOutlineView numberOfChildrenOfItem:(id)item; +- (NSInteger)outlineView:(NSOutlineView *)fPresetsOutlineView numberOfChildrenOfItem:(id)item; /* Used to tell the outline view which information is to be displayed per item */ - (id)outlineView:(NSOutlineView *)fPresetsOutlineView objectValueForTableColumn:(NSTableColumn *)tableColumn byItem:(id)item; /* Use to customize the font and display characteristics of the title cell */ |