QmlDesigner.itemLibrary: adding plugin for extra components
A new extra component plugin.
54
src/plugins/qmldesigner/extrasplugin/extras.metainfo
Normal file
@@ -0,0 +1,54 @@
|
||||
<metainfo>
|
||||
<node name="CountBubble" icon=":/extrasplugin/images/count-bubble-16.png">
|
||||
<itemlibraryentry name="CountBubble" category="Components Extras" libraryIcon=":/extrasplugin/images/count-bubble-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="DatePickerDialog" icon=":/extrasplugin/images/date-picker-16.png">
|
||||
<itemlibraryentry name="DatePickerDialog" category="Components Extras" libraryIcon=":/extrasplugin/images/date-picker-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="InfoBanner" icon=":/extrasplugin/images/info-banner-16.png">
|
||||
<itemlibraryentry name="InfoBanner" category="Components Extras" libraryIcon=":/extrasplugin/images/info-banner-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="ListButton" icon=":/extrasplugin/images/list-button-16.png">
|
||||
<itemlibraryentry name="ListButton" category="Components Extras" libraryIcon=":/extrasplugin/images/list-button-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="ListDelegate" icon=":/extrasplugin/images/list-delegate-16.png">
|
||||
<itemlibraryentry name="ListDelegate" category="Components Extras" libraryIcon=":/extrasplugin/images/list-delegate-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="MoreIndicator" icon=":/extrasplugin/images/more-indicator-16.png">
|
||||
<itemlibraryentry name="MoreIndicator" category="Components Extras" libraryIcon=":/extrasplugin/images/more-indicator-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="PageIndicator" icon=":/extrasplugin/images/page-indicator-16.png">
|
||||
<itemlibraryentry name="PageIndicator" category="Components Extras" libraryIcon=":/extrasplugin/images/page-indicator-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="RatingIndicator" icon=":/extrasplugin/images/rating-indicator-16.png">
|
||||
<itemlibraryentry name="RatingIndicator" category="Components Extras" libraryIcon=":/extrasplugin/images/rating-indicator-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="TimePickerDialog" icon=":/extrasplugin/images/time-picker-16.png">
|
||||
<itemlibraryentry name="TimePickerDialog" category="Components Extras" libraryIcon=":/extrasplugin/images/time-picker-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="Tumbler" icon=":/extrasplugin/images/tumbler-16.png">
|
||||
<itemlibraryentry name="Tumbler" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="TumblerButton" icon=":/extrasplugin/images/tumbler-button-16.png">
|
||||
<itemlibraryentry name="TumblerButton" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-button-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="TumblerColumn" icon=":/extrasplugin/images/tumbler-column-16.png">
|
||||
<itemlibraryentry name="TumblerColumn" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-column-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
<node name="TumblerDialog" icon=":/extrasplugin/images/tumbler-dialog-16.png">
|
||||
<itemlibraryentry name="TumblerDialog" category="Components Extras" libraryIcon=":/extrasplugin/images/tumbler-dialog-24.png" version="1.0" requiredImport="com.nokia.extras">
|
||||
</itemlibraryentry>
|
||||
</node>
|
||||
</metainfo>
|
58
src/plugins/qmldesigner/extrasplugin/extrasplugin.cpp
Normal file
@@ -0,0 +1,58 @@
|
||||
/**************************************************************************
|
||||
**
|
||||
** This file is part of Qt Creator
|
||||
**
|
||||
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** No Commercial Usage
|
||||
**
|
||||
** This file contains pre-release code and may not be distributed.
|
||||
** You may use this file in accordance with the terms and conditions
|
||||
** contained in the Technology Preview License Agreement accompanying
|
||||
** this package.
|
||||
**
|
||||
** 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.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
**
|
||||
**************************************************************************/
|
||||
|
||||
#include "extrasplugin.h"
|
||||
#include <widgetplugin_helper.h>
|
||||
#include <QtCore/QtPlugin>
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
|
||||
ExtrasPlugin::ExtrasPlugin()
|
||||
{
|
||||
}
|
||||
|
||||
QString ExtrasPlugin::pluginName()
|
||||
{
|
||||
return ("ExtrasPlugin");
|
||||
}
|
||||
|
||||
QString ExtrasPlugin::metaInfo()
|
||||
{
|
||||
return QString(":/extrasplugin/extras.metainfo");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Q_EXPORT_PLUGIN(QmlDesigner::ExtrasPlugin)
|
||||
|
62
src/plugins/qmldesigner/extrasplugin/extrasplugin.h
Normal file
@@ -0,0 +1,62 @@
|
||||
/**************************************************************************
|
||||
**
|
||||
** This file is part of Qt Creator
|
||||
**
|
||||
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** No Commercial Usage
|
||||
**
|
||||
** This file contains pre-release code and may not be distributed.
|
||||
** You may use this file in accordance with the terms and conditions
|
||||
** contained in the Technology Preview License Agreement accompanying
|
||||
** this package.
|
||||
**
|
||||
** 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.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** If you have questions regarding the use of this file, please contact
|
||||
** Nokia at qt-info@nokia.com.
|
||||
**
|
||||
**************************************************************************/
|
||||
|
||||
#ifndef EXTRASPLUGIN_H
|
||||
#define EXTRASPLUGIN_H
|
||||
|
||||
#include <iwidgetplugin.h>
|
||||
#include <QtDeclarative/qdeclarative.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace QmlDesigner {
|
||||
|
||||
class ExtrasPlugin : public QObject, QmlDesigner::IWidgetPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_DISABLE_COPY(ExtrasPlugin)
|
||||
Q_INTERFACES(QmlDesigner::IWidgetPlugin)
|
||||
public:
|
||||
ExtrasPlugin();
|
||||
~ExtrasPlugin() {}
|
||||
|
||||
QString metaInfo();
|
||||
QString pluginName();
|
||||
|
||||
};
|
||||
|
||||
} // namespace QmlDesigner
|
||||
|
||||
|
||||
#endif // EXTRASPLUGIN_H
|
17
src/plugins/qmldesigner/extrasplugin/extrasplugin.pri
Normal file
@@ -0,0 +1,17 @@
|
||||
TARGET = extrasplugin
|
||||
TEMPLATE = lib
|
||||
CONFIG += plugin
|
||||
|
||||
QT += script \
|
||||
declarative
|
||||
|
||||
include (../designercore/iwidgetplugin.pri)
|
||||
|
||||
DEFINES += SYMBIAN_LIBRARY
|
||||
SOURCES += $$PWD/extrasplugin.cpp
|
||||
|
||||
HEADERS += $$PWD/extrasplugin.h $$PWD/../designercore/include/iwidgetplugin.h
|
||||
|
||||
RESOURCES += $$PWD/extrasplugin.qrc
|
||||
|
||||
OTHER_FILES += $$PWD/extras.metainfo
|
4
src/plugins/qmldesigner/extrasplugin/extrasplugin.pro
Normal file
@@ -0,0 +1,4 @@
|
||||
include(../../../../qtcreator.pri)
|
||||
include(../../../private_headers.pri)
|
||||
include(extrasplugin.pri)
|
||||
include(plugindestdir.pri)
|
31
src/plugins/qmldesigner/extrasplugin/extrasplugin.qrc
Normal file
@@ -0,0 +1,31 @@
|
||||
<RCC>
|
||||
<qresource prefix="/extrasplugin">
|
||||
<file>extras.metainfo</file>
|
||||
<file>images/count-bubble-16.png</file>
|
||||
<file>images/count-bubble-24.png</file>
|
||||
<file>images/date-picker-16.png</file>
|
||||
<file>images/date-picker-24.png</file>
|
||||
<file>images/info-banner-16.png</file>
|
||||
<file>images/info-banner-24.png</file>
|
||||
<file>images/list-button-16.png</file>
|
||||
<file>images/list-button-24.png</file>
|
||||
<file>images/list-delegate-16.png</file>
|
||||
<file>images/list-delegate-24.png</file>
|
||||
<file>images/more-indicator-16.png</file>
|
||||
<file>images/more-indicator-24.png</file>
|
||||
<file>images/page-indicator-16.png</file>
|
||||
<file>images/page-indicator-24.png</file>
|
||||
<file>images/rating-indicator-16.png</file>
|
||||
<file>images/rating-indicator-24.png</file>
|
||||
<file>images/time-picker-16.png</file>
|
||||
<file>images/time-picker-24.png</file>
|
||||
<file>images/tumbler-16.png</file>
|
||||
<file>images/tumbler-24.png</file>
|
||||
<file>images/tumbler-button-16.png</file>
|
||||
<file>images/tumbler-button-24.png</file>
|
||||
<file>images/tumbler-column-16.png</file>
|
||||
<file>images/tumbler-column-24.png</file>
|
||||
<file>images/tumbler-dialog-16.png</file>
|
||||
<file>images/tumbler-dialog-24.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
BIN
src/plugins/qmldesigner/extrasplugin/images/count-bubble-16.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/count-bubble-24.png
Normal file
After Width: | Height: | Size: 985 B |
BIN
src/plugins/qmldesigner/extrasplugin/images/date-picker-16.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/date-picker-24.png
Normal file
After Width: | Height: | Size: 606 B |
BIN
src/plugins/qmldesigner/extrasplugin/images/info-banner-16.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/info-banner-24.png
Normal file
After Width: | Height: | Size: 323 B |
BIN
src/plugins/qmldesigner/extrasplugin/images/list-button-16.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/list-button-24.png
Normal file
After Width: | Height: | Size: 481 B |
BIN
src/plugins/qmldesigner/extrasplugin/images/list-delegate-16.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/list-delegate-24.png
Normal file
After Width: | Height: | Size: 425 B |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 896 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 579 B |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.1 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/time-picker-16.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/time-picker-24.png
Normal file
After Width: | Height: | Size: 875 B |
BIN
src/plugins/qmldesigner/extrasplugin/images/tumbler-16.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
src/plugins/qmldesigner/extrasplugin/images/tumbler-24.png
Normal file
After Width: | Height: | Size: 836 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 880 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 991 B |
After Width: | Height: | Size: 3.1 KiB |
After Width: | Height: | Size: 414 B |
5
src/plugins/qmldesigner/extrasplugin/plugindestdir.pri
Normal file
@@ -0,0 +1,5 @@
|
||||
macx {
|
||||
DESTDIR = $$IDE_LIBRARY_PATH/QmlDesigner
|
||||
} else {
|
||||
DESTDIR = $$IDE_BUILD_TREE/lib/qmldesigner
|
||||
}
|
@@ -1,3 +1,3 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS = qmldesignerplugin.pro qtquickplugin symbianplugin meegoplugin
|
||||
SUBDIRS = qmldesignerplugin.pro qtquickplugin symbianplugin meegoplugin extrasplugin
|
||||
|