1 /**************************************************************************
3 ** This file is part of Qt Creator
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
7 ** Contact: Nokia Corporation (info@qt.nokia.com)
10 ** GNU Lesser General Public License Usage
12 ** This file may be used under the terms of the GNU Lesser General Public
13 ** License version 2.1 as published by the Free Software Foundation and
14 ** appearing in the file LICENSE.LGPL included in the packaging of this file.
15 ** Please review the following information to ensure the GNU Lesser General
16 ** Public License version 2.1 requirements will be met:
17 ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
19 ** In addition, as a special exception, Nokia gives you certain additional
20 ** rights. These rights are described in the Nokia Qt LGPL Exception
21 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
25 ** Alternatively, this file may be used in accordance with the terms and
26 ** conditions contained in a signed written agreement between you and Nokia.
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
31 **************************************************************************/
33 #ifndef BASICWIDGETS_H
34 #define BASICWIDGETS_H
36 #include <qdeclarative.h>
37 #include <QGraphicsScene>
38 #include <QGraphicsView>
40 #include <QPushButton>
41 #include <QToolButton>
43 #include <QRadioButton>
46 #include <QPlainTextEdit>
47 #include <QDoubleSpinBox>
51 #include <QProgressBar>
55 #include <QFontComboBox>
57 #include <QCalendarWidget>
60 #include "filewidget.h"
61 #include "layoutwidget.h"
63 QML_DECLARE_TYPE(QWidget)
66 QML_DECLARE_TYPE(QLabel)
67 QML_DECLARE_TYPE(QProgressBar)
68 QML_DECLARE_TYPE(QLCDNumber)
71 QML_DECLARE_TYPE(QLineEdit)
72 QML_DECLARE_TYPE(QTextEdit)
73 QML_DECLARE_TYPE(QPlainTextEdit)
74 QML_DECLARE_TYPE(QSpinBox)
75 QML_DECLARE_TYPE(QDoubleSpinBox)
76 QML_DECLARE_TYPE(QSlider)
77 QML_DECLARE_TYPE(QDateTimeEdit)
78 QML_DECLARE_TYPE(QDateEdit)
79 QML_DECLARE_TYPE(QTimeEdit)
80 QML_DECLARE_TYPE(QFontComboBox)
81 QML_DECLARE_TYPE(QDial)
82 QML_DECLARE_TYPE(QScrollBar)
83 QML_DECLARE_TYPE(QCalendarWidget)
84 QML_DECLARE_TYPE(QComboBox)
87 QML_DECLARE_TYPE(QPushButton)
88 QML_DECLARE_TYPE(QToolButton)
89 QML_DECLARE_TYPE(QCheckBox)
90 QML_DECLARE_TYPE(QRadioButton)
93 QML_DECLARE_TYPE(QGroupBox)
94 QML_DECLARE_TYPE(QFrame)
95 QML_DECLARE_TYPE(QScrollArea)
96 QML_DECLARE_TYPE(QTabWidget)
97 QML_DECLARE_TYPE(FileWidget)
98 QML_DECLARE_TYPE(LayoutWidget)
101 class Action : public QAction {
104 Action(QObject *parent = 0) : QAction(parent) {}
107 QML_DECLARE_TYPE(QMenu)
108 QML_DECLARE_TYPE(Action)
110 //QML_DECLARE_TYPE(QToolBox)
113 //QML_DECLARE_TYPE(QListView)
114 //QML_DECLARE_TYPE(QTreeView)
115 //QML_DECLARE_TYPE(QTableView)
120 static void registerDeclarativeTypes();
123 #endif // BASICWIDGETS_H