summaryrefslogtreecommitdiffstats
path: root/macosx/HBQueueController.h
diff options
context:
space:
mode:
authordynaflash <[email protected]>2007-09-05 20:01:14 +0000
committerdynaflash <[email protected]>2007-09-05 20:01:14 +0000
commit5d4117bccd9ce796e102842270726eae9fcf07e5 (patch)
treeeaba13aa4509c81e30969d5ceeda0e19d8fbebad /macosx/HBQueueController.h
parenta963935e4d220ec9153573cef8f9f1b12654f0c3 (diff)
MacGui: New Active Queue implementation courtesy of travistex
- Thanks travistex! - queue is now in a separate window - queue currently shows jobs grouped together as one encode, which is configurable - queue now shows currently encoding job, which is independently cancellable without losing the rest of the queue. - can start and pause encoding in the queue window - queue uses its own nib - progress status needs work - This has a way to go, but needed to get checked in as it changes the current xcode project structure. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@925 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBQueueController.h')
-rw-r--r--macosx/HBQueueController.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/macosx/HBQueueController.h b/macosx/HBQueueController.h
new file mode 100644
index 000000000..4f7cd3fc1
--- /dev/null
+++ b/macosx/HBQueueController.h
@@ -0,0 +1,62 @@
+/* HBQueueController
+
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.m0k.org/>.
+ It may be used under the terms of the GNU General Public License. */
+
+
+#include <Cocoa/Cocoa.h>
+
+#include "hb.h"
+
+@interface HBQueueController : NSObject
+{
+ hb_handle_t *fHandle;
+ NSViewAnimation *fAnimation;
+ BOOL fCurrentJobHidden; // YES when fCurrentJobPane has been shifted out of view (see showCurrentJobPane)
+
+ // +---------------fQueueWindow----------------+
+ // |+-------------fCurrentJobPane-------------+|
+ // || ||
+ // || ||
+ // || ||
+ // |+-----------------------------------------+|
+ // |+---------------fQueuePane----------------+|
+ // || ||
+ // || ||
+ // || ||
+ // || ||
+ // || ||
+ // || ||
+ // || ||
+ // |+-----------------------------------------+|
+ // +-------------------------------------------+
+
+ IBOutlet NSWindow *fQueueWindow;
+
+ // fCurrentJobPane - visible only when processing a job
+ IBOutlet NSView *fCurrentJobPane;
+ IBOutlet NSTextField *fJobDescTextField;
+ IBOutlet NSProgressIndicator *fProgressBar;
+ IBOutlet NSTextField *fProgressStatus;
+ IBOutlet NSTextField *fProgressTimeRemaining;
+
+ // fQueuePane - always visible; fills entire window when fCurrentJobPane is hidden
+ IBOutlet NSView *fQueuePane;
+ IBOutlet NSTableView *fTaskView;
+ IBOutlet NSButton *fDetailCheckbox;
+ IBOutlet NSTextField *fQueueCountField;
+ IBOutlet NSButton *fStartPauseButton;
+
+}
+
+- (void)setHandle: (hb_handle_t *)handle;
+- (void)updateQueueUI;
+- (void)updateCurrentJobUI;
+- (IBAction)removeSelectedJob: (id)sender;
+- (IBAction)cancelCurrentJob: (id)sender;
+- (IBAction)detailChanged: (id)sender;
+- (IBAction)showQueueWindow: (id)sender;
+- (IBAction)toggleStartPause: (id)sender;
+
+@end