This repository was archived by the owner on Aug 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathOutputView.h
More file actions
64 lines (49 loc) · 1.37 KB
/
OutputView.h
File metadata and controls
64 lines (49 loc) · 1.37 KB
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
55
56
57
58
59
60
61
62
63
64
/*
* Copyright 2013-2023, Stefano Ceccherini <stefano.ceccherini@gmail.com>
* All rights reserved. Distributed under the terms of the MIT license.
*/
#ifndef __OUTPUTVIEW_H
#define __OUTPUTVIEW_H
#include <MediaDefs.h>
#include <MediaFormats.h>
#include <Path.h>
#include <Size.h>
#include <String.h>
#include <View.h>
class BButton;
class BMessageRunner;
class BRadioButton;
class BTextControl;
class PreviewView;
class SliderTextControl;
class OutputView : public BView {
public:
OutputView();
virtual void AttachedToWindow();
virtual void MessageReceived(BMessage* message);
virtual void WindowActivated(bool active);
BPath OutputFileName() const;
void UpdatePreviewFromSettings();
private:
BTextControl* fFileName;
BString fFileExtension;
BButton* fFilePanelButton;
BButton* fSelectAreaButton;
BRadioButton* fWholeScreen;
BRadioButton* fCustomArea;
BRadioButton* fWindow;
PreviewView* fPreviewView;
BRect fCustomCaptureRect;
SliderTextControl* fScaleSlider;
SliderTextControl* fBorderSlider;
BMessageRunner* fWarningRunner;
int32 fWarningCount;
void _LayoutView();
void _InitControlsFromSettings();
void _UpdateFileNameControlState();
void _SetFileNameExtension(const char* newExtension);
void _UpdatePreview(BRect* rect, BBitmap* bitmap = NULL);
void _HandleInvalidFileName(const char* fileName);
BRect _CaptureRect() const;
};
#endif // __OUTPUTVIEW_H