diff options
author | handbrake <[email protected]> | 2006-01-14 13:40:38 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2006-01-14 13:40:38 +0000 |
commit | 56bb6ce496b475944bb9577c7586e84be1cb831e (patch) | |
tree | 7720c135a160a34f22ce8f1f911f350e18207eaa /beos/MainWindow.h | |
parent | d35a2a23fe450c88925128b9db7c63a5f1ed395d (diff) |
HandBrake 0.7.0
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@16 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'beos/MainWindow.h')
-rw-r--r-- | beos/MainWindow.h | 121 |
1 files changed, 121 insertions, 0 deletions
diff --git a/beos/MainWindow.h b/beos/MainWindow.h new file mode 100644 index 000000000..1558556f0 --- /dev/null +++ b/beos/MainWindow.h @@ -0,0 +1,121 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <interface/Window.h> +#include <interface/View.h> + +#include "hb.h" + +class BButton; +class BCheckBox; +class BMenuField; +class BPopUpMenu; +class BRadioButton; +class BSlider; +class BStatusBar; +class BStringView; +class BTextControl; +class BFilePanel; + +class PicWindow; +class QueueWindow; + +class MainView : public BView +{ + public: + MainView( hb_handle_t * handle ); + + void HandleMessage( BMessage * msg ); + void Update( hb_state_t * s ); + + private: + void EnableUI( bool ); + void TitlePopUpChanged(); + void ChapterPopUpChanged(); + void FormatPopUpChanged(); + void CodecsPopUpChanged(); + void CheckExtension(); + void QualityRadioChanged(); + void SliderChanged(); + void AddJob(); + + hb_handle_t * fHandle; + + BStringView * fSrcDVD1String; + BStringView * fSrcDVD2String; + BPopUpMenu * fSrcTitlePopUp; + BMenuField * fSrcTitleMenu; + int fSrcTitle; + BStringView * fSrcChapString; + BPopUpMenu * fSrcChapStartPopUp; + BMenuField * fSrcChapStartMenu; + BStringView * fSrcChapToString; + BPopUpMenu * fSrcChapEndPopUp; + BMenuField * fSrcChapEndMenu; + BStringView * fSrcDur1String; + BStringView * fSrcDur2String; + + BPopUpMenu * fDstFormatPopUp; + BMenuField * fDstFormatMenu; + int fDstFormat; + BPopUpMenu * fDstCodecsPopUp; + BMenuField * fDstCodecsMenu; + BTextControl * fDstFileControl; + BButton * fBrowseButton; + + BPopUpMenu * fVidRatePopUp; + BMenuField * fVidRateMenu; + BPopUpMenu * fVidEncoderPopUp; + BMenuField * fVidEncoderMenu; + BStringView * fVidQualityString; + BRadioButton * fVidTargetRadio; + BTextControl * fVidTargetControl; + BRadioButton * fVidAverageRadio; + BTextControl * fVidAverageControl; + BRadioButton * fVidConstantRadio; + BSlider * fVidConstantSlider; + BCheckBox * fVidGrayCheck; + BCheckBox * fVidTwoPassCheck; + + BPopUpMenu * fSubPopUp; + BMenuField * fSubMenu; + + BPopUpMenu * fAudLang1PopUp; + BMenuField * fAudLang1Menu; + BPopUpMenu * fAudLang2PopUp; + BMenuField * fAudLang2Menu; + BPopUpMenu * fAudRatePopUp; + BMenuField * fAudRateMenu; + BPopUpMenu * fAudBitratePopUp; + BMenuField * fAudBitrateMenu; + + BButton * fPictureButton; + + BStatusBar * fProgressBar; + BCheckBox * fQueueCheck; + BButton * fAddButton; + BButton * fShowButton; + BButton * fPauseButton; + BButton * fRipButton; + + BFilePanel * fFilePanel; + PicWindow * fPicWin; + QueueWindow * fQueueWin; +}; + +class MainWindow : public BWindow +{ + public: + MainWindow( hb_handle_t * handle ); + void MessageReceived( BMessage * msg ); + bool QuitRequested(); + + void Update( hb_state_t * s ); + + private: + MainView * fView; + + hb_handle_t * fHandle; +}; + +#endif |