summaryrefslogtreecommitdiffstats
path: root/beos/RipView.h
blob: d487b2b99ceb093f9faa0fdc404d9cf7435df59b (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.5 2003/10/13 22:23:02 titer Exp $

   This file is part of the HandBrake source code.
   Homepage: <http://beos.titer.org/handbrake/>.
   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 "Common.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( HBManager * manager );
        void           MessageReceived( BMessage * message );
        void           UpdateIntf( HBStatus status );

    private:
        HBManager    * fManager;
        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