00001
00002
00003
00004
00005
00006
00007 #ifndef TUTORIAL_BUTTON_H
00008 #define TUTORIAL_BUTTON_H
00009
00010 #include <QObject>
00011
00012 class QGraphicsRectItem;
00013 class QGraphicsScene;
00014 class QGraphicsTextItem;
00015 class QString;
00016 class TutorialButtonRect;
00017 class TutorialButtonText;
00018
00020 class TutorialButton : public QObject
00021 {
00022 Q_OBJECT;
00023
00024 public:
00026 TutorialButton(const QString &text,
00027 QGraphicsScene &scene);
00028 ~TutorialButton();
00029
00031 void handleTriggered();
00032
00034 void setGeometry (const QPoint &pos);
00035
00037 QSize size () const;
00038
00039 signals:
00041 void signalTriggered ();
00042
00043 private:
00044 TutorialButton();
00045
00046 void createRect (QGraphicsScene &scene);
00047 void createText (const QString &text);
00048
00049 TutorialButtonRect *m_rect;
00050 TutorialButtonText *m_text;
00051 };
00052
00053 #endif // TUTORIAL_BUTTON_H