Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 934db26c3f
commit e54e867af2

@ -166,7 +166,7 @@ void BackupDialog::backup()
TQDir dir; TQDir dir;
// Compute a default file name & path (eg. "Baskets_2007-01-31.tar.gz"): // Compute a default file name & path (eg. "Baskets_2007-01-31.tar.gz"):
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Backups"); config->setGroup("Backups");
TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/"; TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/";
TQString fileName = i18n("Backup filename (without extension), %1 is the date", "Baskets_%1") TQString fileName = i18n("Backup filename (without extension), %1 is the date", "Baskets_%1")
@ -224,7 +224,7 @@ void BackupDialog::backup()
void BackupDialog::restore() void BackupDialog::restore()
{ {
// Get last backup folder: // Get last backup folder:
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Backups"); config->setGroup("Backups");
TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/"; TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/";

@ -4334,7 +4334,7 @@ void Basket::noteSaveAs()
return; return;
// TODO: Convert format, etc. (use NoteContent::saveAs(fileName)) // TODO: Convert format, etc. (use NoteContent::saveAs(fileName))
KIO::copy(url, KURL(fileName)); TDEIO::copy(url, KURL(fileName));
} }
Note* Basket::selectedGroup() Note* Basket::selectedGroup()
@ -4606,13 +4606,13 @@ void Basket::linkLookChanged()
relayoutNotes(true); relayoutNotes(true);
} }
void Basket::slotCopyingDone2(KIO::Job *job) void Basket::slotCopyingDone2(TDEIO::Job *job)
{ {
if (job->error()) { if (job->error()) {
DEBUG_WIN << "Copy finished, ERROR"; DEBUG_WIN << "Copy finished, ERROR";
return; return;
} }
KIO::FileCopyJob *fileCopyJob = (KIO::FileCopyJob*)job; TDEIO::FileCopyJob *fileCopyJob = (TDEIO::FileCopyJob*)job;
Note *note = noteForFullPath(fileCopyJob->destURL().path()); Note *note = noteForFullPath(fileCopyJob->destURL().path());
DEBUG_WIN << "Copy finished, load note: " + fileCopyJob->destURL().path() + (note ? "" : " --- NO CORRESPONDING NOTE"); DEBUG_WIN << "Copy finished, load note: " + fileCopyJob->destURL().path() + (note ? "" : " --- NO CORRESPONDING NOTE");
if (note != 0L) { if (note != 0L) {
@ -5394,7 +5394,7 @@ bool Basket::saveToFile(const TQString& fullPath, const TQByteArray& array, TQ_U
), ),
(openSuccess (openSuccess
? i18n("Please remove files on the disk <b>%1</b> to let the application safely save your changes.") ? i18n("Please remove files on the disk <b>%1</b> to let the application safely save your changes.")
.arg(KIO::findPathMountPoint(fullPath)) .arg(TDEIO::findPathMountPoint(fullPath))
: i18n("File permissions are bad for <b>%1</b>. Please check that you have write access to it and the parent folders.") : i18n("File permissions are bad for <b>%1</b>. Please check that you have write access to it and the parent folders.")
.arg(fullPath) .arg(fullPath)
), ),

@ -589,7 +589,7 @@ public slots:
void contentsDragMoveEvent(TQDragMoveEvent *event); void contentsDragMoveEvent(TQDragMoveEvent *event);
void contentsDragLeaveEvent(TQDragLeaveEvent*); void contentsDragLeaveEvent(TQDragLeaveEvent*);
public slots: public slots:
void slotCopyingDone2(KIO::Job *job); void slotCopyingDone2(TDEIO::Job *job);
public: public:
Note* noteForFullPath(const TQString &path); Note* noteForFullPath(const TQString &path);

@ -2,7 +2,7 @@
Encoding=UTF-8 Encoding=UTF-8
Icon=run Icon=run
Type=Service Type=Service
ServiceTypes=KCModule ServiceTypes=TDECModule
X-TDE-ModuleType=Library X-TDE-ModuleType=Library
X-TDE-Library=basket X-TDE-Library=basket

@ -2,7 +2,7 @@
Encoding=UTF-8 Encoding=UTF-8
Icon=basket Icon=basket
Type=Service Type=Service
ServiceTypes=KCModule ServiceTypes=TDECModule
X-TDE-ModuleType=Library X-TDE-ModuleType=Library
X-TDE-Library=basket X-TDE-Library=basket

@ -2,7 +2,7 @@
Encoding=UTF-8 Encoding=UTF-8
Icon=configure Icon=configure
Type=Service Type=Service
ServiceTypes=KCModule ServiceTypes=TDECModule
X-TDE-ModuleType=Library X-TDE-ModuleType=Library
X-TDE-Library=basket X-TDE-Library=basket

@ -2,7 +2,7 @@
Encoding=UTF-8 Encoding=UTF-8
Icon=filenew Icon=filenew
Type=Service Type=Service
ServiceTypes=KCModule ServiceTypes=TDECModule
X-TDE-ModuleType=Library X-TDE-ModuleType=Library
X-TDE-Library=basket X-TDE-Library=basket

@ -2,7 +2,7 @@
Encoding=UTF-8 Encoding=UTF-8
Icon=colorize Icon=colorize
Type=Service Type=Service
ServiceTypes=KCModule ServiceTypes=TDECModule
X-TDE-ModuleType=Library X-TDE-ModuleType=Library
X-TDE-Library=basket X-TDE-Library=basket

@ -1793,7 +1793,7 @@ void BNPView::saveAsArchive()
TQDir dir; TQDir dir;
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Basket Archive"); config->setGroup("Basket Archive");
TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/"; TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/";
TQString url = folder + TQString(basket->basketName()).replace("/", "_") + ".baskets"; TQString url = folder + TQString(basket->basketName()).replace("/", "_") + ".baskets";

@ -88,7 +88,7 @@ void ExporterDialog::show()
void ExporterDialog::load() void ExporterDialog::load()
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("HTML Export"); config->setGroup("HTML Export");
TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/"; TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/";
@ -103,7 +103,7 @@ void ExporterDialog::load()
void ExporterDialog::save() void ExporterDialog::save()
{ {
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("HTML Export"); config->setGroup("HTML Export");
TQString folder = KURL(m_url->url()).directory(); TQString folder = KURL(m_url->url()).directory();

@ -58,8 +58,8 @@ bool FormatImporter::shouldImportBaskets()
void FormatImporter::copyFolder(const TQString &folder, const TQString &newFolder) void FormatImporter::copyFolder(const TQString &folder, const TQString &newFolder)
{ {
copyFinished = false; copyFinished = false;
KIO::CopyJob *copyJob = KIO::copyAs(KURL(folder), KURL(newFolder), /*showProgressInfo=*/false); TDEIO::CopyJob *copyJob = TDEIO::copyAs(KURL(folder), KURL(newFolder), /*showProgressInfo=*/false);
connect( copyJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotCopyingDone(KIO::Job*)) ); connect( copyJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(slotCopyingDone(TDEIO::Job*)) );
while (!copyFinished) while (!copyFinished)
kapp->processEvents(); kapp->processEvents();
} }
@ -67,13 +67,13 @@ void FormatImporter::copyFolder(const TQString &folder, const TQString &newFolde
void FormatImporter::moveFolder(const TQString &folder, const TQString &newFolder) void FormatImporter::moveFolder(const TQString &folder, const TQString &newFolder)
{ {
copyFinished = false; copyFinished = false;
KIO::CopyJob *copyJob = KIO::moveAs(KURL(folder), KURL(newFolder), /*showProgressInfo=*/false); TDEIO::CopyJob *copyJob = TDEIO::moveAs(KURL(folder), KURL(newFolder), /*showProgressInfo=*/false);
connect( copyJob, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotCopyingDone(KIO::Job*)) ); connect( copyJob, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(slotCopyingDone(TDEIO::Job*)) );
while (!copyFinished) while (!copyFinished)
kapp->processEvents(); kapp->processEvents();
} }
void FormatImporter::slotCopyingDone(KIO::Job *) void FormatImporter::slotCopyingDone(TDEIO::Job *)
{ {
// std::cout << "Copy finished of " + from.path() + " to " + to.path() << std::endl; // std::cout << "Copy finished of " + from.path() + " to " + to.path() << std::endl;
copyFinished = true; copyFinished = true;

@ -25,7 +25,7 @@
//#include <tqwidget.h> //#include <tqwidget.h>
#include <tqdom.h> #include <tqdom.h>
namespace KIO { namespace TDEIO {
class Job; class Job;
} }
@ -44,7 +44,7 @@ class FormatImporter : TQObject
void copyFolder(const TQString &folder, const TQString &newFolder); void copyFolder(const TQString &folder, const TQString &newFolder);
void moveFolder(const TQString &folder, const TQString &newFolder); void moveFolder(const TQString &folder, const TQString &newFolder);
private slots: private slots:
void slotCopyingDone(KIO::Job*); void slotCopyingDone(TDEIO::Job*);
private: private:
bool copyFinished; bool copyFinished;
}; };

@ -41,7 +41,7 @@ BackgroundManager *Global::backgroundManager = 0L;
SystemTray *Global::systemTray = 0L; SystemTray *Global::systemTray = 0L;
BNPView *Global::bnpView = 0L; BNPView *Global::bnpView = 0L;
TDEGlobalAccel *Global::globalAccel = 0L; TDEGlobalAccel *Global::globalAccel = 0L;
KConfig *Global::basketConfig = 0L; TDEConfig *Global::basketConfig = 0L;
AboutData Global::basketAbout; AboutData Global::basketAbout;
void Global::setCustomSavesFolder(const TQString &folder) void Global::setCustomSavesFolder(const TQString &folder)
@ -92,7 +92,7 @@ KMainWindow* Global::mainWindow()
return 0; return 0;
} }
KConfig* Global::config() TDEConfig* Global::config()
{ {
if(!Global::basketConfig) if(!Global::basketConfig)
Global::basketConfig = KSharedConfig::openConfig("basketrc"); Global::basketConfig = KSharedConfig::openConfig("basketrc");

@ -50,7 +50,7 @@ class Global
static SystemTray *systemTray; static SystemTray *systemTray;
static BNPView *bnpView; static BNPView *bnpView;
static TDEGlobalAccel *globalAccel; static TDEGlobalAccel *globalAccel;
static KConfig *basketConfig; static TDEConfig *basketConfig;
static AboutData basketAbout; static AboutData basketAbout;
// Application Folders: // Application Folders:
@ -64,7 +64,7 @@ class Global
// Various Things: // Various Things:
static TQString openNoteIcon(); /// << @return the icon used for the "Open" action on notes. static TQString openNoteIcon(); /// << @return the icon used for the "Open" action on notes.
static KMainWindow* mainWindow(); static KMainWindow* mainWindow();
static KConfig* config(); static TDEConfig* config();
static TDEAboutData* about() { return &basketAbout; }; static TDEAboutData* about() { return &basketAbout; };
}; };

@ -44,7 +44,7 @@ HTMLExporter::HTMLExporter(Basket *basket)
TQDir dir; TQDir dir;
// Compute a default file name & path: // Compute a default file name & path:
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
config->setGroup("Export to HTML"); config->setGroup("Export to HTML");
TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/"; TQString folder = config->readEntry("lastFolder", TQDir::homeDirPath()) + "/";
TQString url = folder + TQString(basket->basketName()).replace("/", "_") + ".html"; TQString url = folder + TQString(basket->basketName()).replace("/", "_") + ".html";
@ -550,11 +550,11 @@ TQString HTMLExporter::copyFile(const TQString &srcPath, bool createIt)
if (file.open(IO_WriteOnly)) if (file.open(IO_WriteOnly))
file.close(); file.close();
// And then we copy the file AND overwriting the file we juste created: // And then we copy the file AND overwriting the file we juste created:
new KIO::FileCopyJob( new TDEIO::FileCopyJob(
KURL(srcPath), KURL(fullPath), 0666, /*move=*/false, KURL(srcPath), KURL(fullPath), 0666, /*move=*/false,
/*overwrite=*/true, /*resume=*/true, /*showProgress=*/false ); /*overwrite=*/true, /*resume=*/true, /*showProgress=*/false );
} else } else
/*KIO::CopyJob *copyJob = */KIO::copy(KURL(srcPath), KURL(fullPath)); // Do it as before /*TDEIO::CopyJob *copyJob = */TDEIO::copy(KURL(srcPath), KURL(fullPath)); // Do it as before
return fileName; return fileName;
} }

@ -28,7 +28,7 @@
//---------------------------- //----------------------------
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_basket_config_general(TQWidget *parent, const char *) KDE_EXPORT TDECModule *create_basket_config_general(TQWidget *parent, const char *)
{ {
GeneralPage *page = new GeneralPage(parent, "kcmbasket_config_general"); GeneralPage *page = new GeneralPage(parent, "kcmbasket_config_general");
return page; return page;
@ -37,7 +37,7 @@ extern "C"
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_basket_config_baskets(TQWidget *parent, const char *) KDE_EXPORT TDECModule *create_basket_config_baskets(TQWidget *parent, const char *)
{ {
BasketsPage *page = new BasketsPage(parent, "kcmbasket_config_baskets"); BasketsPage *page = new BasketsPage(parent, "kcmbasket_config_baskets");
return page; return page;
@ -46,7 +46,7 @@ extern "C"
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_basket_config_new_notes(TQWidget *parent, const char *) KDE_EXPORT TDECModule *create_basket_config_new_notes(TQWidget *parent, const char *)
{ {
NewNotesPage *page = new NewNotesPage(parent, "kcmbasket_config_new_notes"); NewNotesPage *page = new NewNotesPage(parent, "kcmbasket_config_new_notes");
return page; return page;
@ -55,7 +55,7 @@ extern "C"
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_basket_config_notes_appearance(TQWidget *parent, const char *) KDE_EXPORT TDECModule *create_basket_config_notes_appearance(TQWidget *parent, const char *)
{ {
NotesAppearancePage *page = new NotesAppearancePage(parent, "kcmbasket_config_notes_appearance"); NotesAppearancePage *page = new NotesAppearancePage(parent, "kcmbasket_config_notes_appearance");
return page; return page;
@ -64,7 +64,7 @@ extern "C"
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_basket_config_apps(TQWidget *parent, const char *) KDE_EXPORT TDECModule *create_basket_config_apps(TQWidget *parent, const char *)
{ {
ApplicationsPage *page = new ApplicationsPage(parent, "kcmbasket_config_apps"); ApplicationsPage *page = new ApplicationsPage(parent, "kcmbasket_config_apps");
return page; return page;

@ -106,8 +106,8 @@ void KIconDialog::init()
setCustomLocation(TQString()); // Initialize mFileList setCustomLocation(TQString()); // Initialize mFileList
// Read configuration // Read configuration
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
KConfigGroupSaver saver(config, "KIconDialog"); TDEConfigGroupSaver saver(config, "KIconDialog");
d->recentMax = config->readNumEntry("RecentMax", 10); d->recentMax = config->readNumEntry("RecentMax", 10);
d->recentList = config->readPathListEntry("RecentIcons"); d->recentList = config->readPathListEntry("RecentIcons");
@ -143,8 +143,8 @@ void KIconDialog::init()
KIconDialog::~KIconDialog() KIconDialog::~KIconDialog()
{ {
// Write configuration // Write configuration
KConfig *config = TDEGlobal::config(); TDEConfig *config = TDEGlobal::config();
KConfigGroupSaver saver(config, "KIconDialog"); TDEConfigGroupSaver saver(config, "KIconDialog");
config->writeEntry("RecentMax", d->recentMax, true, true); config->writeEntry("RecentMax", d->recentMax, true, true);
config->writePathEntry("RecentIcons", d->recentList, ',', true, true); config->writePathEntry("RecentIcons", d->recentList, ',', true, true);

@ -208,7 +208,7 @@ LikeBackPrivate::~LikeBackPrivate()
/********** class LikeBack: **********/ /********** class LikeBack: **********/
/*************************************/ /*************************************/
LikeBack::LikeBack(Button buttons, bool showBarByDefault, KConfig *config, const TDEAboutData *aboutData) LikeBack::LikeBack(Button buttons, bool showBarByDefault, TDEConfig *config, const TDEAboutData *aboutData)
: TQObject() : TQObject()
{ {
// Initialize properties (1/2): // Initialize properties (1/2):
@ -369,7 +369,7 @@ const TDEAboutData* LikeBack::aboutData()
return d->aboutData; return d->aboutData;
} }
KConfig* LikeBack::config() TDEConfig* LikeBack::config()
{ {
return d->config; return d->config;
} }
@ -605,7 +605,7 @@ void LikeBack::fetchUserEmail()
// m_configureEmail->setEnabled(true); // m_configureEmail->setEnabled(true);
// ### KDE4: why oh why is KEmailSettings in kio? // ### KDE4: why oh why is KEmailSettings in kio?
KConfig emailConf( TQString::fromLatin1("emaildefaults") ); TDEConfig emailConf( TQString::fromLatin1("emaildefaults") );
// find out the default profile // find out the default profile
emailConf.setGroup(TQString::fromLatin1("Defaults")); emailConf.setGroup(TQString::fromLatin1("Defaults"));

@ -23,7 +23,7 @@
#include <tqobject.h> #include <tqobject.h>
class KConfig; class TDEConfig;
class TDEAboutData; class TDEAboutData;
class KAction; class KAction;
class KActionCollection; class KActionCollection;
@ -124,7 +124,7 @@ class LikeBack : public TQObject
* The version is used to store the button-bar visibility per version (can be shown in a development version but not in a final one...) * The version is used to store the button-bar visibility per version (can be shown in a development version but not in a final one...)
* and to send with the comment, so you can filter per version and know if a comment refers the latest version of the application or not. * and to send with the comment, so you can filter per version and know if a comment refers the latest version of the application or not.
*/ */
LikeBack(Button buttons = DefaultButtons, bool showBarByDefault = false, KConfig *config = 0, const TDEAboutData *aboutData = 0); LikeBack(Button buttons = DefaultButtons, bool showBarByDefault = false, TDEConfig *config = 0, const TDEAboutData *aboutData = 0);
/** /**
* Destructor. * Destructor.
@ -330,10 +330,10 @@ class LikeBack : public TQObject
const TDEAboutData *aboutData(); const TDEAboutData *aboutData();
/** /**
* @Returns A pointer to the KConfig used to store user configuration (email address, if the button-bar should be shown). * @Returns A pointer to the TDEConfig used to store user configuration (email address, if the button-bar should be shown).
* @See The LikeBack constructor for more information. * @See The LikeBack constructor for more information.
*/ */
KConfig *config(); TDEConfig *config();
/** /**
* During the first comment sending, the user is invited to enter his email address for the developers to be able to contact him back. * During the first comment sending, the user is invited to enter his email address for the developers to be able to contact him back.

@ -38,7 +38,7 @@ class LikeBackPrivate
LikeBackPrivate(); LikeBackPrivate();
~LikeBackPrivate(); ~LikeBackPrivate();
LikeBackBar *bar; LikeBackBar *bar;
KConfig *config; TDEConfig *config;
const TDEAboutData *aboutData; const TDEAboutData *aboutData;
LikeBack::Button buttons; LikeBack::Button buttons;
TQString hostName; TQString hostName;

@ -554,7 +554,7 @@ TQString LinkDisplay::toHtml(HTMLExporter *exporter, const KURL &url, const TQSt
/** LinkLookEditWidget **/ /** LinkLookEditWidget **/
LinkLookEditWidget::LinkLookEditWidget(KCModule *module, const TQString exTitle, const TQString exIcon, LinkLookEditWidget::LinkLookEditWidget(TDECModule *module, const TQString exTitle, const TQString exIcon,
TQWidget *parent, const char *name, WFlags fl) TQWidget *parent, const char *name, WFlags fl)
: TQWidget(parent, name, fl) : TQWidget(parent, name, fl)
{ {

@ -38,7 +38,7 @@ class IconSizeCombo;
class HTMLExporter; class HTMLExporter;
class HelpLabel; class HelpLabel;
class KCModule; class TDECModule;
/** Store the style of links /** Store the style of links
* @author S<EFBFBD>astien Laot * @author S<EFBFBD>astien Laot
@ -182,7 +182,7 @@ class LinkLookEditWidget : public TQWidget
Q_OBJECT Q_OBJECT
public: public:
LinkLookEditWidget(KCModule* module, const TQString exTitle, const TQString exIcon, LinkLookEditWidget(TDECModule* module, const TQString exTitle, const TQString exIcon,
TQWidget *parent = 0, const char *name = 0, WFlags fl = 0); TQWidget *parent = 0, const char *name = 0, WFlags fl = 0);
~LinkLookEditWidget(); ~LinkLookEditWidget();
void saveChanges(); void saveChanges();

@ -1019,7 +1019,7 @@ void FileContent::toolTipInfos(TQStringList *keys, TQStringList *values)
{ {
// Get the size of the file: // Get the size of the file:
uint size = TQFileInfo(fullPath()).size(); uint size = TQFileInfo(fullPath()).size();
TQString humanFileSize = KIO::convertSize((KIO::filesize_t)size); TQString humanFileSize = TDEIO::convertSize((TDEIO::filesize_t)size);
keys->append(i18n("Size")); keys->append(i18n("Size"));
values->append(humanFileSize); values->append(humanFileSize);
@ -1134,7 +1134,7 @@ void FileContent::startFetchingUrlPreview()
KURL filteredUrl = NoteFactory::filteredURL(url);//KURIFilter::self()->filteredURI(url); KURL filteredUrl = NoteFactory::filteredURL(url);//KURIFilter::self()->filteredURI(url);
KURL::List urlList; KURL::List urlList;
urlList.append(filteredUrl); urlList.append(filteredUrl);
m_previewJob = KIO::filePreview(urlList, linkLook->previewSize(), linkLook->previewSize(), linkLook->iconSize()); m_previewJob = TDEIO::filePreview(urlList, linkLook->previewSize(), linkLook->previewSize(), linkLook->iconSize());
connect( m_previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), this, TQT_SLOT(newPreview(const KFileItem*, const TQPixmap&)) ); connect( m_previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), this, TQT_SLOT(newPreview(const KFileItem*, const TQPixmap&)) );
connect( m_previewJob, TQT_SIGNAL(failed(const KFileItem*)), this, TQT_SLOT(removePreview(const KFileItem*)) ); connect( m_previewJob, TQT_SIGNAL(failed(const KFileItem*)), this, TQT_SLOT(removePreview(const KFileItem*)) );
} }
@ -1346,7 +1346,7 @@ void LinkContent::startFetchingUrlPreview()
KURL filteredUrl = NoteFactory::filteredURL(url);//KURIFilter::self()->filteredURI(url); KURL filteredUrl = NoteFactory::filteredURL(url);//KURIFilter::self()->filteredURI(url);
KURL::List urlList; KURL::List urlList;
urlList.append(filteredUrl); urlList.append(filteredUrl);
m_previewJob = KIO::filePreview(urlList, linkLook->previewSize(), linkLook->previewSize(), linkLook->iconSize()); m_previewJob = TDEIO::filePreview(urlList, linkLook->previewSize(), linkLook->previewSize(), linkLook->iconSize());
connect( m_previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), this, TQT_SLOT(newPreview(const KFileItem*, const TQPixmap&)) ); connect( m_previewJob, TQT_SIGNAL(gotPreview(const KFileItem*, const TQPixmap&)), this, TQT_SLOT(newPreview(const KFileItem*, const TQPixmap&)) );
connect( m_previewJob, TQT_SIGNAL(failed(const KFileItem*)), this, TQT_SLOT(removePreview(const KFileItem*)) ); connect( m_previewJob, TQT_SIGNAL(failed(const KFileItem*)), this, TQT_SLOT(removePreview(const KFileItem*)) );
} }

@ -41,7 +41,7 @@ class TQStringList;
class KMultipleDrag; class KMultipleDrag;
class KFileItem; class KFileItem;
namespace KIO { class PreviewJob; } namespace TDEIO { class PreviewJob; }
class Note; class Note;
class Basket; class Basket;
@ -370,7 +370,7 @@ class FileContent : public TQObject, public NoteContent
void removePreview(const KFileItem*); void removePreview(const KFileItem*);
void startFetchingUrlPreview(); void startFetchingUrlPreview();
protected: protected:
KIO::PreviewJob *m_previewJob; TDEIO::PreviewJob *m_previewJob;
}; };
/** Real implementation of sound notes: /** Real implementation of sound notes:
@ -468,7 +468,7 @@ class LinkContent : public TQObject, public NoteContent
void removePreview(const KFileItem*); void removePreview(const KFileItem*);
void startFetchingUrlPreview(); void startFetchingUrlPreview();
protected: protected:
KIO::PreviewJob *m_previewJob; TDEIO::PreviewJob *m_previewJob;
}; };
/** Real implementation of launcher notes: /** Real implementation of launcher notes:

@ -115,7 +115,7 @@ void NoteDrag::serializeNotes(NoteSelection *noteList, TQDataStream &stream, boo
if (cutting) { if (cutting) {
// Move file in a temporary place: // Move file in a temporary place:
TQString fullPath = Global::tempCutFolder() + Tools::fileNameForNewFile(content->fileName(), Global::tempCutFolder()); TQString fullPath = Global::tempCutFolder() + Tools::fileNameForNewFile(content->fileName(), Global::tempCutFolder());
KIO::move(KURL(content->fullPath()), KURL(fullPath), /*showProgressInfo=*/false); TDEIO::move(KURL(content->fullPath()), KURL(fullPath), /*showProgressInfo=*/false);
node->fullPath = fullPath; node->fullPath = fullPath;
stream << fullPath; stream << fullPath;
} else } else
@ -482,10 +482,10 @@ Note* NoteDrag::decodeHierarchy(TQDataStream &stream, Basket *parent, bool moveF
if (note->basket() != parent) { if (note->basket() != parent) {
TQString newFileName = NoteFactory::createFileForNewNote(parent, "", fileName); TQString newFileName = NoteFactory::createFileForNewNote(parent, "", fileName);
note->content()->setFileName(newFileName); note->content()->setFileName(newFileName);
KIO::FileCopyJob *copyJob = KIO::file_move(KURL(fullPath), KURL(parent->fullPath() + newFileName), TDEIO::FileCopyJob *copyJob = TDEIO::file_move(KURL(fullPath), KURL(parent->fullPath() + newFileName),
/*perms=*/-1, /*override=*/true, /*resume=*/false, /*showProgressInfo=*/false); /*perms=*/-1, /*override=*/true, /*resume=*/false, /*showProgressInfo=*/false);
parent->connect( copyJob, TQT_SIGNAL(result(KIO::Job *)), parent->connect( copyJob, TQT_SIGNAL(result(TDEIO::Job *)),
parent, TQT_SLOT(slotCopyingDone2(KIO::Job *)) ); parent, TQT_SLOT(slotCopyingDone2(TDEIO::Job *)) );
} }
note->setGroupWidth(groupWidth); note->setGroupWidth(groupWidth);
note->setParentNote(0); note->setParentNote(0);
@ -503,15 +503,15 @@ Note* NoteDrag::decodeHierarchy(TQDataStream &stream, Basket *parent, bool moveF
// Later on, file_copy/file_move will copy/move the file to the new location. // Later on, file_copy/file_move will copy/move the file to the new location.
TQString newFileName = NoteFactory::createFileForNewNote(parent, "", fileName); TQString newFileName = NoteFactory::createFileForNewNote(parent, "", fileName);
note = NoteFactory::loadFile(newFileName, (NoteType::Id)type, parent); note = NoteFactory::loadFile(newFileName, (NoteType::Id)type, parent);
KIO::FileCopyJob *copyJob; TDEIO::FileCopyJob *copyJob;
if (moveFiles) if (moveFiles)
copyJob = KIO::file_move(KURL(fullPath), KURL(parent->fullPath() + newFileName), copyJob = TDEIO::file_move(KURL(fullPath), KURL(parent->fullPath() + newFileName),
/*perms=*/-1, /*override=*/true, /*resume=*/false, /*showProgressInfo=*/false); /*perms=*/-1, /*override=*/true, /*resume=*/false, /*showProgressInfo=*/false);
else else
copyJob = KIO::file_copy(KURL(fullPath), KURL(parent->fullPath() + newFileName), copyJob = TDEIO::file_copy(KURL(fullPath), KURL(parent->fullPath() + newFileName),
/*perms=*/-1, /*override=*/true, /*resume=*/false, /*showProgressInfo=*/false); /*perms=*/-1, /*override=*/true, /*resume=*/false, /*showProgressInfo=*/false);
parent->connect( copyJob, TQT_SIGNAL(result(KIO::Job *)), parent->connect( copyJob, TQT_SIGNAL(result(TDEIO::Job *)),
parent, TQT_SLOT(slotCopyingDone2(KIO::Job *)) ); parent, TQT_SLOT(slotCopyingDone2(TDEIO::Job *)) );
note->setGroupWidth(groupWidth); note->setGroupWidth(groupWidth);
note->setAddedDate(addedDate); note->setAddedDate(addedDate);
note->setLastModificationDate(lastModificationDate); note->setLastModificationDate(lastModificationDate);

@ -760,7 +760,7 @@ void LauncherEditDialog::slotOk()
{ {
// TODO: Remember if a string has been modified AND IS DIFFERENT FROM THE ORIGINAL! // TODO: Remember if a string has been modified AND IS DIFFERENT FROM THE ORIGINAL!
KConfig conf(m_noteContent->fullPath()); TDEConfig conf(m_noteContent->fullPath());
conf.setGroup("Desktop Entry"); conf.setGroup("Desktop Entry");
conf.writeEntry("Exec", m_command->runCommand()); conf.writeEntry("Exec", m_command->runCommand());
conf.writeEntry("Name", m_name->text()); conf.writeEntry("Name", m_name->text());

@ -686,15 +686,15 @@ Note* NoteFactory::copyFileAndLoad(const KURL &url, Basket *parent)
// parent->dontCareOfCreation(fullPath); // parent->dontCareOfCreation(fullPath);
// KIO::CopyJob *copyJob = KIO::copy(url, KURL(fullPath)); // TDEIO::CopyJob *copyJob = TDEIO::copy(url, KURL(fullPath));
// parent->connect( copyJob, TQT_SIGNAL(copyingDone(KIO::Job *, const KURL &, const KURL &, bool, bool)), // parent->connect( copyJob, TQT_SIGNAL(copyingDone(TDEIO::Job *, const KURL &, const KURL &, bool, bool)),
// parent, TQT_SLOT(slotCopyingDone(KIO::Job *, const KURL &, const KURL &, bool, bool)) ); // parent, TQT_SLOT(slotCopyingDone(TDEIO::Job *, const KURL &, const KURL &, bool, bool)) );
KIO::FileCopyJob *copyJob = new KIO::FileCopyJob( TDEIO::FileCopyJob *copyJob = new TDEIO::FileCopyJob(
url, KURL(fullPath), 0666, /*move=*/false, url, KURL(fullPath), 0666, /*move=*/false,
/*overwrite=*/true, /*resume=*/true, /*showProgress=*/true ); /*overwrite=*/true, /*resume=*/true, /*showProgress=*/true );
parent->connect( copyJob, TQT_SIGNAL(result(KIO::Job *)), parent->connect( copyJob, TQT_SIGNAL(result(TDEIO::Job *)),
parent, TQT_SLOT(slotCopyingDone2(KIO::Job *)) ); parent, TQT_SLOT(slotCopyingDone2(TDEIO::Job *)) );
NoteType::Id type = typeForURL(url, parent); // Use the type of the original file because the target doesn't exist yet NoteType::Id type = typeForURL(url, parent); // Use the type of the original file because the target doesn't exist yet
@ -703,7 +703,7 @@ Note* NoteFactory::copyFileAndLoad(const KURL &url, Basket *parent)
Note* NoteFactory::moveFileAndLoad(const KURL &url, Basket *parent) Note* NoteFactory::moveFileAndLoad(const KURL &url, Basket *parent)
{ {
// Globally the same as copyFileAndLoad() but move instead of copy (KIO::move()) // Globally the same as copyFileAndLoad() but move instead of copy (TDEIO::move())
TQString fileName = fileNameForNewNote(parent, url.fileName()); TQString fileName = fileNameForNewNote(parent, url.fileName());
TQString fullPath = parent->fullPathForFileName(fileName); TQString fullPath = parent->fullPathForFileName(fileName);
@ -714,15 +714,15 @@ Note* NoteFactory::moveFileAndLoad(const KURL &url, Basket *parent)
// parent->dontCareOfCreation(fullPath); // parent->dontCareOfCreation(fullPath);
// KIO::CopyJob *copyJob = KIO::move(url, KURL(fullPath)); // TDEIO::CopyJob *copyJob = TDEIO::move(url, KURL(fullPath));
// parent->connect( copyJob, TQT_SIGNAL(copyingDone(KIO::Job *, const KURL &, const KURL &, bool, bool)), // parent->connect( copyJob, TQT_SIGNAL(copyingDone(TDEIO::Job *, const KURL &, const KURL &, bool, bool)),
// parent, TQT_SLOT(slotCopyingDone(KIO::Job *, const KURL &, const KURL &, bool, bool)) ); // parent, TQT_SLOT(slotCopyingDone(TDEIO::Job *, const KURL &, const KURL &, bool, bool)) );
KIO::FileCopyJob *copyJob = new KIO::FileCopyJob( TDEIO::FileCopyJob *copyJob = new TDEIO::FileCopyJob(
url, KURL(fullPath), 0666, /*move=*/true, url, KURL(fullPath), 0666, /*move=*/true,
/*overwrite=*/true, /*resume=*/true, /*showProgress=*/true ); /*overwrite=*/true, /*resume=*/true, /*showProgress=*/true );
parent->connect( copyJob, TQT_SIGNAL(result(KIO::Job *)), parent->connect( copyJob, TQT_SIGNAL(result(TDEIO::Job *)),
parent, TQT_SLOT(slotCopyingDone2(KIO::Job *)) ); parent, TQT_SLOT(slotCopyingDone2(TDEIO::Job *)) );
NoteType::Id type = typeForURL(url, parent); // Use the type of the original file because the target doesn't exist yet NoteType::Id type = typeForURL(url, parent); // Use the type of the original file because the target doesn't exist yet

@ -123,7 +123,7 @@ void Settings::loadConfig()
loadLinkLook(LinkLook::networkLinkLook, "Network Link Look", defaultNetworkLinkLook); loadLinkLook(LinkLook::networkLinkLook, "Network Link Look", defaultNetworkLinkLook);
loadLinkLook(LinkLook::launcherLook, "Launcher Look", defaultLauncherLook ); loadLinkLook(LinkLook::launcherLook, "Launcher Look", defaultLauncherLook );
KConfig* config = Global::config(); TDEConfig* config = Global::config();
config->setGroup("Main window"); // TODO: Split with a "System tray icon" group ! config->setGroup("Main window"); // TODO: Split with a "System tray icon" group !
setTreeOnLeft( config->readBoolEntry("treeOnLeft", true) ); setTreeOnLeft( config->readBoolEntry("treeOnLeft", true) );
setFilterOnTop( config->readBoolEntry("filterOnTop", true) ); setFilterOnTop( config->readBoolEntry("filterOnTop", true) );
@ -207,7 +207,7 @@ void Settings::saveConfig()
saveLinkLook(LinkLook::networkLinkLook, "Network Link Look"); saveLinkLook(LinkLook::networkLinkLook, "Network Link Look");
saveLinkLook(LinkLook::launcherLook, "Launcher Look" ); saveLinkLook(LinkLook::launcherLook, "Launcher Look" );
KConfig* config = Global::config(); TDEConfig* config = Global::config();
config->setGroup("Main window"); config->setGroup("Main window");
config->writeEntry( "treeOnLeft", treeOnLeft() ); config->writeEntry( "treeOnLeft", treeOnLeft() );
config->writeEntry( "filterOnTop", filterOnTop() ); config->writeEntry( "filterOnTop", filterOnTop() );
@ -272,7 +272,7 @@ void Settings::saveConfig()
void Settings::loadLinkLook(LinkLook *look, const TQString &name, const LinkLook &defaultLook) void Settings::loadLinkLook(LinkLook *look, const TQString &name, const LinkLook &defaultLook)
{ {
KConfig* config = Global::config(); TDEConfig* config = Global::config();
config->setGroup(name); config->setGroup(name);
TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" }; TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" };
@ -304,7 +304,7 @@ void Settings::loadLinkLook(LinkLook *look, const TQString &name, const LinkLook
void Settings::saveLinkLook(LinkLook *look, const TQString &name) void Settings::saveLinkLook(LinkLook *look, const TQString &name)
{ {
KConfig* config = Global::config(); TDEConfig* config = Global::config();
config->setGroup(name); config->setGroup(name);
TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" }; TQString underliningStrings[] = { "Always", "Never", "OnMouseHover", "OnMouseOutside" };
@ -355,7 +355,7 @@ void Settings::setAutoBullet(bool yes)
/** GeneralPage */ /** GeneralPage */
GeneralPage::GeneralPage(TQWidget * parent, const char * name) GeneralPage::GeneralPage(TQWidget * parent, const char * name)
: KCModule(parent, name) : TDECModule(parent, name)
{ {
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
TQHBoxLayout *hLay; TQHBoxLayout *hLay;
@ -500,7 +500,7 @@ void GeneralPage::defaults()
/** BasketsPage */ /** BasketsPage */
BasketsPage::BasketsPage(TQWidget * parent, const char * name) BasketsPage::BasketsPage(TQWidget * parent, const char * name)
: KCModule(parent, name) : TDECModule(parent, name)
{ {
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
TQHBoxLayout *hLay; TQHBoxLayout *hLay;
@ -680,7 +680,7 @@ void BasketsPage::defaults()
/** class NewNotesPage: */ /** class NewNotesPage: */
NewNotesPage::NewNotesPage(TQWidget * parent, const char * name) NewNotesPage::NewNotesPage(TQWidget * parent, const char * name)
: KCModule(parent, name) : TDECModule(parent, name)
{ {
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
TQHBoxLayout *hLay; TQHBoxLayout *hLay;
@ -788,7 +788,7 @@ void NewNotesPage::visualize()
/** class NotesAppearancePage: */ /** class NotesAppearancePage: */
NotesAppearancePage::NotesAppearancePage(TQWidget * parent, const char * name) NotesAppearancePage::NotesAppearancePage(TQWidget * parent, const char * name)
: KCModule(parent, name) : TDECModule(parent, name)
{ {
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());
TQTabWidget *tabs = new TQTabWidget(this); TQTabWidget *tabs = new TQTabWidget(this);
@ -835,7 +835,7 @@ void NotesAppearancePage::defaults()
/** class ApplicationsPage: */ /** class ApplicationsPage: */
ApplicationsPage::ApplicationsPage(TQWidget * parent, const char * name) ApplicationsPage::ApplicationsPage(TQWidget * parent, const char * name)
: KCModule(parent, name) : TDECModule(parent, name)
{ {
/* Applications page */ /* Applications page */
TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, /*margin=*/0, KDialogBase::spacingHint());

@ -53,7 +53,7 @@ class LinkLookEditWidget;
class RunCommandRequester; class RunCommandRequester;
class IconSizeCombo; class IconSizeCombo;
class GeneralPage : public KCModule class GeneralPage : public TDECModule
{ {
Q_OBJECT Q_OBJECT
@ -82,7 +82,7 @@ class GeneralPage : public KCModule
KIntNumInput *m_timeToShowOnMouseIn; KIntNumInput *m_timeToShowOnMouseIn;
}; };
class BasketsPage : public KCModule class BasketsPage : public TDECModule
{ {
Q_OBJECT Q_OBJECT
@ -114,7 +114,7 @@ class BasketsPage : public KCModule
KIntNumInput *m_reLockTimeoutMinutes; KIntNumInput *m_reLockTimeoutMinutes;
}; };
class NewNotesPage : public KCModule class NewNotesPage : public TDECModule
{ {
Q_OBJECT Q_OBJECT
@ -143,7 +143,7 @@ class NewNotesPage : public KCModule
TQCheckBox *m_viewSoundFileContent; TQCheckBox *m_viewSoundFileContent;
}; };
class NotesAppearancePage : public KCModule class NotesAppearancePage : public TDECModule
{ {
Q_OBJECT Q_OBJECT
@ -164,7 +164,7 @@ class NotesAppearancePage : public KCModule
LinkLookEditWidget *m_launcherLook; LinkLookEditWidget *m_launcherLook;
}; };
class ApplicationsPage : public KCModule class ApplicationsPage : public TDECModule
{ {
Q_OBJECT Q_OBJECT

Loading…
Cancel
Save