24 #include <QStringList> 27 class ShotcutSettings :
public QObject
30 Q_PROPERTY(
bool timelineShowWaveforms READ timelineShowWaveforms WRITE setTimelineShowWaveforms NOTIFY timelineShowWaveformsChanged)
31 Q_PROPERTY(
bool timelineShowThumbnails READ timelineShowThumbnails WRITE setTimelineShowThumbnails NOTIFY timelineShowThumbnailsChanged)
32 Q_PROPERTY(
bool timelineRippleAllTracks READ timelineRippleAllTracks WRITE setTimelineRippleAllTracks NOTIFY timelineRippleAllTracksChanged)
33 Q_PROPERTY(QString openPath READ openPath WRITE setOpenPath NOTIFY openPathChanged)
34 Q_PROPERTY(QString savePath READ savePath WRITE setSavePath NOTIFY savePathChanged)
35 Q_PROPERTY(QString playlistThumbnails READ playlistThumbnails WRITE setPlaylistThumbnails NOTIFY playlistThumbnailsChanged)
36 Q_PROPERTY(QString viewMode READ viewMode WRITE setViewMode NOTIFY viewModeChanged)
37 Q_PROPERTY(
bool playerGPU READ playerGPU NOTIFY playerGpuChanged)
38 Q_PROPERTY(
double audioInDuration READ audioInDuration WRITE setAudioInDuration NOTIFY audioInDurationChanged)
39 Q_PROPERTY(
double audioOutDuration READ audioOutDuration WRITE setAudioOutDuration NOTIFY audioOutDurationChanged)
40 Q_PROPERTY(
double videoInDuration READ videoInDuration WRITE setVideoInDuration NOTIFY videoInDurationChanged)
41 Q_PROPERTY(
double videoOutDuration READ videoOutDuration WRITE setVideoOutDuration NOTIFY videoOutDurationChanged)
45 static ShotcutSettings& singleton();
46 explicit ShotcutSettings() : QObject() {}
47 explicit ShotcutSettings(
const QString& appDataLocation);
49 QString language()
const;
50 void setLanguage(
const QString&);
51 double imageDuration()
const;
52 void setImageDuration(
double);
53 QString openPath()
const;
54 void setOpenPath(
const QString&);
55 QString savePath()
const;
56 void setSavePath(
const QString&);
57 QStringList recent()
const;
58 void setRecent(
const QStringList&);
59 QString theme()
const;
60 void setTheme(
const QString&);
61 bool showTitleBars()
const;
62 void setShowTitleBars(
bool);
63 bool showToolBar()
const;
64 void setShowToolBar(
bool);
65 QByteArray windowGeometry()
const;
66 void setWindowGeometry(
const QByteArray&);
67 QByteArray windowGeometryDefault()
const;
68 void setWindowGeometryDefault(
const QByteArray&);
69 QByteArray windowState()
const;
70 void setWindowState(
const QByteArray&);
71 QByteArray windowStateDefault()
const;
72 void setWindowStateDefault(
const QByteArray&);
73 QString viewMode()
const;
74 void setViewMode(
const QString& viewMode);
76 QString encodePath()
const;
77 void setEncodePath(
const QString&);
78 bool encodeFreeSpaceCheck()
const;
79 void setEncodeFreeSpaceCheck(
bool);
80 bool showConvertClipDialog()
const;
81 void setShowConvertClipDialog(
bool);
83 bool meltedEnabled()
const;
84 void setMeltedEnabled(
bool);
85 QStringList meltedServers()
const;
86 void setMeltedServers(
const QStringList&);
88 QString playerDeinterlacer()
const;
89 void setPlayerDeinterlacer(
const QString&);
90 QString playerExternal()
const;
91 void setPlayerExternal(
const QString&);
92 QString playerGamma()
const;
93 void setPlayerGamma(
const QString&);
94 bool playerGPU()
const;
95 void setPlayerGPU(
bool);
96 QString playerInterpolation()
const;
97 void setPlayerInterpolation(
const QString&);
98 bool playerJACK()
const;
99 void setPlayerJACK(
bool);
100 int playerKeyerMode()
const;
101 void setPlayerKeyerMode(
int);
102 bool playerMuted()
const;
103 void setPlayerMuted(
bool);
104 QString playerProfile()
const;
105 void setPlayerProfile(
const QString&);
106 bool playerProgressive()
const;
107 void setPlayerProgressive(
bool);
108 bool playerRealtime()
const;
109 void setPlayerRealtime(
bool);
110 bool playerScrubAudio()
const;
111 void setPlayerScrubAudio(
bool);
112 int playerVolume()
const;
113 void setPlayerVolume(
int);
114 float playerZoom()
const;
115 void setPlayerZoom(
float);
117 QString playlistThumbnails()
const;
118 void setPlaylistThumbnails(
const QString&);
120 bool timelineShowWaveforms()
const;
121 void setTimelineShowWaveforms(
bool);
122 bool timelineShowThumbnails()
const;
123 void setTimelineShowThumbnails(
bool);
124 bool timelineRippleAllTracks()
const;
125 void setTimelineRippleAllTracks(
bool);
127 QString filterFavorite(
const QString& filterName);
128 void setFilterFavorite(
const QString& filterName,
const QString& value);
130 double audioInDuration()
const;
131 void setAudioInDuration(
double);
133 double audioOutDuration()
const;
134 void setAudioOutDuration(
double);
136 double videoInDuration()
const;
137 void setVideoInDuration(
double);
139 double videoOutDuration()
const;
140 void setVideoOutDuration(
double);
142 bool loudnessScopeShowMeter(
const QString& meter)
const;
143 void setLoudnessScopeShowMeter(
const QString& meter,
bool b);
145 int drawMethod()
const;
146 void setDrawMethod(
int);
148 bool noUpgrade()
const;
149 void setNoUpgrade(
bool value);
152 QString appDataLocation()
const;
153 void setAppDataForSession(
const QString& location);
154 void setAppDataLocally(
const QString& location);
157 void openPathChanged();
158 void savePathChanged();
159 void timelineShowWaveformsChanged();
160 void timelineShowThumbnailsChanged();
161 void timelineRippleAllTracksChanged();
162 void playerGpuChanged();
163 void audioInDurationChanged();
164 void audioOutDurationChanged();
165 void videoInDurationChanged();
166 void videoOutDurationChanged();
167 void playlistThumbnailsChanged();
168 void viewModeChanged();
172 QString m_appDataLocation;
175 #define Settings ShotcutSettings::singleton()