15 TourMessage(QString m, QList<QString> w) : message(m), widgetNames(w) {}
27 bool _completed =
false;
30 Tour(QString name) { _tourName = name; }
33 _messages.append(message); }
34 QList<TourMessage>
messages() {
return _messages; }
55 bool eventFilter(QObject * obj, QEvent * ev);
56 virtual bool event(QEvent* ev);
57 virtual void paintEvent(QPaintEvent *);
62 OverlayWidget(QList<QWidget*> widgetList, QWidget* parent = 0);
77 static void displayTour(
Tour* tour);
78 static void positionMessage(QList<QWidget*> widgets, QMessageBox* mbox);
82 static QList<QWidget*> getWidgetsByNames(
Tour* tour, QList<QString> names);
84 bool delayedWelcomeTour =
false;
87 void showWelcomeTour();
92 void resetCompletedTours();
93 void readCompletedTours();
94 void writeCompletedTours();
96 bool eventFilter(QObject *obj, QEvent* event);
97 static void startTour(QString tourName);
98 void attachTour(QObject* obj, QEvent::Type eventType, QString tourName);
100 static void addWidgetToTour(QString tourName, QWidget* widget, QString widgetName);
101 static void clearWidgetsFromTour(QString tourName);
106 void showDelayedWelcomeTour();
111 #endif // TOURHANDLER_H QList< QString > widgetNames
Definition: tourhandler.h:14
TourMessage(QString m, QList< QString > w)
Definition: tourhandler.h:15
bool hasNameForWidget(QString n)
Definition: tourhandler.h:39
static QList< QString > allTourShortcuts()
Definition: tourhandler.h:103
QMap< QObject *, QMap< QEvent::Type, QString > * > eventHandler
Definition: tourhandler.h:73
Definition: tourhandler.h:22
void addNameAndWidget(QString n, QWidget *w)
Definition: tourhandler.h:37
QList< QWidget * > getWidgetsByName(QString n)
Definition: tourhandler.h:36
static QHash< QString, Tour * > shortcutToTour
Definition: tourhandler.h:80
void addMessage(QString m, QList< QString > w)
Definition: tourhandler.h:32
static QHash< QString, Tour * > allTours
Definition: tourhandler.h:79
static QMap< QString, QMap< QString, QString > * > eventNameLookup
Definition: tourhandler.h:81
QString message
Definition: tourhandler.h:13
void setTourName(QString n)
Definition: tourhandler.h:41
QString tourName()
Definition: tourhandler.h:42
void delayWelcomeTour()
Definition: tourhandler.h:105
Definition: aeolus.cpp:26
QList< TourMessage > _messages
Definition: tourhandler.h:24
Definition: tourhandler.h:12
QString _tourName
Definition: tourhandler.h:26
TourHandler(QObject *parent)
Definition: tourhandler.h:90
void clearWidgets()
Definition: tourhandler.h:38
QMultiMap< QString, QWidget * > nameToWidget
Definition: tourhandler.h:25
Definition: tourhandler.h:69
void setCompleted(bool c)
Definition: tourhandler.h:44
QList< TourMessage > messages()
Definition: tourhandler.h:34
bool completed()
Definition: tourhandler.h:45
Tour(QString name)
Definition: tourhandler.h:30