summaryrefslogtreecommitdiffstats
path: root/kpager/kpager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpager/kpager.cpp')
-rw-r--r--kpager/kpager.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/kpager/kpager.cpp b/kpager/kpager.cpp
index 4775576ee..95f4ec61c 100644
--- a/kpager/kpager.cpp
+++ b/kpager/kpager.cpp
@@ -67,7 +67,7 @@ KPagerMainWindow::KPagerMainWindow(TQWidget *parent, const char *name)
m_pPager = new KPager(this, 0);
setCentralWidget(m_pPager);
- TDEConfig *cfg = kapp->config();
+ TDEConfig *cfg = tdeApp->config();
cfg->setGroup("KPager");
// Update the last used geometry
@@ -91,7 +91,7 @@ KPagerMainWindow::KPagerMainWindow(TQWidget *parent, const char *name)
// rect.pos.y+rect.size.height-m_pPager->height());
// antonio:The above lines don't work. I should look at them when I have
// more time
- move(kapp->desktop()->width()-m_pPager->sizeHint().width()-5,kapp->desktop()->height()-m_pPager->sizeHint().height()-25);
+ move(tdeApp->desktop()->width()-m_pPager->sizeHint().width()-5,tdeApp->desktop()->height()-m_pPager->sizeHint().height()-25);
}
// Set the wm flags to this window
@@ -111,7 +111,7 @@ KPagerMainWindow::KPagerMainWindow(TQWidget *parent, const char *name)
XFree(reinterpret_cast<char *>(hints));
timeout=new TQTimer(this,"timeoutToQuit");
- connect(timeout,TQT_SIGNAL(timeout()),this, TQT_SLOT(reallyClose()));
+ connect(timeout,TQ_SIGNAL(timeout()),this, TQ_SLOT(reallyClose()));
}
KPagerMainWindow::~KPagerMainWindow()
@@ -158,9 +158,9 @@ void KPagerMainWindow::showAt(int x, int y)
// Just in case we lost the sticky bit... (as when a window is hidden)
KWin::setOnAllDesktops( winId(), true);
- if (x>kapp->desktop()->width()/2) // Right
+ if (x>tdeApp->desktop()->width()/2) // Right
x-=m_pPager->width()+5;
- if (y>kapp->desktop()->height()/2) // Bottom
+ if (y>tdeApp->desktop()->height()/2) // Bottom
y-=m_pPager->height()+25;
move(x,y);
show();
@@ -187,15 +187,15 @@ KPager::KPager(KPagerMainWindow *parent, const char *name)
m_windows.setAutoDelete(true); // delete windows info after removal
setBackgroundColor( black );
- m_winmodule=new KWinModule(TQT_TQOBJECT(this));
+ m_winmodule=new KWinModule(this);
m_currentDesktop=m_winmodule->currentDesktop();
m_grabWinTimer=new TQTimer(this,"grabWinTimer");
- connect(m_grabWinTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotGrabWindows()));
+ connect(m_grabWinTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(slotGrabWindows()));
KPagerConfigDialog::initConfiguration();
- TDEConfig *cfg = kapp->config();
+ TDEConfig *cfg = tdeApp->config();
cfg->setGroup("KPager");
m_showStickyOption=cfg->readBoolEntry("ShowStickyOption",false);
@@ -208,31 +208,31 @@ KPager::KPager(KPagerMainWindow *parent, const char *name)
m_layoutType=static_cast<enum KPager::LayoutTypes>( KPagerConfigDialog::m_layoutType );
- connect( m_winmodule, TQT_SIGNAL( activeWindowChanged(WId)),
- TQT_SLOT(slotActiveWindowChanged(WId)));
- connect( m_winmodule, TQT_SIGNAL( windowAdded(WId) ),
- TQT_SLOT( slotWindowAdded(WId) ) );
- connect( m_winmodule, TQT_SIGNAL( windowRemoved(WId) ),
- TQT_SLOT( slotWindowRemoved(WId) ) );
- connect( m_winmodule, TQT_SIGNAL( windowChanged(WId,unsigned int) ),
- TQT_SLOT( slotWindowChanged(WId,unsigned int) ) );
- connect( m_winmodule, TQT_SIGNAL( stackingOrderChanged() ),
- TQT_SLOT( slotStackingOrderChanged() ) );
- connect( m_winmodule, TQT_SIGNAL( desktopNamesChanged() ),
- TQT_SLOT( slotDesktopNamesChanged() ) );
- connect( m_winmodule, TQT_SIGNAL( numberOfDesktopsChanged(int) ),
- TQT_SLOT( slotNumberOfDesktopsChanged(int) ) );
- connect( m_winmodule, TQT_SIGNAL( currentDesktopChanged(int)),
- TQT_SLOT( slotCurrentDesktopChanged(int) ) );
- connect(kapp, TQT_SIGNAL(backgroundChanged(int)),
- TQT_SLOT(slotBackgroundChanged(int)));
+ connect( m_winmodule, TQ_SIGNAL( activeWindowChanged(WId)),
+ TQ_SLOT(slotActiveWindowChanged(WId)));
+ connect( m_winmodule, TQ_SIGNAL( windowAdded(WId) ),
+ TQ_SLOT( slotWindowAdded(WId) ) );
+ connect( m_winmodule, TQ_SIGNAL( windowRemoved(WId) ),
+ TQ_SLOT( slotWindowRemoved(WId) ) );
+ connect( m_winmodule, TQ_SIGNAL( windowChanged(WId,unsigned int) ),
+ TQ_SLOT( slotWindowChanged(WId,unsigned int) ) );
+ connect( m_winmodule, TQ_SIGNAL( stackingOrderChanged() ),
+ TQ_SLOT( slotStackingOrderChanged() ) );
+ connect( m_winmodule, TQ_SIGNAL( desktopNamesChanged() ),
+ TQ_SLOT( slotDesktopNamesChanged() ) );
+ connect( m_winmodule, TQ_SIGNAL( numberOfDesktopsChanged(int) ),
+ TQ_SLOT( slotNumberOfDesktopsChanged(int) ) );
+ connect( m_winmodule, TQ_SIGNAL( currentDesktopChanged(int)),
+ TQ_SLOT( slotCurrentDesktopChanged(int) ) );
+ connect(tdeApp, TQ_SIGNAL(backgroundChanged(int)),
+ TQ_SLOT(slotBackgroundChanged(int)));
TQFont defFont(TDEGlobalSettings::generalFont().family(), 10, TQFont::Bold);
defFont = cfg->readFontEntry("Font", &defFont);
setFont(defFont);
- m_prefs_action = KStdAction::preferences(TQT_TQOBJECT(this), TQT_SLOT(configureDialog()), parent->actionCollection());
- m_quit_action = KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), parent->actionCollection());
+ m_prefs_action = KStdAction::preferences(this, TQ_SLOT(configureDialog()), parent->actionCollection());
+ m_quit_action = KStdAction::quit(tdeApp, TQ_SLOT(quit()), parent->actionCollection());
updateLayout();
}
@@ -323,13 +323,13 @@ void KPager::showPopupMenu( WId wid, TQPoint pos)
m_mnu->insertTitle( TQString::fromUtf8("KPager"), 1);
m_mnu->setCheckable(true);
- connect(m_mnu, TQT_SIGNAL(aboutToShow()), TQT_SLOT(clientPopupAboutToShow()));
- connect(m_mnu, TQT_SIGNAL(activated(int)), TQT_SLOT(clientPopupActivated(int)));
+ connect(m_mnu, TQ_SIGNAL(aboutToShow()), TQ_SLOT(clientPopupAboutToShow()));
+ connect(m_mnu, TQ_SIGNAL(activated(int)), TQ_SLOT(clientPopupActivated(int)));
m_dmnu = new TQPopupMenu(m_mnu);
m_dmnu->setCheckable(true);
- connect(m_dmnu, TQT_SIGNAL(aboutToShow()), TQT_SLOT(desktopPopupAboutToShow()));
- connect(m_dmnu, TQT_SIGNAL(activated(int)), TQT_SLOT(sendToDesktop(int)));
+ connect(m_dmnu, TQ_SIGNAL(aboutToShow()), TQ_SLOT(desktopPopupAboutToShow()));
+ connect(m_dmnu, TQ_SIGNAL(activated(int)), TQ_SLOT(sendToDesktop(int)));
m_mnu->insertItem( i18n("Mi&nimize"), IconifyOp );
m_mnu->insertItem( i18n("Ma&ximize"), MaximizeOp );
@@ -600,7 +600,7 @@ void KPager::desktopPopupAboutToShow()
id = m_dmnu->insertItem( TQString("&")+TQString::number(i )+TQString(" ")
+ m_winmodule->desktopName(i), i );
if ( m_winfo.desktop() == i )
- m_dmnu->setItemChecked( id, TRUE );
+ m_dmnu->setItemChecked( id, true );
}
}