cards/qmlapplicationviewer/qmlapplicationviewer.h
author Wes Thierry <wesleyt@symbian.org>
Fri, 05 Nov 2010 11:32:03 +0000
changeset 8 a593fb7f78c0
parent 6 4c7de3e5789a
permissions -rwxr-xr-x
Adding defines for magic numbers
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
2e16639599b7 flipping cards example
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
// checksum 0x39ee version 0x10008
6
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     2
#ifndef QMLAPPLICATIONVIEWER_H
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     3
#define QMLAPPLICATIONVIEWER_H
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     4
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     5
#include <QtDeclarative/QDeclarativeView>
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     6
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     7
class QmlApplicationViewer : public QDeclarativeView
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     8
{
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
     9
public:
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    10
    enum Orientation {
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    11
        LockPortrait,
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    12
        LockLandscape,
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    13
        Auto
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    14
    };
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    15
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    16
    QmlApplicationViewer(QWidget *parent = 0);
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    17
    virtual ~QmlApplicationViewer();
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    18
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    19
    void setMainQmlFile(const QString &file);
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    20
    void addImportPath(const QString &path);
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    21
    void setOrientation(Orientation orientation);
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    22
    void show();
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    23
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    24
private:
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    25
    class QmlApplicationViewerPrivate *m_d;
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    26
};
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    27
4c7de3e5789a update the code to elimninate the jumping
Wesley Thierry <wesleyt@symbian.org>
parents: 3
diff changeset
    28
#endif // QMLAPPLICATIONVIEWER_H