summaryrefslogtreecommitdiffstats
path: root/beos/MainWindow.h
diff options
context:
space:
mode:
authorhandbrake <[email protected]>2006-01-14 12:53:59 +0000
committerhandbrake <[email protected]>2006-01-14 12:53:59 +0000
commita9a84221af31ca7d11d1aa182d8b152270203f9f (patch)
treeda452de9a4d3bb509d59de4a65fe12e9fb8e7825 /beos/MainWindow.h
parent939b35fc70bb688d38b086afebd8d14d8193d2c9 (diff)
HandBrake 0.3
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'beos/MainWindow.h')
-rw-r--r--beos/MainWindow.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/beos/MainWindow.h b/beos/MainWindow.h
new file mode 100644
index 000000000..e40c2587a
--- /dev/null
+++ b/beos/MainWindow.h
@@ -0,0 +1,100 @@
+/* $Id: MainWindow.h,v 1.9 2003/09/30 14:38:15 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_MAIN_WINDOW_H
+#define HB_MAIN_WINDOW_H
+
+/* BeOS headers */
+#include <Box.h>
+#include <MenuItem.h>
+#include <Window.h>
+class BButton;
+class BMenuField;
+class BPopUpMenu;
+class BSlider;
+class BStatusBar;
+class BStringView;
+class BTextControl;
+
+/* libhb headers */
+#include "Manager.h"
+
+class HBVolumeItem : public BMenuItem
+{
+ public:
+ HBVolumeItem( HBVolume * volume );
+
+ HBVolume * fVolume;
+};
+
+class HBTitleItem : public BMenuItem
+{
+ public:
+ HBTitleItem( HBTitle * title );
+
+ HBTitle * fTitle;
+};
+
+class HBAudioItem : public BMenuItem
+{
+ public:
+ HBAudioItem( HBAudio * audio );
+
+ HBAudio * fAudio;
+};
+
+class HBBox : public BBox
+{
+ public:
+ HBBox( BRect );
+ void Draw( BRect );
+};
+
+class HBWindow : public BWindow
+{
+ public:
+ HBWindow( bool debug );
+ virtual bool QuitRequested();
+ virtual void MessageReceived( BMessage * message );
+
+ void ScanVolumes();
+
+ private:
+ static void UpdateInterface( HBWindow * _this );
+ void _UpdateInterface();
+ void EnableInterface( HBMode mode );
+
+ HBManager * fManager;
+
+ /* GUI */
+ HBBox * fBox;
+ BButton * fAdvancedButton;
+ BButton * fFileButton;
+ BButton * fPictureButton;
+ BButton * fStartButton;
+ BButton * fSuspendButton;
+ BMenuField * fAudio1Field;
+ BMenuField * fAudio2Field;
+ BMenuField * fTitleField;
+ BMenuField * fVolumeField;
+ BPopUpMenu * fAudio1PopUp;
+ BPopUpMenu * fAudio2PopUp;
+ BPopUpMenu * fTitlePopUp;
+ BPopUpMenu * fVolumePopUp;
+ BSlider * fAudioSlider;
+ BSlider * fVideoSlider;
+ BStatusBar * fStatusBar;
+ BStringView * fFileString;
+ BTextControl * fFileControl;
+
+ int fUpdateThread;
+
+ /* Used to SetEnabled() GUI items only if needed */
+ HBMode fOldMode;
+};
+
+#endif