Commit b6c44d75 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: adding Symbian plugin

parent 1cbf0f26
macx {
DESTDIR = $$IDE_LIBRARY_PATH/QmlDesigner
} else {
DESTDIR = $$IDE_BUILD_TREE/lib/qmldesigner
}
<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>
/**************************************************************************
**
** 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)
/**************************************************************************
**
** 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
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
include(../../../../qtcreator.pri)
include(../../../private_headers.pri)
include(symbianplugin.pri)
include(plugindestdir.pri)
<RCC>
<qresource prefix="/symbianplugin">
<file>symbian.metainfo</file>
<file>images/item-icon16.png</file>
<file>images/item-icon.png</file>
</qresource>
</RCC>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment