Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/KSMainWindow.h
Show All 25 Lines | |||||
26 | #include <QToolButton> | 26 | #include <QToolButton> | ||
27 | #include <QDialogButtonBox> | 27 | #include <QDialogButtonBox> | ||
28 | 28 | | |||
29 | #include <KMessageWidget> | 29 | #include <KMessageWidget> | ||
30 | 30 | | |||
31 | #include "PlatformBackends/ImageGrabber.h" | 31 | #include "PlatformBackends/ImageGrabber.h" | ||
32 | #include "ExportMenu.h" | 32 | #include "ExportMenu.h" | ||
33 | #include "KSWidget.h" | 33 | #include "KSWidget.h" | ||
34 | #include "SpectacleConfig.h" | ||||
34 | 35 | | |||
35 | class KSMainWindow : public QDialog | 36 | class KSMainWindow : public QDialog | ||
36 | { | 37 | { | ||
37 | Q_OBJECT | 38 | Q_OBJECT | ||
38 | 39 | | |||
39 | public: | 40 | public: | ||
40 | 41 | | |||
41 | explicit KSMainWindow(bool onClickAvailable, QWidget *parent = 0); | 42 | explicit KSMainWindow(bool onClickAvailable, QWidget *parent = 0); | ||
42 | ~KSMainWindow(); | 43 | ~KSMainWindow(); | ||
43 | 44 | | |||
45 | private: | ||||
46 | | ||||
47 | SaveMode saveButtonMode() const; | ||||
48 | | ||||
44 | private slots: | 49 | private slots: | ||
45 | 50 | | |||
46 | void captureScreenshot(ImageGrabber::GrabMode mode, int timeout, bool includePointer, bool includeDecorations); | 51 | void captureScreenshot(ImageGrabber::GrabMode mode, int timeout, bool includePointer, bool includeDecorations); | ||
47 | void showPrintDialog(); | 52 | void showPrintDialog(); | ||
48 | void showPreferencesDialog(); | 53 | void showPreferencesDialog(); | ||
49 | void showImageSharedFeedback(bool error, const QString &message); | 54 | void showImageSharedFeedback(bool error, const QString &message); | ||
50 | void sendToClipboard(); | 55 | void sendToClipboard(); | ||
51 | void init(); | 56 | void init(); | ||
Show All 37 Lines |