summaryrefslogtreecommitdiff
path: root/src/plugins/qmldesigner/fxplugin
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qmldesigner/fxplugin')
-rw-r--r--src/plugins/qmldesigner/fxplugin/fx.metainfo143
-rw-r--r--src/plugins/qmldesigner/fxplugin/fxplugin.cpp49
-rw-r--r--src/plugins/qmldesigner/fxplugin/fxplugin.h58
-rw-r--r--src/plugins/qmldesigner/fxplugin/fxplugin.pri17
-rw-r--r--src/plugins/qmldesigner/fxplugin/fxplugin.pro4
-rw-r--r--src/plugins/qmldesigner/fxplugin/fxplugin.qrc15
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/blended-image-icon.pngbin0 -> 340 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/default-icon.pngbin0 -> 341 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/grid-icon.pngbin0 -> 369 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/image-icon.pngbin0 -> 292 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/item-icon.pngbin0 -> 293 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/list-icon.pngbin0 -> 424 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/mouse-region-icon.pngbin0 -> 511 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/rect-icon.pngbin0 -> 237 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/template_image.pngbin0 -> 4652 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/text-edit-icon.pngbin0 -> 368 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/text-icon.pngbin0 -> 582 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/images/widget.pngbin0 -> 716 bytes
-rw-r--r--src/plugins/qmldesigner/fxplugin/plugindestdir.pri5
19 files changed, 291 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/fxplugin/fx.metainfo b/src/plugins/qmldesigner/fxplugin/fx.metainfo
new file mode 100644
index 0000000000..fbc60236e2
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/fx.metainfo
@@ -0,0 +1,143 @@
+<metainfo>
+ <node name="Qt/Item" showInItemLibrary="true" category="QtFx" isContainer="true">
+ <propertyDefaultValue name="width" type="int" defaultValue="600"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="400"/>
+ <itemlibraryrepresentation name="Item" icon=":/fxplugin/images/item-icon.png">
+ <property name="width" type="int" value="200"/>
+ <property name="height" type="int" value="200"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/Rectangle" showInItemLibrary="true" category="QtFx" isContainer="true">
+ <itemlibraryrepresentation name="Rectangle" icon=":/fxplugin/images/rect-icon.png">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ <property name="color" type="QColor" value="#ffffff"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/Text" showInItemLibrary="true" category="QtFx">
+ <propertyDefaultValue name="width" type="int" defaultValue="80"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="20"/>
+ <itemlibraryrepresentation name="Text" icon=":/fxplugin/images/text-icon.png">
+ <property name="width" type="int" value="80"/>
+ <property name="height" type="int" value="20"/>
+ <property name="text" type="QString" value="text"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/TextEdit" showInItemLibrary="true" category="QtFx" isContainer="false">
+ <propertyDefaultValue name="width" type="int" defaultValue="80"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="20"/>
+ <itemlibraryrepresentation name="Text Edit" icon=":/fxplugin/images/text-edit-icon.png">
+ <property name="width" type="int" value="80"/>
+ <property name="height" type="int" value="20"/>
+ <property name="text" type="QString" value="textEdit"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/TextInput" showInItemLibrary="true" category="QtFx" isContainer="false">
+ <propertyDefaultValue name="width" type="int" defaultValue="80"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="20"/>
+ <itemlibraryrepresentation name="Text Input" icon=":/fxplugin/images/text-edit-icon.png">
+ <property name="width" type="int" value="80"/>
+ <property name="height" type="int" value="20"/>
+ <property name="text" type="QString" value="textInput"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/MouseRegion" showInItemLibrary="true" category="QtFx">
+ <inherits name="Item" />
+ <itemlibraryrepresentation name="Mouse Region" icon=":/fxplugin/images/mouse-region-icon.png">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/Image" showInItemLibrary="true" category="QtFx">
+ <propertyDefaultValue name="width" type="int" defaultValue="200"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="200"/>
+ <itemlibraryrepresentation name="Image" icon=":/fxplugin/images/image-icon.png">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ <property name="source" type="QUrl" value="qrc:/fxplugin/images/template_image.png"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/BorderImage" showInItemLibrary="true" category="QtFx">
+ <propertyDefaultValue name="width" type="int" defaultValue="200"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="200"/>
+ <itemlibraryrepresentation name="Border Image" icon=":/fxplugin/images/image-icon.png">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ <property name="source" type="QUrl" value="qrc:/fxplugin/images/template_image.png"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/Flickable" showInItemLibrary="true" category="QtFx">
+ <propertyDefaultValue name="width" type="int" defaultValue="300"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="300"/>
+ <itemlibraryrepresentation name="Flickable">
+ <property name="width" type="int" value="300"/>
+ <property name="height" type="int" value="300"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/Flipable" showInItemLibrary="true" category="QtFx">
+ <propertyDefaultValue name="width" type="int" defaultValue="300"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="300"/>
+ <itemlibraryrepresentation name="Flipable">
+ <property name="width" type="int" value="300"/>
+ <property name="height" type="int" value="300"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/GridView" showInItemLibrary="true" category="QtFx">
+ <itemlibraryrepresentation name="Grid View" icon=":/fxplugin/images/grid-icon.png">
+ <property name="width" type="int" value="300"/>
+ <property name="height" type="int" value="300"/>
+ </itemlibraryrepresentation>
+ </node>
+ <node name="Qt/ListView" showInItemLibrary="true" category="QtFx">
+ <itemlibraryrepresentation name="List View" icon=":/fxplugin/images/list-icon.png">
+ <property name="width" type="int" value="300"/>
+ <property name="height" type="int" value="300"/>
+ </itemlibraryrepresentation>
+ </node>
+
+ <node name="Qt/FocusScope" showInItemLibrary="true" category="QtFx">
+ <propertyDefaultValue name="width" type="int" defaultValue="100"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="100"/>
+ <itemlibraryrepresentation name="Focus Scope">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ </itemlibraryrepresentation>
+ </node>
+
+ <node name="Qt/Row" showInItemLibrary="true" category="QtFx" isContainer="true">
+ <propertyDefaultValue name="width" type="int" defaultValue="100"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="100"/>
+ <itemlibraryrepresentation name="Row">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ </itemlibraryrepresentation>
+ </node>
+
+ <node name="Qt/Column" showInItemLibrary="true" category="QtFx" isContainer="true">
+ <propertyDefaultValue name="width" type="int" defaultValue="100"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="100"/>
+ <itemlibraryrepresentation name="Column">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ </itemlibraryrepresentation>
+ </node>
+
+ <node name="Qt/Grid" showInItemLibrary="true" category="QtFx" isContainer="true">
+ <propertyDefaultValue name="width" type="int" defaultValue="100"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="100"/>
+ <itemlibraryrepresentation name="Grid">
+ <property name="width" type="int" value="100"/>
+ <property name="height" type="int" value="100"/>
+ </itemlibraryrepresentation>
+ </node>
+
+ <node name="Qt/WebView" showInItemLibrary="true" category="QtFx">
+ <propertyDefaultValue name="width" type="int" defaultValue="300"/>
+ <propertyDefaultValue name="height" type="int" defaultValue="300"/>
+ <itemlibraryrepresentation name="Web View">
+ <property name="width" type="int" value="300"/>
+ <property name="height" type="int" value="300"/>
+ <property name="url" type="QString" value="http://www.trolltech.com"/>
+ </itemlibraryrepresentation>
+ </node>
+</metainfo>
diff --git a/src/plugins/qmldesigner/fxplugin/fxplugin.cpp b/src/plugins/qmldesigner/fxplugin/fxplugin.cpp
new file mode 100644
index 0000000000..38858c22d1
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/fxplugin.cpp
@@ -0,0 +1,49 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2009 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 "fxplugin.h"
+#include <widgetplugin_helper.h>
+#include <QtCore/QtPlugin>
+
+namespace QmlDesigner {
+
+QString FxPlugin::pluginName()
+{
+ return ("FxPlugin");
+}
+
+QString FxPlugin::metaInfo()
+{
+ return QString(":/fxplugin/fx.metainfo");
+}
+
+}
+
+Q_EXPORT_PLUGIN(QmlDesigner::FxPlugin)
+
diff --git a/src/plugins/qmldesigner/fxplugin/fxplugin.h b/src/plugins/qmldesigner/fxplugin/fxplugin.h
new file mode 100644
index 0000000000..fe73ccc999
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/fxplugin.h
@@ -0,0 +1,58 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2009 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 FXPLUGIN_H
+#define FXPLUGIN_H
+
+#include <iwidgetplugin.h>
+#include <QtDeclarative/qml.h>
+
+QT_BEGIN_NAMESPACE
+QT_END_NAMESPACE
+
+namespace QmlDesigner {
+
+class FxPlugin : public QObject, QmlDesigner::IWidgetPlugin
+{
+ Q_OBJECT
+ Q_DISABLE_COPY(FxPlugin)
+ Q_INTERFACES(QmlDesigner::IWidgetPlugin)
+public:
+ FxPlugin() {}
+ ~FxPlugin() {}
+
+ QString metaInfo();
+ QString pluginName();
+
+};
+
+} // namespace QmlDesigner
+
+
+#endif // FXPLUGIN_H
diff --git a/src/plugins/qmldesigner/fxplugin/fxplugin.pri b/src/plugins/qmldesigner/fxplugin/fxplugin.pri
new file mode 100644
index 0000000000..9760d0e722
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/fxplugin.pri
@@ -0,0 +1,17 @@
+TARGET = fxplugin
+TEMPLATE = lib
+CONFIG += plugin
+
+QT += script \
+ declarative
+
+include (../core/iwidgetplugin.pri)
+
+DEFINES += FX_LIBRARY
+SOURCES += $$PWD/fxplugin.cpp
+
+HEADERS += $$PWD/fxplugin.h $$PWD/../core/include/iwidgetplugin.h
+
+RESOURCES += $$PWD/fxplugin.qrc
+
+OTHER_FILES += $$PWD/fx.metainfo
diff --git a/src/plugins/qmldesigner/fxplugin/fxplugin.pro b/src/plugins/qmldesigner/fxplugin/fxplugin.pro
new file mode 100644
index 0000000000..82e1c6503e
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/fxplugin.pro
@@ -0,0 +1,4 @@
+include(../../../../qtcreator.pri)
+
+include(fxplugin.pri)
+include(plugindestdir.pri)
diff --git a/src/plugins/qmldesigner/fxplugin/fxplugin.qrc b/src/plugins/qmldesigner/fxplugin/fxplugin.qrc
new file mode 100644
index 0000000000..886248877b
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/fxplugin.qrc
@@ -0,0 +1,15 @@
+<RCC>
+ <qresource prefix="/fxplugin" >
+ <file>images/blended-image-icon.png</file>
+ <file>images/image-icon.png</file>
+ <file>images/item-icon.png</file>
+ <file>images/mouse-region-icon.png</file>
+ <file>images/rect-icon.png</file>
+ <file>images/text-edit-icon.png</file>
+ <file>images/text-icon.png</file>
+ <file>images/list-icon.png</file>
+ <file>images/grid-icon.png</file>
+ <file>images/template_image.png</file>
+ <file>fx.metainfo</file>
+ </qresource>
+</RCC>
diff --git a/src/plugins/qmldesigner/fxplugin/images/blended-image-icon.png b/src/plugins/qmldesigner/fxplugin/images/blended-image-icon.png
new file mode 100644
index 0000000000..7c0911d63d
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/blended-image-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/default-icon.png b/src/plugins/qmldesigner/fxplugin/images/default-icon.png
new file mode 100644
index 0000000000..a90779f02a
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/default-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/grid-icon.png b/src/plugins/qmldesigner/fxplugin/images/grid-icon.png
new file mode 100644
index 0000000000..113e14c00a
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/grid-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/image-icon.png b/src/plugins/qmldesigner/fxplugin/images/image-icon.png
new file mode 100644
index 0000000000..4dfcae7d47
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/image-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/item-icon.png b/src/plugins/qmldesigner/fxplugin/images/item-icon.png
new file mode 100644
index 0000000000..82587ae0ec
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/item-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/list-icon.png b/src/plugins/qmldesigner/fxplugin/images/list-icon.png
new file mode 100644
index 0000000000..9c96743f0e
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/list-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/mouse-region-icon.png b/src/plugins/qmldesigner/fxplugin/images/mouse-region-icon.png
new file mode 100644
index 0000000000..8c23b6c0fc
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/mouse-region-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/rect-icon.png b/src/plugins/qmldesigner/fxplugin/images/rect-icon.png
new file mode 100644
index 0000000000..4555d886fb
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/rect-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/template_image.png b/src/plugins/qmldesigner/fxplugin/images/template_image.png
new file mode 100644
index 0000000000..a62b3057bc
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/template_image.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/text-edit-icon.png b/src/plugins/qmldesigner/fxplugin/images/text-edit-icon.png
new file mode 100644
index 0000000000..6a064ab07c
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/text-edit-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/text-icon.png b/src/plugins/qmldesigner/fxplugin/images/text-icon.png
new file mode 100644
index 0000000000..9ce62037ba
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/text-icon.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/images/widget.png b/src/plugins/qmldesigner/fxplugin/images/widget.png
new file mode 100644
index 0000000000..1cf960e61b
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/images/widget.png
Binary files differ
diff --git a/src/plugins/qmldesigner/fxplugin/plugindestdir.pri b/src/plugins/qmldesigner/fxplugin/plugindestdir.pri
new file mode 100644
index 0000000000..9dff900cbd
--- /dev/null
+++ b/src/plugins/qmldesigner/fxplugin/plugindestdir.pri
@@ -0,0 +1,5 @@
+macx {
+ DESTDIR = $$IDE_LIBRARY_PATH/QmlDesigner
+} else {
+ DESTDIR = $$PWD/../../../../lib/qmldesigner
+}