blob: 9fe5d31316fdaa567bc95f7cca0aa168ce4112f5 (
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
|
#ifndef PICWINDOW_H
#define PICWINDOW_H
#include <interface/Window.h>
#include <interface/View.h>
#include "hb.h"
class HBStepper;
class PicView : public BView
{
public:
PicView( hb_handle_t * handle, int index );
~PicView();
void Draw( BRect rect );
void HandleMessage( BMessage * msg );
private:
void UpdateBitmap();
void RadioChanged();
void UpdateSettings( uint32 what );
hb_handle_t * fHandle;
hb_title_t * fTitle;
hb_job_t * fJob;
int fIndex;
uint8_t * fRawPic;
BBitmap * fBitmap;
HBStepper * fWidthStepper;
HBStepper * fHeightStepper;
BCheckBox * fRatioCheck;
BRadioButton * fAutoRadio;
BRadioButton * fCustomRadio;
HBStepper * fCropSteppers[4];
BCheckBox * fDeintCheck;
BButton * fPrevButton;
BButton * fNextButton;
BStringView * fInfoString;
};
class PicWindow : public BWindow
{
public:
PicWindow( hb_handle_t * handle, int index );
void MessageReceived( BMessage * msg );
private:
PicView * fView;
};
#endif
|