summaryrefslogtreecommitdiffstats
path: root/macosx/ScanController.h
blob: e872bd0487b42b1bc01d79c7e3528f56baf245d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/*   $Id: ScanController.h,v 1.4 2005/03/21 12:37:32 titer Exp $

   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"
@class DriveDetector;
@interface ScanController : NSObject
{
    hb_handle_t                  * fHandle;
	hb_list_t                    * fList;
    
    IBOutlet NSWindow            * fWindow;
    IBOutlet NSPanel             * fPanel;
    IBOutlet NSTextField         * fSelectString;
    IBOutlet NSMatrix            * fMatrix;
    IBOutlet NSButtonCell        * fDetectedCell;
    IBOutlet NSPopUpButton       * fDetectedPopUp;
    IBOutlet NSButtonCell        * fFolderCell;
    IBOutlet NSTextField         * fFolderField;
    IBOutlet NSButton            * fBrowseButton;
    IBOutlet NSTextField         * fStatusField;
    IBOutlet NSProgressIndicator * fIndicator;
    IBOutlet NSButton            * fCancelButton;
    IBOutlet NSButton            * fOpenButton;
	
    DriveDetector                * fDriveDetector;
    NSDictionary                 * fDrives;	
}

- (void)     TranslateStrings;
- (void)     SetHandle:     (hb_handle_t *) handle;
- (void)     Show;
- (void)     UpdateUI:      (hb_state_t *) state;

- (IBAction) MatrixChanged: (id) sender;
- (IBAction) Browse:        (id) sender;
- (IBAction) Open:          (id) sender;
- (IBAction) Cancel:        (id) sender;

- (void) Browse2: (id) sender;
- (void) BrowseDone: (NSOpenPanel *) sheet
    returnCode: (int) returnCode contextInfo: (void *) contextInfo;
- (void) BrowseDone2: (id) sender;

@end