Skip to content

Commit

Permalink
MacGui: change the queue to work with serialized HBJob objects, remov…
Browse files Browse the repository at this point in the history
…e the NSDictionary job representation and the duplicate prepareJob method. Implement NSCopying protocol in HBJob.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6655 b64f7644-9d1e-0410-96f1-a4d463321fa5
  • Loading branch information
galad87 committed Dec 27, 2014
1 parent 8df5845 commit df8b2ff
Show file tree
Hide file tree
Showing 39 changed files with 1,214 additions and 2,079 deletions.
16 changes: 1 addition & 15 deletions macosx/Controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,12 @@
int fPendingCount; // Number of various kinds of job groups in fJobGroups.
int fWorkingCount;

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
of encode 0==idle, 1==encoding, 2==cancelled*/
int fEncodeState;
BOOL applyQueueToScan;
NSString * browsedSourceDisplayName;

/* Dock progress variables */
double dockIconProgress;
Expand All @@ -164,7 +161,6 @@
- (IBAction) showSourceTitleScanPanel: (id) sender;
- (IBAction) closeSourceTitleScanPanel: (id) sender;
- (void) performScan:(NSString *) scanPath scanTitleNum: (NSInteger) scanTitleNum;
- (IBAction) showNewScan: (id) sender;

- (void) enableUI: (BOOL) enable;

Expand All @@ -174,7 +170,6 @@
- (IBAction) titlePopUpChanged: (id) sender;
- (IBAction) chapterPopUpChanged: (id) sender;

- (IBAction) formatPopUpChanged: (id) sender;
- (IBAction) autoSetM4vExtension: (id) sender;

- (IBAction) browseFile: (id) sender;
Expand All @@ -184,10 +179,6 @@
- (void)pictureSettingsDidChange;
- (IBAction) openMainWindow: (id) sender;

/* Text summaries of various settings */
- (NSString*) pictureSettingsSummary;
- (NSString*) muxerOptionsSummary;

/* Add All titles to the queue */
- (IBAction) addAllTitlesToQueue: (id) sender;
- (void) addAllTitlesToQueueAlertDone: (NSWindow *) sheet
Expand All @@ -199,15 +190,13 @@
- (void) closeQueueFSEvent;
- (void) loadQueueFile;
- (void) reloadQueue;
- (NSDictionary *)createQueueFileItem;
- (void)saveQueueFileItem;
- (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: (NSUInteger) scanTitleNum selectedQueueItem: (NSUInteger) selectedQueueItem;
- (IBAction)rescanQueueItemToMainWindow:(NSUInteger) selectedQueueItem;


- (void) removeQueueFileItem:(NSUInteger) queueItemToRemove;
Expand All @@ -227,7 +216,6 @@
- (IBAction) Rip: (id) sender;
- (void) overWriteAlertDone: (NSWindow *) sheet
returnCode: (int) returnCode contextInfo: (void *) contextInfo;
- (void) doRip;

- (IBAction) Cancel: (id) sender;
- (void) doCancelCurrentJob;
Expand All @@ -244,9 +232,7 @@
- (IBAction) browseImportPresetFile: (id) sender;

/* Manage User presets */
- (IBAction) customSettingUsed: (id) sender;
- (IBAction) showAddPresetPanel: (id) sender;

- (IBAction)selectDefaultPreset:(id)sender;
- (IBAction)addFactoryPresets:(id)sender;

Expand Down
Loading

0 comments on commit df8b2ff

Please sign in to comment.