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#ifdef Q_OS_ANDROID
57 QString selectedFormat() const;
58 void setSelectedFormat(const QString &value);
59
60 QVariantMap formatPreferences() const;
61 void setFormatPreferences(const QVariantMap &value);
62#else
63 int profileIndex() const;
64 void setProfileIndex(int value);
65
68
70
71 QSet<int> editedProfilesIndexes() const;
72 void setEditedProfilesIndexes(const QSet<int> &value);
73
74 QString ffmpegPath() const;
75 void setFfmpegPath(const QString &value);
76
77 QString videoDirectory() const;
78 void setVideoDirectory(const QString &value);
79#endif
80
81private:
82 Q_DISABLE_COPY(RecorderExportConfig)
83 mutable KisConfig *config;
84};
85
86#ifndef Q_OS_ANDROID
87bool operator==(const RecorderProfile &left, const RecorderProfile &right);
88bool operator!=(const RecorderProfile &left, const RecorderProfile &right);
89#endif
90
91#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)
bool operator!=(const RecorderProfile &left, const RecorderProfile &right)
bool operator==(const RecorderProfile &left, const RecorderProfile &right)