summaryrefslogtreecommitdiffstats
path: root/superkaramba/src
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-03-02 02:16:46 -0600
committerTimothy Pearson <[email protected]>2012-03-02 02:16:46 -0600
commitcff40e79adc61fc83827b2d1c1221f1fb4c0ab74 (patch)
tree8a006648cd645f005141731d7931188e45a53374 /superkaramba/src
parent3c87ec12c23bf62d3f60a7dd64020af8e0b997ce (diff)
downloadtdeutils-cff40e79adc61fc83827b2d1c1221f1fb4c0ab74.tar.gz
tdeutils-cff40e79adc61fc83827b2d1c1221f1fb4c0ab74.zip
Rename additional global functions and variables for tqt3
Diffstat (limited to 'superkaramba/src')
-rw-r--r--superkaramba/src/karamba.cpp2
-rw-r--r--superkaramba/src/showdesktop.cpp4
-rw-r--r--superkaramba/src/systemtray.cpp16
-rw-r--r--superkaramba/src/taskmanager.cpp38
4 files changed, 30 insertions, 30 deletions
diff --git a/superkaramba/src/karamba.cpp b/superkaramba/src/karamba.cpp
index 9bcb01d..d6e270a 100644
--- a/superkaramba/src/karamba.cpp
+++ b/superkaramba/src/karamba.cpp
@@ -136,7 +136,7 @@ karamba::karamba(TQString fn, TQString name, bool reloading, int instance,
}
widgetMask = 0;
- info = new NETWinInfo( qt_xdisplay(), winId(), qt_xrootwin(), NET::WMState );
+ info = new NETWinInfo( tqt_xdisplay(), winId(), tqt_xrootwin(), NET::WMState );
// could be replaced with TaskManager
kWinModule = new KWinModule();
diff --git a/superkaramba/src/showdesktop.cpp b/superkaramba/src/showdesktop.cpp
index 16a04b8..57d1f46 100644
--- a/superkaramba/src/showdesktop.cpp
+++ b/superkaramba/src/showdesktop.cpp
@@ -65,7 +65,7 @@ void ShowDesktop::slotWindowChanged(WId w, unsigned int dirty)
// SELI this needs checking for twin_iii (_NET_SHOWING_DESKTOP)
if ( dirty & NET::XAWMState )
{
- NETWinInfo inf(qt_xdisplay(), w, qt_xrootwin(),
+ NETWinInfo inf(tqt_xdisplay(), w, tqt_xrootwin(),
NET::XAWMState | NET::WMWindowType);
#ifdef KDE_3_2
NET::WindowType windowType = inf.windowType(NET_ALL_TYPES_MASK);
@@ -96,7 +96,7 @@ void ShowDesktop::showDesktop( bool b )
TQValueList<WId>::ConstIterator end( windows.end() );
for ( it=windows.begin(); it!=end; ++it ) {
WId w = *it;
- NETWinInfo info( qt_xdisplay(), w, qt_xrootwin(),
+ NETWinInfo info( tqt_xdisplay(), w, tqt_xrootwin(),
NET::XAWMState | NET::WMDesktop );
if ( info.mappingState() == NET::Visible &&
( info.desktop() == NETWinInfo::OnAllDesktops
diff --git a/superkaramba/src/systemtray.cpp b/superkaramba/src/systemtray.cpp
index 353f7de..fbe220d 100644
--- a/superkaramba/src/systemtray.cpp
+++ b/superkaramba/src/systemtray.cpp
@@ -68,18 +68,18 @@ void Systemtray::updateBackgroundPixmap ( const TQPixmap & pixmap) {
}
TQPoint topPoint = mapToGlobal(TQPoint(0,0));
- Window hack = XCreateSimpleWindow(qt_xdisplay(), winId(), 0,0, width(), height(), 0, 0, 0);
- XRaiseWindow(qt_xdisplay(), hack);
- XMapWindow(qt_xdisplay(), hack);
- XUnmapWindow(qt_xdisplay(), hack);
- XDestroyWindow(qt_xdisplay(), hack);
+ Window hack = XCreateSimpleWindow(tqt_xdisplay(), winId(), 0,0, width(), height(), 0, 0, 0);
+ XRaiseWindow(tqt_xdisplay(), hack);
+ XMapWindow(tqt_xdisplay(), hack);
+ XUnmapWindow(tqt_xdisplay(), hack);
+ XDestroyWindow(tqt_xdisplay(), hack);
}
void Systemtray::initSystray( void )
{
bool existing = false;
//bool content = false;
- Display *display = qt_xdisplay();
+ Display *display = tqt_xdisplay();
no_of_systray_windows = 0;
twin_module = new KWinModule();
@@ -111,7 +111,7 @@ void Systemtray::initSystray( void )
connect(twin_module, TQT_SIGNAL(systemTrayWindowRemoved(WId)), TQT_SLOT(systemTrayWindowRemoved(WId)));
TQCString screenstr;
- screenstr.setNum(qt_xscreen());
+ screenstr.setNum(tqt_xscreen());
TQCString trayatom = "_NET_SYSTEM_TRAY_S" + screenstr;
net_system_tray_selection = XInternAtom( display, trayatom, false );
@@ -123,7 +123,7 @@ void Systemtray::initSystray( void )
winId(),
CurrentTime );
- WId root = qt_xrootwin();
+ WId root = tqt_xrootwin();
if (XGetSelectionOwner(display, net_system_tray_selection) == winId())
{
diff --git a/superkaramba/src/taskmanager.cpp b/superkaramba/src/taskmanager.cpp
index 79ef9a9..1092342 100644
--- a/superkaramba/src/taskmanager.cpp
+++ b/superkaramba/src/taskmanager.cpp
@@ -114,7 +114,7 @@ Task* TaskManager::findTask(WId w)
void TaskManager::windowAdded(WId w )
{
- NETWinInfo info(qt_xdisplay(), w, qt_xrootwin(),
+ NETWinInfo info(tqt_xdisplay(), w, tqt_xrootwin(),
NET::WMWindowType | NET::WMPid | NET::WMState );
#ifdef KDE_3_2
NET::WindowType windowType = info.windowType(NET_ALL_TYPES_MASK);
@@ -133,7 +133,7 @@ void TaskManager::windowAdded(WId w )
}
Window transient_for_tmp;
- if (XGetTransientForHint(qt_xdisplay(), (Window) w, &transient_for_tmp))
+ if (XGetTransientForHint(tqt_xdisplay(), (Window) w, &transient_for_tmp))
{
WId transient_for = (WId) transient_for_tmp;
@@ -142,7 +142,7 @@ void TaskManager::windowAdded(WId w )
return;
// lets see if this is a transient for an existing task
- if (transient_for != qt_xrootwin() && transient_for != 0 )
+ if (transient_for != tqt_xrootwin() && transient_for != 0 )
{
Task* t = findTask(transient_for);
if (t)
@@ -188,7 +188,7 @@ void TaskManager::windowRemoved(WId w )
void TaskManager::windowChanged(WId w, unsigned int dirty)
{
if( dirty & NET::WMState ) {
- NETWinInfo info ( qt_xdisplay(), w, qt_xrootwin(), NET::WMState );
+ NETWinInfo info ( tqt_xdisplay(), w, tqt_xrootwin(), NET::WMState );
if ( (info.state() & NET::SkipTaskbar) != 0 ) {
windowRemoved( w );
_skiptaskbar_windows.push_front( w );
@@ -474,19 +474,19 @@ bool Task::isModified() const
TQString Task::iconName() const
{
- NETWinInfo ni( qt_xdisplay(), _win, qt_xrootwin(), NET::WMIconName);
+ NETWinInfo ni( tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMIconName);
return TQString::fromUtf8(ni.iconName());
}
TQString Task::visibleIconName() const
{
- NETWinInfo ni( qt_xdisplay(), _win, qt_xrootwin(), NET::WMVisibleIconName);
+ NETWinInfo ni( tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMVisibleIconName);
return TQString::fromUtf8(ni.visibleIconName());
}
TQString Task::className()
{
XClassHint hint;
- if(XGetClassHint(qt_xdisplay(), _win, &hint)) {
+ if(XGetClassHint(tqt_xdisplay(), _win, &hint)) {
TQString nh( hint.res_name );
XFree( hint.res_name );
XFree( hint.res_class );
@@ -498,7 +498,7 @@ TQString Task::className()
TQString Task::classClass()
{
XClassHint hint;
- if(XGetClassHint(qt_xdisplay(), _win, &hint)) {
+ if(XGetClassHint(tqt_xdisplay(), _win, &hint)) {
TQString ch( hint.res_class );
XFree( hint.res_name );
XFree( hint.res_class );
@@ -620,7 +620,7 @@ bool Task::idMatch( const TQString& id1, const TQString& id2 )
void Task::maximize()
{
- NETWinInfo ni( qt_xdisplay(), _win, qt_xrootwin(), NET::WMState);
+ NETWinInfo ni( tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMState);
ni.setState( NET::Max, NET::Max );
#ifdef KDE_3_2
@@ -633,7 +633,7 @@ void Task::maximize()
void Task::restore()
{
- NETWinInfo ni( qt_xdisplay(), _win, qt_xrootwin(), NET::WMState);
+ NETWinInfo ni( tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMState);
ni.setState( 0, NET::Max );
#ifdef KDE_3_2
if (_info.mappingState() == NET::Iconic)
@@ -645,31 +645,31 @@ void Task::restore()
void Task::iconify()
{
- XIconifyWindow( qt_xdisplay(), _win, qt_xscreen() );
+ XIconifyWindow( tqt_xdisplay(), _win, tqt_xscreen() );
}
void Task::close()
{
- NETRootInfo ri( qt_xdisplay(), NET::CloseWindow );
+ NETRootInfo ri( tqt_xdisplay(), NET::CloseWindow );
ri.closeWindowRequest( _win );
}
void Task::raise()
{
// kdDebug(1210) << "Task::raise(): " << name() << endl;
- XRaiseWindow( qt_xdisplay(), _win );
+ XRaiseWindow( tqt_xdisplay(), _win );
}
void Task::lower()
{
// kdDebug(1210) << "Task::lower(): " << name() << endl;
- XLowerWindow( qt_xdisplay(), _win );
+ XLowerWindow( tqt_xdisplay(), _win );
}
void Task::activate()
{
// kdDebug(1210) << "Task::activate():" << name() << endl;
- NETRootInfo ri( qt_xdisplay(), 0 );
+ NETRootInfo ri( tqt_xdisplay(), 0 );
ri.setActiveWindow( _win );
}
@@ -686,7 +686,7 @@ void Task::activateRaiseOrIconify()
void Task::toDesktop(int desk)
{
- NETWinInfo ni(qt_xdisplay(), _win, qt_xrootwin(), NET::WMDesktop);
+ NETWinInfo ni(tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMDesktop);
if (desk == 0)
{
#ifdef KDE_3_2
@@ -722,7 +722,7 @@ void Task::toCurrentDesktop()
void Task::setAlwaysOnTop(bool stay)
{
- NETWinInfo ni( qt_xdisplay(), _win, qt_xrootwin(), NET::WMState);
+ NETWinInfo ni( tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMState);
if(stay)
ni.setState( NET::StaysOnTop, NET::StaysOnTop );
else
@@ -736,7 +736,7 @@ void Task::toggleAlwaysOnTop()
void Task::setShaded(bool shade)
{
- NETWinInfo ni( qt_xdisplay(), _win, qt_xrootwin(), NET::WMState);
+ NETWinInfo ni( tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMState);
if(shade)
ni.setState( NET::Shaded, NET::Shaded );
else
@@ -750,7 +750,7 @@ void Task::toggleShaded()
void Task::publishIconGeometry(TQRect rect)
{
- NETWinInfo ni( qt_xdisplay(), _win, qt_xrootwin(), NET::WMIconGeometry);
+ NETWinInfo ni( tqt_xdisplay(), _win, tqt_xrootwin(), NET::WMIconGeometry);
NETRect r;
r.pos.x = rect.x();
r.pos.y = rect.y();