diff --git a/src/plugins/qmldesigner/symbianplugin/images/item-icon.png b/src/plugins/qmldesigner/symbianplugin/images/item-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..fc53d38ae7f7385b7a109bcc5e27b4fc4bb31361 Binary files /dev/null and b/src/plugins/qmldesigner/symbianplugin/images/item-icon.png differ diff --git a/src/plugins/qmldesigner/symbianplugin/images/item-icon16.png b/src/plugins/qmldesigner/symbianplugin/images/item-icon16.png new file mode 100644 index 0000000000000000000000000000000000000000..7d2d7a505020408d752a153ecf948bf6c2d0847f Binary files /dev/null and b/src/plugins/qmldesigner/symbianplugin/images/item-icon16.png differ diff --git a/src/plugins/qmldesigner/symbianplugin/plugindestdir.pri b/src/plugins/qmldesigner/symbianplugin/plugindestdir.pri new file mode 100644 index 0000000000000000000000000000000000000000..24f0c19b72b42e31ad229db03956a15da2cc42f4 --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/plugindestdir.pri @@ -0,0 +1,5 @@ +macx { + DESTDIR = $$IDE_LIBRARY_PATH/QmlDesigner +} else { + DESTDIR = $$IDE_BUILD_TREE/lib/qmldesigner +} diff --git a/src/plugins/qmldesigner/symbianplugin/symbian.metainfo b/src/plugins/qmldesigner/symbianplugin/symbian.metainfo new file mode 100644 index 0000000000000000000000000000000000000000..05a725a6814d4aed1ad5347bfb3edc5ae9f3b30a --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/symbian.metainfo @@ -0,0 +1,49 @@ +<metainfo> + <node name="Label" icon=":/mxplugin/images/item-icon16.png"> + <itemlibraryentry name="Label (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="30"/> + <property name="text" type="QString" value="Label"/> + </itemlibraryentry> + </node> + <node name="Button" icon=":/symbianplugin/images/item-icon16.png"> + <itemlibraryentry name="Button (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="30"/> + <property name="text" type="QString" value="Button"/> + </itemlibraryentry> + </node> + <node name="Slider" icon=":/symbianplugin/images/item-icon16.png"> + </node> + <node name="CheckBox" icon=":/symbianplugin/images/item-icon16.png"> + <itemlibraryentry name="CheckBox (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian"> + <property name="width" type="int" value="180"/> + <property name="height" type="int" value="30"/> + <property name="text" type="QString" value="CheckBox"/> + </itemlibraryentry> + </node> + <node name="RadioButton" icon=":/symbianplugin/images/item-icon16.png"> + <itemlibraryentry name="RadioButton (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian"> + <property name="width" type="int" value="180"/> + <property name="height" type="int" value="30"/> + <property name="text" type="QString" value="RadioButton"/> + </itemlibraryentry> + </node> + <node name="Spinner" icon=":/symbianplugin/images/item-icon16.png"> + </node> + <node name="Switch" icon=":/symbianplugin/images/item-icon16.png"> + </node> + <node name="LineEdit" icon=":/symbianplugin/images/item-icon16.png"> + <itemlibraryentry name="LineEdit (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="30"/> + <property name="text" type="QString" value="LineEdit"/> + </itemlibraryentry> + </node> + <node name="ProgressBar" icon=":/symbianplugin/images/item-icon16.png"> + <itemlibraryentry name="ProgressBar (Symbian)" category="Components Symbian" libraryIcon=":/symbianplugin/images/item-icon.png" version="1.0" requiredImport="Qt.labs.Symbian"> + <property name="width" type="int" value="100"/> + <property name="height" type="int" value="30"/> + </itemlibraryentry> + </node> +</metainfo> diff --git a/src/plugins/qmldesigner/symbianplugin/symbianplugin.cpp b/src/plugins/qmldesigner/symbianplugin/symbianplugin.cpp new file mode 100644 index 0000000000000000000000000000000000000000..ef157bf62b333159aedbe25d24eeb85ed04db078 --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/symbianplugin.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 "symbianplugin.h" +#include <widgetplugin_helper.h> +#include <QtCore/QtPlugin> + +namespace QmlDesigner { + + +SymbianPlugin::SymbianPlugin() +{ +} + +QString SymbianPlugin::pluginName() +{ + return ("SymbianPlugin"); +} + +QString SymbianPlugin::metaInfo() +{ + return QString(":/symbianplugin/symbian.metainfo"); +} + +} + +Q_EXPORT_PLUGIN(QmlDesigner::SymbianPlugin) + diff --git a/src/plugins/qmldesigner/symbianplugin/symbianplugin.h b/src/plugins/qmldesigner/symbianplugin/symbianplugin.h new file mode 100644 index 0000000000000000000000000000000000000000..6750c03c3db33eecc3e0b6f901820148f223e06a --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/symbianplugin.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 SymbianPLUGIN_H +#define SymbianPLUGIN_H + +#include <iwidgetplugin.h> +#include <QtDeclarative/qdeclarative.h> + +QT_BEGIN_NAMESPACE +QT_END_NAMESPACE + +namespace QmlDesigner { + +class SymbianPlugin : public QObject, QmlDesigner::IWidgetPlugin +{ + Q_OBJECT + Q_DISABLE_COPY(SymbianPlugin) + Q_INTERFACES(QmlDesigner::IWidgetPlugin) +public: + SymbianPlugin(); + ~SymbianPlugin() {} + + QString metaInfo(); + QString pluginName(); + +}; + +} // namespace QmlDesigner + + +#endif // SymbianPLUGIN_H diff --git a/src/plugins/qmldesigner/symbianplugin/symbianplugin.pri b/src/plugins/qmldesigner/symbianplugin/symbianplugin.pri new file mode 100644 index 0000000000000000000000000000000000000000..28d6323c68a1a9d9c0d76fdf33a052828982501f --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/symbianplugin.pri @@ -0,0 +1,17 @@ +TARGET = symbianplugin +TEMPLATE = lib +CONFIG += plugin + +QT += script \ + declarative + +include (../designercore/iwidgetplugin.pri) + +DEFINES += SYMBIAN_LIBRARY +SOURCES += $$PWD/symbianplugin.cpp + +HEADERS += $$PWD/symbianplugin.h $$PWD/../designercore/include/iwidgetplugin.h + +RESOURCES += $$PWD/symbianplugin.qrc + +OTHER_FILES += $$PWD/symbian.metainfo diff --git a/src/plugins/qmldesigner/symbianplugin/symbianplugin.pro b/src/plugins/qmldesigner/symbianplugin/symbianplugin.pro new file mode 100644 index 0000000000000000000000000000000000000000..6ff795d27a4f285b3103d593d990315fc86a8cfc --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/symbianplugin.pro @@ -0,0 +1,4 @@ +include(../../../../qtcreator.pri) +include(../../../private_headers.pri) +include(symbianplugin.pri) +include(plugindestdir.pri) diff --git a/src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc b/src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc new file mode 100644 index 0000000000000000000000000000000000000000..7316236119d97df9043e2de5885bfb5c86b0e3c4 --- /dev/null +++ b/src/plugins/qmldesigner/symbianplugin/symbianplugin.qrc @@ -0,0 +1,7 @@ +<RCC> + <qresource prefix="/symbianplugin"> + <file>symbian.metainfo</file> + <file>images/item-icon16.png</file> + <file>images/item-icon.png</file> + </qresource> +</RCC>