Changeset View
Changeset View
Standalone View
Standalone View
step/messageframe.h
Show All 28 Lines | |||||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | 31 | | |||
32 | public: | 32 | public: | ||
33 | enum Type { Information, Warning, Error }; | 33 | enum Type { Information, Warning, Error }; | ||
34 | enum Flag { CloseButton = 1, CloseTimer = 2 }; | 34 | enum Flag { CloseButton = 1, CloseTimer = 2 }; | ||
35 | Q_DECLARE_FLAGS(Flags, Flag) | 35 | Q_DECLARE_FLAGS(Flags, Flag) | ||
36 | 36 | | |||
37 | explicit MessageFrame(QWidget* parent = 0, Qt::WindowFlags f = {}); | 37 | explicit MessageFrame(QWidget* parent = 0); | ||
38 | 38 | | |||
39 | int showMessage(Type type, const QString& text, Flags flags = 0); | 39 | int showMessage(Type type, const QString& text, Flags flags = 0); | ||
40 | int changeMessage(int id, Type type, const QString& text, Flags flags = 0); | 40 | int changeMessage(int id, Type type, const QString& text, Flags flags = 0); | ||
41 | void closeMessage(int id); | 41 | void closeMessage(int id); | ||
42 | 42 | | |||
43 | signals: | 43 | signals: | ||
44 | void linkActivated(const QString& url); | 44 | void linkActivated(const QString& url); | ||
45 | 45 | | |||
Show All 14 Lines |