summaryrefslogtreecommitdiffstats
path: root/ktouch
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:32:27 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:32:27 -0600
commit9f2c757e1a1694373c11427a00502c2ff4c2d403 (patch)
tree7d90e91214976a7d23d89ec3474515cf46069704 /ktouch
parentcee429821aa6f1acc97fb482d325fb4eb37376ca (diff)
downloadtdeedu-9f2c757e1a1694373c11427a00502c2ff4c2d403.tar.gz
tdeedu-9f2c757e1a1694373c11427a00502c2ff4c2d403.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'ktouch')
-rw-r--r--ktouch/ChangeLog8
-rw-r--r--ktouch/src/ktouch.cpp10
-rw-r--r--ktouch/src/ktouch.h4
-rw-r--r--ktouch/src/ktouchcolorscheme.cpp8
-rw-r--r--ktouch/src/ktouchkeyboard.cpp16
-rw-r--r--ktouch/src/ktouchkeyboardwidget.cpp6
-rw-r--r--ktouch/src/ktouchlecture.cpp16
-rw-r--r--ktouch/src/ktouchstatisticsdata.cpp8
8 files changed, 38 insertions, 38 deletions
diff --git a/ktouch/ChangeLog b/ktouch/ChangeLog
index 2a918ddc..b8a9c1e7 100644
--- a/ktouch/ChangeLog
+++ b/ktouch/ChangeLog
@@ -89,13 +89,13 @@
KTouch is started.
2004-11-01 Andreas Nicolai <andreas.nicolai@gmx.net>
- * Moved all configuration data to Prefs (using KConfig XT) or
+ * Moved all configuration data to Prefs (using TDEConfig XT) or
to the KTouch Main Widget
* Removed the old configuration object completely
* Changed the startup procedure somewhat
2004-10-29 Andreas Nicolai <andreas.nicolai@gmx.net>
- * Moved some more configuration entries to the KConfig XT,
+ * Moved some more configuration entries to the TDEConfig XT,
fixed some bugs with the configuration dialog
* added font override buttons.
@@ -115,11 +115,11 @@
context menu anylonger
* Fixed the deprecated download/upload routines
* Revised the configuration class and added new config data (still to
- be syncronized with KConfig XT)
+ be syncronized with TDEConfig XT)
* plus much more...
2004-09-30 Anne-Marie Mahfouf <annemarie.mahfouf@free.fr>
- * Port to KConfig XT
+ * Port to TDEConfig XT
* Port the Trainig ->Default Lectures, Settings->Keyboard Layouts,
Settings->Keyboard Color Schemes to KSelectAction
* Add tooltips and QWhatsThis help in Config dialogs
diff --git a/ktouch/src/ktouch.cpp b/ktouch/src/ktouch.cpp
index d9ee9d9c..278ad3fe 100644
--- a/ktouch/src/ktouch.cpp
+++ b/ktouch/src/ktouch.cpp
@@ -420,9 +420,9 @@ void KTouch::trainingStatistics() {
void KTouch::optionsPreferences() {
trainingPause();
- if ( KConfigDialog::showDialog( "settings" ) ) return;
- // KConfigDialog didn't find an instance of this dialog, so lets create it :
- KConfigDialog* dialog = new KConfigDialog( this, "settings", Prefs::self() );
+ if ( TDEConfigDialog::showDialog( "settings" ) ) return;
+ // TDEConfigDialog didn't find an instance of this dialog, so lets create it :
+ TDEConfigDialog* dialog = new TDEConfigDialog( this, "settings", Prefs::self() );
m_pageGeneral = new KTouchPrefGeneralLayout(0, "General");
dialog->addPage(m_pageGeneral, i18n("General Options"), "style");
m_pageTraining = new KTouchPrefTrainingLayout(0, "Training");
@@ -542,7 +542,7 @@ void KTouch::resizeEvent(TQResizeEvent * event) {
// Will be called when this app is restored due to session management.
// This function only stored the temperary data of the last session. All permanent
// settings should be handled by the KTouchConfiguration object.
-void KTouch::readProperties(KConfig *config) {
+void KTouch::readProperties(TDEConfig *config) {
kdDebug() << "[KTouch::readProperties] Reading session data..." << endl;
// TODO : Session management rewrite
config->setGroup("TrainingState");
@@ -575,7 +575,7 @@ void KTouch::readProperties(KConfig *config) {
// ----------------------------------------------------------------------------
// Will be called when the app should save its state for session management purposes.
-void KTouch::saveProperties(KConfig *config) {
+void KTouch::saveProperties(TDEConfig *config) {
kdDebug() << "[KTouch::saveProperties] Saving session data..." << endl;
// We are going down because of session management (most likely because of
// KDE logout). Let's save the current status so that we can restore it
diff --git a/ktouch/src/ktouch.h b/ktouch/src/ktouch.h
index 5a79450f..85697d59 100644
--- a/ktouch/src/ktouch.h
+++ b/ktouch/src/ktouch.h
@@ -121,9 +121,9 @@ class KTouch : public KMainWindow {
private:
// *** BEGIN - Session management ***
/// Will be called when this app is restored due to session management.
- void readProperties(KConfig *config);
+ void readProperties(TDEConfig *config);
/// Will be called when the app should save its state for session management purposes.
- void saveProperties(KConfig *config);
+ void saveProperties(TDEConfig *config);
// *** END - Session management ***
/// Initialises the program during a normal startup
diff --git a/ktouch/src/ktouchcolorscheme.cpp b/ktouch/src/ktouchcolorscheme.cpp
index 4104fe14..35def758 100644
--- a/ktouch/src/ktouchcolorscheme.cpp
+++ b/ktouch/src/ktouchcolorscheme.cpp
@@ -147,12 +147,12 @@ bool KTouchColorScheme::readList(TQWidget * window, const KURL& url) {
//kdDebug() << "[KTouchColorScheme::readList] " << endl;
//kdDebug() << " url = '" << url.url() << "'" << endl;
TQString tmp_file;
- bool result = KIO::NetAccess::download(url, tmp_file, window);
+ bool result = TDEIO::NetAccess::download(url, tmp_file, window);
if (result) {
// Ok, that was successful, try to parse the XML doc now
TQFile infile(tmp_file);
if ( !infile.open( IO_ReadOnly ) ) {
- KIO::NetAccess::removeTempFile(tmp_file);
+ TDEIO::NetAccess::removeTempFile(tmp_file);
return false; // Bugger it... couldn't open it...
}
TQDomDocument doc;
@@ -170,7 +170,7 @@ bool KTouchColorScheme::readList(TQWidget * window, const KURL& url) {
}
}
- KIO::NetAccess::removeTempFile(tmp_file);
+ TDEIO::NetAccess::removeTempFile(tmp_file);
return result;
}
@@ -211,7 +211,7 @@ bool KTouchColorScheme::writeList(TQWidget * window, const KURL& url) {
outfile.close();
// if we have a temporary file, we still need to upload it
if (temp) {
- KIO::NetAccess::upload(tmp_file, url, window);
+ TDEIO::NetAccess::upload(tmp_file, url, window);
delete temp;
}
return true;
diff --git a/ktouch/src/ktouchkeyboard.cpp b/ktouch/src/ktouchkeyboard.cpp
index 476a8502..8d9fd4b9 100644
--- a/ktouch/src/ktouchkeyboard.cpp
+++ b/ktouch/src/ktouchkeyboard.cpp
@@ -41,7 +41,7 @@ bool KTouchKeyboard::load(TQWidget * window, const KURL& url) {
TQString target;
bool result = false;
//kdDebug() << "[KTouchKeyboard::load] " << url << endl;
- if (KIO::NetAccess::download(url, target, window)) {
+ if (TDEIO::NetAccess::download(url, target, window)) {
// Ok, that was successful, store the lectureURL and read the file
TQFile infile(target);
if ( !infile.open( IO_ReadOnly ) )
@@ -49,7 +49,7 @@ bool KTouchKeyboard::load(TQWidget * window, const KURL& url) {
TQTextStream in( &infile );
result = read(in);
};
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return result;
}
// ----------------------------------------------------------------------------
@@ -60,7 +60,7 @@ bool KTouchKeyboard::loadXML(TQWidget * window, const KURL& url) {
// File is only downloaded if not local, otherwise it's just opened
TQString target;
bool result = false;
- if (KIO::NetAccess::download(url, target, window)) {
+ if (TDEIO::NetAccess::download(url, target, window)) {
// Ok, that was successful, store the lectureURL and read the file
TQFile infile(target);
if ( !infile.open( IO_ReadOnly ) )
@@ -69,7 +69,7 @@ bool KTouchKeyboard::loadXML(TQWidget * window, const KURL& url) {
doc.setContent( &infile );
result = read(doc);
}
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return result;
}
// ----------------------------------------------------------------------------
@@ -103,7 +103,7 @@ bool KTouchKeyboard::saveXML(TQWidget * window, const KURL& url) const {
outfile.close();
// if we have a temporary file, we still need to upload it
if (temp) {
- KIO::NetAccess::upload(tmpFile, url, window);
+ TDEIO::NetAccess::upload(tmpFile, url, window);
delete temp;
}
return true;
@@ -347,10 +347,10 @@ void KTouchKeyboard::updateConnections() {
bool KTouchKeyboard::loadKeyboard(TQWidget * window, const KURL& url, TQString* errorMsg) {
TQString target;
- if (KIO::NetAccess::download(url, target, window)) {
+ if (TDEIO::NetAccess::download(url, target, window)) {
TQString msg;
bool result = readKeyboard(target, msg);
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
if (!result && errorMsg!=NULL)
*errorMsg = i18n("Could not read the keyboard layout file '%1'. ").arg(url.url()) + msg;
return result;
@@ -401,7 +401,7 @@ void KTouchKeyboard::saveKeyboard(TQWidget * window, const KURL& url) {
}
if (temp) {
- KIO::NetAccess::upload(tmpFile, url, window);
+ TDEIO::NetAccess::upload(tmpFile, url, window);
temp->unlink();
delete temp;
}
diff --git a/ktouch/src/ktouchkeyboardwidget.cpp b/ktouch/src/ktouchkeyboardwidget.cpp
index 99cc63cc..c5c1e88f 100644
--- a/ktouch/src/ktouchkeyboardwidget.cpp
+++ b/ktouch/src/ktouchkeyboardwidget.cpp
@@ -46,10 +46,10 @@ KTouchKeyboardWidget::KTouchKeyboardWidget(TQWidget *parent)
bool KTouchKeyboardWidget::loadKeyboard(TQWidget * window, const KURL& url, TQString* errorMsg) {
TQString target;
- if (KIO::NetAccess::download(url, target, window)) {
+ if (TDEIO::NetAccess::download(url, target, window)) {
TQString msg;
bool result = readKeyboard(target, msg);
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
if (!result && errorMsg!=NULL)
*errorMsg = i18n("Could not read the keyboard layout file '%1'. ").arg(url.url()) + msg;
return result;
@@ -100,7 +100,7 @@ void KTouchKeyboardWidget::saveKeyboard(TQWidget * window, const KURL& url) {
}
if (temp) {
- KIO::NetAccess::upload(tmpFile, url, window);
+ TDEIO::NetAccess::upload(tmpFile, url, window);
temp->unlink();
delete temp;
}
diff --git a/ktouch/src/ktouchlecture.cpp b/ktouch/src/ktouchlecture.cpp
index 610c583a..40a86007 100644
--- a/ktouch/src/ktouchlecture.cpp
+++ b/ktouch/src/ktouchlecture.cpp
@@ -27,17 +27,17 @@ bool KTouchLecture::load(TQWidget * window, const KURL& url) {
// File is only downloaded if not local, otherwise it's just opened
TQString target;
bool result = false;
- if (KIO::NetAccess::download(url, target, window)) {
+ if (TDEIO::NetAccess::download(url, target, window)) {
// Ok, that was successful, store the lectureURL and read the file
TQFile infile(target);
if ( !infile.open( IO_ReadOnly ) ) {
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return false; // Bugger it... couldn't open it...
}
TQTextStream in( &infile );
result = readLecture(in);
};
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return result;
}
// ----------------------------------------------------------------------------
@@ -47,18 +47,18 @@ bool KTouchLecture::loadXML(TQWidget * window, const KURL& url) {
// File is only downloaded if not local, otherwise it's just opened
TQString target;
bool result = false;
- if (KIO::NetAccess::download(url, target, window)) {
+ if (TDEIO::NetAccess::download(url, target, window)) {
// Ok, that was successful, store the lectureURL and read the file
TQFile infile(target);
if ( !infile.open( IO_ReadOnly ) ) {
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return false; // Bugger it... couldn't open it...
}
TQDomDocument doc;
doc.setContent( &infile );
result = readLecture(doc);
}
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return result;
}
// ----------------------------------------------------------------------------
@@ -92,7 +92,7 @@ bool KTouchLecture::saveXML(TQWidget * window, const KURL& url) const {
outfile.close();
// if we have a temporary file, we still need to upload it
if (temp) {
- KIO::NetAccess::upload(tmpFile, url, window);
+ TDEIO::NetAccess::upload(tmpFile, url, window);
delete temp;
}
return true;
@@ -270,7 +270,7 @@ bool KTouchLecture::save(TQWidget * window, const KURL& url) const {
outfile.close();
// if we have a temporary file, we still need to upload it
if (temp) {
- KIO::NetAccess::upload(tmpFile, url, window);
+ TDEIO::NetAccess::upload(tmpFile, url, window);
delete temp;
}
return true;
diff --git a/ktouch/src/ktouchstatisticsdata.cpp b/ktouch/src/ktouchstatisticsdata.cpp
index 80c92bef..88171722 100644
--- a/ktouch/src/ktouchstatisticsdata.cpp
+++ b/ktouch/src/ktouchstatisticsdata.cpp
@@ -452,11 +452,11 @@ bool KTouchStatisticsData::read(TQWidget * window, const KURL& url) {
// File is only downloaded if not local, otherwise it's just opened
TQString target;
bool result = false;
- if (KIO::NetAccess::download(url, target, window)) {
+ if (TDEIO::NetAccess::download(url, target, window)) {
// Ok, that was successful, store the lectureURL and read the file
TQFile infile(target);
if ( !infile.open( IO_ReadOnly ) ) {
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return false; // Bugger it... couldn't open it...
}
TQDomDocument doc;
@@ -471,7 +471,7 @@ bool KTouchStatisticsData::read(TQWidget * window, const KURL& url) {
#endif // COMPRESSED_XML_STATISTICS
result = readStats(doc);
}
- KIO::NetAccess::removeTempFile(target);
+ TDEIO::NetAccess::removeTempFile(target);
return result;
}
// ----------------------------------------------------------------------------
@@ -513,7 +513,7 @@ bool KTouchStatisticsData::write(TQWidget * window, const KURL& url) const {
// if we have a temporary file, we still need to upload it
if (temp) {
- KIO::NetAccess::upload(tmpFile, url, window);
+ TDEIO::NetAccess::upload(tmpFile, url, window);
delete temp;
}
return true;