Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleConfig.h
Show All 14 Lines | |||||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef SPECTACLECONFIG_H | 20 | #ifndef SPECTACLECONFIG_H | ||
21 | #define SPECTACLECONFIG_H | 21 | #define SPECTACLECONFIG_H | ||
22 | 22 | | |||
23 | #include <QAction> | ||||
23 | #include <QObject> | 24 | #include <QObject> | ||
24 | #include <QUrl> | 25 | #include <QUrl> | ||
25 | #include <QRect> | 26 | #include <QRect> | ||
26 | 27 | | |||
28 | #include <KActionCollection> | ||||
27 | #include <KSharedConfig> | 29 | #include <KSharedConfig> | ||
28 | #include <KConfigGroup> | 30 | #include <KConfigGroup> | ||
29 | 31 | | |||
30 | enum class SaveMode { | 32 | enum class SaveMode { | ||
31 | SaveAs, | 33 | SaveAs, | ||
32 | Save | 34 | Save | ||
33 | }; | 35 | }; | ||
34 | 36 | | |||
Show All 14 Lines | 38 | { | |||
49 | QUrl lastSaveLocation() const; | 51 | QUrl lastSaveLocation() const; | ||
50 | 52 | | |||
51 | enum PrintKeyActionRunning : int { | 53 | enum PrintKeyActionRunning : int { | ||
52 | TakeNewScreenshot = 0, | 54 | TakeNewScreenshot = 0, | ||
53 | StartNewInstance, | 55 | StartNewInstance, | ||
54 | FocusWindow | 56 | FocusWindow | ||
55 | }; | 57 | }; | ||
56 | 58 | | |||
59 | KActionCollection* shortCutActions; | ||||
60 | | ||||
57 | private: | 61 | private: | ||
58 | 62 | | |||
59 | explicit SpectacleConfig(QObject *parent = nullptr); | 63 | explicit SpectacleConfig(QObject *parent = nullptr); | ||
60 | virtual ~SpectacleConfig(); | 64 | virtual ~SpectacleConfig(); | ||
61 | 65 | | |||
62 | SpectacleConfig(SpectacleConfig const&) = delete; | 66 | SpectacleConfig(SpectacleConfig const&) = delete; | ||
63 | void operator= (SpectacleConfig const&) = delete; | 67 | void operator= (SpectacleConfig const&) = delete; | ||
64 | 68 | | |||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |