summaryrefslogtreecommitdiffstats
path: root/superkaramba
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:36:28 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-03-01 13:36:28 -0600
commit3c87ec12c23bf62d3f60a7dd64020af8e0b997ce (patch)
treeaf5b4b5472d6e9ca5f87b12ceafda358b79d92c6 /superkaramba
parente31dd7c37ff5af25163426915faddfd43327031f (diff)
downloadtdeutils-3c87ec12c23bf62d3f60a7dd64020af8e0b997ce.tar.gz
tdeutils-3c87ec12c23bf62d3f60a7dd64020af8e0b997ce.zip
Rename additional global TQt functions
Diffstat (limited to 'superkaramba')
-rw-r--r--superkaramba/src/clickarea.cpp4
-rw-r--r--superkaramba/src/clickmap.cpp2
-rw-r--r--superkaramba/src/imagelabel.cpp10
-rw-r--r--superkaramba/src/imagelabel_python.cpp2
-rw-r--r--superkaramba/src/karamba.cpp110
-rw-r--r--superkaramba/src/karamba_python.cpp4
-rw-r--r--superkaramba/src/karambaapp.cpp14
-rw-r--r--superkaramba/src/karambasessionmanaged.cpp2
-rw-r--r--superkaramba/src/main.cpp4
-rw-r--r--superkaramba/src/misc_python.cpp18
-rw-r--r--superkaramba/src/networksensor.cpp2
-rw-r--r--superkaramba/src/noatunsensor.cpp12
-rw-r--r--superkaramba/src/rsssensor.cpp10
-rw-r--r--superkaramba/src/task_python.cpp2
-rw-r--r--superkaramba/src/taskbartest.cpp4
-rw-r--r--superkaramba/src/themefile.cpp6
-rw-r--r--superkaramba/src/xmmssensor.cpp6
17 files changed, 106 insertions, 106 deletions
diff --git a/superkaramba/src/clickarea.cpp b/superkaramba/src/clickarea.cpp
index c2ca63e..a49e4c7 100644
--- a/superkaramba/src/clickarea.cpp
+++ b/superkaramba/src/clickarea.cpp
@@ -29,7 +29,7 @@ bool ClickArea::click( TQMouseEvent *e )
{
if( rect.contains( e->x(), e->y() ) )
{
- //qDebug(TQString::number(e->type()));
+ //tqDebug(TQString::number(e->type()));
//KShellProcess ksp;
if( e->button() != Qt::LeftButton )
return false;
@@ -48,7 +48,7 @@ bool ClickArea::click( TQMouseEvent *e )
if( !program.isEmpty() )
{
- //qDebug(program);
+ //tqDebug(program);
KRun::runCommand(program);
}
}
diff --git a/superkaramba/src/clickmap.cpp b/superkaramba/src/clickmap.cpp
index 8b25bce..c596313 100644
--- a/superkaramba/src/clickmap.cpp
+++ b/superkaramba/src/clickmap.cpp
@@ -45,7 +45,7 @@ bool ClickMap::click( TQMouseEvent *e ) {
int index = ((e -> y() - getY()) / text.getLineHeight()) + 1;
if (index >= 1 && index <= (int)displays.count()) {
- // qDebug( "You clicked item " + TQString::number( index ) + ", " +
+ // tqDebug( "You clicked item " + TQString::number( index ) + ", " +
// displays[index - 1] + " " + links[index - 1] );
KRun::runCommand("konqueror " + links[index - 1]);
}
diff --git a/superkaramba/src/imagelabel.cpp b/superkaramba/src/imagelabel.cpp
index ef38ec0..9df0834 100644
--- a/superkaramba/src/imagelabel.cpp
+++ b/superkaramba/src/imagelabel.cpp
@@ -266,7 +266,7 @@ void ImageLabel::slotCopyResult(KIO::Job* job)
}
else
{
- qWarning("Error downloading (%s): %s", job->errorText().ascii(),
+ tqWarning("Error downloading (%s): %s", job->errorText().ascii(),
tempFile.ascii());
}
KIO::NetAccess::removeTempFile(tempFile);
@@ -453,11 +453,11 @@ void ImageLabel::parseImages(TQString fn, TQString fn_roll, int _xoff,
{
pixmap_off = KPixmap(tmpFile);
KIO::NetAccess::removeTempFile(tmpFile);
- qDebug( "Downloaded: %s to %s", path.ascii(), tmpFile.ascii() );
+ tqDebug( "Downloaded: %s to %s", path.ascii(), tmpFile.ascii() );
}
else
{
- qDebug( "Error Downloading: %s", path.ascii());
+ tqDebug( "Error Downloading: %s", path.ascii());
}
}
else
@@ -501,11 +501,11 @@ void ImageLabel::parseImages(TQString fn, TQString fn_roll, int _xoff,
{
pixmap_on = KPixmap(tmpFile);
KIO::NetAccess::removeTempFile(tmpFile);
- qDebug( "Downloaded: %s to %s", path.ascii(), tmpFile.ascii());
+ tqDebug( "Downloaded: %s to %s", path.ascii(), tmpFile.ascii());
}
else
{
- qDebug( "Error Downloading: %s", path.ascii());
+ tqDebug( "Error Downloading: %s", path.ascii());
}
}
else
diff --git a/superkaramba/src/imagelabel_python.cpp b/superkaramba/src/imagelabel_python.cpp
index 7cf6d73..61af3c5 100644
--- a/superkaramba/src/imagelabel_python.cpp
+++ b/superkaramba/src/imagelabel_python.cpp
@@ -121,7 +121,7 @@ PyObject* py_createTaskIcon(PyObject *, PyObject *args)
if (currTask == 0)
{
//no task was found
- qWarning("Task not found.");
+ tqWarning("Task not found.");
return (long)NULL ;
}
//retrieve the TQPixmap that represents this image
diff --git a/superkaramba/src/karamba.cpp b/superkaramba/src/karamba.cpp
index aac6a6e..9bcb01d 100644
--- a/superkaramba/src/karamba.cpp
+++ b/superkaramba/src/karamba.cpp
@@ -263,7 +263,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
{
setFixedSize(0,0);
TQTimer::singleShot( 100, this, TQT_SLOT(killWidget()) );
- qWarning("Could not read config file.");
+ tqWarning("Could not read config file.");
}
else
{
@@ -319,7 +319,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
karamba::~karamba()
{
- //qDebug("karamba::~karamba");
+ //tqDebug("karamba::~karamba");
//Remove self from list of open themes
karambaApp->deleteKaramba(this, m_reloading);
@@ -373,7 +373,7 @@ karamba::~karamba()
bool karamba::parseConfig()
{
- //qDebug("karamba::parseConfig");
+ //tqDebug("karamba::parseConfig");
bool passive = true;
if(m_theme.open())
@@ -396,7 +396,7 @@ bool karamba::parseConfig()
if(lineParser.meter() == "KARAMBA" && !foundKaramba )
{
- //qDebug("karamba found");
+ //tqDebug("karamba found");
toggleLocked->setChecked(lineParser.getBoolean("LOCKED"));
slotToggleLocked();
@@ -772,7 +772,7 @@ bool karamba::parseConfig()
m_theme.close();
}
- //qDebug("parseConfig ok: %d", foundKaramba);
+ //tqDebug("parseConfig ok: %d", foundKaramba);
if( !foundKaramba )
{
// interval = initKaramba( "", 0, 0, 0, 0 );
@@ -838,12 +838,12 @@ void karamba::makePassive()
void karamba::popupNotify(int)
{
- //qDebug("karamba::popupNotify");
+ //tqDebug("karamba::popupNotify");
}
void karamba::reloadConfig()
{
- //qDebug("karamba::reloadConfig: %s", m_theme.file().ascii());
+ //tqDebug("karamba::reloadConfig: %s", m_theme.file().ascii());
writeConfigData();
if(m_theme.exists())
{
@@ -871,7 +871,7 @@ void karamba::initPythonInterface()
void karamba::editConfig()
{
- //qDebug("karamba::editConfig");
+ //tqDebug("karamba::editConfig");
TQFileInfo fileInfo( m_theme.file() );
TQString path;
@@ -889,7 +889,7 @@ void karamba::editConfig()
void karamba::editScript()
{
- //qDebug("karamba::editScript");
+ //tqDebug("karamba::editScript");
TQFileInfo fileInfo( m_theme.file() );
TQString path;
@@ -906,7 +906,7 @@ void karamba::editScript()
TQString karamba::findSensorFromMap(Sensor* sensor)
{
- //qDebug("karamba::findSensorFromMap");
+ //tqDebug("karamba::findSensorFromMap");
TQMap<TQString,Sensor*>::ConstIterator it;
TQMap<TQString,Sensor*>::ConstIterator end( sensorMap.end() );
for ( it = sensorMap.begin(); it != end; ++it )
@@ -919,7 +919,7 @@ TQString karamba::findSensorFromMap(Sensor* sensor)
Sensor* karamba::findSensorFromList(Meter* meter)
{
- //qDebug("karamba::findSensorFromList");
+ //tqDebug("karamba::findSensorFromList");
TQObjectListIt it( *sensorList ); // iterate over meters
while ( it != 0 )
@@ -933,7 +933,7 @@ Sensor* karamba::findSensorFromList(Meter* meter)
TQString karamba::getSensor(Meter* meter)
{
- //qDebug("karamba::getSensor");
+ //tqDebug("karamba::getSensor");
TQString s;
Sensor* sensor = findSensorFromList(meter);
if (sensor)
@@ -943,7 +943,7 @@ TQString karamba::getSensor(Meter* meter)
void karamba::deleteMeterFromSensors(Meter* meter)
{
- //qDebug("karamba::deleteMeterFromSensors");
+ //tqDebug("karamba::deleteMeterFromSensors");
Sensor* sensor = findSensorFromList(meter);
if (sensor)
@@ -960,7 +960,7 @@ void karamba::deleteMeterFromSensors(Meter* meter)
void karamba::setSensor(const LineParser& lineParser, Meter* meter)
{
- //qDebug("karamba::setSensor");
+ //tqDebug("karamba::setSensor");
Sensor* sensor = 0;
deleteMeterFromSensors(meter);
@@ -1262,7 +1262,7 @@ void karamba::callTheme(TQString theme, TQString txt)
{
KarambaApplication* app = (KarambaApplication*)tqApp;
kdDebug() << "karamba::callTheme " << theme << txt << endl;
- //qWarning("karamba::callTheme");
+ //tqWarning("karamba::callTheme");
//TQByteArray data;
//TQDataStream dataStream( data, IO_WriteOnly );
//dataStream << theme;
@@ -1289,7 +1289,7 @@ void karamba::themeNotify(TQString theme, TQString txt)
void karamba::meterClicked(TQMouseEvent* e, Meter* meter)
{
- //qWarning("karamba::meterClicked");
+ //tqWarning("karamba::meterClicked");
if (pythonIface && pythonIface->isExtensionLoaded() && haveUpdated)
{
int button = 0;
@@ -1321,7 +1321,7 @@ void karamba::changeInterval(int interval)
void karamba::passClick(TQMouseEvent *e)
{
- //qDebug("karamba::passClick");
+ //tqDebug("karamba::passClick");
TQObjectListIt it2( *timeList ); // iterate over meters
while ( it2 != 0 )
{
@@ -1364,7 +1364,7 @@ void karamba::passClick(TQMouseEvent *e)
void karamba::passWheelClick( TQWheelEvent *e )
{
- //qDebug("karamba::passWheelClick");
+ //tqDebug("karamba::passWheelClick");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded() && haveUpdated)
{
@@ -1415,7 +1415,7 @@ void karamba::management_popup( void )
void karamba::mousePressEvent( TQMouseEvent *e )
{
- //qDebug("karamba::mousePressEvent");
+ //tqDebug("karamba::mousePressEvent");
if( e->button() == Qt::RightButton && !want_right_button )
{
management_popup();
@@ -1432,19 +1432,19 @@ void karamba::mousePressEvent( TQMouseEvent *e )
void karamba::wheelEvent( TQWheelEvent *e )
{
- //qDebug("karamba::wheelEvent");
+ //tqDebug("karamba::wheelEvent");
passWheelClick( e );
}
void karamba::mouseReleaseEvent( TQMouseEvent *e )
{
- //qDebug("karamba::mouseReleaseEvent");
+ //tqDebug("karamba::mouseReleaseEvent");
clickPos = e->pos();
}
void karamba::mouseDoubleClickEvent( TQMouseEvent *e )
{
- //qDebug("karamba::mouseDoubleClickEvent");
+ //tqDebug("karamba::mouseDoubleClickEvent");
if( !toggleLocked -> isChecked() )
{
passClick( e );
@@ -1453,7 +1453,7 @@ void karamba::mouseDoubleClickEvent( TQMouseEvent *e )
void karamba::keyPressEvent(TQKeyEvent *e)
{
- //qDebug("karamba::keyPressEvent");
+ //tqDebug("karamba::keyPressEvent");
keyPressed(e->text(), 0);
}
@@ -1465,7 +1465,7 @@ void karamba::keyPressed(const TQString& s, const Meter* meter)
void karamba::mouseMoveEvent( TQMouseEvent *e )
{
- //qDebug("karamba::mouseMoveEvent");
+ //tqDebug("karamba::mouseMoveEvent");
if( e->state() != 0 && e->state() < 16 && !toggleLocked -> isChecked() )
{
move( e->globalPos() - clickPos );
@@ -1528,7 +1528,7 @@ void karamba::mouseMoveEvent( TQMouseEvent *e )
void karamba::closeEvent ( TQCloseEvent * qc)
{
- //qDebug("karamba::closeEvent");
+ //tqDebug("karamba::closeEvent");
qc->accept();
// close(true);
// delete this;
@@ -1553,7 +1553,7 @@ void karamba::paintEvent ( TQPaintEvent *e)
void karamba::updateSensors()
{
- //qDebug("karamba::updateSensors");
+ //tqDebug("karamba::updateSensors");
TQObjectListIt it( *sensorList ); // iterate over meters
while ( it != 0 )
{
@@ -1624,7 +1624,7 @@ void karamba::updateBackground(KSharedPixmap* kpm)
void karamba::currentDesktopChanged( int i )
{
- //qDebug("karamba::currentDesktopChanged");
+ //tqDebug("karamba::currentDesktopChanged");
kroot->repaint( true );
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->desktopChanged(this, i);
@@ -1632,7 +1632,7 @@ void karamba::currentDesktopChanged( int i )
void karamba::currentWallpaperChanged(int i )
{
- //qDebug("karamba::currentWallpaperChanged");
+ //tqDebug("karamba::currentWallpaperChanged");
kroot->repaint( true );
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->wallpaperChanged(this, i);
@@ -1703,14 +1703,14 @@ void karamba::step()
void karamba::widgetClosed()
{
- //qDebug("karamba::widgetClosed");
+ //tqDebug("karamba::widgetClosed");
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->widgetClosed(this);
}
void karamba::slotToggleLocked()
{
- //qDebug("karamba::slotToggleLocked");
+ //tqDebug("karamba::slotToggleLocked");
if(toggleLocked->isChecked())
{
toggleLocked->setIconSet(SmallIconSet("lock"));
@@ -1723,7 +1723,7 @@ void karamba::slotToggleLocked()
void karamba::slotToggleFastTransforms()
{
- //qDebug("karamba::slotToggleFastTransforms");
+ //tqDebug("karamba::slotToggleFastTransforms");
// bool fastTransforms = toggleFastTransforms -> isChecked();
// if (toggleFastTransforms -> isChecked())
// {
@@ -1741,13 +1741,13 @@ void karamba::slotToggleFastTransforms()
bool karamba::useSmoothTransforms()
{
- //qDebug("karamba::useSmoothTransforms");
+ //tqDebug("karamba::useSmoothTransforms");
return !toggleFastTransforms -> isChecked();
}
void karamba::writeConfigData()
{
- //qDebug("karamba::writeConfigData");
+ //tqDebug("karamba::writeConfigData");
config -> setGroup("internal");
config -> writeEntry("lockedPosition", toggleLocked -> isChecked() );
config -> writeEntry("fastTransforms", toggleFastTransforms -> isChecked() );
@@ -1762,13 +1762,13 @@ void karamba::writeConfigData()
// write changes to DiskSensor
config -> sync();
- //qWarning("Config File ~/.superkaramba/%s.rc written.",
+ //tqWarning("Config File ~/.superkaramba/%s.rc written.",
// m_theme.name().ascii());
}
void karamba::slotToggleConfigOption(TQString key, bool value)
{
- //qDebug("karamba::slotToggleConfigOption");
+ //tqDebug("karamba::slotToggleConfigOption");
config -> setGroup("config menu");
config -> writeEntry(key, value);
passMenuOptionChanged(key, value);
@@ -1776,7 +1776,7 @@ void karamba::slotToggleConfigOption(TQString key, bool value)
void karamba::addMenuConfigOption(TQString key, TQString name)
{
- //qDebug("karamba::addMenuConfigOption");
+ //tqDebug("karamba::addMenuConfigOption");
kpop -> setItemEnabled(THEMECONF, true);
SignalBridge* action = new SignalBridge(TQT_TQOBJECT(this), key, menuAccColl);
@@ -1800,11 +1800,11 @@ void karamba::addMenuConfigOption(TQString key, TQString name)
bool karamba::setMenuConfigOption(TQString key, bool value)
{
- //qDebug("karamba::setMenuConfigOption");
+ //tqDebug("karamba::setMenuConfigOption");
KToggleAction* menuAction = ((KToggleAction*)menuAccColl -> action(key.ascii()));
if (menuAction == NULL)
{
- qWarning("Menu action %s not found.", key.ascii());
+ tqWarning("Menu action %s not found.", key.ascii());
return false;
}
else
@@ -1816,11 +1816,11 @@ bool karamba::setMenuConfigOption(TQString key, bool value)
bool karamba::readMenuConfigOption(TQString key)
{
- //qDebug("karamba::readMenuConfigOption");
+ //tqDebug("karamba::readMenuConfigOption");
KToggleAction* menuAction = ((KToggleAction*)menuAccColl -> action(key.ascii()));
if (menuAction == NULL)
{
- qWarning("Menu action %s not found.", key.ascii());
+ tqWarning("Menu action %s not found.", key.ascii());
return false;
}
else
@@ -1831,7 +1831,7 @@ bool karamba::readMenuConfigOption(TQString key)
void karamba::passMenuItemClicked(int id)
{
- //qDebug("karamba::passMenuItemClicked");
+ //tqDebug("karamba::passMenuItemClicked");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
{
@@ -1862,7 +1862,7 @@ void karamba::passMenuItemClicked(int id)
void karamba::activeTaskChanged(Task* t)
{
- //qDebug("karamba::activeTaskChanged");
+ //tqDebug("karamba::activeTaskChanged");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->activeTaskChanged(this, t);
@@ -1870,7 +1870,7 @@ void karamba::activeTaskChanged(Task* t)
void karamba::taskAdded(Task* t)
{
- //qDebug("karamba::taskAdded");
+ //tqDebug("karamba::taskAdded");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->taskAdded(this, t);
@@ -1878,7 +1878,7 @@ void karamba::taskAdded(Task* t)
void karamba::taskRemoved(Task* t)
{
- //qDebug("karamba::taskRemoved");
+ //tqDebug("karamba::taskRemoved");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->taskRemoved(this, t);
@@ -1886,7 +1886,7 @@ void karamba::taskRemoved(Task* t)
void karamba::startupAdded(Startup* t)
{
- //qDebug("karamba::startupAdded");
+ //tqDebug("karamba::startupAdded");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->startupAdded(this, t);
@@ -1894,7 +1894,7 @@ void karamba::startupAdded(Startup* t)
void karamba::startupRemoved(Startup* t)
{
- //qDebug("karamba::startupRemoved");
+ //tqDebug("karamba::startupRemoved");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->startupRemoved(this, t);
@@ -1902,14 +1902,14 @@ void karamba::startupRemoved(Startup* t)
void karamba::processExited (KProcess* proc)
{
- //qDebug("karamba::processExited");
+ //tqDebug("karamba::processExited");
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->commandFinished(this, (int)proc->pid());
}
void karamba::receivedStdout (KProcess *proc, char *buffer, int)
{
- //qDebug("karamba::receivedStdout");
+ //tqDebug("karamba::receivedStdout");
//Everything below is to call the python callback function
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->commandOutput(this, (int)proc->pid(), buffer);
@@ -1918,7 +1918,7 @@ void karamba::receivedStdout (KProcess *proc, char *buffer, int)
//For KDE session management
void karamba::saveProperties(KConfig* config)
{
- //qDebug("karamba::saveProperties");
+ //tqDebug("karamba::saveProperties");
config->setGroup("session");
config->writeEntry("theme", m_theme.file());
writeConfigData();
@@ -1927,7 +1927,7 @@ void karamba::saveProperties(KConfig* config)
//For KDE session management
void karamba::readProperties(KConfig* config)
{
- //qDebug("karamba::readProperties");
+ //tqDebug("karamba::readProperties");
config->setGroup("session");
TQString atheme = config->readEntry("theme");
}
@@ -1935,14 +1935,14 @@ void karamba::readProperties(KConfig* config)
//Register types of events that can be dragged on our widget
void karamba::dragEnterEvent(TQDragEnterEvent* event)
{
- //qDebug("karamba::dragEnterEvent");
+ //tqDebug("karamba::dragEnterEvent");
event->accept(TQTextDrag::canDecode(event));
}
//Handle the drop part of a drag and drop event.
void karamba::dropEvent(TQDropEvent* event)
{
- //qDebug("karamba::dropEvent");
+ //tqDebug("karamba::dropEvent");
TQString text;
if ( TQTextDrag::decode(event, text) )
@@ -1958,7 +1958,7 @@ void karamba::dropEvent(TQDropEvent* event)
void karamba::toDesktop(int id, int menuid)
{
- //qDebug("karamba::toDesktop");
+ //tqDebug("karamba::toDesktop");
int i;
desktop = id;
@@ -1980,14 +1980,14 @@ void karamba::toDesktop(int id, int menuid)
void karamba::systrayUpdated()
{
- //qDebug("karamba::systrayUpdated");
+ //tqDebug("karamba::systrayUpdated");
if (pythonIface && pythonIface->isExtensionLoaded())
pythonIface->systrayUpdated(this);
}
void karamba::toggleWidgetUpdate( bool b)
{
- //qDebug("karamba::toggleWidgetUpdate");
+ //tqDebug("karamba::toggleWidgetUpdate");
if (pythonIface && pythonIface->isExtensionLoaded())
widgetUpdate = b;
}
diff --git a/superkaramba/src/karamba_python.cpp b/superkaramba/src/karamba_python.cpp
index 9f09f79..8431cd3 100644
--- a/superkaramba/src/karamba_python.cpp
+++ b/superkaramba/src/karamba_python.cpp
@@ -469,7 +469,7 @@ bool KarambaPython::callObject(const char* func, PyObject* pArgs, bool lock)
bool result = false;
PyThreadState* myThreadState;
- //qDebug("Calling %s", func);
+ //tqDebug("Calling %s", func);
if (lock)
getLock(&myThreadState);
@@ -486,7 +486,7 @@ bool KarambaPython::callObject(const char* func, PyObject* pArgs, bool lock)
}
else
{
- qWarning("Call to %s failed", func);
+ tqWarning("Call to %s failed", func);
PyErr_Print();
}
}
diff --git a/superkaramba/src/karambaapp.cpp b/superkaramba/src/karambaapp.cpp
index f3231b2..259e3fd 100644
--- a/superkaramba/src/karambaapp.cpp
+++ b/superkaramba/src/karambaapp.cpp
@@ -114,14 +114,14 @@ void KarambaApplication::checkSuperKarambaDir()
TQDir configDir(TQDir::home().absPath() + "/.superkaramba");
if (!configDir.exists())
{
- qWarning("~/.superkaramba doesn't exist");
+ tqWarning("~/.superkaramba doesn't exist");
if(!configDir.mkdir(TQDir::home().absPath() + "/.superkaramba"))
{
- qWarning("Couldn't create Directory ~/.superkaramba");
+ tqWarning("Couldn't create Directory ~/.superkaramba");
}
else
{
- qWarning("created ~/.superkaramba");
+ tqWarning("created ~/.superkaramba");
}
}
}
@@ -323,13 +323,13 @@ bool KarambaApplication::lockKaramba()
fd = open(file.ascii(), O_CREAT | O_RDWR | O_TRUNC, mode);
if (fd < 0)
{
- qWarning("Open failed in lock.");
+ tqWarning("Open failed in lock.");
return false;
}
- //qDebug("lock %d", getpid());
+ //tqDebug("lock %d", getpid());
if(lockf(fd, F_LOCK, 0))
{
- qWarning("Lock failed.");
+ tqWarning("Lock failed.");
return false;
}
return true;
@@ -340,7 +340,7 @@ void KarambaApplication::unlockKaramba()
if(fd > 0)
{
lockf(fd, F_ULOCK, 0);
- //qDebug("Unlock %d", getpid());
+ //tqDebug("Unlock %d", getpid());
close(fd);
fd = -1;
}
diff --git a/superkaramba/src/karambasessionmanaged.cpp b/superkaramba/src/karambasessionmanaged.cpp
index a6cd2c3..8997561 100644
--- a/superkaramba/src/karambasessionmanaged.cpp
+++ b/superkaramba/src/karambasessionmanaged.cpp
@@ -52,7 +52,7 @@ bool KarambaSessionManaged::saveState(TQSessionManager&)
}
delete list; // delete the list, not the widgets
- qDebug("Open themes %s", openThemes.ascii());
+ tqDebug("Open themes %s", openThemes.ascii());
config->writeEntry("OpenThemes", openThemes);
return true;
}
diff --git a/superkaramba/src/main.cpp b/superkaramba/src/main.cpp
index c5a4d50..0808d42 100644
--- a/superkaramba/src/main.cpp
+++ b/superkaramba/src/main.cpp
@@ -52,7 +52,7 @@ static KCmdLineOptions options[] =
{ 0, 0, 0 }
};
-// This is for redirecting all qWarning, qDebug,... messages to file.
+// This is for redirecting all tqWarning, tqDebug,... messages to file.
// Usefull when testing session management issues etc.
// #define KARAMBA_LOG 1
@@ -148,7 +148,7 @@ int main(int argc, char **argv)
args->clear();
KarambaPython::initPython();
- //qDebug("startThemes");
+ //tqDebug("startThemes");
if(app.startThemes(lst) || mainAppId.isEmpty())
ret = app.exec();
KarambaPython::shutdownPython();
diff --git a/superkaramba/src/misc_python.cpp b/superkaramba/src/misc_python.cpp
index 018c66e..449fe44 100644
--- a/superkaramba/src/misc_python.cpp
+++ b/superkaramba/src/misc_python.cpp
@@ -175,7 +175,7 @@ long attachClickArea(long widget, long meter, TQString LeftButton, TQString Midd
image -> attachClickArea(LeftButton, MiddleButton, RightButton);
if (!meterAlreadyClickable)
{
- //qWarning("attachClickArea : meter is image");
+ //tqWarning("attachClickArea : meter is image");
currTheme -> clickList -> append(image);
}
}
@@ -185,14 +185,14 @@ long attachClickArea(long widget, long meter, TQString LeftButton, TQString Midd
text -> attachClickArea(LeftButton, MiddleButton, RightButton);
if (!meterAlreadyClickable)
{
- //qWarning("attachClickArea : meter is text");
+ //tqWarning("attachClickArea : meter is text");
currTheme -> clickList -> append(text);
}
}
else
{
//The given meter does not support attached clickAreas.
- qWarning("The given meter is not of type image or text");
+ tqWarning("The given meter is not of type image or text");
return 0;
}
return 1;
@@ -678,7 +678,7 @@ TQString getIp(char *device_name)
*/
if ((sd = socket(AF_INET,SOCK_DGRAM,0)) < 0)
{
- qWarning("Error: Unable to create socket (socket)");
+ tqWarning("Error: Unable to create socket (socket)");
return "Error";
}
@@ -691,7 +691,7 @@ TQString getIp(char *device_name)
ifc_conf.ifc_buf = ifc_conf_buf;
if (ioctl(sd,SIOCGIFCONF,&ifc_conf) < 0)
{
- qWarning("Error: Unable to get network interface conf (ioctl)");
+ tqWarning("Error: Unable to get network interface conf (ioctl)");
close(sd);
return "Error";
}
@@ -701,10 +701,10 @@ TQString getIp(char *device_name)
* have broadcast capability?
*/
numdevs = ifc_conf.ifc_len / sizeof (struct ifreq);
- //qDebug("numdevs = %d", numdevs);
+ //tqDebug("numdevs = %d", numdevs);
for (i = 0; i < numdevs; i++)
{
- //qDebug("iterations: %d", i);
+ //tqDebug("iterations: %d", i);
/* devptr points into an array of ifreq structs. */
devptr = &ifc_conf.ifc_req[i];
@@ -713,7 +713,7 @@ TQString getIp(char *device_name)
if (ioctl(sd,SIOCGIFFLAGS,devptr) < 0)
{
- qWarning("Error: Unable to get device interface flags (ioctl).");
+ tqWarning("Error: Unable to get device interface flags (ioctl).");
close(sd);
return "Error";
}
@@ -731,7 +731,7 @@ TQString getIp(char *device_name)
/* Get the broadcast address. */
if (ioctl(sd,SIOCGIFFLAGS,devptr) < 0)
{
- qWarning("Error: Unable to get device interface flags (ioctl).");
+ tqWarning("Error: Unable to get device interface flags (ioctl).");
close(sd);
return "Error";
}
diff --git a/superkaramba/src/networksensor.cpp b/superkaramba/src/networksensor.cpp
index 09de816..2320a6a 100644
--- a/superkaramba/src/networksensor.cpp
+++ b/superkaramba/src/networksensor.cpp
@@ -115,7 +115,7 @@ void NetworkSensor::getInOutBytes ( unsigned long &in,unsigned long &out) const
}
else
{
- qDebug("Network sensor: can not find %s", device.ascii());
+ tqDebug("Network sensor: can not find %s", device.ascii());
in = 0;
out = 0;
}
diff --git a/superkaramba/src/noatunsensor.cpp b/superkaramba/src/noatunsensor.cpp
index 798557f..129e8e0 100644
--- a/superkaramba/src/noatunsensor.cpp
+++ b/superkaramba/src/noatunsensor.cpp
@@ -139,7 +139,7 @@ TQString NoatunSensor::getTitle()
data, replyType, replyData))
{
result = "";
- qDebug("there was some error using DCOP.");
+ tqDebug("there was some error using DCOP.");
}
else
{
@@ -154,7 +154,7 @@ TQString NoatunSensor::getTitle()
else
{
result = "";
- qDebug("title returned an unexpected type of reply!");
+ tqDebug("title returned an unexpected type of reply!");
}
}
return result;
@@ -172,7 +172,7 @@ int NoatunSensor::getTime()
data, replyType, replyData))
{
result = 0;
- qDebug("there was some error using DCOP.");
+ tqDebug("there was some error using DCOP.");
}
else
{
@@ -184,7 +184,7 @@ int NoatunSensor::getTime()
else
{
result = 0;
- qDebug("title returned an unexpected type of reply!");
+ tqDebug("title returned an unexpected type of reply!");
}
}
return result;
@@ -202,7 +202,7 @@ int NoatunSensor::getLength()
data, replyType, replyData))
{
result = 0;
- qDebug("there was some error using DCOP.");
+ tqDebug("there was some error using DCOP.");
}
else
{
@@ -214,7 +214,7 @@ int NoatunSensor::getLength()
else
{
result = 0;
- qDebug("title returned an unexpected type of reply!");
+ tqDebug("title returned an unexpected type of reply!");
}
}
return result;
diff --git a/superkaramba/src/rsssensor.cpp b/superkaramba/src/rsssensor.cpp
index 5a999ec..7754a9c 100644
--- a/superkaramba/src/rsssensor.cpp
+++ b/superkaramba/src/rsssensor.cpp
@@ -62,16 +62,16 @@ void RssSensor::update()
}
else
{
- qDebug("Error on building DOM");
+ tqDebug("Error on building DOM");
}
}
else
{
- qDebug("Error opening file");
+ tqDebug("Error opening file");
}
}
else {
- qDebug( "Error Downloading: %s", source.ascii());
+ tqDebug( "Error Downloading: %s", source.ascii());
}
if ( OK )
@@ -116,13 +116,13 @@ void RssSensor::update()
}
else
{
- qDebug("Skipping");
+ tqDebug("Skipping");
}
}
}
else
{
- qDebug ("Document Node was null!!");
+ tqDebug ("Document Node was null!!");
}
++it;
diff --git a/superkaramba/src/task_python.cpp b/superkaramba/src/task_python.cpp
index 0b3f876..4b81f26 100644
--- a/superkaramba/src/task_python.cpp
+++ b/superkaramba/src/task_python.cpp
@@ -193,7 +193,7 @@ PyObject* getTaskInfo(long widget, long ctask)
}
else
{
- qWarning("Task not found.");
+ tqWarning("Task not found.");
return NULL;
}
}
diff --git a/superkaramba/src/taskbartest.cpp b/superkaramba/src/taskbartest.cpp
index 46d445d..f1d9386 100644
--- a/superkaramba/src/taskbartest.cpp
+++ b/superkaramba/src/taskbartest.cpp
@@ -96,10 +96,10 @@ int main(int argc, char **argv)
// if( args->arg(i) != "" )
// {
// TQFileInfo file( args->arg(i) );
-// //qDebug( file.dirPath(true) );
+// //tqDebug( file.dirPath(true) );
// if( file.exists() && !file.isDir() )
// {
-// //qDebug( "File exists" );
+// //tqDebug( "File exists" );
// mainWin = new karamba( ( args->arg(i) ));
// mainWin->show();
// OK = true;
diff --git a/superkaramba/src/themefile.cpp b/superkaramba/src/themefile.cpp
index 0e8c02f..a75cc14 100644
--- a/superkaramba/src/themefile.cpp
+++ b/superkaramba/src/themefile.cpp
@@ -68,13 +68,13 @@ class ZipFile
if(!m_zip->open(IO_ReadOnly))
{
- qDebug("Unable to open '%s' for reading.", zipfile.ascii());
+ tqDebug("Unable to open '%s' for reading.", zipfile.ascii());
return;
}
m_dir = m_zip->directory();
if(m_dir == 0)
{
- qDebug("Error reading directory contents of file %s", zipfile.ascii());
+ tqDebug("Error reading directory contents of file %s", zipfile.ascii());
return;
}
}
@@ -100,7 +100,7 @@ class ZipFile
else
{
if(!m_filename.isEmpty())
- qDebug("Error reading file %s from zip", m_filename.ascii());
+ tqDebug("Error reading file %s from zip", m_filename.ascii());
return TQByteArray();
}
}
diff --git a/superkaramba/src/xmmssensor.cpp b/superkaramba/src/xmmssensor.cpp
index 268700b..fd05744 100644
--- a/superkaramba/src/xmmssensor.cpp
+++ b/superkaramba/src/xmmssensor.cpp
@@ -164,13 +164,13 @@ void XMMSSensor::update()
{
isPlaying = xmms->isPlaying(0);
pos = xmms->getPlaylistPos(0);
- qDebug("unicode start");
+ tqDebug("unicode start");
title = codec->toUnicode( TQCString( xmms->getPlaylistTitle( 0, pos ) ) );
- qDebug("unicode end");
+ tqDebug("unicode end");
if( title.isEmpty() )
title = "XMMS";
- qDebug("Title: %s", title.ascii());
+ tqDebug("Title: %s", title.ascii());
songLength = xmms->getPlaylistTime( 0, pos );
currentTime = xmms->getOutputTime( 0 );
}