summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/synaescope
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:51 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:40:51 -0600
commit4c097708c4cc24f3b8e4c21f14644f5715767d47 (patch)
treee8ca4b1d3a3b3de0d18e5f144dcef9b36f830b84 /noatun-plugins/synaescope
parent0642ee50634d90e255c6f45194f6a47dc1157cde (diff)
downloadtdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.tar.gz
tdeaddons-4c097708c4cc24f3b8e4c21f14644f5715767d47.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'noatun-plugins/synaescope')
-rw-r--r--noatun-plugins/synaescope/cmodule.cpp4
-rw-r--r--noatun-plugins/synaescope/synaescope.cpp22
-rw-r--r--noatun-plugins/synaescope/synaescope.h10
3 files changed, 18 insertions, 18 deletions
diff --git a/noatun-plugins/synaescope/cmodule.cpp b/noatun-plugins/synaescope/cmodule.cpp
index 5b881fd..5d64685 100644
--- a/noatun-plugins/synaescope/cmodule.cpp
+++ b/noatun-plugins/synaescope/cmodule.cpp
@@ -62,7 +62,7 @@ void SynaePrefs::save()
if(!changed)
return;
- KConfig *c = KGlobal::config();
+ KConfig *c = TDEGlobal::config();
c->setGroup("Synaescope");
c->writeEntry("xResolution", xRes->value());
c->writeEntry("yResolution", yRes->value());
@@ -73,7 +73,7 @@ void SynaePrefs::save()
void SynaePrefs::reopen()
{
// kdDebug(66666) << k_funcinfo << endl;
- KConfig *c = KGlobal::config();
+ KConfig *c = TDEGlobal::config();
c->setGroup("Synaescope");
xRes->setValue(c->readNumEntry("xResolution", 320));
diff --git a/noatun-plugins/synaescope/synaescope.cpp b/noatun-plugins/synaescope/synaescope.cpp
index 16a6a2e..a401704 100644
--- a/noatun-plugins/synaescope/synaescope.cpp
+++ b/noatun-plugins/synaescope/synaescope.cpp
@@ -17,7 +17,7 @@ extern "C"
{
Plugin *create_plugin()
{
- KGlobal::locale()->insertCatalogue("synaescope");
+ TDEGlobal::locale()->insertCatalogue("synaescope");
return new SynaeScope();
}
}
@@ -26,12 +26,12 @@ SynaeScope::SynaeScope() : Plugin(), scopeExePath(0)
{
kdDebug(66666) << k_funcinfo << endl;
restarting=false;
- connect(&process, TQT_SIGNAL(processExited(KProcess *)),
- this, TQT_SLOT(processExited(KProcess *)));
- connect(&process, TQT_SIGNAL(receivedStdout(KProcess *,char *,int)),
- this, TQT_SLOT(receivedStdout(KProcess *,char *,int)));
- connect(&process, TQT_SIGNAL(receivedStderr(KProcess *,char *,int)),
- this, TQT_SLOT(receivedStderr(KProcess *,char *,int)));
+ connect(&process, TQT_SIGNAL(processExited(TDEProcess *)),
+ this, TQT_SLOT(processExited(TDEProcess *)));
+ connect(&process, TQT_SIGNAL(receivedStdout(TDEProcess *,char *,int)),
+ this, TQT_SLOT(receivedStdout(TDEProcess *,char *,int)));
+ connect(&process, TQT_SIGNAL(receivedStderr(TDEProcess *,char *,int)),
+ this, TQT_SLOT(receivedStderr(TDEProcess *,char *,int)));
}
SynaeScope::~SynaeScope()
@@ -63,7 +63,7 @@ void SynaeScope::init()
void SynaeScope::runScope()
{
kdDebug(66666) << k_funcinfo << endl;
- if(!process.start(KProcess::NotifyOnExit, (KProcess::Communication)(KProcess::Stdin | KProcess::Stdout)))
+ if(!process.start(TDEProcess::NotifyOnExit, (TDEProcess::Communication)(TDEProcess::Stdin | TDEProcess::Stdout)))
{
KMessageBox::error(0, i18n("Unable to start noatunsynaescope. Check your installation."));
unload();
@@ -81,7 +81,7 @@ void SynaeScope::readConfig()
process.kill();
}
-void SynaeScope::processExited(KProcess *)
+void SynaeScope::processExited(TDEProcess *)
{
kdDebug(66666) << k_funcinfo << endl;
if(restarting)
@@ -95,13 +95,13 @@ void SynaeScope::processExited(KProcess *)
}
}
-void SynaeScope::receivedStdout(KProcess *, char *buf, int len)
+void SynaeScope::receivedStdout(TDEProcess *, char *buf, int len)
{
TQCString debugString(buf,len);
kdDebug(66666) << k_funcinfo << debugString << endl;
}
-void SynaeScope::receivedStderr(KProcess *, char *buf, int len)
+void SynaeScope::receivedStderr(TDEProcess *, char *buf, int len)
{
TQCString debugString(buf,len);
kdDebug(66666) << k_funcinfo << debugString << endl;
diff --git a/noatun-plugins/synaescope/synaescope.h b/noatun-plugins/synaescope/synaescope.h
index 2579151..e62fbe0 100644
--- a/noatun-plugins/synaescope/synaescope.h
+++ b/noatun-plugins/synaescope/synaescope.h
@@ -12,7 +12,7 @@
#include <kprocess.h>
class SynaePrefs;
-class KProcess;
+class TDEProcess;
class SynaeScope : public TQObject, public Plugin
{
@@ -27,13 +27,13 @@ public:
void runScope();
private slots:
- void processExited(KProcess *);
+ void processExited(TDEProcess *);
void readConfig();
- void receivedStdout(KProcess *, char *buf, int len);
- void receivedStderr(KProcess *, char *buf, int len);
+ void receivedStdout(TDEProcess *, char *buf, int len);
+ void receivedStderr(TDEProcess *, char *buf, int len);
private:
- KProcess process;
+ TDEProcess process;
TQString scopeExePath;
bool restarting;
SynaePrefs *mPrefs;