Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/KSMainWindow.h
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 42 | { | |||
|---|---|---|---|---|---|
| 56 | void quit(const QuitBehavior quitBehavior = QuitBehavior::QuitImmediately); | 56 | void quit(const QuitBehavior quitBehavior = QuitBehavior::QuitImmediately); | ||
| 57 | 57 | | |||
| 58 | enum class MessageDuration { | 58 | enum class MessageDuration { | ||
| 59 | AutoHide, | 59 | AutoHide, | ||
| 60 | Persistent | 60 | Persistent | ||
| 61 | }; | 61 | }; | ||
| 62 | void showInlineMessage(const QString& message, | 62 | void showInlineMessage(const QString& message, | ||
| 63 | const KMessageWidget::MessageType messageType, | 63 | const KMessageWidget::MessageType messageType, | ||
| 64 | const MessageDuration messageDuration = MessageDuration::AutoHide); | 64 | const MessageDuration messageDuration = MessageDuration::AutoHide, | ||
| 65 | const QList<QAction*>& actions = {}); | ||||
| 65 | 66 | | |||
| 66 | private Q_SLOTS: | 67 | private Q_SLOTS: | ||
| 67 | 68 | | |||
| 68 | void captureScreenshot(Spectacle::CaptureMode theCaptureMode, int theTimeout, bool theIncludePointer, bool theIncludeDecorations); | 69 | void captureScreenshot(Spectacle::CaptureMode theCaptureMode, int theTimeout, bool theIncludePointer, bool theIncludeDecorations); | ||
| 69 | void showPrintDialog(); | 70 | void showPrintDialog(); | ||
| 70 | void openScreenshotsFolder(); | 71 | void openScreenshotsFolder(); | ||
| 71 | void showPreferencesDialog(); | 72 | void showPreferencesDialog(); | ||
| 72 | void showImageSharedFeedback(bool error, const QString &message); | 73 | void showImageSharedFeedback(bool error, const QString &message); | ||
| 73 | void sendToClipboard(); | 74 | void sendToClipboard(); | ||
| 74 | void init(); | 75 | void init(); | ||
| 75 | void setDefaultSaveAction(); | 76 | void setDefaultSaveAction(); | ||
| 76 | void save(); | 77 | void save(); | ||
| 77 | void saveAs(); | 78 | void saveAs(); | ||
| 78 | int windowWidth(const QPixmap &pixmap) const; | 79 | int windowWidth(const QPixmap &pixmap) const; | ||
| 79 | 80 | | |||
| 80 | public Q_SLOTS: | 81 | public Q_SLOTS: | ||
| 81 | 82 | | |||
| 82 | void setScreenshotAndShow(const QPixmap &pixmap); | 83 | void setScreenshotAndShow(const QPixmap &pixmap); | ||
| 83 | void setScreenshotWindowTitle(const QUrl &location); | 84 | void imageSaved(const QUrl &location); | ||
| 84 | 85 | | |||
| 85 | Q_SIGNALS: | 86 | Q_SIGNALS: | ||
| 86 | 87 | | |||
| 87 | void newScreenshotRequest(Spectacle::CaptureMode theCaptureMode, int theTimeout, bool theIncludePointer, bool theIncludeDecorations); | 88 | void newScreenshotRequest(Spectacle::CaptureMode theCaptureMode, int theTimeout, bool theIncludePointer, bool theIncludeDecorations); | ||
| 88 | void dragAndDropRequest(); | 89 | void dragAndDropRequest(); | ||
| 89 | 90 | | |||
| 90 | protected: | 91 | protected: | ||
| 91 | 92 | | |||
| Show All 22 Lines | |||||