diff options
Diffstat (limited to 'languages/cpp')
51 files changed, 179 insertions, 179 deletions
diff --git a/languages/cpp/app_templates/kapp/app.cpp b/languages/cpp/app_templates/kapp/app.cpp index cefcc605..f4c4cba2 100644 --- a/languages/cpp/app_templates/kapp/app.cpp +++ b/languages/cpp/app_templates/kapp/app.cpp @@ -26,14 +26,14 @@ #include <kstdaction.h> %{APPNAME}::%{APPNAME}() - : KMainWindow( 0, "%{APPNAME}" ), + : TDEMainWindow( 0, "%{APPNAME}" ), m_view(new %{APPNAME}View(this)), m_printer(0) { // accept dnd setAcceptDrops(true); - // tell the KMainWindow that this is indeed the main widget + // tell the TDEMainWindow that this is indeed the main widget setCentralWidget(m_view); // then, setup our actions @@ -99,7 +99,7 @@ void %{APPNAME}::setupActions() // this doesn't do anything useful. it's just here to illustrate // how to insert a custom menu and menu item - KAction *custom = new KAction(i18n("Cus&tom Menuitem"), 0, + TDEAction *custom = new TDEAction(i18n("Cus&tom Menuitem"), 0, this, TQT_SLOT(optionsPreferences()), actionCollection(), "custom_action"); } diff --git a/languages/cpp/app_templates/kapp/app.h b/languages/cpp/app_templates/kapp/app.h index 2085e6e6..007a5db0 100644 --- a/languages/cpp/app_templates/kapp/app.h +++ b/languages/cpp/app_templates/kapp/app.h @@ -23,7 +23,7 @@ class KURL; * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ -class %{APPNAME} : public KMainWindow +class %{APPNAME} : public TDEMainWindow { Q_OBJECT diff --git a/languages/cpp/app_templates/kateplugin/plugin_app.cpp b/languages/cpp/app_templates/kateplugin/plugin_app.cpp index 9ef7ccc7..b9d5a9b4 100644 --- a/languages/cpp/app_templates/kateplugin/plugin_app.cpp +++ b/languages/cpp/app_templates/kateplugin/plugin_app.cpp @@ -54,7 +54,7 @@ void KatePlugin%{APPNAME}::addView(Kate::MainWindow *win) /// @todo doesn't this have to be deleted? PluginView *view = new PluginView (); - (void) new KAction ( i18n("Insert Hello World"), 0, this, + (void) new TDEAction ( i18n("Insert Hello World"), 0, this, TQT_SLOT( slotInsertHello() ), view->actionCollection(), "edit_insert_%{APPNAMELC}" ); diff --git a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp index 008db5a8..269a6b9e 100644 --- a/languages/cpp/app_templates/kateplugin2/plugin_app.cpp +++ b/languages/cpp/app_templates/kateplugin2/plugin_app.cpp @@ -58,7 +58,7 @@ void KatePlugin%{APPNAME}::addView(Kate::MainWindow *win) /// @todo doesn't this have to be deleted? PluginView *view = new PluginView (); - (void) new KAction ( i18n("Insert Hello World"), 0, this, + (void) new TDEAction ( i18n("Insert Hello World"), 0, this, TQT_SLOT( slotInsertHello() ), view->actionCollection(), "edit_insert_%{APPNAMELC}" ); diff --git a/languages/cpp/app_templates/kde4app/kapp4.cpp b/languages/cpp/app_templates/kde4app/kapp4.cpp index b6a93a2b..0cbd25ed 100644 --- a/languages/cpp/app_templates/kde4app/kapp4.cpp +++ b/languages/cpp/app_templates/kde4app/kapp4.cpp @@ -53,7 +53,7 @@ void %{APPNAME}::setupActions() TDEStandardAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); // custom menu and menu item - the slot is in the class %{APPNAME}View - KAction *custom = new KAction(KIcon("colorize"), i18n("Swi&tch Colors"), this); + TDEAction *custom = new TDEAction(KIcon("colorize"), i18n("Swi&tch Colors"), this); actionCollection()->addAction( TQLatin1String("switch_action"), custom ); connect(custom, TQT_SIGNAL(triggered(bool)), m_view, TQT_SLOT(switchColors())); } diff --git a/languages/cpp/app_templates/kde4app/kapp4.h b/languages/cpp/app_templates/kde4app/kapp4.h index 68799e3c..3c209de2 100644 --- a/languages/cpp/app_templates/kde4app/kapp4.h +++ b/languages/cpp/app_templates/kde4app/kapp4.h @@ -9,7 +9,7 @@ class %{APPNAME}View; class KPrinter; -class KToggleAction; +class TDEToggleAction; class KUrl; /** @@ -47,8 +47,8 @@ private: %{APPNAME}View *m_view; KPrinter *m_printer; - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; + TDEToggleAction *m_toolbarAction; + TDEToggleAction *m_statusbarAction; }; #endif // _%{APPNAMELC}_H_ diff --git a/languages/cpp/app_templates/kdedcop/app.cpp b/languages/cpp/app_templates/kdedcop/app.cpp index e4fa554f..0548f6bd 100644 --- a/languages/cpp/app_templates/kdedcop/app.cpp +++ b/languages/cpp/app_templates/kdedcop/app.cpp @@ -8,7 +8,7 @@ #include <klocale.h> %{APPNAME}::%{APPNAME}() - : KMainWindow( 0, "%{APPNAME}" ) + : TDEMainWindow( 0, "%{APPNAME}" ) { m_mainClass = new MainClass(); } diff --git a/languages/cpp/app_templates/kdedcop/app.h b/languages/cpp/app_templates/kdedcop/app.h index 19489d45..5e533c50 100644 --- a/languages/cpp/app_templates/kdedcop/app.h +++ b/languages/cpp/app_templates/kdedcop/app.h @@ -16,7 +16,7 @@ * @author %{AUTHOR} <%{EMAIL}> * @version 0.1 */ -class %{APPNAME} : public KMainWindow +class %{APPNAME} : public TDEMainWindow { Q_OBJECT diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp index 364ec0d7..ce011498 100644 --- a/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp +++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.cpp @@ -28,7 +28,7 @@ static const KDevPluginInfo data("kdev%{APPNAMELC}"); setXMLFile("kdevlang_%{APPNAMELC}.rc"); - m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" ); + m_build = new TDEAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" ); kdDebug() << "Creating %{APPNAMELC} Part" << endl; diff --git a/languages/cpp/app_templates/kdevlang/kdevlang_part.h b/languages/cpp/app_templates/kdevlang/kdevlang_part.h index f6439768..1cce0fa6 100644 --- a/languages/cpp/app_templates/kdevlang/kdevlang_part.h +++ b/languages/cpp/app_templates/kdevlang/kdevlang_part.h @@ -10,7 +10,7 @@ #include <tqstringlist.h> #include <kdialogbase.h> -class KAction; +class TDEAction; /* Please read the README.dox file for more info about this part @@ -37,7 +37,7 @@ class %{APPNAME}Part : public KDevLanguageSupport void parse(); void slotActivePartChanged(KParts::Part *part); private: - KAction *m_build; + TDEAction *m_build; }; diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp index 082549c4..62ab3d94 100644 --- a/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp +++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.cpp @@ -91,7 +91,7 @@ void %{APPNAME}Part::init() void %{APPNAME}Part::setupActions() { // create XMLGUI actions here - action = new KAction(i18n("&Do Something..."), 0, + action = new TDEAction(i18n("&Do Something..."), 0, this, TQT_SLOT(doSomething()), actionCollection(), "plugin_action" ); action->setToolTip(i18n("Do something")); action->setWhatsThis(i18n("<b>Do something</b><p>Describe here what does this action do.")); diff --git a/languages/cpp/app_templates/kdevpart/kdevpart_part.h b/languages/cpp/app_templates/kdevpart/kdevpart_part.h index 482df00f..9414d448 100644 --- a/languages/cpp/app_templates/kdevpart/kdevpart_part.h +++ b/languages/cpp/app_templates/kdevpart/kdevpart_part.h @@ -7,7 +7,7 @@ #include <tqguardedptr.h> class TQPopupMenu; -class KAction; +class TDEAction; class KDialogBase; class Context; class ConfigWidgetProxy; @@ -37,7 +37,7 @@ private slots: private: void setupActions(); - KAction *action; + TDEAction *action; TQGuardedPtr<%{APPNAME}Widget> m_widget; ConfigWidgetProxy *m_configProxy; diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp index 082549c4..62ab3d94 100644 --- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp +++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.cpp @@ -91,7 +91,7 @@ void %{APPNAME}Part::init() void %{APPNAME}Part::setupActions() { // create XMLGUI actions here - action = new KAction(i18n("&Do Something..."), 0, + action = new TDEAction(i18n("&Do Something..."), 0, this, TQT_SLOT(doSomething()), actionCollection(), "plugin_action" ); action->setToolTip(i18n("Do something")); action->setWhatsThis(i18n("<b>Do something</b><p>Describe here what does this action do.")); diff --git a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h index 482df00f..9414d448 100644 --- a/languages/cpp/app_templates/kdevpart2/kdevpart_part.h +++ b/languages/cpp/app_templates/kdevpart2/kdevpart_part.h @@ -7,7 +7,7 @@ #include <tqguardedptr.h> class TQPopupMenu; -class KAction; +class TDEAction; class KDialogBase; class Context; class ConfigWidgetProxy; @@ -37,7 +37,7 @@ private slots: private: void setupActions(); - KAction *action; + TDEAction *action; TQGuardedPtr<%{APPNAME}Widget> m_widget; ConfigWidgetProxy *m_configProxy; diff --git a/languages/cpp/app_templates/khello/app.cpp b/languages/cpp/app_templates/khello/app.cpp index 811f9337..72b9e2dc 100644 --- a/languages/cpp/app_templates/khello/app.cpp +++ b/languages/cpp/app_templates/khello/app.cpp @@ -8,7 +8,7 @@ #include <klocale.h> %{APPNAME}::%{APPNAME}() - : KMainWindow( 0, "%{APPNAME}" ) + : TDEMainWindow( 0, "%{APPNAME}" ) { // set the shell's ui resource file setXMLFile("%{APPNAMELC}ui.rc"); diff --git a/languages/cpp/app_templates/khello/app.h b/languages/cpp/app_templates/khello/app.h index f8617bab..a3e4bd31 100644 --- a/languages/cpp/app_templates/khello/app.h +++ b/languages/cpp/app_templates/khello/app.h @@ -14,7 +14,7 @@ * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ -class %{APPNAME} : public KMainWindow +class %{APPNAME} : public TDEMainWindow { Q_OBJECT diff --git a/languages/cpp/app_templates/khello2/app.cpp b/languages/cpp/app_templates/khello2/app.cpp index 948a98fc..e506490b 100644 --- a/languages/cpp/app_templates/khello2/app.cpp +++ b/languages/cpp/app_templates/khello2/app.cpp @@ -7,7 +7,7 @@ #include "%{APPNAMELC}widget.h" %{APPNAME}::%{APPNAME}() - : KMainWindow( 0, "%{APPNAME}" ) + : TDEMainWindow( 0, "%{APPNAME}" ) { setCentralWidget( new %{APPNAME}Widget( this ) ); } diff --git a/languages/cpp/app_templates/khello2/app.h b/languages/cpp/app_templates/khello2/app.h index f8617bab..a3e4bd31 100644 --- a/languages/cpp/app_templates/khello2/app.h +++ b/languages/cpp/app_templates/khello2/app.h @@ -14,7 +14,7 @@ * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ -class %{APPNAME} : public KMainWindow +class %{APPNAME} : public TDEMainWindow { Q_OBJECT diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.cpp b/languages/cpp/app_templates/kofficepart/kopart_view.cpp index f32707a8..26b70e3d 100644 --- a/languages/cpp/app_templates/kofficepart/kopart_view.cpp +++ b/languages/cpp/app_templates/kofficepart/kopart_view.cpp @@ -20,7 +20,7 @@ setXMLFile( "%{APPNAMELC}.rc" ); KStdAction::cut(this, TQT_SLOT( cut() ), actionCollection(), "cut" ); // Note: Prefer KStdAction::* to any custom action if possible. - //m_cut = new KAction( i18n("&Cut"), "editcut", 0, this, TQT_SLOT( cut() ), + //m_cut = new TDEAction( i18n("&Cut"), "editcut", 0, this, TQT_SLOT( cut() ), // actionCollection(), "cut"); } diff --git a/languages/cpp/app_templates/kofficepart/kopart_view.h b/languages/cpp/app_templates/kofficepart/kopart_view.h index c6853333..a7e0fd50 100644 --- a/languages/cpp/app_templates/kofficepart/kopart_view.h +++ b/languages/cpp/app_templates/kofficepart/kopart_view.h @@ -8,7 +8,7 @@ #include <koView.h> -class KAction; +class TDEAction; class TQPaintEvent; class %{APPNAME}Part; @@ -29,7 +29,7 @@ protected: virtual void updateReadWrite( bool readwrite ); private: - //KAction* m_cut; + //TDEAction* m_cut; }; #endif diff --git a/languages/cpp/app_templates/kpartapp/app.h b/languages/cpp/app_templates/kpartapp/app.h index 6b470b92..c64525c6 100644 --- a/languages/cpp/app_templates/kpartapp/app.h +++ b/languages/cpp/app_templates/kpartapp/app.h @@ -9,7 +9,7 @@ #include <kapplication.h> #include <tdeparts/mainwindow.h> -class KToggleAction; +class TDEToggleAction; /** * This is the application "Shell". It has a menubar, toolbar, and @@ -70,8 +70,8 @@ private: private: KParts::ReadWritePart *m_part; - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; + TDEToggleAction *m_toolbarAction; + TDEToggleAction *m_statusbarAction; }; #endif // _%{APPNAMEUC}_H_ diff --git a/languages/cpp/app_templates/kpartapp/app_part.cpp b/languages/cpp/app_templates/kpartapp/app_part.cpp index 518d4514..0187646e 100644 --- a/languages/cpp/app_templates/kpartapp/app_part.cpp +++ b/languages/cpp/app_templates/kpartapp/app_part.cpp @@ -63,7 +63,7 @@ void %{APPNAME}Part::setReadWrite(bool rw) void %{APPNAME}Part::setModified(bool modified) { // get a handle on our Save action and make sure it is valid - KAction *save = actionCollection()->action(KStdAction::stdName(KStdAction::Save)); + TDEAction *save = actionCollection()->action(KStdAction::stdName(KStdAction::Save)); if (!save) return; diff --git a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp index b6297139..3941fa56 100644 --- a/languages/cpp/app_templates/kpartplugin/plugin_app.cpp +++ b/languages/cpp/app_templates/kpartplugin/plugin_app.cpp @@ -13,7 +13,7 @@ Plugin%{APPNAME}::Plugin%{APPNAME}( TQObject* parent, const char* name ) { // Instantiate all of your actions here. These will appear in // Konqueror's menu and toolbars. - (void) new KAction( i18n("&Plugin Action"), "%{APPNAMELC}", 0, + (void) new TDEAction( i18n("&Plugin Action"), "%{APPNAMELC}", 0, this, TQT_SLOT(slotAction()), actionCollection(), "plugin_action" ); } diff --git a/languages/cpp/app_templates/kscons_kxt/app.cpp b/languages/cpp/app_templates/kscons_kxt/app.cpp index 2895fb0a..6b37401d 100644 --- a/languages/cpp/app_templates/kscons_kxt/app.cpp +++ b/languages/cpp/app_templates/kscons_kxt/app.cpp @@ -26,14 +26,14 @@ #include <kstdaction.h> %{APPNAME}::%{APPNAME}() - : KMainWindow( 0, "%{APPNAME}" ), + : TDEMainWindow( 0, "%{APPNAME}" ), m_view(new %{APPNAME}View(this)), m_printer(0) { // accept dnd setAcceptDrops(true); - // tell the KMainWindow that this is indeed the main widget + // tell the TDEMainWindow that this is indeed the main widget setCentralWidget(m_view); // then, setup our actions @@ -76,7 +76,7 @@ void %{APPNAME}::setupActions() KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); // custom menu and menu item - the slot is in the class %{APPNAME}View - KAction *custom = new KAction(i18n("Swi&tch Colors"), 0, + TDEAction *custom = new TDEAction(i18n("Swi&tch Colors"), 0, m_view, TQT_SLOT(switchColors()), actionCollection(), "switch_action"); diff --git a/languages/cpp/app_templates/kscons_kxt/app.h b/languages/cpp/app_templates/kscons_kxt/app.h index 6ac2acb8..fd0e7fa1 100644 --- a/languages/cpp/app_templates/kscons_kxt/app.h +++ b/languages/cpp/app_templates/kscons_kxt/app.h @@ -14,7 +14,7 @@ #include "%{APPNAMELC}view.h" class KPrinter; -class KToggleAction; +class TDEToggleAction; class KURL; /** @@ -25,7 +25,7 @@ class KURL; * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ -class %{APPNAME} : public KMainWindow, public DCOPObject +class %{APPNAME} : public TDEMainWindow, public DCOPObject { K_DCOP Q_OBJECT @@ -66,8 +66,8 @@ private: %{APPNAME}View *m_view; KPrinter *m_printer; - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; + TDEToggleAction *m_toolbarAction; + TDEToggleAction *m_statusbarAction; }; #endif // _%{APPNAMEUC}_H_ diff --git a/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp index 5ea5d069..87c66b54 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp +++ b/languages/cpp/app_templates/kscons_tdemdi/app_part.cpp @@ -77,7 +77,7 @@ void %{APPNAMELC}Part::setReadWrite(bool rw) void %{APPNAMELC}Part::setModified(bool modified) { // get a handle on our Save action and make sure it is valid - KAction *save = actionCollection()->action(KStdAction::stdName(KStdAction::Save)); + TDEAction *save = actionCollection()->action(KStdAction::stdName(KStdAction::Save)); if (!save) return; diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp index 7ea17587..bc36931c 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp +++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.cpp @@ -138,7 +138,7 @@ void %{APPNAMELC}tdemdi::setupActions() KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), actionCollection()); KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); - KAction* action = KStdAction::configureToolbars(this, + TDEAction* action = KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), actionCollection()); createGUI( NULL ); diff --git a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h index 02d26d0c..6819937d 100644 --- a/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h +++ b/languages/cpp/app_templates/kscons_tdemdi/apptdemdi.h @@ -9,8 +9,8 @@ #include <tdemdimainfrm.h> #include <kurl.h> -class KToggleAction; -class KRecentFilesAction; +class TDEToggleAction; +class TDERecentFilesAction; class tdemdikonsole; class KMdiChildView; @@ -71,8 +71,8 @@ class %{APPNAMELC}tdemdi : public KMdiMainFrm TQValueList<%{APPNAMELC}tdemdiView*> m_views; - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; + TDEToggleAction *m_toolbarAction; + TDEToggleAction *m_statusbarAction; KParts::PartManager *m_manager; diff --git a/languages/cpp/app_templates/kxt/app.cpp b/languages/cpp/app_templates/kxt/app.cpp index 6f3e19fb..183841ad 100644 --- a/languages/cpp/app_templates/kxt/app.cpp +++ b/languages/cpp/app_templates/kxt/app.cpp @@ -25,14 +25,14 @@ #include <kstdaction.h> %{APPNAMELC}::%{APPNAMELC}() - : KMainWindow( 0, "%{APPNAMELC}" ), + : TDEMainWindow( 0, "%{APPNAMELC}" ), m_view(new %{APPNAMELC}View(this)), m_printer(0) { // accept dnd setAcceptDrops(true); - // tell the KMainWindow that this is indeed the main widget + // tell the TDEMainWindow that this is indeed the main widget setCentralWidget(m_view); // then, setup our actions @@ -71,7 +71,7 @@ void %{APPNAMELC}::setupActions() KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); // custom menu and menu item - the slot is in the class %{APPNAMELC}View - KAction *custom = new KAction(i18n("Swi&tch Colors"), 0, + TDEAction *custom = new TDEAction(i18n("Swi&tch Colors"), 0, m_view, TQT_SLOT(switchColors()), actionCollection(), "switch_action"); diff --git a/languages/cpp/app_templates/kxt/app.h b/languages/cpp/app_templates/kxt/app.h index 76d48c70..b56f3ae9 100644 --- a/languages/cpp/app_templates/kxt/app.h +++ b/languages/cpp/app_templates/kxt/app.h @@ -13,7 +13,7 @@ #include "%{APPNAMELC}view.h" class KPrinter; -class KToggleAction; +class TDEToggleAction; class KURL; /** @@ -24,7 +24,7 @@ class KURL; * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ -class %{APPNAMELC} : public KMainWindow +class %{APPNAMELC} : public TDEMainWindow { Q_OBJECT @@ -59,8 +59,8 @@ private: %{APPNAMELC}View *m_view; KPrinter *m_printer; - KToggleAction *m_toolbarAction; - KToggleAction *m_statusbarAction; + TDEToggleAction *m_toolbarAction; + TDEToggleAction *m_statusbarAction; }; #endif // _%{APPNAMEUC}_H_ diff --git a/languages/cpp/app_templates/tdeconfig35/app.cpp b/languages/cpp/app_templates/tdeconfig35/app.cpp index d158e45f..41e30220 100644 --- a/languages/cpp/app_templates/tdeconfig35/app.cpp +++ b/languages/cpp/app_templates/tdeconfig35/app.cpp @@ -14,14 +14,14 @@ #include <kstatusbar.h> %{APPNAMELC}::%{APPNAMELC}() - : KMainWindow( 0, "%{APPNAMELC}" ), + : TDEMainWindow( 0, "%{APPNAMELC}" ), m_view(new %{APPNAMELC}View(this)), m_printer(0) { // accept dnd setAcceptDrops(true); - // tell the KMainWindow that this is indeed the main widget + // tell the TDEMainWindow that this is indeed the main widget setCentralWidget(m_view); // and a status bar statusBar()->show(); @@ -53,7 +53,7 @@ void %{APPNAMELC}::setupActions() KStdAction::preferences(this, TQT_SLOT(optionsPreferences()), actionCollection()); // custom menu and menu item - KAction *custom = new KAction(i18n("Swi&tch Colors"), 0, + TDEAction *custom = new TDEAction(i18n("Swi&tch Colors"), 0, m_view, TQT_SLOT(switchColors()), actionCollection(), "switch_action"); diff --git a/languages/cpp/app_templates/tdeconfig35/app.h b/languages/cpp/app_templates/tdeconfig35/app.h index c1aac7e4..67073ea3 100644 --- a/languages/cpp/app_templates/tdeconfig35/app.h +++ b/languages/cpp/app_templates/tdeconfig35/app.h @@ -23,7 +23,7 @@ class KURL; * @author %{AUTHOR} <%{EMAIL}> * @version %{VERSION} */ -class %{APPNAMELC} : public KMainWindow +class %{APPNAMELC} : public TDEMainWindow { Q_OBJECT diff --git a/languages/cpp/cppcodecompletion.cpp b/languages/cpp/cppcodecompletion.cpp index aaad17c1..c6ee9db7 100644 --- a/languages/cpp/cppcodecompletion.cpp +++ b/languages/cpp/cppcodecompletion.cpp @@ -954,11 +954,11 @@ m_codeCompleteCh2Rx( "(->)|(\\:\\:)" ) { connect( part, TQT_SIGNAL( codeModelUpdated( const TQString& ) ), this, TQT_SLOT( slotCodeModelUpdated( const TQString& ) ) ); - KAction * action = new KAction( i18n("Jump to declaration under cursor"), 0, CTRL + Key_Comma, + TDEAction * action = new TDEAction( i18n("Jump to declaration under cursor"), 0, CTRL + Key_Comma, this, TQT_SLOT(slotJumpToDeclCursorContext()), part->actionCollection(), "jump_to_declaration_cursor_context" ); action->plug( &m_DummyActionWidget ); - action = new KAction( i18n("Jump to definition under cursor"), 0, CTRL + Key_Period, + action = new TDEAction( i18n("Jump to definition under cursor"), 0, CTRL + Key_Period, this, TQT_SLOT(slotJumpToDefCursorContext()), part->actionCollection(), "jump_to_defintion_cursor_context" ); action->plug( &m_DummyActionWidget ); } diff --git a/languages/cpp/cppimplementationwidget.h b/languages/cpp/cppimplementationwidget.h index 48f73144..c0536c92 100644 --- a/languages/cpp/cppimplementationwidget.h +++ b/languages/cpp/cppimplementationwidget.h @@ -24,7 +24,7 @@ #include <codemodel.h> -class KListViewItem; +class TDEListViewItem; class CppSupportPart; class CppImplementationWidget : public ImplementationWidget diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp index 75d6b918..ca2f082e 100644 --- a/languages/cpp/cppsupportpart.cpp +++ b/languages/cpp/cppsupportpart.cpp @@ -251,7 +251,7 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri connect( core(), TQT_SIGNAL( configWidget( KDialogBase* ) ), this, TQT_SLOT( configWidget( KDialogBase* ) ) ); - m_switchHeaderSourceAction = new KAction( i18n( "Switch Header/Implementation" ), SHIFT + Key_F12, + m_switchHeaderSourceAction = new TDEAction( i18n( "Switch Header/Implementation" ), SHIFT + Key_F12, this, TQT_SLOT( slotSwitchHeader() ), actionCollection(), "edit_switchheader" ); m_switchHeaderSourceAction->setToolTip( i18n( "Switch between header and implementation files" ) ); @@ -262,9 +262,9 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri "this brings you to the corresponding header file." ) ); m_switchHeaderSourceAction->setEnabled( false ); - KAction *action; + TDEAction *action; - action = new KAction( i18n( "Complete Text" ), CTRL + Key_Space, + action = new TDEAction( i18n( "Complete Text" ), CTRL + Key_Space, this, TQT_SLOT( slotCompleteText() ), actionCollection(), "edit_complete_text" ); action->setToolTip( i18n( "Complete current expression" ) ); @@ -273,11 +273,11 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri "for external libraries." ) ); action->setEnabled( false ); - m_createGetterSetterAction = new KAction( i18n( "Create Accessor Methods" ), 0, + m_createGetterSetterAction = new TDEAction( i18n( "Create Accessor Methods" ), 0, this, TQT_SLOT( slotCreateAccessMethods() ), actionCollection(), "edit_create_getter_setter" ); - action = new KAction( i18n( "Make Member" ), 0, Key_F2, + action = new TDEAction( i18n( "Make Member" ), 0, Key_F2, this, TQT_SLOT( slotMakeMember() ), actionCollection(), "edit_make_member" ); action->setToolTip( i18n( "Make member" ) ); @@ -285,7 +285,7 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri "based on the member declaration at the current line." ) ); action->plug( &m_DummyActionWidget ); - action = new KAction( i18n( "Navigation Menu" ), 0, CTRL + ALT + Key_Space, + action = new TDEAction( i18n( "Navigation Menu" ), 0, CTRL + ALT + Key_Space, this, TQT_SLOT( slotNavigate() ), actionCollection(), "edit_navigate" ); action->setToolTip( i18n( "Show the navigation-menu" ) ); @@ -293,7 +293,7 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri action->plug( &m_DummyActionWidget ); - action = new KAction( i18n( "New Class..." ), "classnew", 0, + action = new TDEAction( i18n( "New Class..." ), "classnew", 0, this, TQT_SLOT( slotNewClass() ), actionCollection(), "project_newclass" ); action->setToolTip( i18n( "Generate a new class" ) ); @@ -641,9 +641,9 @@ void CppSupportPart::slotNavigate() { unsigned int curLine = 0, curCol = 0; m_activeViewCursor->cursorPositionReal( &curLine, &curCol ); - if( m_navigationMenu ) delete (KPopupMenu*)m_navigationMenu; + if( m_navigationMenu ) delete (TDEPopupMenu*)m_navigationMenu; - m_navigationMenu = new KPopupMenu( m_activeView ); + m_navigationMenu = new TDEPopupMenu( m_activeView ); codeCompletion()->contextEvaluationMenus( m_navigationMenu, 0, curLine, curCol ); diff --git a/languages/cpp/cppsupportpart.h b/languages/cpp/cppsupportpart.h index b7ac8267..d858d274 100644 --- a/languages/cpp/cppsupportpart.h +++ b/languages/cpp/cppsupportpart.h @@ -85,11 +85,11 @@ class TQStringList; class TQListViewItem; class TranslationUnitAST; class TQTimer; -class KListView; +class TDEListView; class Driver; -class KPopupMenu; +class TDEPopupMenu; class BackgroundParserConfig; -class KAction; +class TDEAction; namespace KParts { @@ -414,8 +414,8 @@ private: CppSplitHeaderSourceConfig* m_pSplitHeaderSourceConfig; CreateGetterSetterConfiguration* m_pCreateGetterSetterConfiguration; - KAction * m_createGetterSetterAction; - KAction * m_switchHeaderSourceAction; + TDEAction * m_createGetterSetterAction; + TDEAction * m_switchHeaderSourceAction; QtBuildConfig* m_qtBuildConfig; @@ -455,7 +455,7 @@ private: FunctionDom m_activeFunction; VariableDom m_activeVariable; - TQGuardedPtr<KPopupMenu> m_navigationMenu; + TQGuardedPtr<TDEPopupMenu> m_navigationMenu; // TQTimer* m_functionHintTimer; // TQTimer* m_deleteParserStoreTimer; diff --git a/languages/cpp/createpcsdialog.cpp b/languages/cpp/createpcsdialog.cpp index afc910b8..21b3c55a 100644 --- a/languages/cpp/createpcsdialog.cpp +++ b/languages/cpp/createpcsdialog.cpp @@ -129,16 +129,16 @@ private: }; -class PCSListViewItem: public KListViewItem +class PCSListViewItem: public TDEListViewItem { public: PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListViewItem* parent ) - : KListViewItem( parent ), m_importer( importer ) + : TDEListViewItem( parent ), m_importer( importer ) { init( ptr ); } PCSListViewItem( KService::Ptr ptr, KDevPCSImporter* importer, TQListView* parent ) - : KListViewItem( parent ), m_importer( importer ) + : TDEListViewItem( parent ), m_importer( importer ) { init( ptr ); } diff --git a/languages/cpp/createpcsdialogbase.ui b/languages/cpp/createpcsdialogbase.ui index d75dde96..bb99e12a 100644 --- a/languages/cpp/createpcsdialogbase.ui +++ b/languages/cpp/createpcsdialogbase.ui @@ -26,7 +26,7 @@ <property name="name"> <cstring>unnamed</cstring> </property> - <widget class="KListView"> + <widget class="TDEListView"> <column> <property name="text"> <string></string> diff --git a/languages/cpp/debugger/dbgpsdlg.cpp b/languages/cpp/debugger/dbgpsdlg.cpp index 8033a993..22104794 100644 --- a/languages/cpp/debugger/dbgpsdlg.cpp +++ b/languages/cpp/debugger/dbgpsdlg.cpp @@ -53,7 +53,7 @@ namespace GDBDebugger Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name) : KDialog(parent, name, true), // modal psProc_(0), - pids_(new KListView(this)), + pids_(new TDEListView(this)), pidLines_(TQString()) { setCaption(i18n("Attach to Process")); @@ -67,7 +67,7 @@ Dbg_PS_Dialog::Dbg_PS_Dialog(TQWidget *parent, const char *name) TQBoxLayout *topLayout = new TQVBoxLayout(this, 5); - searchLineWidget_ = new KListViewSearchLineWidget(pids_, this); + searchLineWidget_ = new TDEListViewSearchLineWidget(pids_, this); topLayout->addWidget(searchLineWidget_); topLayout->addWidget(pids_); @@ -187,7 +187,7 @@ void Dbg_PS_Dialog::slotProcessExited() start = pos+1; } - // Need to set focus here too, as KListView will + // Need to set focus here too, as TDEListView will // 'steal' it otherwise. searchLineWidget_->searchLine()->setFocus(); } diff --git a/languages/cpp/debugger/dbgpsdlg.h b/languages/cpp/debugger/dbgpsdlg.h index 0bf445dc..f9dbbab0 100644 --- a/languages/cpp/debugger/dbgpsdlg.h +++ b/languages/cpp/debugger/dbgpsdlg.h @@ -20,8 +20,8 @@ class TQListBox; class TDEProcess; -class KListView; -class KListViewSearchLineWidget; +class TDEListView; +class TDEListViewSearchLineWidget; namespace GDBDebugger { @@ -49,8 +49,8 @@ protected: private: TDEProcess* psProc_; - KListView* pids_; - KListViewSearchLineWidget* searchLineWidget_; + TDEListView* pids_; + TDEListViewSearchLineWidget* searchLineWidget_; TQString pidLines_; TQString pidCmd_; }; diff --git a/languages/cpp/debugger/dbgtoolbar.cpp b/languages/cpp/debugger/dbgtoolbar.cpp index 8933ea12..16fe3b53 100644 --- a/languages/cpp/debugger/dbgtoolbar.cpp +++ b/languages/cpp/debugger/dbgtoolbar.cpp @@ -40,7 +40,7 @@ // Implements a floating toolbar for the debugger. -// Unfortunately, I couldn't get the KToolBar to work nicely when it +// Unfortunately, I couldn't get the TDEToolBar to work nicely when it // was floating, so I was forced to write these classes. I'm not sure whether // I didn't try hard enough or ... and I've forgotten what the problems were // now. @@ -48,7 +48,7 @@ // The problem with using this is that it will not dock as a normal toolbar. // I'm not convince that this is a real problem though. -// So, if you can get it to work as a KToolBar, and it works well when the +// So, if you can get it to work as a TDEToolBar, and it works well when the // app is running, then all these classes can be removed. // This code is very specific to the internal debugger in tdevelop. @@ -64,7 +64,7 @@ namespace GDBDebugger // I would have preferred to use normal decoration on the toolbar and removed // the iconify, close, etc buttons from the window title but again I kept running // into problems. Instead, I used no decoration and this class. Also this looks -// similar to the KToolBar floating style. +// similar to the TDEToolBar floating style. class DbgMoveHandle : public TQFrame { public: @@ -108,7 +108,7 @@ void DbgMoveHandle::mousePressEvent(TQMouseEvent *e) return; if (e->button() == Qt::RightButton) { - KPopupMenu *menu = new KPopupMenu(this); + TDEPopupMenu *menu = new TDEPopupMenu(this); menu->insertTitle(i18n("Debug Toolbar")); menu->insertItem(i18n("Dock to Panel"), parent(), TQT_SLOT(slotDock())); @@ -241,7 +241,7 @@ void DbgDocker::mousePressEvent(TQMouseEvent *e) } case Qt::RightButton: { - KPopupMenu* menu = new KPopupMenu(this); + TDEPopupMenu* menu = new TDEPopupMenu(this); menu->insertTitle(i18n("Debug Toolbar")); menu->insertItem(i18n("Activate"), toolBar_, TQT_SLOT(slotUndock())); menu->insertItem(i18n("Activate (TDevelop gets focus)"), toolBar_, TQT_SLOT(slotActivateAndUndock())); diff --git a/languages/cpp/debugger/debuggerpart.cpp b/languages/cpp/debugger/debuggerpart.cpp index c18d581d..29280d4e 100644 --- a/languages/cpp/debugger/debuggerpart.cpp +++ b/languages/cpp/debugger/debuggerpart.cpp @@ -183,10 +183,10 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi this, TQT_SLOT(slotShowView(bool))); // Now setup the actions - KAction *action; + TDEAction *action; -// action = new KAction(i18n("&Start"), "1rightarrow", CTRL+SHIFT+Key_F9, - action = new KAction(i18n("&Start"), "dbgrun", Key_F9, +// action = new TDEAction(i18n("&Start"), "1rightarrow", CTRL+SHIFT+Key_F9, + action = new TDEAction(i18n("&Start"), "dbgrun", Key_F9, this, TQT_SLOT(slotRun()), actionCollection(), "debug_run"); action->setToolTip( i18n("Start in debugger") ); @@ -197,7 +197,7 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi "while it is running, in order to get information " "about variables, frame stack, and so on.") ); - action = new KAction(i18n("&Restart"), "dbgrestart", 0, + action = new TDEAction(i18n("&Restart"), "dbgrestart", 0, this, TQT_SLOT(slotRestart()), actionCollection(), "debug_restart"); action->setToolTip( i18n("Restart program") ); @@ -207,33 +207,33 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi action->setEnabled(false); - action = new KAction(i18n("Sto&p"), "stop", 0, + action = new TDEAction(i18n("Sto&p"), "stop", 0, this, TQT_SLOT(slotStop()), actionCollection(), "debug_stop"); action->setToolTip( i18n("Stop debugger") ); action->setWhatsThis(i18n("<b>Stop debugger</b><p>Kills the executable and exits the debugger.")); - action = new KAction(i18n("Interrupt"), "player_pause", 0, + action = new TDEAction(i18n("Interrupt"), "player_pause", 0, this, TQT_SLOT(slotPause()), actionCollection(), "debug_pause"); action->setToolTip( i18n("Interrupt application") ); action->setWhatsThis(i18n("<b>Interrupt application</b><p>Interrupts the debugged process or current GDB command.")); - action = new KAction(i18n("Run to &Cursor"), "dbgrunto", 0, + action = new TDEAction(i18n("Run to &Cursor"), "dbgrunto", 0, this, TQT_SLOT(slotRunToCursor()), actionCollection(), "debug_runtocursor"); action->setToolTip( i18n("Run to cursor") ); action->setWhatsThis(i18n("<b>Run to cursor</b><p>Continues execution until the cursor position is reached.")); - action = new KAction(i18n("Set E&xecution Position to Cursor"), "dbgjumpto", 0, + action = new TDEAction(i18n("Set E&xecution Position to Cursor"), "dbgjumpto", 0, this, TQT_SLOT(slotJumpToCursor()), actionCollection(), "debug_jumptocursor"); action->setToolTip( i18n("Jump to cursor") ); action->setWhatsThis(i18n("<b>Set Execution Position </b><p>Set the execution pointer to the current cursor position.")); - action = new KAction(i18n("Step &Over"), "dbgnext", Key_F10, + action = new TDEAction(i18n("Step &Over"), "dbgnext", Key_F10, this, TQT_SLOT(slotStepOver()), actionCollection(), "debug_stepover"); action->setToolTip( i18n("Step over the next line") ); @@ -244,14 +244,14 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi "following the function call.") ); - action = new KAction(i18n("Step over Ins&truction"), "dbgnextinst", 0, + action = new TDEAction(i18n("Step over Ins&truction"), "dbgnextinst", 0, this, TQT_SLOT(slotStepOverInstruction()), actionCollection(), "debug_stepoverinst"); action->setToolTip( i18n("Step over instruction") ); action->setWhatsThis(i18n("<b>Step over instruction</b><p>Steps over the next assembly instruction.")); - action = new KAction(i18n("Step &Into"), "dbgstep", Key_F11, + action = new TDEAction(i18n("Step &Into"), "dbgstep", Key_F11, this, TQT_SLOT(slotStepInto()), actionCollection(), "debug_stepinto"); action->setToolTip( i18n("Step into the next statement") ); @@ -261,14 +261,14 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi "the function has been entered.") ); - action = new KAction(i18n("Step into I&nstruction"), "dbgstepinst", 0, + action = new TDEAction(i18n("Step into I&nstruction"), "dbgstepinst", 0, this, TQT_SLOT(slotStepIntoInstruction()), actionCollection(), "debug_stepintoinst"); action->setToolTip( i18n("Step into instruction") ); action->setWhatsThis(i18n("<b>Step into instruction</b><p>Steps into the next assembly instruction.")); - action = new KAction(i18n("Step O&ut"), "dbgstepout", Key_F12, + action = new TDEAction(i18n("Step O&ut"), "dbgstepout", Key_F12, this, TQT_SLOT(slotStepOut()), actionCollection(), "debug_stepout"); action->setToolTip( i18n("Steps out of the current function") ); @@ -280,7 +280,7 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi "main()) then this operation has no effect.") ); - action = new KAction(i18n("Viewers"), "dbgmemview", 0, + action = new TDEAction(i18n("Viewers"), "dbgmemview", 0, this, TQT_SLOT(slotMemoryView()), actionCollection(), "debug_memview"); action->setToolTip( i18n("Debugger viewers") ); @@ -291,7 +291,7 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi "<b>Libraries</b>")); - action = new KAction(i18n("Examine Core File..."), "core", 0, + action = new TDEAction(i18n("Examine Core File..."), "core", 0, this, TQT_SLOT(slotExamineCore()), actionCollection(), "debug_core"); action->setToolTip( i18n("Examine core file") ); @@ -303,13 +303,13 @@ DebuggerPart::DebuggerPart( TQObject *parent, const char *name, const TQStringLi "allowing you to do a post-mortem analysis.") ); - action = new KAction(i18n("Attach to Process"), "connect_creating", 0, + action = new TDEAction(i18n("Attach to Process"), "connect_creating", 0, this, TQT_SLOT(slotAttachProcess()), actionCollection(), "debug_attach"); action->setToolTip( i18n("Attach to process") ); action->setWhatsThis(i18n("<b>Attach to process</b><p>Attaches the debugger to a running process.")); - action = new KAction(i18n("Toggle Breakpoint"), 0, 0, + action = new TDEAction(i18n("Toggle Breakpoint"), 0, 0, this, TQT_SLOT(toggleBreakpoint()), actionCollection(), "debug_toggle_breakpoint"); action->setToolTip(i18n("Toggle breakpoint")); @@ -492,7 +492,7 @@ void DebuggerPart::contextMenu(TQPopupMenu *popup, const Context *context) if (running) { // Too bad we can't add TQAction to popup menu in TQt3. - KAction* act = actionCollection()->action("debug_runtocursor"); + TDEAction* act = actionCollection()->action("debug_runtocursor"); Q_ASSERT(act); if (act) { @@ -672,7 +672,7 @@ bool DebuggerPart::startDebugger() stateChanged( TQString("active") ); - KActionCollection *ac = actionCollection(); + TDEActionCollection *ac = actionCollection(); ac->action("debug_run")->setText( i18n("&Continue") ); ac->action("debug_run")->setToolTip( @@ -737,7 +737,7 @@ void DebuggerPart::slotStopDebugger() mainWindow()->setViewAvailable(disassembleWidget, false); mainWindow()->setViewAvailable(gdbOutputWidget, false); - KActionCollection *ac = actionCollection(); + TDEActionCollection *ac = actionCollection(); ac->action("debug_run")->setText( i18n("&Start") ); // ac->action("debug_run")->setIcon( "1rightarrow" ); ac->action("debug_run")->setToolTip( i18n("Runs the program in the debugger") ); @@ -912,7 +912,7 @@ void DebuggerPart::slotRun_part2() } else if (controller->stateIsOn( s_appNotStarted ) ) { - KActionCollection *ac = actionCollection(); + TDEActionCollection *ac = actionCollection(); ac->action("debug_run")->setText( i18n("&Continue") ); ac->action("debug_run")->setToolTip( i18n("Continues the application execution") ); ac->action("debug_run")->setWhatsThis( i18n("Continue application execution\n\n" @@ -1135,7 +1135,7 @@ void DebuggerPart::slotStatus(const TQString &msg, int state) if (state & s_appNotStarted) { - KActionCollection *ac = actionCollection(); + TDEActionCollection *ac = actionCollection(); ac->action("debug_run")->setText( i18n("To start something","Start") ); ac->action("debug_run")->setToolTip( i18n("Restart the program in the debugger") ); ac->action("debug_run")->setWhatsThis( i18n("Restart in debugger\n\n" @@ -1215,7 +1215,7 @@ void DebuggerPart::slotGotoSource(const TQString &fileName, int lineNum) void DebuggerPart::slotActivePartChanged( KParts::Part* part ) { - KAction* action = actionCollection()->action("debug_toggle_breakpoint"); + TDEAction* action = actionCollection()->action("debug_toggle_breakpoint"); if(!action) return; diff --git a/languages/cpp/debugger/gdboutputwidget.cpp b/languages/cpp/debugger/gdboutputwidget.cpp index 11e50feb..ef2dd56f 100644 --- a/languages/cpp/debugger/gdboutputwidget.cpp +++ b/languages/cpp/debugger/gdboutputwidget.cpp @@ -321,7 +321,7 @@ void GDBOutputWidget::restorePartialProjectSession(const TQDomElement* el) //void OutputText::contextMenuEvent(TQContextMenuEvent* e) TQPopupMenu* OutputText::createPopupMenu(const TQPoint&) { - KPopupMenu* popup = new KPopupMenu; + TDEPopupMenu* popup = new TDEPopupMenu; int id = popup->insertItem(i18n("Show Internal Commands"), this, diff --git a/languages/cpp/debugger/variablewidget.cpp b/languages/cpp/debugger/variablewidget.cpp index 62a99ad4..19dd877a 100644 --- a/languages/cpp/debugger/variablewidget.cpp +++ b/languages/cpp/debugger/variablewidget.cpp @@ -201,7 +201,7 @@ VariableTree::VariableTree(VariableWidget *parent, GDBController* controller, GDBBreakpointWidget* breakpointWidget, const char *name) - : KListView(parent, name), + : TDEListView(parent, name), TQToolTip( viewport() ), controller_(controller), breakpointWidget_(breakpointWidget), @@ -223,8 +223,8 @@ VariableTree::VariableTree(VariableWidget *parent, addColumn(i18n("Value")); // setResizeMode(AllColumns); - connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), - TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*)) ); + connect( this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*)) ); connect( this, TQT_SIGNAL(itemRenamed( TQListViewItem*, int, const TQString&)), this, TQT_SLOT(slotItemRenamed( TQListViewItem*, int, const TQString&))); } @@ -237,7 +237,7 @@ VariableTree::~VariableTree() // ************************************************************************** -void VariableTree::slotContextMenu(KListView *, TQListViewItem *item) +void VariableTree::slotContextMenu(TDEListView *, TQListViewItem *item) { if (!item) return; @@ -246,8 +246,8 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item) if (item->parent()) { - KPopupMenu popup(this); - KPopupMenu format(this); + TDEPopupMenu popup(this); + TDEPopupMenu format(this); int idRemember = -2; int idRemove = -2; @@ -393,7 +393,7 @@ void VariableTree::slotContextMenu(KListView *, TQListViewItem *item) } else if (item == recentExpressions_) { - KPopupMenu popup(this); + TDEPopupMenu popup(this); popup.insertTitle(i18n("Recent Expressions")); int idRemove = popup.insertItem( SmallIcon("editdelete"), i18n("Remove All")); @@ -1019,14 +1019,14 @@ void VariableTree::handleAddressComputed(const GDBMI::ResultRecord& r) // ************************************************************************** TrimmableItem::TrimmableItem(VariableTree *parent) - : KListViewItem (parent, parent->lastChild()) + : TDEListViewItem (parent, parent->lastChild()) { } // ************************************************************************** TrimmableItem::TrimmableItem(TrimmableItem *parent) - : KListViewItem (parent, parent->lastChild()) + : TDEListViewItem (parent, parent->lastChild()) { } diff --git a/languages/cpp/debugger/variablewidget.h b/languages/cpp/debugger/variablewidget.h index 86d08848..d08d5729 100644 --- a/languages/cpp/debugger/variablewidget.h +++ b/languages/cpp/debugger/variablewidget.h @@ -31,7 +31,7 @@ #include <vector> class KLineEdit; -class KPopupMenu; +class TDEPopupMenu; namespace GDBDebugger { @@ -83,7 +83,7 @@ private: /***************************************************************************/ /***************************************************************************/ -class VariableTree : public KListView, public TQToolTip +class VariableTree : public TDEListView, public TQToolTip { Q_OBJECT @@ -117,7 +117,7 @@ public slots: void slotItemRenamed(TQListViewItem* item, int col, const TQString& text); private slots: - void slotContextMenu(KListView *, TQListViewItem *item); + void slotContextMenu(TDEListView *, TQListViewItem *item); void slotVarobjNameChanged(const TQString& from, const TQString& to); private: // Callbacks for gdb commands; @@ -174,7 +174,7 @@ private: TQMap<TQString, VarItem*> varobj2varitem; - KPopupMenu* activePopup_; + TDEPopupMenu* activePopup_; static const int idToggleWatch = 10; friend class VarFrameRoot; @@ -204,7 +204,7 @@ private: 'trim' method is called, removing all variables which were not recieved from gdbr. */ -class TrimmableItem : public KListViewItem +class TrimmableItem : public TDEListViewItem { public: TrimmableItem(VariableTree *parent); diff --git a/languages/cpp/doc/kde2book.toc b/languages/cpp/doc/kde2book.toc index 6dd08e6c..d806e440 100644 --- a/languages/cpp/doc/kde2book.toc +++ b/languages/cpp/doc/kde2book.toc @@ -250,7 +250,7 @@ <entry name="actions, helpContents" url="ch06.html"/> <entry name="actions, help" url="ch06.html"/> <entry name="actions, home" url="ch06.html"/> -<entry name="actions, KAction class" url="ch05.html"/> +<entry name="actions, TDEAction class" url="ch05.html"/> <entry name="actions, keyBindings" url="ch06.html"/> <entry name="actions, lastPage" url="ch06.html"/> <entry name="actions, mail" url="ch06.html"/> @@ -429,8 +429,8 @@ <entry name="classes, CGotoDialog, modeless dialog box" url="ch08lev1sec3.html"/> <entry name="classes, documentation" url="ch02lev1sec5.html"/> <entry name="classes, documentation" url="ch15.html"/> -<entry name="classes, KAction" url="ch05.html"/> -<entry name="classes, KAction" url="ch06.html"/> +<entry name="classes, TDEAction" url="ch05.html"/> +<entry name="classes, TDEAction" url="ch06.html"/> <entry name="classes, TDEApplication" url="ch02lev1sec3.html"/> <entry name="classes, KAudioPlayer" url="ch14lev1sec6.html"/> <entry name="classes, TDE versus Qt" url="ch03lev1sec2.html"/> @@ -775,7 +775,7 @@ <entry name="dialog boxes, modeless, removing from memory" url="ch08lev1sec3.html"/> <entry name="dialog boxes, simple example" url="ch08.html"/> <entry name="dialog boxes, standard dialog boxes, KFileDialog" url="ch05lev1sec3.html"/> -<entry name="dialog boxes, standard dialog boxes, KFontDialog" url="ch05lev1sec3.html"/> +<entry name="dialog boxes, standard dialog boxes, TDEFontDialog" url="ch05lev1sec3.html"/> <entry name="dialog boxes, standard dialog boxes, KMessageBox" url="ch05lev1sec3.html"/> <entry name="dialog boxes, standard dialog boxes, sample application" url="ch05lev1sec3.html"/> <entry name="dialog boxes, standard dialog boxes" url="ch05lev1sec3.html"/> @@ -830,7 +830,7 @@ <entry name="documentation, widgets" url="ch04.html"/> <entry name="document-centric programs" url="ch02lev1sec3.html"/> <entry name="document-centric user interface, actions, custom actions" url="ch05.html"/> -<entry name="document-centric user interface, actions, KAction class" url="ch05.html"/> +<entry name="document-centric user interface, actions, TDEAction class" url="ch05.html"/> <entry name="document-centric user interface, actions, standard actions" url="ch05.html"/> <entry name="document-centric user interface, actions" url="ch05.html"/> <entry name="document-centric user interface, content areas, Konqueror" url="ch05.html"/> @@ -993,7 +993,7 @@ <entry name="flushing graphics" url="ch03lev1sec2.html"/> <entry name="focusInEvent() event handler, widgets" url="ch04.html"/> <entry name="focusOutEvent() event handler, widgets" url="ch04.html"/> -<entry name="font dialog boxes, KFontDialog" url="ch05lev1sec3.html"/> +<entry name="font dialog boxes, TDEFontDialog" url="ch05lev1sec3.html"/> <entry name="font dialog boxes, KMessageBox" url="ch05lev1sec3.html"/> <entry name="formats, PNG, icons" url="ch06lev1sec3.html"/> <entry name="formatting tags (DocBook)" url="ch15lev1sec2.html"/> @@ -1153,7 +1153,7 @@ <entry name="GUIs, responsiveness" url="ch09.html"/> <entry name="GUIs, responsiveness, Window updates, double-buffering" url="ch09lev1sec2.html"/> <entry name="GUIs, standard dialog boxes, KFileDialog" url="ch05lev1sec3.html"/> -<entry name="GUIs, standard dialog boxes, KFontDialog" url="ch05lev1sec3.html"/> +<entry name="GUIs, standard dialog boxes, TDEFontDialog" url="ch05lev1sec3.html"/> <entry name="GUIs, standard dialog boxes, KMessageBox" url="ch05lev1sec3.html"/> <entry name="GUIs, standard dialog boxes, sample application" url="ch05lev1sec3.html"/> <entry name="GUIs, standard dialog boxes" url="ch05lev1sec3.html"/> @@ -1273,8 +1273,8 @@ <entry name="KabDemo application (address book dialog)" url="ch10lev1sec4.html"/> <entry name="kabdemo.cpp class definiiton (KabDemo)" url="ch10lev1sec4.html"/> <entry name="kabdemo.h class declaration (KabDemo)" url="ch10lev1sec4.html"/> -<entry name="KAction class" url="ch05.html"/> -<entry name="KAction class" url="ch06.html"/> +<entry name="TDEAction class" url="ch05.html"/> +<entry name="TDEAction class" url="ch06.html"/> <entry name="TDEApplication class" url="ch02lev1sec3.html"/> <entry name="KAudioPlayer class" url="ch14lev1sec6.html"/> <entry name="KButtonBox manager widget" url="ch08lev1sec4.html"/> @@ -1430,7 +1430,7 @@ <entry name="keywords, moc" url="ch03lev1sec4.html"/> <entry name="Keyword tag (DocBook)" url="ch15lev1sec2.html"/> <entry name="KFileDialog" url="ch05lev1sec3.html"/> -<entry name="KFontDialog" url="ch05lev1sec3.html"/> +<entry name="TDEFontDialog" url="ch05lev1sec3.html"/> <entry name="kfte editor" url="ch02.html"/> <entry name="kfte module (CVS)" url="ch17lev1sec2.html"/> <entry name="khello program, compiling" url="ch02lev1sec2.html"/> @@ -2544,7 +2544,7 @@ <entry name="standard actions, KStdActionsDemo widget, main() function" url="ch05.html"/> <entry name="standard actions, KStdActionsDemo widget" url="ch05.html"/> <entry name="standard dialog boxes, KFileDialog" url="ch05lev1sec3.html"/> -<entry name="standard dialog boxes, KFontDialog" url="ch05lev1sec3.html"/> +<entry name="standard dialog boxes, TDEFontDialog" url="ch05lev1sec3.html"/> <entry name="standard dialog boxes, KMessageBox" url="ch05lev1sec3.html"/> <entry name="standard dialog boxes, sample application" url="ch05lev1sec3.html"/> <entry name="standard dialog boxes" url="ch05lev1sec3.html"/> @@ -2680,7 +2680,7 @@ <entry name="UI compliance, help, ToolTips" url="ch05lev1sec2.html"/> <entry name="UI compliance, help" url="ch05lev1sec2.html"/> <entry name="UI compliance, standard dialog boxes, KFileDialog" url="ch05lev1sec3.html"/> -<entry name="UI compliance, standard dialog boxes, KFontDialog" url="ch05lev1sec3.html"/> +<entry name="UI compliance, standard dialog boxes, TDEFontDialog" url="ch05lev1sec3.html"/> <entry name="UI compliance, standard dialog boxes, KMessageBox" url="ch05lev1sec3.html"/> <entry name="UI compliance, standard dialog boxes, sample application" url="ch05lev1sec3.html"/> <entry name="UI compliance, standard dialog boxes" url="ch05lev1sec3.html"/> diff --git a/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui b/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui index 3658c0ac..e529689d 100644 --- a/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui +++ b/languages/cpp/pcsimporter/qt4importer/settingsdialogbase.ui @@ -46,7 +46,7 @@ Only the selected entry will be used</string> <cstring>qtUrl</cstring> </property> </widget> - <widget class="KListBox" row="1" column="0" rowspan="1" colspan="2"> + <widget class="TDEListBox" row="1" column="0" rowspan="1" colspan="2"> <property name="name"> <cstring>qtListBox</cstring> </property> diff --git a/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui b/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui index 19fd0db1..82380038 100644 --- a/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui +++ b/languages/cpp/pcsimporter/qtimporter/settingsdialogbase.ui @@ -105,7 +105,7 @@ Only the selected entry will be used</string> </property> </widget> - <widget class="KListBox" row="1" column="0" rowspan="1" colspan="3"> + <widget class="TDEListBox" row="1" column="0" rowspan="1" colspan="3"> <property name="name"> <cstring>qtListBox</cstring> </property> diff --git a/languages/cpp/pcsimporter/tdelibsimporter/settingsdialogbase.ui b/languages/cpp/pcsimporter/tdelibsimporter/settingsdialogbase.ui index 5e2604d3..acf72f22 100644 --- a/languages/cpp/pcsimporter/tdelibsimporter/settingsdialogbase.ui +++ b/languages/cpp/pcsimporter/tdelibsimporter/settingsdialogbase.ui @@ -81,7 +81,7 @@ Only the selected entry will be used</string> <string>&Add</string> </property> </widget> - <widget class="KListBox" row="1" column="0" rowspan="1" colspan="4"> + <widget class="TDEListBox" row="1" column="0" rowspan="1" colspan="4"> <property name="name"> <cstring>kdeListBox</cstring> </property> diff --git a/languages/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp index baea54d7..349fc2ab 100644 --- a/languages/cpp/problemreporter.cpp +++ b/languages/cpp/problemreporter.cpp @@ -54,17 +54,17 @@ #include <tqlayout.h> #include <tqlineedit.h> -class ProblemItem: public KListViewItem +class ProblemItem: public TDEListViewItem { public: ProblemItem( TQListView* parent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) + : TDEListViewItem( parent, problem, file, line, column ) {} ProblemItem( TQListViewItem* parent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) + : TDEListViewItem( parent, problem, file, line, column ) {} int compare( TQListViewItem* item, int column, bool ascending ) const @@ -77,7 +77,7 @@ public: return 0; return ( a > b ? 1 : -1 ); } - return KListViewItem::compare( item, column, ascending ); + return TDEListViewItem::compare( item, column, ascending ); } }; @@ -99,12 +99,12 @@ m_markIface( 0 ) connect( m_initCurrentTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(initCurrentList()) ); m_gridLayout = new TQGridLayout(this,2,3); - m_errorList = new KListView(this); - m_warningList = new KListView(this); - m_fixmeList = new KListView(this); - m_todoList = new KListView(this); - m_filteredList = new KListView(this); - m_currentList = new KListView(this); + m_errorList = new TDEListView(this); + m_warningList = new TDEListView(this); + m_fixmeList = new TDEListView(this); + m_todoList = new TDEListView(this); + m_filteredList = new TDEListView(this); + m_currentList = new TDEListView(this); m_filteredList->addColumn( i18n("Level") ); m_currentList->addColumn( i18n("Level") ); @@ -197,14 +197,14 @@ void ProblemReporter::configWidget( KDialogBase* dlg ) { } -void ProblemReporter::filterList(KListView* listview, const TQString& level) +void ProblemReporter::filterList(TDEListView* listview, const TQString& level) { TQListViewItemIterator it( listview ); while ( it.current() ) { if ( it.current()->text(3).contains(m_filterEdit->text(),false)) { - new KListViewItem(m_filteredList,level, + new TDEListViewItem(m_filteredList,level, it.current()->text(0), it.current()->text(1), it.current()->text(2), it.current()->text(3)); } @@ -217,7 +217,7 @@ void ProblemReporter::slotTabSelected( int tabindex ) m_widgetStack->raiseWidget(tabindex); } -void ProblemReporter::InitListView(KListView* listview) +void ProblemReporter::InitListView(TDEListView* listview) { listview->addColumn( i18n("File") ); listview->addColumn( i18n("Line") ); @@ -255,7 +255,7 @@ void ProblemReporter::slotActivePartChanged( KParts::Part* part ) initCurrentList(); } -void EfficientKListView::limitSize( int size ) +void EfficientTDEListView::limitSize( int size ) { if( m_map.size() <= size + 50 ) return; @@ -267,7 +267,7 @@ void EfficientKListView::limitSize( int size ) removeAllItems( (*it).str() ); } -void EfficientKListView::removeAllItems( const TQString& str ) +void EfficientTDEListView::removeAllItems( const TQString& str ) { HashedString h(str); m_insertionNumbers.erase( h ) ; @@ -326,9 +326,9 @@ void ProblemReporter::initCurrentList() // m_tabBar->setCurrentTab(0); } -void ProblemReporter::updateCurrentWith(EfficientKListView& listview, const TQString& level, const TQString& filename) +void ProblemReporter::updateCurrentWith(EfficientTDEListView& listview, const TQString& level, const TQString& filename) { - EfficientKListView::Range r = listview.getRange( filename ); + EfficientTDEListView::Range r = listview.getRange( filename ); for( ; r.first != r.second; ++r.first ) new ProblemItem(m_currentList,level,(*r.first).second->text(1),(*r.first).second->text(2),(*r.first).second->text(3)); } @@ -364,7 +364,7 @@ void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p TQString relFileName = m_cppSupport->project()->relativeProjectFile(fileName); - EfficientKListView* list; + EfficientTDEListView* list; switch( p.level() ) { diff --git a/languages/cpp/problemreporter.h b/languages/cpp/problemreporter.h index 79a1b77f..2a8bf10a 100644 --- a/languages/cpp/problemreporter.h +++ b/languages/cpp/problemreporter.h @@ -36,31 +36,31 @@ class KDialogBase; class Problem; class KURL; -class EfficientKListView { +class EfficientTDEListView { public: typedef __gnu_cxx::hash_multimap<HashedString, TQListViewItem*> Map; typedef std::pair< Map::const_iterator, Map::const_iterator > Range; - EfficientKListView( KListView* list = 0 ) : m_list( list ), m_insertionNumber( 0 ) { + EfficientTDEListView( TDEListView* list = 0 ) : m_list( list ), m_insertionNumber( 0 ) { } - EfficientKListView& operator = ( KListView* list ) { + EfficientTDEListView& operator = ( TDEListView* list ) { m_list = list; return *this; } - operator KListView* () { + operator TDEListView* () { return m_list; } - operator const KListView* () const { + operator const TDEListView* () const { return m_list; } - KListView* operator -> () { + TDEListView* operator -> () { return m_list; } - const KListView* operator -> () const { + const TDEListView* operator -> () const { return m_list; } @@ -88,7 +88,7 @@ private: Map m_map; typedef __gnu_cxx::hash_map<HashedString, int> InsertionMap; InsertionMap m_insertionNumbers; //This is used to count which file was inserted first(higher insertion-number -> inserted later) - KListView* m_list; + TDEListView* m_list; }; namespace KParts @@ -128,21 +128,21 @@ private slots: private: TQString levelToString( int level ) const; int levelToMarkType( int level ) const; - void InitListView( KListView* listview ); - void filterList( KListView* listview, const TQString& level ); - void updateCurrentWith( EfficientKListView& listview, const TQString& level, const TQString& filename ); + void InitListView( TDEListView* listview ); + void filterList( TDEListView* listview, const TQString& level ); + void updateCurrentWith( EfficientTDEListView& listview, const TQString& level, const TQString& filename ); private: TQGridLayout* m_gridLayout; TQTabBar* m_tabBar; TQWidgetStack* m_widgetStack; - KListView* m_currentList; + TDEListView* m_currentList; TQTimer* m_initCurrentTimer; - EfficientKListView m_errorList; - EfficientKListView m_fixmeList; - EfficientKListView m_todoList; - EfficientKListView m_warningList; - KListView* m_filteredList; + EfficientTDEListView m_errorList; + EfficientTDEListView m_fixmeList; + EfficientTDEListView m_todoList; + EfficientTDEListView m_warningList; + TDEListView* m_filteredList; KLineEdit* m_filterEdit; CppSupportPart* m_cppSupport; |