diff options
Diffstat (limited to 'kicker/taskmanager/taskrmbmenu.cpp')
-rw-r--r-- | kicker/taskmanager/taskrmbmenu.cpp | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/kicker/taskmanager/taskrmbmenu.cpp b/kicker/taskmanager/taskrmbmenu.cpp index 47260687f..fb4c9ae87 100644 --- a/kicker/taskmanager/taskrmbmenu.cpp +++ b/kicker/taskmanager/taskrmbmenu.cpp @@ -38,8 +38,8 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include "taskrmbmenu.h" #include "taskrmbmenu.moc" -TaskRMBMenu::TaskRMBMenu(const Task::List& theTasks, bool show, QWidget *parent, const char *name) - : QPopupMenu( parent, name ) +TaskRMBMenu::TaskRMBMenu(const Task::List& theTasks, bool show, TQWidget *parent, const char *name) + : TQPopupMenu( parent, name ) , tasks( theTasks ) , showAll( show ) { @@ -54,8 +54,8 @@ TaskRMBMenu::TaskRMBMenu(const Task::List& theTasks, bool show, QWidget *parent, } } -TaskRMBMenu::TaskRMBMenu(Task::Ptr task, bool show, QWidget *parent, const char *name) - : QPopupMenu( parent, name ) +TaskRMBMenu::TaskRMBMenu(Task::Ptr task, bool show, TQWidget *parent, const char *name) + : TQPopupMenu( parent, name ) , showAll( show ) { fillMenu(task); @@ -76,7 +76,7 @@ void TaskRMBMenu::fillMenu(Task::Ptr t) if (showAll) { id = insertItem(i18n("&To Current Desktop"), - t, SLOT(toCurrentDesktop())); + t, TQT_SLOT(toCurrentDesktop())); setItemEnabled( id, !t->isOnCurrentDesktop() ); } @@ -86,27 +86,27 @@ void TaskRMBMenu::fillMenu(Task::Ptr t) } } - id = insertItem(SmallIconSet("move"), i18n("&Move"), t, SLOT(move())); + id = insertItem(SmallIconSet("move"), i18n("&Move"), t, TQT_SLOT(move())); setItemEnabled(id, !checkActions || t->info().actionSupported(NET::ActionMove)); - id = insertItem(i18n("Re&size"), t, SLOT(resize())); + id = insertItem(i18n("Re&size"), t, TQT_SLOT(resize())); setItemEnabled(id, !checkActions || t->info().actionSupported(NET::ActionResize)); - id = insertItem(i18n("Mi&nimize"), t, SLOT(toggleIconified())); + id = insertItem(i18n("Mi&nimize"), t, TQT_SLOT(toggleIconified())); setItemChecked(id, t->isIconified()); setItemEnabled(id, !checkActions || t->info().actionSupported(NET::ActionMinimize)); - id = insertItem(i18n("Ma&ximize"), t, SLOT(toggleMaximized())); + id = insertItem(i18n("Ma&ximize"), t, TQT_SLOT(toggleMaximized())); setItemChecked(id, t->isMaximized()); setItemEnabled(id, !checkActions || t->info().actionSupported(NET::ActionMax)); - id = insertItem(i18n("&Shade"), t, SLOT(toggleShaded())); + id = insertItem(i18n("&Shade"), t, TQT_SLOT(toggleShaded())); setItemChecked(id, t->isShaded()); setItemEnabled(id, !checkActions || t->info().actionSupported(NET::ActionShade)); insertSeparator(); - id = insertItem(SmallIcon("fileclose"), i18n("&Close"), t, SLOT(close())); + id = insertItem(SmallIcon("fileclose"), i18n("&Close"), t, TQT_SLOT(close())); setItemEnabled(id, !checkActions || t->info().actionSupported(NET::ActionClose)); } @@ -120,11 +120,11 @@ void TaskRMBMenu::fillMenu() { Task::Ptr t = (*it); - id = insertItem( QIconSet( t->pixmap() ), + id = insertItem( TQIconSet( t->pixmap() ), t->visibleNameWithState(), new TaskRMBMenu(t, this) ); setItemChecked( id, t->isActive() ); - connectItem( id, t, SLOT( activateRaiseOrIconify() ) ); + connectItem( id, t, TQT_SLOT( activateRaiseOrIconify() ) ); } insertSeparator(); @@ -135,7 +135,7 @@ void TaskRMBMenu::fillMenu() { id = insertItem(i18n("All to &Desktop"), makeDesktopsMenu()); - id = insertItem(i18n("All &to Current Desktop"), this, SLOT(slotAllToCurrentDesktop())); + id = insertItem(i18n("All &to Current Desktop"), this, TQT_SLOT(slotAllToCurrentDesktop())); Task::List::iterator itEnd = tasks.end(); for (Task::List::iterator it = tasks.begin(); it != itEnd; ++it) { @@ -150,7 +150,7 @@ void TaskRMBMenu::fillMenu() enable = false; - id = insertItem( i18n( "Mi&nimize All" ), this, SLOT( slotMinimizeAll() ) ); + id = insertItem( i18n( "Mi&nimize All" ), this, TQT_SLOT( slotMinimizeAll() ) ); itEnd = tasks.end(); for (Task::List::iterator it = tasks.begin(); it != itEnd; ++it) { @@ -163,7 +163,7 @@ void TaskRMBMenu::fillMenu() enable = false; - id = insertItem( i18n( "Ma&ximize All" ), this, SLOT( slotMaximizeAll() ) ); + id = insertItem( i18n( "Ma&ximize All" ), this, TQT_SLOT( slotMaximizeAll() ) ); itEnd = tasks.end(); for (Task::List::iterator it = tasks.begin(); it != itEnd; ++it) { @@ -176,7 +176,7 @@ void TaskRMBMenu::fillMenu() enable = false; - id = insertItem( i18n( "&Restore All" ), this, SLOT( slotRestoreAll() ) ); + id = insertItem( i18n( "&Restore All" ), this, TQT_SLOT( slotRestoreAll() ) ); itEnd = tasks.end(); for (Task::List::iterator it = tasks.begin(); it != itEnd; ++it) { @@ -191,29 +191,29 @@ void TaskRMBMenu::fillMenu() enable = false; - insertItem( SmallIcon( "remove" ), i18n( "&Close All" ), this, SLOT( slotCloseAll() ) ); + insertItem( SmallIcon( "remove" ), i18n( "&Close All" ), this, TQT_SLOT( slotCloseAll() ) ); } -QPopupMenu* TaskRMBMenu::makeAdvancedMenu(Task::Ptr t) +TQPopupMenu* TaskRMBMenu::makeAdvancedMenu(Task::Ptr t) { int id; - QPopupMenu* menu = new QPopupMenu(this); + TQPopupMenu* menu = new TQPopupMenu(this); menu->setCheckable(true); id = menu->insertItem(SmallIconSet("up"), i18n("Keep &Above Others"), - t, SLOT(toggleAlwaysOnTop())); + t, TQT_SLOT(toggleAlwaysOnTop())); menu->setItemChecked(id, t->isAlwaysOnTop()); id = menu->insertItem(SmallIconSet("down"), i18n("Keep &Below Others"), - t, SLOT(toggleKeptBelowOthers())); + t, TQT_SLOT(toggleKeptBelowOthers())); menu->setItemChecked(id, t->isKeptBelowOthers()); id = menu->insertItem(SmallIconSet("window_fullscreen"), i18n("&Fullscreen"), - t, SLOT(toggleFullScreen())); + t, TQT_SLOT(toggleFullScreen())); menu->setItemChecked(id, t->isFullScreen()); if (KWin::allowedActionsSupported()) @@ -224,20 +224,20 @@ QPopupMenu* TaskRMBMenu::makeAdvancedMenu(Task::Ptr t) return menu; } -QPopupMenu* TaskRMBMenu::makeDesktopsMenu(Task::Ptr t) +TQPopupMenu* TaskRMBMenu::makeDesktopsMenu(Task::Ptr t) { - QPopupMenu* m = new QPopupMenu( this ); + TQPopupMenu* m = new TQPopupMenu( this ); m->setCheckable( true ); - int id = m->insertItem( i18n("&All Desktops"), t, SLOT( toDesktop(int) ) ); + int id = m->insertItem( i18n("&All Desktops"), t, TQT_SLOT( toDesktop(int) ) ); m->setItemParameter( id, 0 ); // 0 means all desktops m->setItemChecked( id, t->isOnAllDesktops() ); m->insertSeparator(); for (int i = 1; i <= TaskManager::the()->numberOfDesktops(); i++) { - QString name = QString("&%1 %2").arg(i).arg(TaskManager::the()->desktopName(i).replace('&', "&&")); - id = m->insertItem( name, t, SLOT( toDesktop(int) ) ); + TQString name = TQString("&%1 %2").arg(i).arg(TaskManager::the()->desktopName(i).replace('&', "&&")); + id = m->insertItem( name, t, TQT_SLOT( toDesktop(int) ) ); m->setItemParameter( id, i ); m->setItemChecked( id, !t->isOnAllDesktops() && t->desktop() == i ); } @@ -245,19 +245,19 @@ QPopupMenu* TaskRMBMenu::makeDesktopsMenu(Task::Ptr t) return m; } -QPopupMenu* TaskRMBMenu::makeDesktopsMenu() +TQPopupMenu* TaskRMBMenu::makeDesktopsMenu() { - QPopupMenu* m = new QPopupMenu( this ); + TQPopupMenu* m = new TQPopupMenu( this ); m->setCheckable( true ); - int id = m->insertItem( i18n("&All Desktops"), this, SLOT( slotAllToDesktop(int) ) ); + int id = m->insertItem( i18n("&All Desktops"), this, TQT_SLOT( slotAllToDesktop(int) ) ); m->setItemParameter( id, 0 ); // 0 means all desktops m->insertSeparator(); for (int i = 1; i <= TaskManager::the()->numberOfDesktops(); i++) { - QString name = QString("&%1 %2").arg(i).arg(TaskManager::the()->desktopName(i).replace('&', "&&")); - id = m->insertItem( name, this, SLOT( slotAllToDesktop(int) ) ); + TQString name = TQString("&%1 %2").arg(i).arg(TaskManager::the()->desktopName(i).replace('&', "&&")); + id = m->insertItem( name, this, TQT_SLOT( slotAllToDesktop(int) ) ); m->setItemParameter( id, i ); } |