Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleConfig.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 37 | { | |||
---|---|---|---|---|---|
50 | QUrl lastSaveLocation() const; | 50 | QUrl lastSaveLocation() const; | ||
51 | 51 | | |||
52 | enum PrintKeyActionRunning : int { | 52 | enum PrintKeyActionRunning : int { | ||
53 | TakeNewScreenshot = 0, | 53 | TakeNewScreenshot = 0, | ||
54 | StartNewInstance, | 54 | StartNewInstance, | ||
55 | FocusWindow | 55 | FocusWindow | ||
56 | }; | 56 | }; | ||
57 | 57 | | |||
58 | enum AfterTakingScreenshotAction : int { | | |||
59 | DoNothing = 0, | | |||
60 | CopyImageToClipboard | | |||
61 | }; | | |||
62 | | ||||
63 | KActionCollection* shortCutActions; | 58 | KActionCollection* shortCutActions; | ||
64 | 59 | | |||
65 | private: | 60 | private: | ||
66 | 61 | | |||
67 | explicit SpectacleConfig(QObject *parent = nullptr); | 62 | explicit SpectacleConfig(QObject *parent = nullptr); | ||
68 | virtual ~SpectacleConfig(); | 63 | virtual ~SpectacleConfig(); | ||
69 | 64 | | |||
70 | SpectacleConfig(SpectacleConfig const&) = delete; | 65 | SpectacleConfig(SpectacleConfig const&) = delete; | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
126 | void setLastUsedSaveMode(SaveMode mode); | 121 | void setLastUsedSaveMode(SaveMode mode); | ||
127 | 122 | | |||
128 | QString autoSaveFilenameFormat() const; | 123 | QString autoSaveFilenameFormat() const; | ||
129 | void setAutoSaveFilenameFormat(const QString &format); | 124 | void setAutoSaveFilenameFormat(const QString &format); | ||
130 | 125 | | |||
131 | QUrl defaultSaveLocation() const; | 126 | QUrl defaultSaveLocation() const; | ||
132 | void setDefaultSaveLocation(const QUrl &location); | 127 | void setDefaultSaveLocation(const QUrl &location); | ||
133 | 128 | | |||
134 | AfterTakingScreenshotAction afterTakingScreenshotAction() const; | 129 | bool copyImageToClipboard() const; | ||
135 | void setAfterTakingScreenshotAction(AfterTakingScreenshotAction enabled); | 130 | void setCopyImageToClipboard(bool enabled); | ||
131 | | ||||
132 | bool autoSaveImage() const; | ||||
133 | void setAutoSaveImage(bool enabled); | ||||
136 | 134 | | |||
137 | bool copySaveLocationToClipboard() const; | 135 | bool copySaveLocationToClipboard() const; | ||
138 | void setCopySaveLocationToClipboard(bool enabled); | 136 | void setCopySaveLocationToClipboard(bool enabled); | ||
139 | 137 | | |||
140 | QString saveImageFormat() const; | 138 | QString saveImageFormat() const; | ||
141 | void setSaveImageFormat(const QString &saveFmt); | 139 | void setSaveImageFormat(const QString &saveFmt); | ||
142 | 140 | | |||
143 | PrintKeyActionRunning printKeyActionRunning() const; | 141 | PrintKeyActionRunning printKeyActionRunning() const; | ||
Show All 10 Lines |