summaryrefslogtreecommitdiffstats
path: root/examples/animation/example/mainwindow.h
blob: 6be74638e619af11f5afb5f54a99108d3dacf00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/****************************************************************************
**
** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the $MODULE$ of the Qt Toolkit.
**
** $TROLLTECH_DUAL_LICENSE$
**
****************************************************************************/

#ifndef __MAINWINDOW__H__
#define __MAINWINDOW__H__

#include <QtGui>

class MainWindow : public QMainWindow
{
Q_OBJECT
public:
    MainWindow();

private slots :
    void onEnterState3();
    void onEnterState2();
    void onEnterState1();
    void onItemClicked(QListWidgetItem*);
    void onRemoveClicked();
private:
    QListWidget *listWidget;
    QLabel *labelWidget;
    QLabel *label2Widget;
    QLineEdit *editWidget;
    QGraphicsScene *scene;
    QGraphicsView *view;
    QState *state1;
    QState *state2;
    QState *state3;
    QState *currentState;
    QState *group;
    QStateMachine *machine;
};

#endif //__MAINWINDOW__H__