summaryrefslogtreecommitdiffstats
path: root/beos/PictureWin.h
blob: 909e8ea5159d69a194d5c279789ecefa777b3b06 (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
/* $Id: PictureWin.h,v 1.3 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_PICTURE_WIN_H
#define HB_PICTURE_WIN_H

#include <View.h>
#include <Window.h>
class BSlider;
class BCheckBox;

/* libhb headers */
#include "Common.h"

class HBPictureView : public BView
{
    public:
        HBPictureView::HBPictureView( BRect rect, BBitmap * bitmap );
        virtual void Draw( BRect rect );

    private:
        BBitmap * fBitmap;
};

class HBPictureWin : public BWindow
{
    public:
        HBPictureWin( HBManager * manager, HBTitle * title );
        virtual void MessageReceived( BMessage * message );

        void UpdateBitmap( int which );


    private:
        HBManager     * fManager;
        HBTitle       * fTitle;

        /* GUI */
        HBPictureView * fPictureView;
        BSlider       * fPictureSlider;
        BBitmap       * fBitmap;
        BSlider       * fWidthSlider;
        BSlider       * fTopCropSlider;
        BSlider       * fBottomCropSlider;
        BSlider       * fLeftCropSlider;
        BSlider       * fRightCropSlider;
        BCheckBox     * fDeinterlaceCheck;
};

#endif