diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:04:33 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:04:33 -0600 |
commit | 9aa2a73641f4d386c9667ac946cebfabca872940 (patch) | |
tree | 9d6d443b7e100cbe48a8747207f7f2db1d42e141 /src/textview.cpp | |
parent | 0f2dc8b9f38b8cbb3cd1769173a4f3ed32a7a189 (diff) | |
download | ktechlab-9aa2a73641f4d386c9667ac946cebfabca872940.tar.gz ktechlab-9aa2a73641f4d386c9667ac946cebfabca872940.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/textview.cpp')
-rw-r--r-- | src/textview.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/textview.cpp b/src/textview.cpp index d6692c5..13a5069 100644 --- a/src/textview.cpp +++ b/src/textview.cpp @@ -46,14 +46,14 @@ TextView::TextView( TextDocument * textDocument, ViewContainer *viewContainer, u m_view = textDocument->createKateView(this); m_view->insertChildClient(this); - KActionCollection * ac = actionCollection(); + TDEActionCollection * ac = actionCollection(); //BEGIN Convert To * Actions - KToolBarPopupAction * pa = new KToolBarPopupAction( i18n("Convert to"), "fork", 0, 0, 0, ac, "program_convert" ); + TDEToolBarPopupAction * pa = new TDEToolBarPopupAction( i18n("Convert to"), "fork", 0, 0, 0, ac, "program_convert" ); pa->setDelayed(false); - KPopupMenu * m = pa->popupMenu(); + TDEPopupMenu * m = pa->popupMenu(); m->insertTitle( i18n("Convert to ...") ); m->insertItem( TDEGlobal::iconLoader()->loadIcon( "convert_to_microbe", KIcon::Small ), i18n("Microbe"), TextDocument::MicrobeOutput ); @@ -66,18 +66,18 @@ TextView::TextView( TextDocument * textDocument, ViewContainer *viewContainer, u //END Convert To * Actions - new KAction( i18n("Format Assembly Code"), "", TQt::Key_F12, textDocument, TQT_SLOT(formatAssembly()), ac, "format_asm" ); + new TDEAction( i18n("Format Assembly Code"), "", TQt::Key_F12, textDocument, TQT_SLOT(formatAssembly()), ac, "format_asm" ); #ifndef NO_GPSIM //BEGIN Debug Actions - new KAction( i18n("Set &Breakpoint"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(toggleBreakpoint()), ac, "debug_toggle_breakpoint" ); - new KAction( i18n("Run"), "dbgrun", 0, textDocument, TQT_SLOT(debugRun()), ac, "debug_run" ); - new KAction( i18n("Interrupt"), "player_pause", 0, textDocument, TQT_SLOT(debugInterrupt()), ac, "debug_interrupt" ); - new KAction( i18n("Stop"), "stop", 0, textDocument, TQT_SLOT(debugStop()), ac, "debug_stop" ); - new KAction( i18n("Step"), "dbgstep", TQt::CTRL|TQt::ALT|TQt::Key_Right, textDocument, TQT_SLOT(debugStep()), ac, "debug_step" ); - new KAction( i18n("Step Over"), "dbgnext", 0, textDocument, TQT_SLOT(debugStepOver()), ac, "debug_step_over" ); - new KAction( i18n("Step Out"), "dbgstepout", 0, textDocument, TQT_SLOT(debugStepOut()), ac, "debug_step_out" ); + new TDEAction( i18n("Set &Breakpoint"), 0, 0, TQT_TQOBJECT(this), TQT_SLOT(toggleBreakpoint()), ac, "debug_toggle_breakpoint" ); + new TDEAction( i18n("Run"), "dbgrun", 0, textDocument, TQT_SLOT(debugRun()), ac, "debug_run" ); + new TDEAction( i18n("Interrupt"), "player_pause", 0, textDocument, TQT_SLOT(debugInterrupt()), ac, "debug_interrupt" ); + new TDEAction( i18n("Stop"), "stop", 0, textDocument, TQT_SLOT(debugStop()), ac, "debug_stop" ); + new TDEAction( i18n("Step"), "dbgstep", TQt::CTRL|TQt::ALT|TQt::Key_Right, textDocument, TQT_SLOT(debugStep()), ac, "debug_step" ); + new TDEAction( i18n("Step Over"), "dbgnext", 0, textDocument, TQT_SLOT(debugStepOver()), ac, "debug_step_over" ); + new TDEAction( i18n("Step Out"), "dbgstepout", 0, textDocument, TQT_SLOT(debugStepOut()), ac, "debug_step_out" ); //END Debug Actions #endif @@ -157,7 +157,7 @@ TextDocument *TextView::textDocument() const void TextView::disableActions() { - KPopupMenu * tb = (dynamic_cast<KToolBarPopupAction*>(action("program_convert")))->popupMenu(); + TDEPopupMenu * tb = (dynamic_cast<TDEToolBarPopupAction*>(action("program_convert")))->popupMenu(); tb->setItemEnabled( TextDocument::AssemblyOutput, false ); tb->setItemEnabled( TextDocument::HexOutput, false ); @@ -188,7 +188,7 @@ void TextView::initCodeActions() { disableActions(); - KPopupMenu * tb = (dynamic_cast<KToolBarPopupAction*>(action("program_convert")))->popupMenu(); + TDEPopupMenu * tb = (dynamic_cast<TDEToolBarPopupAction*>(action("program_convert")))->popupMenu(); switch ( textDocument()->guessedCodeType() ) { |