|
|
@ -32,31 +32,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <tqtimer.h>
|
|
|
|
#include <tqtimer.h>
|
|
|
|
|
|
|
|
|
|
|
|
#include <kmessagebox.h>
|
|
|
|
#include <tdemessagebox.h>
|
|
|
|
#include <kaboutdialog.h>
|
|
|
|
#include <tdeaboutdialog.h>
|
|
|
|
#include <ktextedit.h>
|
|
|
|
#include <ktextedit.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <klocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tqlayout.h>
|
|
|
|
#include <tqlayout.h>
|
|
|
|
#include <tqfile.h>
|
|
|
|
#include <tqfile.h>
|
|
|
|
#include <tqtextstream.h>
|
|
|
|
#include <tqtextstream.h>
|
|
|
|
#include <kgenericfactory.h>
|
|
|
|
#include <kgenericfactory.h>
|
|
|
|
#include <kstdguiitem.h>
|
|
|
|
#include <kstdguiitem.h>
|
|
|
|
#include <kdeversion.h>
|
|
|
|
#include <tdeversion.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef KGenericFactory<Kalternatives, TQWidget> KalternativesFactory;
|
|
|
|
typedef KGenericFactory<Kalternatives, TQWidget> KalternativesFactory;
|
|
|
|
K_EXPORT_COMPONENT_FACTORY( kcm_kalternatives, KalternativesFactory("kcmkalternatives"))
|
|
|
|
K_EXPORT_COMPONENT_FACTORY( kcm_kalternatives, KalternativesFactory("kcmkalternatives"))
|
|
|
|
|
|
|
|
|
|
|
|
extern "C"
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
{
|
|
|
|
KCModule *create_kalternatives(TQWidget *parent, const char *name)
|
|
|
|
TDECModule *create_kalternatives(TQWidget *parent, const char *name)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new Kalternatives(parent, name);
|
|
|
|
return new Kalternatives(parent, name);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Kalternatives::Kalternatives(TQWidget *parent, const char *name, const TQStringList&)
|
|
|
|
Kalternatives::Kalternatives(TQWidget *parent, const char *name, const TQStringList&)
|
|
|
|
:KCModule(/*KalternativesFactory::instance(), */parent, name), myAboutData(0)
|
|
|
|
:TDECModule(/*KalternativesFactory::instance(), */parent, name), myAboutData(0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
setUseRootOnlyMsg(false);
|
|
|
|
setUseRootOnlyMsg(false);
|
|
|
|
|
|
|
|
|
|
|
@ -65,7 +65,7 @@ Kalternatives::Kalternatives(TQWidget *parent, const char *name, const TQStringL
|
|
|
|
if (user == 0)
|
|
|
|
if (user == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_bisRoot = true;
|
|
|
|
m_bisRoot = true;
|
|
|
|
setButtons(KCModule::Help|KCModule::Apply);
|
|
|
|
setButtons(TDECModule::Help|TDECModule::Apply);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -124,9 +124,9 @@ m_mgr = new AltFilesManager("/var/lib/rpm/alternatives");
|
|
|
|
m_statusCombo->setEnabled(false);
|
|
|
|
m_statusCombo->setEnabled(false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
myAboutData = new KAboutData("kcmkalternatives", I18N_NOOP("Kalternatives"),
|
|
|
|
myAboutData = new TDEAboutData("kcmkalternatives", I18N_NOOP("Kalternatives"),
|
|
|
|
KALT_VERSION, I18N_NOOP("KDE Mandrake/Debian alternatives-system manager"),
|
|
|
|
KALT_VERSION, I18N_NOOP("KDE Mandrake/Debian alternatives-system manager"),
|
|
|
|
KAboutData::License_GPL, I18N_NOOP("(c) 2004 Juanjo Alvarez Martinez\n"
|
|
|
|
TDEAboutData::License_GPL, I18N_NOOP("(c) 2004 Juanjo Alvarez Martinez\n"
|
|
|
|
"(c) 2004 Mario Bensi"));
|
|
|
|
"(c) 2004 Mario Bensi"));
|
|
|
|
|
|
|
|
|
|
|
|
myAboutData->addAuthor("Juanjo Alvarez Martinez", 0, "juanjo@juanjoalvarez.net",
|
|
|
|
myAboutData->addAuthor("Juanjo Alvarez Martinez", 0, "juanjo@juanjoalvarez.net",
|
|
|
@ -186,7 +186,7 @@ void Kalternatives::load()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Kalternatives::clearList(KListView* list)
|
|
|
|
void Kalternatives::clearList(TDEListView* list)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQListViewItemIterator it( list );
|
|
|
|
TQListViewItemIterator it( list );
|
|
|
|
TQListViewItem *tmp;
|
|
|
|
TQListViewItem *tmp;
|
|
|
|