-
-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathParameterScreenCapture.h
More file actions
59 lines (47 loc) · 1.26 KB
/
ParameterScreenCapture.h
File metadata and controls
59 lines (47 loc) · 1.26 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
#ifndef PARAMETERSCREENCAPTURE_H
#define PARAMETERSCREENCAPTURE_H
#pragma once
#include <QCapturableWindow>
#include "ParameterOperate.h"
#include "ParameterRecord.h"
class CParameterScreenCapture : public CParameterOperate
{
Q_OBJECT
public:
explicit CParameterScreenCapture(QObject *parent = nullptr);
virtual ~CParameterScreenCapture();
CParameterRecord m_Record;
enum class TARGET {
Screen,
Window,
CustomRectangle,
Curstomize
};
Q_ENUM(TARGET)
const TARGET GetTarget() const;
int SetTarget(TARGET tg);
enum class OPERATE {
Shot,
Record
};
Q_ENUM(OPERATE)
const OPERATE GetOperate() const;
int SetOperate(OPERATE opt);
const int GetScreen() const;
int SetScreen(int screen);
const QCapturableWindow GetWindow() const;
int SetWindow(QCapturableWindow w);
private:
TARGET m_Target;
OPERATE m_Operate;
int m_nScreen;
QCapturableWindow m_WindowCapture;
// CParameter interface
protected:
virtual int OnLoad(QSettings &set) override;
virtual int OnSave(QSettings &set) override;
// CParameterOperate interface
protected slots:
virtual void slotSetGlobalParameters() override;
};
#endif // PARAMETERSCREENCAPTURE_H