Changeset View
Changeset View
Standalone View
Standalone View
src/Gui/KSMainWindow.h
Show All 40 Lines | 39 | { | |||
---|---|---|---|---|---|
41 | 41 | | |||
42 | public: | 42 | public: | ||
43 | 43 | | |||
44 | explicit KSMainWindow(const QVector<ImageGrabber::GrabMode>& supportedModes, bool onClickAvailable, QWidget *parent = nullptr); | 44 | explicit KSMainWindow(const QVector<ImageGrabber::GrabMode>& supportedModes, bool onClickAvailable, QWidget *parent = nullptr); | ||
45 | ~KSMainWindow() override; | 45 | ~KSMainWindow() override; | ||
46 | 46 | | |||
47 | private: | 47 | private: | ||
48 | 48 | | |||
49 | enum class QuitBehavior { | | |||
50 | QuitImmediately, | | |||
51 | QuitExternally | | |||
52 | }; | | |||
53 | void quit(const QuitBehavior quitBehavior = QuitBehavior::QuitImmediately); | | |||
54 | | ||||
55 | enum class MessageDuration { | 49 | enum class MessageDuration { | ||
56 | AutoHide, | 50 | AutoHide, | ||
57 | Persistent | 51 | Persistent | ||
58 | }; | 52 | }; | ||
59 | void showInlineMessage(const QString& message, | 53 | void showInlineMessage(const QString& message, | ||
60 | const KMessageWidget::MessageType messageType, | 54 | const KMessageWidget::MessageType messageType, | ||
61 | const MessageDuration messageDuration = MessageDuration::AutoHide); | 55 | const MessageDuration messageDuration = MessageDuration::AutoHide); | ||
62 | 56 | | |||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |