From e5333359ef3c1e645e66f6ab59ba1ea08a68808e Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Wed, 20 Jun 2012 15:49:50 +0200 Subject: [PATCH] Fix dependencies of the QtTools module. - Remove phonon designer plugin. - Disable the ActiveX designer plugin, which will later be moved to the ActiveQt module. Change-Id: I36240e9d22f852c2a3bbfcb00052221adfb2e681 Reviewed-by: Lars Knoll --- .../plugins/phononwidgets/images/seekslider.png | Bin 444 -> 0 bytes .../plugins/phononwidgets/images/videoplayer.png | Bin 644 -> 0 bytes .../plugins/phononwidgets/images/videowidget.png | Bin 794 -> 0 bytes .../plugins/phononwidgets/images/volumeslider.png | Bin 470 -> 0 bytes .../src/plugins/phononwidgets/phononcollection.cpp | 81 ----------- .../src/plugins/phononwidgets/phononwidgets.json | 1 - .../src/plugins/phononwidgets/phononwidgets.pro | 25 ---- .../src/plugins/phononwidgets/phononwidgets.qrc | 8 -- .../src/plugins/phononwidgets/seeksliderplugin.cpp | 117 ---------------- .../src/plugins/phononwidgets/seeksliderplugin.h | 75 ---------- .../plugins/phononwidgets/videoplayerplugin.cpp | 135 ------------------ .../src/plugins/phononwidgets/videoplayerplugin.h | 75 ---------- .../plugins/phononwidgets/videoplayertaskmenu.cpp | 154 --------------------- .../plugins/phononwidgets/videoplayertaskmenu.h | 83 ----------- .../plugins/phononwidgets/volumesliderplugin.cpp | 117 ---------------- .../src/plugins/phononwidgets/volumesliderplugin.h | 75 ---------- src/designer/src/plugins/plugins.pro | 3 +- 17 files changed, 1 insertion(+), 948 deletions(-) delete mode 100644 src/designer/src/plugins/phononwidgets/images/seekslider.png delete mode 100644 src/designer/src/plugins/phononwidgets/images/videoplayer.png delete mode 100644 src/designer/src/plugins/phononwidgets/images/videowidget.png delete mode 100644 src/designer/src/plugins/phononwidgets/images/volumeslider.png delete mode 100644 src/designer/src/plugins/phononwidgets/phononcollection.cpp delete mode 100644 src/designer/src/plugins/phononwidgets/phononwidgets.json delete mode 100644 src/designer/src/plugins/phononwidgets/phononwidgets.pro delete mode 100644 src/designer/src/plugins/phononwidgets/phononwidgets.qrc delete mode 100644 src/designer/src/plugins/phononwidgets/seeksliderplugin.cpp delete mode 100644 src/designer/src/plugins/phononwidgets/seeksliderplugin.h delete mode 100644 src/designer/src/plugins/phononwidgets/videoplayerplugin.cpp delete mode 100644 src/designer/src/plugins/phononwidgets/videoplayerplugin.h delete mode 100644 src/designer/src/plugins/phononwidgets/videoplayertaskmenu.cpp delete mode 100644 src/designer/src/plugins/phononwidgets/videoplayertaskmenu.h delete mode 100644 src/designer/src/plugins/phononwidgets/volumesliderplugin.cpp delete mode 100644 src/designer/src/plugins/phononwidgets/volumesliderplugin.h diff --git a/src/designer/src/plugins/phononwidgets/images/seekslider.png b/src/designer/src/plugins/phononwidgets/images/seekslider.png deleted file mode 100644 index a1f4cb0d506e036e52f51984afbd8d71d3003891..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 444 zcmV;t0YmkN?OFD2uNv<*6q0Dub=~tY47lq$)V3`ed%Cdi`=6V# zI*voCsv=V>%aT}@CA{vVXcLqjk4HpVh$?4lVac-0_C$6NZ2|;r3~id`FX?754<19o z!wq=S)lwLSai$)N6px|YLsA;MR%Z+~#xHMQ=;7&kt~mN&ehQ@xWnfLyW-)!=qc98^ z7==F+vQQL#REjaYu50$Js_HC;_kbyW{eE9A#p$%D7{H)72!gc|V_^eK({ljZ`2enNz#2_2+s2yDT=~W!UAYf6qo1t0vOx2 mjVC`J_DshLqyMm90R{lrj%7AM+Na9^000034~~MF}uh9ni=QK z-Ts)}y+iTxj>ntXee;>`&AgcfPRXp{aOkSIseG^?=8p0QHbFNwZVi+#gu1u)aiDyY zz#1Ax36g|EN;!3rwS|y{=hDb2zH6RyKrDjW=}ci1Lkg8hNn$bpm_UW@(>pa8_0ybE z^!zbaS64JI1J^-a*VRgV--kaQ&xHy(5s(^78$~GnMT;>Fz5D7bzWfwecDrEoYz~z2 zE8rqj$LSIrj$%B1`vWhwj=-EYTCJu^mbK7&#lqYSO5&VniQAt?xc~Y)K70$+5_QqA z?FzJBaS1A-g!8Ts}tsDYg&Ygdc|hZ zQwrw^`dwQA*Kp&~SwvxoFcCAMvR-lZM3HShxrkV8R1k#5?$<#L#df1ntC%8>qUs@- z13kl7wT_qFj=J_?9MgY=_WKud#Yr6R(EUmGXm7<`#6_>aBB%CgveKTK;ED=Y|A(j; eyJ`E600RJ3ea7OZ5%^jF0000I9FXfPOJB63hLYT~a%!WI7njwU7^O#cZFc=2i^5=e{~)QE6E6ycy;1W79^l$<90MI@)Zb z!)WgADbVy*2BAPf8%SnMZ0k1G2JZ9vorf>6k~FZEGLYCZ zIi5br2aG@1@$2iydfH^a4EcG$%LyHE0+*M`h|~nIN;eSg4*^$`Iuhhq7c9exY86^Q z!o-Ii`>%B!zc+Pk(4kw~MZf}DdsIP7;}JAgmtiso77pU3O*JacM=DWAdwg`^v7CKr zBa4*;WfXn2n&JhkiiEQb6*yHNK-RE1W}>D3TJ#qZqV?qn2Nk5YMW`&-zDi+I6(3qp zRw7ax@PcdTw1z4bx@lu0t-Fp{nujVC{u?n)W(;gnSVXpnW>_{_n>3thtRP>@3m$pg zfzg7T6m8*I4}Q}4TaldQHrj_TG@i+=^$rhu(=C-svBu+Z*5&0T*2Tqz1LwIXk4-YD zs>&NQO=As(LY&9paKnM~+!KoF>6xN6K-37QP`O_0>fXBI-q^3~q(~{CvLty!aV)4& z*~g)v;qdX@P?&}>ChDiCqt#WxQWScAMMR9dMa38JQa(+-{EXhd2ubr{h{SO7?VkVx Y0H-5eEE;F3#Q*>R07*qoM6N<$f=&{B2><{9 diff --git a/src/designer/src/plugins/phononwidgets/images/volumeslider.png b/src/designer/src/plugins/phononwidgets/images/volumeslider.png deleted file mode 100644 index ea81dd2a11c776e0ddcc075fc03f3b385dec8a25..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 470 zcmV;{0V)28P)l3))ytukw{ zk>vl=lv^>M&!=Ts^4)I7w%aX}BRUU);7zOQY&L@|%b;$X%?3Qr1MRIKWxZaHA&a4M zp_aVg?~5~)U8oKTLMB6tqBs=Q23N^4lp=jWRkX7exMov~T%}lsR*{NgZdac<^_UMH z-`VBWbyIQtDqov11OQ<9#Xqu+S_xK2y`@YX>mydYHwc>wrZGH(b0D$>Vk>@4UTL1t6 M07*qoM6N<$f+qva&;S4c diff --git a/src/designer/src/plugins/phononwidgets/phononcollection.cpp b/src/designer/src/plugins/phononwidgets/phononcollection.cpp deleted file mode 100644 index 5400ed9..0000000 --- a/src/designer/src/plugins/phononwidgets/phononcollection.cpp +++ /dev/null @@ -1,81 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "videoplayerplugin.h" -#include "seeksliderplugin.h" -#include "volumesliderplugin.h" - -#include -#include - -QT_BEGIN_NAMESPACE - -class PhononCollection: public QObject, public QDesignerCustomWidgetCollectionInterface -{ - Q_OBJECT - Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QDesignerCustomWidgetCollectionInterface" FILE "phononwidgets.json") - Q_INTERFACES(QDesignerCustomWidgetCollectionInterface) -public: - explicit PhononCollection(QObject *parent = 0); - - virtual QList customWidgets() const; - -private: - QList m_plugins; -}; - -PhononCollection::PhononCollection(QObject *parent) : - QObject(parent) -{ - const QString group = QStringLiteral("Phonon"); - m_plugins.push_back(new VideoPlayerPlugin(group, this)); - m_plugins.push_back(new SeekSliderPlugin(group, this)); - m_plugins.push_back(new VolumeSliderPlugin(group, this)); -} - -QList PhononCollection::customWidgets() const -{ - return m_plugins; -} - -QT_END_NAMESPACE - -#include "phononcollection.moc" diff --git a/src/designer/src/plugins/phononwidgets/phononwidgets.json b/src/designer/src/plugins/phononwidgets/phononwidgets.json deleted file mode 100644 index 0967ef4..0000000 --- a/src/designer/src/plugins/phononwidgets/phononwidgets.json +++ /dev/null @@ -1 +0,0 @@ -{} diff --git a/src/designer/src/plugins/phononwidgets/phononwidgets.pro b/src/designer/src/plugins/phononwidgets/phononwidgets.pro deleted file mode 100644 index 32517ad..0000000 --- a/src/designer/src/plugins/phononwidgets/phononwidgets.pro +++ /dev/null @@ -1,25 +0,0 @@ -TEMPLATE = lib -TARGET = phononwidgets -CONFIG += qt warn_on plugin -QT += widgets phonon designer-private - -include(../plugins.pri) -build_all:!build_pass { - CONFIG -= build_all - CONFIG += release -} - -SOURCES += videoplayerplugin.cpp \ - videoplayertaskmenu.cpp \ - seeksliderplugin.cpp \ - volumesliderplugin.cpp \ - phononcollection.cpp - -HEADERS += videoplayerplugin.h \ - videoplayertaskmenu.h \ - seeksliderplugin.h \ - volumesliderplugin.h - -OTHER_FILES = "phonon.json" - -RESOURCES += phononwidgets.qrc diff --git a/src/designer/src/plugins/phononwidgets/phononwidgets.qrc b/src/designer/src/plugins/phononwidgets/phononwidgets.qrc deleted file mode 100644 index 2e1250b..0000000 --- a/src/designer/src/plugins/phononwidgets/phononwidgets.qrc +++ /dev/null @@ -1,8 +0,0 @@ - - - images/videoplayer.png - images/videowidget.png - images/seekslider.png - images/volumeslider.png - - diff --git a/src/designer/src/plugins/phononwidgets/seeksliderplugin.cpp b/src/designer/src/plugins/phononwidgets/seeksliderplugin.cpp deleted file mode 100644 index 2721ab8..0000000 --- a/src/designer/src/plugins/phononwidgets/seeksliderplugin.cpp +++ /dev/null @@ -1,117 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "seeksliderplugin.h" - -#include - -static const char *toolTipC = "Phonon Seek Slider"; - -QT_BEGIN_NAMESPACE - -SeekSliderPlugin::SeekSliderPlugin(const QString &group, QObject *parent) : - QObject(parent), - m_group(group), - m_initialized(false) -{ -} - -QString SeekSliderPlugin::name() const -{ - return QStringLiteral("Phonon::SeekSlider"); -} - -QString SeekSliderPlugin::group() const -{ - return m_group; -} - -QString SeekSliderPlugin::toolTip() const -{ - return tr(toolTipC); -} - -QString SeekSliderPlugin::whatsThis() const -{ - return tr(toolTipC); -} - -QString SeekSliderPlugin::includeFile() const -{ - return QStringLiteral(""); -} - -QIcon SeekSliderPlugin::icon() const -{ - return QIcon(QStringLiteral(":/qt-project.org/phononwidgets/images/seekslider.png")); -} - -bool SeekSliderPlugin::isContainer() const -{ - return false; -} - -QWidget *SeekSliderPlugin::createWidget(QWidget *parent) -{ - return new Phonon::SeekSlider(parent); -} - -bool SeekSliderPlugin::isInitialized() const -{ - return m_initialized; -} - -void SeekSliderPlugin::initialize(QDesignerFormEditorInterface *) -{ - if (m_initialized) - return; - m_initialized = true; -} - -QString SeekSliderPlugin::domXml() const -{ - return QStringLiteral("\ - \ - \ - "); -} - -QT_END_NAMESPACE diff --git a/src/designer/src/plugins/phononwidgets/seeksliderplugin.h b/src/designer/src/plugins/phononwidgets/seeksliderplugin.h deleted file mode 100644 index 72b5e0b..0000000 --- a/src/designer/src/plugins/phononwidgets/seeksliderplugin.h +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef SEEKSLIDER_PLUGIN_H -#define SEEKSLIDER_PLUGIN_H - -#include - -QT_BEGIN_NAMESPACE - -class SeekSliderPlugin: public QObject, public QDesignerCustomWidgetInterface -{ - Q_OBJECT - Q_INTERFACES(QDesignerCustomWidgetInterface) -public: - explicit SeekSliderPlugin(const QString &group, QObject *parent = 0); - - virtual QString name() const; - virtual QString group() const; - virtual QString toolTip() const; - virtual QString whatsThis() const; - virtual QString includeFile() const; - virtual QIcon icon() const; - virtual bool isContainer() const; - virtual QWidget *createWidget(QWidget *parent); - virtual bool isInitialized() const; - virtual void initialize(QDesignerFormEditorInterface *core); - virtual QString domXml() const; - -private: - const QString m_group; - bool m_initialized; -}; - -QT_END_NAMESPACE - -#endif // SEEKSLIDER_PLUGIN_H diff --git a/src/designer/src/plugins/phononwidgets/videoplayerplugin.cpp b/src/designer/src/plugins/phononwidgets/videoplayerplugin.cpp deleted file mode 100644 index a12484a..0000000 --- a/src/designer/src/plugins/phononwidgets/videoplayerplugin.cpp +++ /dev/null @@ -1,135 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "videoplayerplugin.h" -#include "videoplayertaskmenu.h" - -#include -#include -#include - -#include -#include - -static const char *toolTipC = "Phonon Video Player"; - -QT_BEGIN_NAMESPACE - -VideoPlayerPlugin::VideoPlayerPlugin(const QString &group, QObject *parent) : - QObject(parent), - m_group(group), - m_initialized(false) -{ -} - -QString VideoPlayerPlugin::name() const -{ - return QStringLiteral("Phonon::VideoPlayer"); -} - -QString VideoPlayerPlugin::group() const -{ - return m_group; -} - -QString VideoPlayerPlugin::toolTip() const -{ - return tr(toolTipC); -} - -QString VideoPlayerPlugin::whatsThis() const -{ - return tr(toolTipC); -} - -QString VideoPlayerPlugin::includeFile() const -{ - return QStringLiteral(""); -} - -QIcon VideoPlayerPlugin::icon() const -{ - return QIcon(QStringLiteral(":/qt-project.org/phononwidgets/images/videoplayer.png")); -} - -bool VideoPlayerPlugin::isContainer() const -{ - return false; -} - -QWidget *VideoPlayerPlugin::createWidget(QWidget *parent) -{ - return new Phonon::VideoPlayer(Phonon::NoCategory, parent); -} - -bool VideoPlayerPlugin::isInitialized() const -{ - return m_initialized; -} - -void VideoPlayerPlugin::initialize(QDesignerFormEditorInterface * core) -{ - if (m_initialized) - return; - - QExtensionManager *mgr = core->extensionManager(); - VideoPlayerTaskMenuFactory::registerExtension(mgr, Q_TYPEID(QDesignerTaskMenuExtension)); - m_initialized = true; -} - -QString VideoPlayerPlugin::domXml() const -{ - return QStringLiteral("\ - \ - \ - \ - \ - 0\ - 0\ - 300\ - 200\ - \ - \ - \ - "); -} - -QT_END_NAMESPACE diff --git a/src/designer/src/plugins/phononwidgets/videoplayerplugin.h b/src/designer/src/plugins/phononwidgets/videoplayerplugin.h deleted file mode 100644 index 6ef93bb..0000000 --- a/src/designer/src/plugins/phononwidgets/videoplayerplugin.h +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef VIDEOPLAYER_PLUGIN_H -#define VIDEOPLAYER_PLUGIN_H - -#include - -QT_BEGIN_NAMESPACE - -class VideoPlayerPlugin: public QObject, public QDesignerCustomWidgetInterface -{ - Q_OBJECT - Q_INTERFACES(QDesignerCustomWidgetInterface) -public: - explicit VideoPlayerPlugin(const QString &group, QObject *parent = 0); - - virtual QString name() const; - virtual QString group() const; - virtual QString toolTip() const; - virtual QString whatsThis() const; - virtual QString includeFile() const; - virtual QIcon icon() const; - virtual bool isContainer() const; - virtual QWidget *createWidget(QWidget *parent); - virtual bool isInitialized() const; - virtual void initialize(QDesignerFormEditorInterface *core); - virtual QString domXml() const; - -private: - const QString m_group; - bool m_initialized; -}; - -QT_END_NAMESPACE - -#endif // VIDEOPLAYER_PLUGIN_H diff --git a/src/designer/src/plugins/phononwidgets/videoplayertaskmenu.cpp b/src/designer/src/plugins/phononwidgets/videoplayertaskmenu.cpp deleted file mode 100644 index 4950c39..0000000 --- a/src/designer/src/plugins/phononwidgets/videoplayertaskmenu.cpp +++ /dev/null @@ -1,154 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "videoplayertaskmenu.h" - -#include -#include -#include -#include - -#include -#include - -#include -#include -#include -#include -#include -#include - -QT_BEGIN_NAMESPACE - -// ----------------- MimeTypeDialog: Display mime types in scrollable text - -class MimeTypeDialog : public QDialog { - Q_DISABLE_COPY(MimeTypeDialog) -public: - explicit MimeTypeDialog(QWidget *parent = 0); - - void setMimeTypes(const QStringList &); - -private: - QPlainTextEdit *m_plainTextEdit; -}; - -MimeTypeDialog::MimeTypeDialog(QWidget *parent) : - QDialog(parent), - m_plainTextEdit(new QPlainTextEdit) -{ - setModal(true); - setWindowTitle(VideoPlayerTaskMenu::tr("Available Mime Types")); - setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); - - QVBoxLayout *layout = new QVBoxLayout; - m_plainTextEdit->setReadOnly(true); - layout->addWidget(m_plainTextEdit); - - QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok); - connect(buttonBox, SIGNAL(accepted()), this, SLOT(accept())); - connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); - layout->addWidget(buttonBox); - - setLayout(layout); -} - -void MimeTypeDialog::setMimeTypes(const QStringList &l) -{ - m_plainTextEdit->setPlainText(l.join(QString(1, QLatin1Char('\n')))); -} - -// ----------------- VideoPlayerTaskMenu -VideoPlayerTaskMenu::VideoPlayerTaskMenu(Phonon::VideoPlayer *object, QObject *parent) : - QObject(parent), - m_widget(object), - m_displayMimeTypesAction(new QAction(tr("Display supported mime types..."), this)), - m_loadAction(new QAction(tr("Load..."), this)), - m_playAction(new QAction(tr("Play"), this)), - m_pauseAction(new QAction(tr("Pause"), this)), - m_stopAction(new QAction(tr("Stop"), this)) -{ - m_taskActions << m_displayMimeTypesAction << m_loadAction << m_playAction << m_pauseAction << m_stopAction; - - connect(m_widget->mediaObject(), SIGNAL(stateChanged(Phonon::State,Phonon::State)), this, SLOT(mediaObjectStateChanged(Phonon::State,Phonon::State))); - connect(m_displayMimeTypesAction, SIGNAL(triggered()), this, SLOT(slotMimeTypes())); - connect(m_loadAction, SIGNAL(triggered()), this, SLOT(slotLoad())); - connect(m_playAction, SIGNAL(triggered()), object, SLOT(play())); - connect(m_pauseAction, SIGNAL(triggered()), object, SLOT(pause())); - connect(m_stopAction, SIGNAL(triggered()), object, SLOT(stop())); -} - -QList VideoPlayerTaskMenu::taskActions() const -{ - const bool isPlaying = m_widget->isPlaying(); - const bool isPaused = m_widget->isPlaying(); - m_loadAction->setEnabled(!isPlaying && !isPaused); - m_playAction->setEnabled(!isPlaying); - m_pauseAction->setEnabled(isPlaying); - m_stopAction->setEnabled(isPlaying || isPaused); - return m_taskActions; -} - -void VideoPlayerTaskMenu::slotMimeTypes() -{ - MimeTypeDialog mimeTypeDialog(m_widget->window()); - mimeTypeDialog.setMimeTypes(Phonon::BackendCapabilities::availableMimeTypes()); - mimeTypeDialog.exec(); -} - -void VideoPlayerTaskMenu::slotLoad() -{ - const QString fileName = QFileDialog::getOpenFileName(m_widget->window(), tr("Choose Video Player Media Source")); - if (fileName.isEmpty()) - return; - m_widget->load(Phonon::MediaSource(fileName)); - -} - -void VideoPlayerTaskMenu::mediaObjectStateChanged(Phonon::State newstate, Phonon::State /* oldstate */) -{ - if (newstate == Phonon::ErrorState) { - const QString msg = tr("An error has occurred in '%1': %2").arg(m_widget->objectName(), m_widget->mediaObject()->errorString()); - QMessageBox::warning(m_widget->window(), tr("Video Player Error"), msg); - } -} - -QT_END_NAMESPACE diff --git a/src/designer/src/plugins/phononwidgets/videoplayertaskmenu.h b/src/designer/src/plugins/phononwidgets/videoplayertaskmenu.h deleted file mode 100644 index 74540fe..0000000 --- a/src/designer/src/plugins/phononwidgets/videoplayertaskmenu.h +++ /dev/null @@ -1,83 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef VIDEOPLAYERTASKMENU_H -#define VIDEOPLAYERTASKMENU_H - - -#include -#include -#include - -#include -#include - -QT_BEGIN_NAMESPACE - -class VideoPlayerTaskMenu: public QObject, public QDesignerTaskMenuExtension -{ - Q_OBJECT - Q_INTERFACES(QDesignerTaskMenuExtension) -public: - explicit VideoPlayerTaskMenu(Phonon::VideoPlayer *object, QObject *parent = 0); - virtual QList taskActions() const; - -private slots: - void slotLoad(); - void slotMimeTypes(); - void mediaObjectStateChanged(Phonon::State newstate, Phonon::State oldstate); - -private: - Phonon::VideoPlayer *m_widget; - QAction *m_displayMimeTypesAction; - QAction *m_loadAction; - QAction *m_playAction; - QAction *m_pauseAction; - QAction *m_stopAction; - - QList m_taskActions; -}; - -typedef qdesigner_internal::ExtensionFactory VideoPlayerTaskMenuFactory; - -QT_END_NAMESPACE - -#endif // VIDEOPLAYERTASKMENU_H diff --git a/src/designer/src/plugins/phononwidgets/volumesliderplugin.cpp b/src/designer/src/plugins/phononwidgets/volumesliderplugin.cpp deleted file mode 100644 index 0a19ede..0000000 --- a/src/designer/src/plugins/phononwidgets/volumesliderplugin.cpp +++ /dev/null @@ -1,117 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#include "volumesliderplugin.h" - -#include - -static const char *toolTipC = "Phonon Volume Slider"; - -QT_BEGIN_NAMESPACE - -VolumeSliderPlugin::VolumeSliderPlugin(const QString &group, QObject *parent) : - QObject(parent), - m_group(group), - m_initialized(false) -{ -} - -QString VolumeSliderPlugin::name() const -{ - return QStringLiteral("Phonon::VolumeSlider"); -} - -QString VolumeSliderPlugin::group() const -{ - return m_group; -} - -QString VolumeSliderPlugin::toolTip() const -{ - return tr(toolTipC); -} - -QString VolumeSliderPlugin::whatsThis() const -{ - return tr(toolTipC); -} - -QString VolumeSliderPlugin::includeFile() const -{ - return QStringLiteral(""); -} - -QIcon VolumeSliderPlugin::icon() const -{ - return QIcon(QStringLiteral(":/qt-project.org/phononwidgets/images/volumeslider.png")); -} - -bool VolumeSliderPlugin::isContainer() const -{ - return false; -} - -QWidget *VolumeSliderPlugin::createWidget(QWidget *parent) -{ - return new Phonon::VolumeSlider(parent); -} - -bool VolumeSliderPlugin::isInitialized() const -{ - return m_initialized; -} - -void VolumeSliderPlugin::initialize(QDesignerFormEditorInterface *) -{ - if (m_initialized) - return; - m_initialized = true; -} - -QString VolumeSliderPlugin::domXml() const -{ - return QStringLiteral("\ - \ - \ - "); -} - -QT_END_NAMESPACE diff --git a/src/designer/src/plugins/phononwidgets/volumesliderplugin.h b/src/designer/src/plugins/phononwidgets/volumesliderplugin.h deleted file mode 100644 index b485939..0000000 --- a/src/designer/src/plugins/phononwidgets/volumesliderplugin.h +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/ -** -** This file is part of the Qt Designer of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:LGPL$ -** GNU Lesser General Public License Usage -** 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. -** -** GNU General Public License Usage -** Alternatively, this file may be used under the terms of the GNU General -** Public License version 3.0 as published by the Free Software Foundation -** and appearing in the file LICENSE.GPL included in the packaging of this -** file. Please review the following information to ensure the GNU General -** Public License version 3.0 requirements will be met: -** http://www.gnu.org/copyleft/gpl.html. -** -** Other Usage -** Alternatively, this file may be used in accordance with the terms and -** conditions contained in a signed written agreement between you and Nokia. -** -** -** -** -** -** -** $QT_END_LICENSE$ -** -****************************************************************************/ - -#ifndef VOLUMESLIDER_PLUGIN_H -#define VOLUMESLIDER_PLUGIN_H - -#include - -QT_BEGIN_NAMESPACE - -class VolumeSliderPlugin: public QObject, public QDesignerCustomWidgetInterface -{ - Q_OBJECT - Q_INTERFACES(QDesignerCustomWidgetInterface) -public: - explicit VolumeSliderPlugin(const QString &group, QObject *parent = 0); - - virtual QString name() const; - virtual QString group() const; - virtual QString toolTip() const; - virtual QString whatsThis() const; - virtual QString includeFile() const; - virtual QIcon icon() const; - virtual bool isContainer() const; - virtual QWidget *createWidget(QWidget *parent); - virtual bool isInitialized() const; - virtual void initialize(QDesignerFormEditorInterface *core); - virtual QString domXml() const; - -private: - const QString m_group; - bool m_initialized; -}; - -QT_END_NAMESPACE - -#endif // VOLUMESLIDER_PLUGIN_H diff --git a/src/designer/src/plugins/plugins.pro b/src/designer/src/plugins/plugins.pro index c0d2428..628d44c 100644 --- a/src/designer/src/plugins/plugins.pro +++ b/src/designer/src/plugins/plugins.pro @@ -4,5 +4,4 @@ CONFIG += ordered REQUIRES = !CONFIG(static,shared|static) # contains(QT_CONFIG, opengl): SUBDIRS += tools/view3d contains(QT_CONFIG, webkit): SUBDIRS += qwebview -contains(QT_CONFIG, phonon): SUBDIRS += phononwidgets -win32: contains(QT_CONFIG, activeqt): SUBDIRS += activeqt +# win32: contains(QT_CONFIG, activeqt): SUBDIRS += activeqt -- 2.7.4