summaryrefslogtreecommitdiffstats
path: root/beos/RipView.h
blob: 1036e92613e019f811039f1ffb49bb049af36b76 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* $Id: RipView.h,v 1.4 2003/11/09 21:35:06 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. */


#ifndef HB_RIP_VIEW_H
#define HB_RIP_VIEW_H

#include <View.h>
class BBox;
class BButton;
class BCheckBox;
class BFilePanel;
class BMenuField;
class BPopUpMenu;
class BRadioButton;
class BStatusBar;
class BTextControl;

#include "HandBrake.h"

#define RIP_TITLE_POPUP       'rtip'
#define RIP_BITRATE_RADIO     'rbir'
#define RIP_TARGET_CONTROL    'rtac'
#define RIP_CROP_BUTTON       'rcrb'
#define RIP_BROWSE_BUTTON     'rbrb'
#define RIP_SUSPEND_BUTTON    'rsub'
#define RIP_RIP_BUTTON        'rrib'

class RipView : public BView
{
    public:
                       RipView( HBHandle * handle );
        void           MessageReceived( BMessage * message );
        void           UpdateIntf( HBStatus status, int modeChanged );

    private:
        HBHandle     * fHandle;
        HBList       * fTitleList;
        
        BBox         * fVideoBox;
        BPopUpMenu   * fTitlePopUp;
        BMenuField   * fTitleField;
        BPopUpMenu   * fVideoCodecPopUp;
        BMenuField   * fVideoCodecField;
        BRadioButton * fCustomBitrateRadio;
        BTextControl * fCustomBitrateControl;
        BRadioButton * fTargetSizeRadio;
        BTextControl * fTargetSizeControl;
        BCheckBox    * fTwoPassCheck;
        BButton      * fCropButton;

        BBox         * fAudioBox;
        BPopUpMenu   * fLanguagePopUp;
        BMenuField   * fLanguageField;
        BPopUpMenu   * fSecondaryLanguagePopUp;
        BMenuField   * fSecondaryLanguageField;
        BPopUpMenu   * fAudioCodecPopUp;
        BMenuField   * fAudioCodecField;
        BPopUpMenu   * fAudioBitratePopUp;
        BMenuField   * fAudioBitrateField;

        BBox         * fDestinationBox;
        BPopUpMenu   * fFileFormatPopUp;
        BMenuField   * fFileFormatField;
        BTextControl * fFileControl;
        BButton      * fFileButton;
        BFilePanel   * fFilePanel;

        BStatusBar   * fStatusBar;
        BButton      * fSuspendButton;
        BButton      * fStartButton;
};

#endif