diff options
Diffstat (limited to 'src/simplemainwindow.cpp')
-rw-r--r-- | src/simplemainwindow.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp index d51bc31e..edb61145 100644 --- a/src/simplemainwindow.cpp +++ b/src/simplemainwindow.cpp @@ -393,7 +393,7 @@ void SimpleMainWindow::setCurrentDocumentCaption( const TQString &caption ) } } -KMainWindow *SimpleMainWindow::main() +TDEMainWindow *SimpleMainWindow::main() { return this; } @@ -408,48 +408,48 @@ void SimpleMainWindow::createFramework() void SimpleMainWindow::createActions() { - m_raiseEditor = new KAction(i18n("Raise &Editor"), ALT+Key_C, + m_raiseEditor = new TDEAction(i18n("Raise &Editor"), ALT+Key_C, TQT_TQOBJECT(this), TQT_SLOT(raiseEditor()), actionCollection(), "raise_editor"); m_raiseEditor->setToolTip(i18n("Raise editor")); m_raiseEditor->setWhatsThis(i18n("<b>Raise editor</b><p>Focuses the editor.")); - m_lowerAllDocks = new KAction(i18n("Lower All Docks"), CTRL+SHIFT+Key_C, + m_lowerAllDocks = new TDEAction(i18n("Lower All Docks"), CTRL+SHIFT+Key_C, TQT_TQOBJECT(this), TQT_SLOT(lowerAllDocks()), actionCollection(), "lower_all_docks"); - new KAction(i18n("Switch to next TabWidget"), 0, TQT_TQOBJECT(this), + new TDEAction(i18n("Switch to next TabWidget"), 0, TQT_TQOBJECT(this), TQT_SLOT(switchToNextTabWidget()), actionCollection(), "switch_to_next_tabwidget" ); - m_splitHor = new KAction(i18n("Split &Horizontal"), CTRL+SHIFT+Key_T, + m_splitHor = new TDEAction(i18n("Split &Horizontal"), CTRL+SHIFT+Key_T, TQT_TQOBJECT(this), TQT_SLOT(slotSplitHorizontalBase()), actionCollection(), "split_h"); m_splitHor->setIcon("view_top_bottom"); - m_splitVer = new KAction(i18n("Split &Vertical"), CTRL+SHIFT+Key_L, + m_splitVer = new TDEAction(i18n("Split &Vertical"), CTRL+SHIFT+Key_L, TQT_TQOBJECT(this), TQT_SLOT(slotSplitVerticalBase()), actionCollection(), "split_v"); m_splitVer->setIcon("view_left_right"); - m_splitHor1 = new KAction(i18n("Split &Horizontal"), 0, + m_splitHor1 = new TDEAction(i18n("Split &Horizontal"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSplitHorizontal()), actionCollection(), "split_h1"); m_splitHor1->setIcon("view_top_bottom"); - m_splitVer1 = new KAction(i18n("Split &Vertical"), 0, + m_splitVer1 = new TDEAction(i18n("Split &Vertical"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSplitVertical()), actionCollection(), "split_v1"); m_splitVer1->setIcon("view_left_right"); - m_splitHor2 = new KAction(i18n("Split &Horizontal and Open"), 0, + m_splitHor2 = new TDEAction(i18n("Split &Horizontal and Open"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSplitHorizontal()), actionCollection(), "split_h2"); m_splitHor2->setIcon("view_top_bottom"); - m_splitVer2 = new KAction(i18n("Split &Vertical and Open"), 0, + m_splitVer2 = new TDEAction(i18n("Split &Vertical and Open"), 0, TQT_TQOBJECT(this), TQT_SLOT(slotSplitVertical()), actionCollection(), "split_v2"); m_splitVer2->setIcon("view_left_right"); - m_raiseLeftDock = new KAction(i18n("Switch Left Dock"), CTRL+SHIFT+ALT+Key_L, + m_raiseLeftDock = new TDEAction(i18n("Switch Left Dock"), CTRL+SHIFT+ALT+Key_L, TQT_TQOBJECT(this), TQT_SLOT(raiseLeftDock()), actionCollection(), "switch_left_dock"); - m_raiseRightDock = new KAction(i18n("Switch Right Dock"), CTRL+SHIFT+ALT+Key_R, + m_raiseRightDock = new TDEAction(i18n("Switch Right Dock"), CTRL+SHIFT+ALT+Key_R, TQT_TQOBJECT(this), TQT_SLOT(raiseRightDock()), actionCollection(), "switch_right_dock"); - m_raiseBottomDock = new KAction(i18n("Switch Bottom Dock"), CTRL+SHIFT+ALT+Key_B, + m_raiseBottomDock = new TDEAction(i18n("Switch Bottom Dock"), CTRL+SHIFT+ALT+Key_B, TQT_TQOBJECT(this), TQT_SLOT(raiseBottomDock()), actionCollection(), "switch_bottom_dock"); KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(configureToolbars()), @@ -591,7 +591,7 @@ void SimpleMainWindow::tabContext(TQWidget *w, const TQPoint &p) if (!tabWidget) return; - KPopupMenu tabMenu; + TDEPopupMenu tabMenu; tabMenu.insertTitle(tabWidget->tabLabel(w)); //Find the document on whose tab the user clicked @@ -693,7 +693,7 @@ bool SimpleMainWindow::queryExit() void SimpleMainWindow::setupWindowMenu() { // get the xmlgui created one instead - m_windowMenu = static_cast<TQPopupMenu*>(TQT_TQWIDGET(main()->child("window", "KPopupMenu"))); + m_windowMenu = static_cast<TQPopupMenu*>(TQT_TQWIDGET(main()->child("window", "TDEPopupMenu"))); if (!m_windowMenu) { |