summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2010-12-09 16:43:03 +0100
committerThomas Hartmann <Thomas.Hartmann@nokia.com>2010-12-09 16:43:53 +0100
commit691aa41ebc4b4215b9f28a22442caaebc8bdb0e4 (patch)
treeb9b82481b6a73a8e763e42c50a20a2c987c402c3 /src/plugins
parentb6c44d75806835af106c90ac50367b19ed264f95 (diff)
downloadqt-creator-691aa41ebc4b4215b9f28a22442caaebc8bdb0e4.tar.gz
QmlDesigner: adding Meego plugin
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/qmldesigner/meegoplugin/images/item-icon.pngbin0 -> 396 bytes
-rw-r--r--src/plugins/qmldesigner/meegoplugin/images/item-icon16.pngbin0 -> 312 bytes
-rw-r--r--src/plugins/qmldesigner/meegoplugin/meego.metainfo26
-rw-r--r--src/plugins/qmldesigner/meegoplugin/meegoplugin.cpp54
-rw-r--r--src/plugins/qmldesigner/meegoplugin/meegoplugin.h58
-rw-r--r--src/plugins/qmldesigner/meegoplugin/meegoplugin.pri17
-rw-r--r--src/plugins/qmldesigner/meegoplugin/meegoplugin.pro4
-rw-r--r--src/plugins/qmldesigner/meegoplugin/meegoplugin.qrc7
-rw-r--r--src/plugins/qmldesigner/meegoplugin/plugindestdir.pri5
9 files changed, 171 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/meegoplugin/images/item-icon.png b/src/plugins/qmldesigner/meegoplugin/images/item-icon.png
new file mode 100644
index 0000000000..fc53d38ae7
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/images/item-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/meegoplugin/images/item-icon16.png b/src/plugins/qmldesigner/meegoplugin/images/item-icon16.png
new file mode 100644
index 0000000000..7d2d7a5050
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/images/item-icon16.png
Binary files differ
diff --git a/src/plugins/qmldesigner/meegoplugin/meego.metainfo b/src/plugins/qmldesigner/meegoplugin/meego.metainfo
new file mode 100644
index 0000000000..81cc782943
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/meego.metainfo
@@ -0,0 +1,26 @@
+<metainfo>
+ <node name="Label" icon=":/mxplugin/images/item-icon16.png">
+ <itemlibraryentry name="Label (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
+ </itemlibraryentry>
+ </node>
+ <node name="Button" icon=":/meegoplugin/images/item-icon16.png">
+ <itemlibraryentry name="Button (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
+ </itemlibraryentry>
+ </node>
+ <node name="Slider" icon=":/meegoplugin/images/item-icon16.png">
+ <itemlibraryentry name="Slider (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
+ </itemlibraryentry>
+ </node>
+ <node name="CheckBox" icon=":/meegoplugin/images/item-icon16.png">
+ <itemlibraryentry name="CheckBox (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
+ </itemlibraryentry>
+ </node>
+ <node name="Spinner" icon=":/meegoplugin/images/item-icon16.png">
+ <itemlibraryentry name="Spinner (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
+ </itemlibraryentry>
+ </node>
+ <node name="LineEdit" icon=":/meegoplugin/images/item-icon16.png">
+ <itemlibraryentry name="LineEdit (MeeGo)" category="Components MeeGo" libraryIcon=":/meegoplugin/images/item-icon.png">
+ </itemlibraryentry>
+ </node>
+</metainfo>
diff --git a/src/plugins/qmldesigner/meegoplugin/meegoplugin.cpp b/src/plugins/qmldesigner/meegoplugin/meegoplugin.cpp
new file mode 100644
index 0000000000..6eaaa0c564
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/meegoplugin.cpp
@@ -0,0 +1,54 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** 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.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+
+#include "meegoplugin.h"
+#include <widgetplugin_helper.h>
+#include <QtCore/QtPlugin>
+
+namespace QmlDesigner {
+
+
+MeegoPlugin::MeegoPlugin()
+{
+}
+
+QString MeegoPlugin::pluginName()
+{
+ return ("MeegoPlugin");
+}
+
+QString MeegoPlugin::metaInfo()
+{
+ return QString(":/meegoplugin/meego.metainfo");
+}
+
+}
+
+Q_EXPORT_PLUGIN(QmlDesigner::MeegoPlugin)
+
diff --git a/src/plugins/qmldesigner/meegoplugin/meegoplugin.h b/src/plugins/qmldesigner/meegoplugin/meegoplugin.h
new file mode 100644
index 0000000000..3e05d60075
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/meegoplugin.h
@@ -0,0 +1,58 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** Commercial Usage
+**
+** Licensees holding valid Qt Commercial licenses may use this file in
+** accordance with the Qt Commercial License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Nokia.
+**
+** 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.
+**
+** If you are unsure which license is appropriate for your use, please
+** contact the sales department at http://qt.nokia.com/contact.
+**
+**************************************************************************/
+
+#ifndef MEEGOPLUGIN_H
+#define MEEGOPLUGIN_H
+
+#include <iwidgetplugin.h>
+#include <QtDeclarative/qdeclarative.h>
+
+QT_BEGIN_NAMESPACE
+QT_END_NAMESPACE
+
+namespace QmlDesigner {
+
+class MeegoPlugin : public QObject, QmlDesigner::IWidgetPlugin
+{
+ Q_OBJECT
+ Q_DISABLE_COPY(MeegoPlugin)
+ Q_INTERFACES(QmlDesigner::IWidgetPlugin)
+public:
+ MeegoPlugin();
+ ~MeegoPlugin() {}
+
+ QString metaInfo();
+ QString pluginName();
+
+};
+
+} // namespace QmlDesigner
+
+
+#endif // MEEGOPLUGIN_H
diff --git a/src/plugins/qmldesigner/meegoplugin/meegoplugin.pri b/src/plugins/qmldesigner/meegoplugin/meegoplugin.pri
new file mode 100644
index 0000000000..04abc89874
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/meegoplugin.pri
@@ -0,0 +1,17 @@
+TARGET = meegoplugin
+TEMPLATE = lib
+CONFIG += plugin
+
+QT += script \
+ declarative
+
+include (../designercore/iwidgetplugin.pri)
+
+DEFINES += SYMBIAN_LIBRARY
+SOURCES += $$PWD/meegoplugin.cpp
+
+HEADERS += $$PWD/meegoplugin.h $$PWD/../designercore/include/iwidgetplugin.h
+
+RESOURCES += $$PWD/meegoplugin.qrc
+
+OTHER_FILES += $$PWD/meego.metainfo
diff --git a/src/plugins/qmldesigner/meegoplugin/meegoplugin.pro b/src/plugins/qmldesigner/meegoplugin/meegoplugin.pro
new file mode 100644
index 0000000000..7781017a17
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/meegoplugin.pro
@@ -0,0 +1,4 @@
+include(../../../../qtcreator.pri)
+include(../../../private_headers.pri)
+include(meegoplugin.pri)
+include(plugindestdir.pri)
diff --git a/src/plugins/qmldesigner/meegoplugin/meegoplugin.qrc b/src/plugins/qmldesigner/meegoplugin/meegoplugin.qrc
new file mode 100644
index 0000000000..f52939e038
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/meegoplugin.qrc
@@ -0,0 +1,7 @@
+<RCC>
+ <qresource prefix="/meegoplugin">
+ <file>meego.metainfo</file>
+ <file>images/item-icon16.png</file>
+ <file>images/item-icon.png</file>
+ </qresource>
+</RCC>
diff --git a/src/plugins/qmldesigner/meegoplugin/plugindestdir.pri b/src/plugins/qmldesigner/meegoplugin/plugindestdir.pri
new file mode 100644
index 0000000000..24f0c19b72
--- /dev/null
+++ b/src/plugins/qmldesigner/meegoplugin/plugindestdir.pri
@@ -0,0 +1,5 @@
+macx {
+ DESTDIR = $$IDE_LIBRARY_PATH/QmlDesigner
+} else {
+ DESTDIR = $$IDE_BUILD_TREE/lib/qmldesigner
+}