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 | AutoSaveImage | ||||
62 | }; | ||||
63 | | ||||
58 | KActionCollection* shortCutActions; | 64 | KActionCollection* shortCutActions; | ||
59 | 65 | | |||
60 | private: | 66 | private: | ||
61 | 67 | | |||
62 | explicit SpectacleConfig(QObject *parent = nullptr); | 68 | explicit SpectacleConfig(QObject *parent = nullptr); | ||
63 | virtual ~SpectacleConfig(); | 69 | virtual ~SpectacleConfig(); | ||
64 | 70 | | |||
65 | SpectacleConfig(SpectacleConfig const&) = delete; | 71 | SpectacleConfig(SpectacleConfig const&) = delete; | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
121 | void setLastUsedSaveMode(SaveMode mode); | 127 | void setLastUsedSaveMode(SaveMode mode); | ||
122 | 128 | | |||
123 | QString autoSaveFilenameFormat() const; | 129 | QString autoSaveFilenameFormat() const; | ||
124 | void setAutoSaveFilenameFormat(const QString &format); | 130 | void setAutoSaveFilenameFormat(const QString &format); | ||
125 | 131 | | |||
126 | QUrl defaultSaveLocation() const; | 132 | QUrl defaultSaveLocation() const; | ||
127 | void setDefaultSaveLocation(const QUrl &location); | 133 | void setDefaultSaveLocation(const QUrl &location); | ||
128 | 134 | | |||
135 | AfterTakingScreenshotAction afterTakingScreenshotAction() const; | ||||
136 | void setAfterTakingScreenshotAction(AfterTakingScreenshotAction enabled); | ||||
137 | | ||||
129 | bool copySaveLocationToClipboard() const; | 138 | bool copySaveLocationToClipboard() const; | ||
130 | void setCopySaveLocationToClipboard(bool enabled); | 139 | void setCopySaveLocationToClipboard(bool enabled); | ||
131 | 140 | | |||
132 | QString saveImageFormat() const; | 141 | QString saveImageFormat() const; | ||
133 | void setSaveImageFormat(const QString &saveFmt); | 142 | void setSaveImageFormat(const QString &saveFmt); | ||
134 | 143 | | |||
135 | PrintKeyActionRunning printKeyActionRunning() const; | 144 | PrintKeyActionRunning printKeyActionRunning() const; | ||
136 | void setPrintKeyActionRunning (PrintKeyActionRunning action); | 145 | void setPrintKeyActionRunning (PrintKeyActionRunning action); | ||
Show All 9 Lines |