From 76c59a33842975a2b430454348ce98a05192b6af Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Thu, 2 Oct 2014 19:42:18 +0200 Subject: Update for recent TDENewStuff changes Delete duplicate knewstuff files --- quanta/data/tips | 2 +- quanta/src/quanta.cpp | 18 +++++++++--------- quanta/src/quanta_init.cpp | 6 +++--- quanta/utility/newstuff.cpp | 4 ++-- quanta/utility/newstuff.h | 18 +++++++++--------- 5 files changed, 24 insertions(+), 24 deletions(-) (limited to 'quanta') diff --git a/quanta/data/tips b/quanta/data/tips index 3db0c892..8293d232 100644 --- a/quanta/data/tips +++ b/quanta/data/tips @@ -355,7 +355,7 @@ Just go to Settings > Configure Shortcuts. -

...that Quanta now has a public repository for all resources? Quanta uses KNewStuff to make templates, scripts, DTEPs, toolbars and more available for download. Need something? Check the download menu items. +

...that Quanta now has a public repository for all resources? Quanta uses TDENewStuff to make templates, scripts, DTEPs, toolbars and more available for download. Need something? Check the download menu items.

diff --git a/quanta/src/quanta.cpp b/quanta/src/quanta.cpp index ff9d6705..b41b1b63 100644 --- a/quanta/src/quanta.cpp +++ b/quanta/src/quanta.cpp @@ -2767,7 +2767,7 @@ void QuantaApp::slotSendToolbar() void QuantaApp::slotDownloadToolbar() { if (!m_newToolbarStuff) - m_newToolbarStuff = new QNewToolbarStuff("quanta/toolbar", this); + m_newToolbarStuff = new QNewToolbarStuff("quanta toolbar", this); m_newToolbarStuff->downloadResource(); } @@ -2777,7 +2777,7 @@ void QuantaApp::slotUploadToolbar() if (tempFileName.isNull()) return; if (!m_newToolbarStuff) - m_newToolbarStuff = new QNewToolbarStuff("quanta/toolbar", this); + m_newToolbarStuff = new QNewToolbarStuff("quanta toolbar", this); // tempDirList.append(m_newToolbarStuff->uploadResource(tempFileName)); m_newToolbarStuff->uploadResource(tempFileName); } @@ -3624,7 +3624,7 @@ void QuantaApp::slotEmailDTEP() void QuantaApp::slotDownloadDTEP() { if (!m_newDTEPStuff) - m_newDTEPStuff = new QNewDTEPStuff("quanta/dtep", this); + m_newDTEPStuff = new QNewDTEPStuff("quanta dtep", this); m_newDTEPStuff->downloadResource(); } @@ -3634,7 +3634,7 @@ void QuantaApp::slotUploadDTEP() if (tempFileName.isNull()) return; if (!m_newDTEPStuff) - m_newDTEPStuff = new QNewDTEPStuff("quanta/dtep", this); + m_newDTEPStuff = new QNewDTEPStuff("quanta dtep", this); // tempDirList.append(m_newDTEPStuff->uploadResource(tempFileName)); m_newDTEPStuff->uploadResource(tempFileName); } @@ -3658,14 +3658,14 @@ void QuantaApp::slotSmartTagInsertion() void QuantaApp::slotDownloadTemplate() { if (!m_newTemplateStuff) - m_newTemplateStuff = new QNewTemplateStuff("quanta/template", this); + m_newTemplateStuff = new QNewTemplateStuff("quanta template", this); m_newTemplateStuff->downloadResource(); } void QuantaApp::slotUploadTemplate(const TQString &fileName) { if (!m_newTemplateStuff) - m_newTemplateStuff = new QNewTemplateStuff("quanta/template", this); + m_newTemplateStuff = new QNewTemplateStuff("quanta template", this); // tempDirList.append(m_newTemplateStuff->uploadResource(fileName)); m_newTemplateStuff->uploadResource(fileName); } @@ -3673,14 +3673,14 @@ void QuantaApp::slotUploadTemplate(const TQString &fileName) void QuantaApp::slotDownloadScript() { if (!m_newScriptStuff) - m_newScriptStuff = new QNewScriptStuff("quanta/script", this); + m_newScriptStuff = new QNewScriptStuff("quanta script", this); m_newScriptStuff->downloadResource(); } void QuantaApp::slotUploadScript(const TQString &fileName) { if (!m_newScriptStuff) - m_newScriptStuff = new QNewScriptStuff("quanta/script", this); + m_newScriptStuff = new QNewScriptStuff("quanta script", this); // tempDirList.append(m_newScriptStuff->uploadResource(fileName)); m_newScriptStuff->uploadResource(fileName); } @@ -3689,7 +3689,7 @@ void QuantaApp::slotDownloadDoc() { if (!m_newDocStuff) { - m_newDocStuff = new QNewDocStuff("quanta/documentation", this); + m_newDocStuff = new QNewDocStuff("quanta documentation", this); connect(m_newDocStuff, TQT_SIGNAL(installFinished()), dTab, TQT_SLOT(slotRefreshTree())); } m_newDocStuff->downloadResource(); diff --git a/quanta/src/quanta_init.cpp b/quanta/src/quanta_init.cpp index c0bcf32e..303bb870 100644 --- a/quanta/src/quanta_init.cpp +++ b/quanta/src/quanta_init.cpp @@ -617,12 +617,12 @@ void QuantaInit::readOptions() m_quanta->showVPLAction->setChecked( false ); -//KNewStuff config - m_config->setGroup("KNewStuff"); +//TDENewStuff config + m_config->setGroup("TDENewStuff"); TQString str = m_config->readEntry("ProvidersUrl"); if (str.isEmpty()) { - m_config->writeEntry( "ProvidersUrl", "http://quanta.kdewebdev.org/newstuff/providers.xml" ); + m_config->writeEntry( "ProvidersUrl", "https://www.trinitydesktop.org/ocs/providers.xml" ); m_config->sync(); } diff --git a/quanta/utility/newstuff.cpp b/quanta/utility/newstuff.cpp index f818571d..a00e9c75 100644 --- a/quanta/utility/newstuff.cpp +++ b/quanta/utility/newstuff.cpp @@ -54,7 +54,7 @@ void QNewDTEPStuff::installResource() } QNewToolbarStuff::QNewToolbarStuff(const TQString &type, TQWidget *parentWidget) - :KNewStuffSecure(type, parentWidget) + :TDENewStuffSecure(type, parentWidget) { connect(this, TQT_SIGNAL(loadToolbarFile(const KURL&)), parentWidget, TQT_SLOT(slotLoadToolbarFile(const KURL&))); } @@ -81,7 +81,7 @@ void QNewToolbarStuff::installResource() } QNewTemplateStuff::QNewTemplateStuff(const TQString &type, TQWidget *parentWidget) - :KNewStuffSecure(type, parentWidget) + :TDENewStuffSecure(type, parentWidget) { connect(this, TQT_SIGNAL(openFile(const KURL&)), parentWidget, TQT_SLOT(slotFileOpen(const KURL&))); } diff --git a/quanta/utility/newstuff.h b/quanta/utility/newstuff.h index 1975f998..c35be15b 100644 --- a/quanta/utility/newstuff.h +++ b/quanta/utility/newstuff.h @@ -20,7 +20,7 @@ #include //kde includes -#include +#include /** Makes possible downloading and installing a DTEP resource files from a server. @@ -29,14 +29,14 @@ Makes possible downloading and installing a DTEP resource files from a server. class KURL; -class QNewDTEPStuff: public KNewStuffSecure +class QNewDTEPStuff: public TDENewStuffSecure { Q_OBJECT public: QNewDTEPStuff(const TQString &type, TQWidget *parentWidget=0) - :KNewStuffSecure(type, parentWidget){}; + :TDENewStuffSecure(type, parentWidget){}; ~QNewDTEPStuff() {}; private: @@ -48,7 +48,7 @@ Makes possible downloading and installing a Toolbar resource files from a server @author Andras Mantia */ -class QNewToolbarStuff: public KNewStuffSecure +class QNewToolbarStuff: public TDENewStuffSecure { Q_OBJECT @@ -69,7 +69,7 @@ Makes possible downloading and installing a template resource files from a serve @author Andras Mantia */ -class QNewTemplateStuff: public KNewStuffSecure +class QNewTemplateStuff: public TDENewStuffSecure { Q_OBJECT @@ -90,14 +90,14 @@ Makes possible downloading and installing a script resource files from a server. @author Andras Mantia */ -class QNewScriptStuff: public KNewStuffSecure +class QNewScriptStuff: public TDENewStuffSecure { Q_OBJECT public: QNewScriptStuff(const TQString &type, TQWidget *parentWidget=0) - :KNewStuffSecure(type, parentWidget){}; + :TDENewStuffSecure(type, parentWidget){}; ~QNewScriptStuff() {}; private: @@ -109,14 +109,14 @@ Makes possible downloading and installing a documentation resource files from a @author Andras Mantia */ -class QNewDocStuff: public KNewStuffSecure +class QNewDocStuff: public TDENewStuffSecure { Q_OBJECT public: QNewDocStuff(const TQString &type, TQWidget *parentWidget=0) - :KNewStuffSecure(type, parentWidget){}; + :TDENewStuffSecure(type, parentWidget){}; ~QNewDocStuff() {}; private: -- cgit v1.2.1