summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:14:40 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:14:40 -0600
commit715ba2979474688104ea0cd81e847f547e2214d2 (patch)
treee8e28c960416f396c67171e8c8231ade3d0c636e
parent76a6704302dfb029dbde89678f39399e009a9ffb (diff)
downloadyakuake-715ba2979474688104ea0cd81e847f547e2214d2.tar.gz
yakuake-715ba2979474688104ea0cd81e847f547e2214d2.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
-rw-r--r--ChangeLog2
-rw-r--r--yakuake/src/main_window.cpp16
-rw-r--r--yakuake/src/skin_settings.cpp40
-rw-r--r--yakuake/src/skin_settings.h6
-rw-r--r--yakuake/src/tab_bar.cpp2
-rw-r--r--yakuake/src/title_bar.cpp2
6 files changed, 34 insertions, 34 deletions
diff --git a/ChangeLog b/ChangeLog
index 1cf39f7..d1b71ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -98,7 +98,7 @@ Changes in 2.8:
without their own postfix.
* Fixed a crash when a terminal in a tab other than the currently selected tab
exits.
-* Ported preferences handling to KDE's KConfigXT framework. Aside from cleaner
+* Ported preferences handling to KDE's TDEConfigXT framework. Aside from cleaner
code, this improves over the old preferences handling by avoiding unnecessary
disk activity (and thus spurious hard drive spin-ups on laptop computers and
other battery-bound devices).
diff --git a/yakuake/src/main_window.cpp b/yakuake/src/main_window.cpp
index 558b15a..d86f6d0 100644
--- a/yakuake/src/main_window.cpp
+++ b/yakuake/src/main_window.cpp
@@ -43,7 +43,7 @@ MainWindow::MainWindow(TQWidget * parent, const char * name) :
background_changed = false;
use_translucency = false;
- KConfig config(CONFIG_FILE);
+ TDEConfig config(CONFIG_FILE);
back_widget = new TQWidget(this);
widgets_stack = new TQWidgetStack(this);
@@ -724,7 +724,7 @@ TQRect MainWindow::getDesktopGeometry()
TQRect result;
result = desk_info.workArea();
- KConfigGroup group(TDEGlobal::config(), "Windows");
+ TDEConfigGroup group(TDEGlobal::config(), "Windows");
if (TQApplication::desktop()->isVirtualDesktop() &&
group.readBoolEntry("XineramaEnabled", true) &&
@@ -1000,7 +1000,7 @@ void MainWindow::slotDecreaseHeight()
void MainWindow::slotInitSkin()
{
- KConfig config(locate("appdata", Settings::skin() + "/title.skin"));
+ TDEConfig config(locate("appdata", Settings::skin() + "/title.skin"));
config.setGroup("Border");
@@ -1133,7 +1133,7 @@ void MainWindow::slotSetAccessKey()
if (focus_policy == false) focus_policy = true;
- KConfig config(CONFIG_FILE);
+ TDEConfig config(CONFIG_FILE);
KKeyDialog::configure(global_key);
@@ -1149,7 +1149,7 @@ void MainWindow::slotSetControlKeys()
if (focus_policy == false) focus_policy = true;
- KConfig config(CONFIG_FILE);
+ TDEConfig config(CONFIG_FILE);
KKeyDialog::configure(actionCollection());
@@ -1198,10 +1198,10 @@ void MainWindow::slotOpenSettingsDialog()
if (focus_policy == false)
focus_policy = true;
- if (KConfigDialog::showDialog("settings"))
+ if (TDEConfigDialog::showDialog("settings"))
return;
- KConfigDialog* settings_dialog = new KConfigDialog(this, "settings", Settings::self());
+ TDEConfigDialog* settings_dialog = new TDEConfigDialog(this, "settings", Settings::self());
GeneralSettings* general_settings = new GeneralSettings(settings_dialog, "General");
settings_dialog->addPage(general_settings, i18n("General"), "package_settings");
@@ -1260,7 +1260,7 @@ void MainWindow::slotFirstRunDialogOK()
if (first_run_dialog_page->shortcut() != global_key->shortcut("AccessKey"))
{
- KConfig config(CONFIG_FILE);
+ TDEConfig config(CONFIG_FILE);
global_key->setShortcut("AccessKey", first_run_dialog_page->shortcut());
global_key->updateConnections();
global_key->writeSettings(&config);
diff --git a/yakuake/src/skin_settings.cpp b/yakuake/src/skin_settings.cpp
index d727d6f..3659124 100644
--- a/yakuake/src/skin_settings.cpp
+++ b/yakuake/src/skin_settings.cpp
@@ -105,7 +105,7 @@ void SkinSettings::slotPopulate()
for (TQStringList::Iterator it = skins_dirs.begin(); it != skins_dirs.end(); ++it)
{
TQUrl titles_url = locate("appdata", (*it) + "/title.skin");
- KConfig titles_config(titles_url.path());
+ TDEConfig titles_config(titles_url.path());
titles_config.setGroup("Description");
TQString titles_name(titles_config.readEntry("Skin", ""));
@@ -113,7 +113,7 @@ void SkinSettings::slotPopulate()
TQString titles_icon_name(titles_config.readEntry("Icon", ""));
TQUrl tabs_url = locate("appdata", (*it) + "/tabs.skin");
- KConfig tabs_config(tabs_url.path());
+ TDEConfig tabs_config(tabs_url.path());
tabs_config.setGroup("Description");
TQString tabs_name(tabs_config.readEntry("Skin", ""));
@@ -179,10 +179,10 @@ void SkinSettings::slotInstallSkin()
if (skin_url.isEmpty()) return;
- if (!KIO::NetAccess::download(skin_url, install_skin_file, NULL))
+ if (!TDEIO::NetAccess::download(skin_url, install_skin_file, NULL))
{
KMessageBox::error(0L,
- KIO::NetAccess::lastErrorString(),
+ TDEIO::NetAccess::lastErrorString(),
i18n("Failed to Download Skin"),
KMessageBox::Notify
);
@@ -194,29 +194,29 @@ void SkinSettings::slotInstallSkin()
if (!skin_dir.exists())
{
- KIO::ListJob* job = KIO::listRecursive("tar:" + install_skin_file, false, false);
+ TDEIO::ListJob* job = TDEIO::listRecursive("tar:" + install_skin_file, false, false);
- connect(job, TQT_SIGNAL(entries(KIO::Job*, const KIO::UDSEntryList&)),
- this, TQT_SLOT(slotListSkinArchive(KIO::Job*, const KIO::UDSEntryList&)));
+ connect(job, TQT_SIGNAL(entries(TDEIO::Job*, const TDEIO::UDSEntryList&)),
+ this, TQT_SLOT(slotListSkinArchive(TDEIO::Job*, const TDEIO::UDSEntryList&)));
- connect(job, TQT_SIGNAL(result(KIO::Job*)),
- this, TQT_SLOT(slotValidateSkinArchive(KIO::Job*)));
+ connect(job, TQT_SIGNAL(result(TDEIO::Job*)),
+ this, TQT_SLOT(slotValidateSkinArchive(TDEIO::Job*)));
}
else
failInstall(i18n("The installer was given a directory, not a file."));
}
-void SkinSettings::slotListSkinArchive(KIO::Job* /* job */, const KIO::UDSEntryList& list)
+void SkinSettings::slotListSkinArchive(TDEIO::Job* /* job */, const TDEIO::UDSEntryList& list)
{
- KIO::UDSEntryList::const_iterator it = list.begin();
+ TDEIO::UDSEntryList::const_iterator it = list.begin();
for(; it != list.end(); ++it)
{
- KIO::UDSEntry::const_iterator itUSDEntry = (*it).begin();
+ TDEIO::UDSEntry::const_iterator itUSDEntry = (*it).begin();
for (; itUSDEntry != (*it).end(); ++itUSDEntry )
{
- if((*itUSDEntry).m_uds == KIO::UDS_NAME)
+ if((*itUSDEntry).m_uds == TDEIO::UDS_NAME)
{
install_skin_file_list.append((*itUSDEntry).m_str);
}
@@ -224,7 +224,7 @@ void SkinSettings::slotListSkinArchive(KIO::Job* /* job */, const KIO::UDSEntryL
}
}
-void SkinSettings::slotValidateSkinArchive(KIO::Job* job)
+void SkinSettings::slotValidateSkinArchive(TDEIO::Job* job)
{
if (!job->error())
{
@@ -276,8 +276,8 @@ void SkinSettings::checkForExistingSkin()
if (remove == KMessageBox::Continue)
{
unlink(TQFile::encodeName(item->dir()));
- KIO::DeleteJob* job = KIO::del(KURL(item->dir()), false, false);
- connect(job, TQT_SIGNAL(result(KIO::Job*)), this, TQT_SLOT(slotInstallSkinArchive(KIO::Job*)));
+ TDEIO::DeleteJob* job = TDEIO::del(KURL(item->dir()), false, false);
+ connect(job, TQT_SIGNAL(result(TDEIO::Job*)), this, TQT_SLOT(slotInstallSkinArchive(TDEIO::Job*)));
}
else
cleanupAfterInstall();
@@ -287,7 +287,7 @@ void SkinSettings::checkForExistingSkin()
slotInstallSkinArchive();
}
-void SkinSettings::slotInstallSkinArchive(KIO::Job* delete_job)
+void SkinSettings::slotInstallSkinArchive(TDEIO::Job* delete_job)
{
if (delete_job && delete_job->error())
{
@@ -331,7 +331,7 @@ void SkinSettings::failInstall(const TQString& error)
void SkinSettings::cleanupAfterInstall()
{
- KIO::NetAccess::removeTempFile(install_skin_file);
+ TDEIO::NetAccess::removeTempFile(install_skin_file);
install_skin_file = TQString();
install_skin_name = TQString();
install_skin_file_list.clear();
@@ -354,8 +354,8 @@ void SkinSettings::slotRemoveSkin()
if (remove == KMessageBox::Continue)
{
unlink(TQFile::encodeName(selected_item->dir()));
- KIO::DeleteJob* job = KIO::del(KURL(selected_item->dir()), false, false);
- connect(job, TQT_SIGNAL(result(KIO::Job *)), this, TQT_SLOT(slotPopulate()));
+ TDEIO::DeleteJob* job = TDEIO::del(KURL(selected_item->dir()), false, false);
+ connect(job, TQT_SIGNAL(result(TDEIO::Job *)), this, TQT_SLOT(slotPopulate()));
if (selected_item->name() == Settings::skin())
{
diff --git a/yakuake/src/skin_settings.h b/yakuake/src/skin_settings.h
index 9276ce5..c5a2859 100644
--- a/yakuake/src/skin_settings.h
+++ b/yakuake/src/skin_settings.h
@@ -58,9 +58,9 @@ class SkinSettings : public SkinSettingsUI
void slotPopulate();
void slotInstallSkin();
- void slotListSkinArchive(KIO::Job* job, const KIO::UDSEntryList& list);
- void slotValidateSkinArchive(KIO::Job* job);
- void slotInstallSkinArchive(KIO::Job* delete_job = 0);
+ void slotListSkinArchive(TDEIO::Job* job, const TDEIO::UDSEntryList& list);
+ void slotValidateSkinArchive(TDEIO::Job* job);
+ void slotInstallSkinArchive(TDEIO::Job* delete_job = 0);
void slotRemoveSkin();
diff --git a/yakuake/src/tab_bar.cpp b/yakuake/src/tab_bar.cpp
index bc31be4..05a5a8c 100644
--- a/yakuake/src/tab_bar.cpp
+++ b/yakuake/src/tab_bar.cpp
@@ -189,7 +189,7 @@ void TabBar::reloadSkin(const TQString& skin)
void TabBar::setPixmaps(const TQString& skin)
{
TQUrl url(locate("appdata", skin + "/tabs.skin"));
- KConfig config(url.path());
+ TDEConfig config(url.path());
config.setGroup("Tabs");
diff --git a/yakuake/src/title_bar.cpp b/yakuake/src/title_bar.cpp
index 35caed0..3864ec8 100644
--- a/yakuake/src/title_bar.cpp
+++ b/yakuake/src/title_bar.cpp
@@ -130,7 +130,7 @@ void TitleBar::setPixmaps(const TQString& skin)
/* Initialize the skin objects. */
TQUrl url(locate("appdata", skin + "/title.skin"));
- KConfig config(url.path());
+ TDEConfig config(url.path());
// Load the text information.
config.setGroup("Text");