summaryrefslogtreecommitdiffstats
path: root/HBPictureWin.h
blob: 9f1e376489942292929b12d0d60f7b91953667f4 (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
/* $Id: HBPictureWin.h,v 1.6 2003/08/20 20:30:30 titer Exp $ */

#ifndef _HB_PICTURE_WIN_H
#define _HB_PICTURE_WIN_H

class HBTitleInfo;

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

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( HBTitleInfo * titleInfo );
        virtual bool QuitRequested();
        virtual void MessageReceived( BMessage * message );
        
        void UpdateBitmap( int which );
        
    
    private:
        HBTitleInfo   * fTitleInfo;

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

        /* Internal infos */
        uint32_t        fMaxOutWidth;
        uint32_t        fMaxOutHeight;
};

#endif