summaryrefslogtreecommitdiffstats
path: root/hyperui/src/view.h
diff options
context:
space:
mode:
authorAnselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>2010-05-29 00:23:15 -0300
committerAnselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>2010-05-29 00:23:15 -0300
commit89260d896a96073e7b26f55e37ac8bd75277aa74 (patch)
tree3f7d786a2ed61fec87f7b18480093a04e0d88ced /hyperui/src/view.h
parentece41a861eaeb22969b44fc40e26674476ddd2be (diff)
hyperui: New structure. Preparing for PR 1.2
With the release of PR 1.2, Qt 4.6.2 is now the default Qt in Maemo 5, what simplifies the packaging and the deployment of applications. This commit introduces a new structure for the HyperUI demo. The following commits are going to update the build process and add a script to make easier the task of generating the source tarball which is uploaded to maemo buildbot. Signed-off-by: Anselmo Lacerda S. de Melo <anselmo.melo@openbossa.org>
Diffstat (limited to 'hyperui/src/view.h')
-rw-r--r--hyperui/src/view.h75
1 files changed, 75 insertions, 0 deletions
diff --git a/hyperui/src/view.h b/hyperui/src/view.h
new file mode 100644
index 0000000..2793fa8
--- /dev/null
+++ b/hyperui/src/view.h
@@ -0,0 +1,75 @@
+/****************************************************************************
+**
+** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: openBossa - INdT (renato.chencarek@openbossa.org)
+**
+** $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
+** the openBossa stream from INdT (renato.chencarek@openbossa.org).
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef VIEW_H
+#define VIEW_H
+
+#include <QGraphicsWidget>
+
+#include "pageview.h"
+
+
+class View : public QGraphicsWidget
+{
+ Q_OBJECT
+
+public:
+ View(QGraphicsItem *parent = 0);
+
+ QString title() const;
+ void setTitle(const QString &title);
+
+ PageView *pageView();
+
+public slots:
+ virtual void doTransitionIn();
+ virtual void doTransitionOut();
+
+signals:
+ void titleChanged();
+
+ void transitionInStarted();
+ void transitionInFinished();
+
+ void transitionOutStarted();
+ void transitionOutFinished();
+
+protected:
+ void setPageView(PageView *view);
+
+private:
+ QString m_title;
+ PageView *m_pageView;
+
+ friend class PageView;
+};
+
+#endif