Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_export_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_EXPORT_CONFIG_H
8#define RECORDER_EXPORT_CONFIG_H
9
10#include <QString>
11#include <QList>
13
14
15class KisConfig;
16class QSize;
17
19{
20public:
21 RecorderExportConfig(bool readOnly);
23
24 void loadConfiguration(RecorderExportSettings *settings, bool loadLockFps = true) const;
25
26 int inputFps() const;
27 void setInputFps(int value);
28
29 int fps() const;
30 void setFps(int value);
31
32 bool resultPreview() const;
33 void setResultPreview(bool value);
34
35 void setFirstFrameSec(int value);
36 int firstFrameSec() const;
37
38 bool extendResult() const;
39 void setExtendResult(bool value);
40
41 void setLastFrameSec(int value);
42 int lastFrameSec() const;
43
44 bool resize() const;
45 void setResize(bool value);
46
47 QSize size() const;
48 void setSize(const QSize &value);
49
50 bool lockRatio() const;
51 void setLockRatio(bool value);
52
53 bool lockFps() const;
54 void setLockFps(bool value);
55
56 int profileIndex() const;
57 void setProfileIndex(int value);
58
61
63
64 QSet<int> editedProfilesIndexes() const;
65 void setEditedProfilesIndexes(const QSet<int> &value);
66
67 QString ffmpegPath() const;
68 void setFfmpegPath(const QString &value);
69
70 QString videoDirectory() const;
71 void setVideoDirectory(const QString &value);
72
73private:
74 Q_DISABLE_COPY(RecorderExportConfig)
75 mutable KisConfig *config;
76};
77
78bool operator==(const RecorderProfile &left, const RecorderProfile &right);
79bool operator!=(const RecorderProfile &left, const RecorderProfile &right);
80
81#endif // RECORDER_EXPORT_CONFIG_H
float value(const T *src, size_t ch)
void setProfiles(const QList< RecorderProfile > &value)
void setVideoDirectory(const QString &value)
void loadConfiguration(RecorderExportSettings *settings, bool loadLockFps=true) const
void setFfmpegPath(const QString &value)
QList< RecorderProfile > defaultProfiles() const
QSet< int > editedProfilesIndexes() const
QList< RecorderProfile > profiles() const
void setSize(const QSize &value)
void setEditedProfilesIndexes(const QSet< int > &value)