Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_config.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#ifndef RECORDER_CONFIG_H
8#define RECORDER_CONFIG_H
9
10#include "recorder_format.h"
11
12#include <QtGlobal>
13
14class KisConfig;
15
17{
18public:
19 RecorderConfig(bool readOnly);
21
22 QString snapshotDirectory() const;
23 void setSnapshotDirectory(const QString &value);
24
25 double captureInterval() const;
26 void setCaptureInterval(double value);
27
28 RecorderFormat format() const;
30
31 // for JPEG (0...100)
32 int quality() const;
33 void setQuality(int value);
34
35 // for PNG (0...10)
36 int compression() const;
37 void setCompression(int value);
38
39 int resolution() const;
40 void setResolution(int value);
41
42 int threads() const;
43 void setThreads(int value);
44
45 bool realTimeCaptureMode() const;
47
48 bool recordIsolateLayerMode() const;
50
51 bool recordAutomatically() const;
53
54#ifdef Q_OS_ANDROID
55 // Returns the internal storage directory that older versions of Krita
56 // defaulted to. Using this directory to store recordings is bogus, since
57 // it's effectively inacessible to the user. This path is used to rectify
58 // the situation and move stuff out of this directory when the user has
59 // given permission to a "real" one.
60 static const QString &defaultInternalSnapshotDirectory();
61#endif
62
63private:
64 Q_DISABLE_COPY(RecorderConfig)
65 mutable KisConfig *config;
66};
67
68#endif // RECORDER_CONFIG_H
float value(const T *src, size_t ch)
double captureInterval() const
QString snapshotDirectory() const
void setFormat(RecorderFormat value)
void setRealTimeCaptureMode(bool value)
bool recordIsolateLayerMode() const
RecorderFormat format() const
RecorderConfig(bool readOnly)
int resolution() const
void setRecordAutomatically(bool value)
void setResolution(int value)
KisConfig * config
void setCaptureInterval(double value)
void setSnapshotDirectory(const QString &value)
void setRecordIsolateLayerMode(bool value)
void setCompression(int value)
bool recordAutomatically() const
void setQuality(int value)
bool realTimeCaptureMode() const
int compression() const
void setThreads(int value)
int quality() const
RecorderFormat