summaryrefslogtreecommitdiffstats
path: root/examples/graphicsview/padnavigator/padnavigator.h
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2010-05-11 14:02:16 (GMT)
committerAndreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com>2010-05-12 14:36:10 (GMT)
commite4902b4f25ca9c1ecff99609dbe376b407d9c6c5 (patch)
treef66db8d2cc152da3208fe1f3729692b9dfe00996 /examples/graphicsview/padnavigator/padnavigator.h
parent953411c6eecc4175752ade1834bf8db3398961c5 (diff)
downloadQt-e4902b4f25ca9c1ecff99609dbe376b407d9c6c5.zip
Qt-e4902b4f25ca9c1ecff99609dbe376b407d9c6c5.tar.gz
Qt-e4902b4f25ca9c1ecff99609dbe376b407d9c6c5.tar.bz2
New Pad Nagivator example implementation.
The old implementation was demo-quality and didn't really belong in the examples section. This new code cleans up the implementation, and also makes use of brand new features such as the state machine and animated transitions system. The new code is more suitable for documentation, and full docs are coming up in the next commit.
Diffstat (limited to 'examples/graphicsview/padnavigator/padnavigator.h')
-rw-r--r--examples/graphicsview/padnavigator/padnavigator.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/examples/graphicsview/padnavigator/padnavigator.h b/examples/graphicsview/padnavigator/padnavigator.h
new file mode 100644
index 0000000..c79a13c
--- /dev/null
+++ b/examples/graphicsview/padnavigator/padnavigator.h
@@ -0,0 +1,65 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** No Commercial Usage
+** This file contains pre-release code and may not be distributed.
+** You may use this file in accordance with the terms and conditions
+** contained in the Technology Preview License Agreement accompanying
+** this package.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at qt-info@nokia.com.
+**
+**
+**
+**
+**
+**
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef PADNAVIGATOR_H
+#define PADNAVIGATOR_H
+
+#include <QGraphicsView>
+
+class QState;
+class QStateMachine;
+class Ui_Form;
+
+class PadNavigator : public QGraphicsView
+{
+ Q_OBJECT
+public:
+ explicit PadNavigator(const QSize &size, QWidget *parent = 0);
+ ~PadNavigator();
+
+protected:
+ void resizeEvent(QResizeEvent *event);
+
+private:
+ Ui_Form *form;
+};
+
+#endif // PADNAVIGATOR_H