-
Notifications
You must be signed in to change notification settings - Fork 1
/
DOCView.h
53 lines (39 loc) · 1.01 KB
/
DOCView.h
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
// DOCView.h
// Copyright (c) 2014 Markus Himmel <markus@himmel-villmar.de>
// This file is distributed under the terms of the MIT license
#ifndef DOC_VIEW_H
#define DOC_VIEW_H
#include <CheckBox.h>
#include <MenuField.h>
#include <StringView.h>
#include <View.h>
#include "TranslatorSettings.h"
#define DOC_VIEW_WIDTH 300
#define DOC_VIEW_HEIGHT 270
class DOCView : public BView {
public:
DOCView(const BRect &frame, const char *name, uint32 resizeMode,
uint32 flags, TranslatorSettings *settings);
~DOCView();
enum
{
MSG_CHARMAP_CHANGED = 'cmch',
MSG_LANDSCAPE_CHANGED = 'lsch',
MSG_PAPER_CHANGED = 'pfch',
MSG_REMOVED_CHANGED = 'rmch',
MSG_HIDDEN_CHANGED = 'hdch'
};
virtual void AllAttached();
virtual void MessageReceived(BMessage *message);
private:
TranslatorSettings *fSettings;
BStringView *fTitle;
BStringView *fInfo;
BStringView *fAuthor;
BCheckBox *fLandscape;
BCheckBox *fHidden;
BCheckBox *fRemoved;
BMenuField *fCharacterMapping;
BMenuField *fPaper;
};
#endif // DOC_VIEW_H