OSDN Git Service

Update license.
[qt-creator-jp/qt-creator-jp.git] / src / plugins / qmldesigner / components / propertyeditor / basicwidgets.h
1 /**************************************************************************
2 **
3 ** This file is part of Qt Creator
4 **
5 ** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
6 **
7 ** Contact: Nokia Corporation (info@qt.nokia.com)
8 **
9 **
10 ** GNU Lesser General Public License Usage
11 **
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.
18 **
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.
22 **
23 ** Other Usage
24 **
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.
27 **
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
30 **
31 **************************************************************************/
32
33 #ifndef BASICWIDGETS_H
34 #define BASICWIDGETS_H
35
36 #include <qdeclarative.h>
37 #include <QGraphicsScene>
38 #include <QGraphicsView>
39 #include <QLabel>
40 #include <QPushButton>
41 #include <QToolButton>
42 #include <QCheckBox>
43 #include <QRadioButton>
44 #include <QLineEdit>
45 #include <QTextEdit>
46 #include <QPlainTextEdit>
47 #include <QDoubleSpinBox>
48 #include <QSlider>
49 #include <QDateEdit>
50 #include <QTimeEdit>
51 #include <QProgressBar>
52 #include <QGroupBox>
53 #include <QDial>
54 #include <QLCDNumber>
55 #include <QFontComboBox>
56 #include <QScrollBar>
57 #include <QCalendarWidget>
58 #include <QTabWidget>
59 #include <QAction>
60 #include "filewidget.h"
61 #include "layoutwidget.h"
62
63 QML_DECLARE_TYPE(QWidget)
64
65 //display
66 QML_DECLARE_TYPE(QLabel)
67 QML_DECLARE_TYPE(QProgressBar)
68 QML_DECLARE_TYPE(QLCDNumber)
69
70 //input
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)
85
86 //buttons
87 QML_DECLARE_TYPE(QPushButton)
88 QML_DECLARE_TYPE(QToolButton)
89 QML_DECLARE_TYPE(QCheckBox)
90 QML_DECLARE_TYPE(QRadioButton)
91
92 //containers
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)
99
100
101 class Action : public QAction {
102     Q_OBJECT
103 public:
104     Action(QObject *parent = 0) : QAction(parent) {}
105 };
106
107 QML_DECLARE_TYPE(QMenu)
108 QML_DECLARE_TYPE(Action)
109
110 //QML_DECLARE_TYPE(QToolBox)
111
112 //itemviews
113 //QML_DECLARE_TYPE(QListView)
114 //QML_DECLARE_TYPE(QTreeView)
115 //QML_DECLARE_TYPE(QTableView)
116
117 //top-level windows?
118 class BasicWidgets {
119 public:
120     static void registerDeclarativeTypes();
121 };
122
123 #endif // BASICWIDGETS_H