Finish renaming knewstuff

pull/1/head
Slávek Banko 10 years ago
parent 9526b0bc2e
commit 80e661aaac

@ -57,7 +57,7 @@ option( WITH_I8K "Enable dell laptop support" OFF )
option( WITH_SNMP "Enable SNMP support" OFF ) option( WITH_SNMP "Enable SNMP support" OFF )
option( WITH_SENSORS "Enable lm_sensors support" OFF ) option( WITH_SENSORS "Enable lm_sensors support" OFF )
option( WITH_XMMS "Enable xmms support" OFF ) option( WITH_XMMS "Enable xmms support" OFF )
option( WITH_KNEWSTUFF "Enable knewstuff support" OFF ) option( WITH_TDENEWSTUFF "Enable tdenewstuff support" OFF )
# option( WITH_NV "Enable nv support" OFF ) # option( WITH_NV "Enable nv support" OFF )
@ -85,10 +85,10 @@ option( WITH_KNEWSTUFF "Enable knewstuff support" OFF )
# WITH_XMMS affects superkaramba # WITH_XMMS affects superkaramba
# WITH_XMMS description enables supercaramba applets to gain # WITH_XMMS description enables supercaramba applets to gain
# information about now playing track etc. # information about now playing track etc.
# WITH_KNEWSTUFF affects superkaramba # WITH_TDENEWSTUFF affects superkaramba
# WITH_KNEWSTUFF description enebles support for downloadable content # WITH_TDENEWSTUFF description enables support for downloadable content
# from kdelooks. # from OpenDesktop.org.
# FIXME: test if WITH_KNEWSTUFF works in trinity or not # FIXME: test if WITH_TDENEWSTUFF works in trinity or not
# NOTE: In addition to affects DPMS and XScreenSaver backend options for # NOTE: In addition to affects DPMS and XScreenSaver backend options for
# klaptopdaemon there is some XIdle code but it wasn't compleatly # klaptopdaemon there is some XIdle code but it wasn't compleatly

@ -177,10 +177,10 @@ if ( BUILD_SUPERKARAMBA )
tde_message_fatal( "python is required, but was not found on your system" ) tde_message_fatal( "python is required, but was not found on your system" )
endif( NOT PYTHONLIBS_FOUND ) endif( NOT PYTHONLIBS_FOUND )
if( WITH_KNEWSTUFF ) if( WITH_TDENEWSTUFF )
set( HAVE_KNEWSTUFF 1 ) set( HAVE_TDENEWSTUFF 1 )
set( KNEWSTUFF_LIBRARIES knewstuff-shared ) set( TDENEWSTUFF_LIBRARIES tdenewstuff-shared )
endif( WITH_KNEWSTUFF ) endif( WITH_TDENEWSTUFF )
if( WITH_XMMS ) if( WITH_XMMS )
set( HAVE_XMMS 1 ) set( HAVE_XMMS 1 )

@ -84,7 +84,7 @@
// superkaramba // superkaramba
#cmakedefine HAVE_XMMS #cmakedefine HAVE_XMMS
#cmakedefine HAVE_KNEWSTUFF #cmakedefine HAVE_TDENEWSTUFF
#if !defined( HAVE_SYS_TYPES_H ) #if !defined( HAVE_SYS_TYPES_H )
#cmakedefine HAVE_SYS_TYPES_H #cmakedefine HAVE_SYS_TYPES_H

@ -63,11 +63,11 @@ AC_SUBST(XMMS_LIBS)
AC_SUBST(XMMS_LDFLAGS) AC_SUBST(XMMS_LDFLAGS)
AC_SUBST(XMMS_INCLUDES) AC_SUBST(XMMS_INCLUDES)
kde_have_knewstuff=yes kde_have_tdenewstuff=yes
KDE_CHECK_LIB(knewstuff, main, [MY_LIBKNEWSTUFF="-lknewstuff"], kde_have_knewstuff=no) KDE_CHECK_LIB(tdenewstuff, main, [MY_LIBTDENEWSTUFF="-ltdenewstuff"], kde_have_tdenewstuff=no)
if test "$kde_have_knewstuff" = "yes"; then if test "$kde_have_tdenewstuff" = "yes"; then
AC_DEFINE(HAVE_KNEWSTUFF, 1, [Define if you have knewstuff]) AC_DEFINE(HAVE_TDENEWSTUFF, 1, [Define if you have tdenewstuff])
AC_SUBST(MY_LIBKNEWSTUFF) AC_SUBST(MY_LIBTDENEWSTUFF)
fi fi
AC_CHECK_LIB(kvm, main, [LIBKVM="-lkvm"]) AC_CHECK_LIB(kvm, main, [LIBKVM="-lkvm"])

@ -55,7 +55,7 @@ tde_add_executable( superkaramba AUTOMOC
input.cpp sklineedit.cpp input_python.cpp input.cpp sklineedit.cpp input_python.cpp
svcgrp_python.cpp svcgrp_python.cpp
LINK tdeio-shared ${PYTHON_LIBRARIES} LINK tdeio-shared ${PYTHON_LIBRARIES}
${KNEWSTUFF_LIBRARIES} ${TDENEWSTUFF_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR} DESTINATION ${BIN_INSTALL_DIR}
) )

@ -41,8 +41,7 @@ superkaramba_SOURCES = main.cpp karamba.cpp meter.cpp bar.cpp sensor.cpp \
# kde_cfg_DATA = superkaramba.kcfg # kde_cfg_DATA = superkaramba.kcfg
superkaramba_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) $(PYTHONLIB) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor superkaramba_LDFLAGS = -Wl,-export-dynamic $(KDE_RPATH) $(all_libraries) $(PYTHONLIB) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor
#superkaramba_LDADD = -ltdeio $(LIB_TDEUI) $(LIBPYTHON) $(LIBKVM) $(MY_LIBKNEWSTUFF) superkaramba_LDADD = $(LIB_TDEIO) $(LIB_TDEUI) $(LIBPYTHON) $(LIBKVM) $(MY_LIBTDENEWSTUFF)
superkaramba_LDADD = -ltdeio $(LIB_TDEUI) $(LIBPYTHON) $(LIBKVM) $(MY_LIBKNEWSTUFF)
# this is where the desktop file will go # this is where the desktop file will go
shelldesktopdir = $(kde_appsdir)/Utilities shelldesktopdir = $(kde_appsdir)/Utilities

@ -36,7 +36,7 @@
#include "karambaapp.h" #include "karambaapp.h"
#include "themesdlg.h" #include "themesdlg.h"
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
#include "sknewstuff.h" #include "sknewstuff.h"
SKNewStuff::SKNewStuff( ThemesDlg *dlg ) : SKNewStuff::SKNewStuff( ThemesDlg *dlg ) :
@ -137,4 +137,4 @@ TQString SKNewStuff::downloadDestination( KNS::Entry *entry )
} }
return TDEGlobal::dirs()->saveLocation( "tmp" ) + source.fileName(); return TDEGlobal::dirs()->saveLocation( "tmp" ) + source.fileName();
} }
#endif //HAVE_KNEWSTUFF #endif //HAVE_TDENEWSTUFF

@ -28,7 +28,7 @@
#include <config.h> #include <config.h>
#endif #endif
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
#include "tdenewstuff/knewstuff.h" #include "tdenewstuff/knewstuff.h"
#include "tdenewstuff/entry.h" #include "tdenewstuff/entry.h"
@ -49,5 +49,5 @@ class SKNewStuff : public TDENewStuff
KURL m_sourceLink; KURL m_sourceLink;
}; };
#endif //HAVE_KNEWSTUFF #endif //HAVE_TDENEWSTUFF
#endif //SKNEWSTUFF_H #endif //SKNEWSTUFF_H

@ -29,7 +29,7 @@
#include <config.h> #include <config.h>
#endif #endif
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
#include "sknewstuff.h" #include "sknewstuff.h"
#endif #endif
@ -55,7 +55,7 @@ ThemesDlg::ThemesDlg(TQWidget *parent, const char *name)
: ThemesLayout(parent, name) : ThemesLayout(parent, name)
{ {
populateListbox(); populateListbox();
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
mNewStuff = 0; mNewStuff = 0;
#endif #endif
} }
@ -64,7 +64,7 @@ ThemesDlg::~ThemesDlg()
{ {
//kdDebug() << k_funcinfo << endl; //kdDebug() << k_funcinfo << endl;
saveUserAddedThemes(); saveUserAddedThemes();
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
if(mNewStuff) if(mNewStuff)
{ {
delete mNewStuff; delete mNewStuff;
@ -132,7 +132,7 @@ void ThemesDlg::populateListbox()
item->setDescriptionText(i18n("Download new themes.")); item->setDescriptionText(i18n("Download new themes."));
item->buttonGo->setText(i18n("New Stuff...")); item->buttonGo->setText(i18n("New Stuff..."));
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
item->buttonGo->setEnabled(true); item->buttonGo->setEnabled(true);
connect(item->buttonGo, TQT_SIGNAL(clicked()), connect(item->buttonGo, TQT_SIGNAL(clicked()),
this, TQT_SLOT(getNewStuff())); this, TQT_SLOT(getNewStuff()));
@ -216,14 +216,14 @@ void ThemesDlg::openLocalTheme()
void ThemesDlg::getNewStuff() void ThemesDlg::getNewStuff()
{ {
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
TDEConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("TDENewStuff"); config->setGroup("TDENewStuff");
config->writePathEntry("ProvidersUrl", config->writePathEntry("ProvidersUrl",
TQString::fromLatin1("https://www.trinitydesktop.org/ocs/karamba-providers.xml")); TQString::fromLatin1("https://www.trinitydesktop.org/ocs/karamba-providers.xml"));
config->sync(); config->sync();
m_newStuffStatus = config->entryMap("TDENewStuffStatus").keys(); m_newStuffStatus = config->entryMap("TDENewStuffStatus").keys();
//This check is b/c KNewStuff will download, throw an error, //This check is b/c TDENewStuff will download, throw an error,
//and still have the entry in the config that it was successful //and still have the entry in the config that it was successful
configSanityCheck(); configSanityCheck();
@ -300,7 +300,7 @@ void ThemesDlg::addThemeToDialog(const KArchiveDirectory *archiveDir,
void ThemesDlg::writeNewStuffConfig(const TQString &file) void ThemesDlg::writeNewStuffConfig(const TQString &file)
{ {
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
TDEConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
TQStringList keys = config->entryMap("TDENewStuffStatus").keys(); TQStringList keys = config->entryMap("TDENewStuffStatus").keys();
@ -320,7 +320,7 @@ void ThemesDlg::writeNewStuffConfig(const TQString &file)
void ThemesDlg::configSanityCheck() void ThemesDlg::configSanityCheck()
{ {
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
TDEConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
TQStringList statusKeys = config->entryMap("TDENewStuffStatus").keys(); TQStringList statusKeys = config->entryMap("TDENewStuffStatus").keys();
TQStringList nameKeys = config->entryMap("TDENewStuffNames").keys(); TQStringList nameKeys = config->entryMap("TDENewStuffNames").keys();
@ -476,18 +476,18 @@ void ThemesDlg::uninstall()
karambaApp->dcopIface()->closeTheme(twPtr->themeFile()->name()); karambaApp->dcopIface()->closeTheme(twPtr->themeFile()->name());
tableThemes->removeItem( twPtr ); tableThemes->removeItem( twPtr );
} }
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
// Remove theme from KNewStuffStatus // Remove theme from TDENewStuffStatus
TDEConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("TDENewStuffNames"); config->setGroup("TDENewStuffNames");
TQString name = config->readEntry(tempPath); TQString name = config->readEntry(tempPath);
if(!name.isEmpty()) if(!name.isEmpty())
{ {
kdDebug() << "removing " << tempPath << " under KNewStuffNames from superkarambarc" kdDebug() << "removing " << tempPath << " under TDENewStuffNames from superkarambarc"
<< endl; << endl;
kapp->config()->deleteEntry(tempPath); kapp->config()->deleteEntry(tempPath);
config->setGroup("TDENewStuffStatus"); config->setGroup("TDENewStuffStatus");
kdDebug() << "removing " << name << " under KNewStuffStatus from superkarambarc" kdDebug() << "removing " << name << " under TDENewStuffStatus from superkarambarc"
<< endl; << endl;
kapp->config()->deleteEntry(name); kapp->config()->deleteEntry(name);
kapp->config()->sync(); kapp->config()->sync();
@ -506,8 +506,8 @@ void ThemesDlg::uninstall()
TDEIO::move(remDir.path(), trash); TDEIO::move(remDir.path(), trash);
} }
tableThemes->removeItem(w); tableThemes->removeItem(w);
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
// Remove theme from KNewStuffStatus // Remove theme from TDENewStuffStatus
TDEConfig* config = TDEGlobal::config(); TDEConfig* config = TDEGlobal::config();
config->setGroup("TDENewStuffNames"); config->setGroup("TDENewStuffNames");
TQString name = config->readEntry(theme.path()); TQString name = config->readEntry(theme.path());

@ -31,7 +31,7 @@
/** /**
@author See README for the list of authors @author See README for the list of authors
*/ */
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
class SKNewStuff; class SKNewStuff;
#endif #endif
class ThemeFile; class ThemeFile;
@ -71,7 +71,7 @@ class ThemesDlg : public ThemesLayout
int themeIndex(TQString file); int themeIndex(TQString file);
TQStringList themes(); TQStringList themes();
#ifdef HAVE_KNEWSTUFF #ifdef HAVE_TDENEWSTUFF
private: private:
SKNewStuff *mNewStuff; SKNewStuff *mNewStuff;
TQStringList m_newStuffStatus; TQStringList m_newStuffStatus;

Loading…
Cancel
Save