From 722ce1efbac31c61b1d4b13f7e075c9f311e3e73 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Sun, 2 Mar 2014 20:05:33 +0100 Subject: Finish renaming tdevelop components --- src/CMakeLists.txt | 24 +-- src/Mainpage.dox | 4 +- src/Makefile.am | 36 ++--- src/api.cpp | 10 +- src/api.h | 12 +- src/core.cpp | 4 +- src/core.h | 10 +- src/documentationpart.cpp | 2 +- src/documentationpart.h | 6 +- src/editorproxy.cpp | 10 +- src/eventsrc | 2 +- src/kdevassistantextension.cpp | 40 ----- src/kdevassistantextension.h | 41 ----- src/kdevassistantrc | 14 -- src/kdevassistantui.rc | 168 --------------------- src/kdevideextension.cpp | 129 ---------------- src/kdevideextension.h | 45 ------ src/kdevpluginprofilerc | 52 ------- src/languageselectwidget.cpp | 2 +- src/main.cpp | 8 +- src/main_assistant.cpp | 14 +- src/mainwindowshare.cpp | 18 +-- src/mainwindowshare.h | 4 +- src/multibuffer.cpp | 4 +- src/partcontroller.cpp | 26 ++-- src/partcontroller.h | 6 +- src/plugincontroller.cpp | 62 ++++---- src/plugincontroller.h | 22 +-- src/pluginselectdialog.cpp | 6 +- src/profileengine/editor/CMakeLists.txt | 4 +- src/profileengine/editor/Makefile.am | 8 +- src/profileengine/editor/main.cpp | 2 +- src/profileengine/lib/Makefile.am | 6 +- src/profileengine/lib/profileengine.cpp | 2 +- src/profileengine/lib/profileengine.h | 16 +- src/profiles/CMakeLists.txt | 2 +- .../CandCppIDE/CppIDE/CMakeLists.txt | 2 +- .../CandCppIDE/CppIDE/KDECppIDE/CMakeLists.txt | 14 -- .../CandCppIDE/CppIDE/KDECppIDE/Makefile.am | 3 - .../CandCppIDE/CppIDE/KDECppIDE/profile.config | 12 -- .../CandCppIDE/CppIDE/Makefile.am | 2 +- .../CandCppIDE/CppIDE/TDECppIDE/CMakeLists.txt | 14 ++ .../CandCppIDE/CppIDE/TDECppIDE/Makefile.am | 3 + .../CandCppIDE/CppIDE/TDECppIDE/profile.config | 12 ++ .../ScriptingLanguageIDE/RubyIDE/profile.config | 2 +- src/profiles/KDevAssistant/CMakeLists.txt | 14 -- src/profiles/KDevAssistant/Makefile.am | 3 - src/profiles/KDevAssistant/profile.config | 12 -- src/profiles/Makefile.am | 2 +- src/profiles/TDevAssistant/CMakeLists.txt | 14 ++ src/profiles/TDevAssistant/Makefile.am | 3 + src/profiles/TDevAssistant/profile.config | 12 ++ src/projectmanager.cpp | 32 ++-- src/projectmanager.h | 6 +- src/projectprofiles | 4 +- src/projectsession.cpp | 14 +- src/projectsession.h | 6 +- src/simplemainwindow.cpp | 8 +- src/simplemainwindow.h | 8 +- src/splashscreen.cpp | 10 +- src/splashscreen.h | 6 +- src/statusbar.cpp | 14 +- src/statusbar.h | 6 +- src/tdeconf_update/CMakeLists.txt | 8 +- src/tdeconf_update/Makefile.am | 10 +- .../kdev-gen-settings-tdeconf_update.cpp | 113 -------------- src/tdeconf_update/kdev-gen-settings.upd | 8 - .../tdev-gen-settings-tdeconf_update.cpp | 113 ++++++++++++++ src/tdeconf_update/tdev-gen-settings.upd | 8 + src/tdevassistantextension.cpp | 40 +++++ src/tdevassistantextension.h | 41 +++++ src/tdevassistantrc | 14 ++ src/tdevassistantui.rc | 168 +++++++++++++++++++++ src/tdevideextension.cpp | 129 ++++++++++++++++ src/tdevideextension.h | 45 ++++++ src/tdevpluginprofilerc | 52 +++++++ src/toplevel.cpp | 6 +- src/toplevel.h | 10 +- 78 files changed, 912 insertions(+), 912 deletions(-) delete mode 100644 src/kdevassistantextension.cpp delete mode 100644 src/kdevassistantextension.h delete mode 100644 src/kdevassistantrc delete mode 100644 src/kdevassistantui.rc delete mode 100644 src/kdevideextension.cpp delete mode 100644 src/kdevideextension.h delete mode 100644 src/kdevpluginprofilerc delete mode 100644 src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/CMakeLists.txt delete mode 100644 src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/Makefile.am delete mode 100644 src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/profile.config create mode 100644 src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/CMakeLists.txt create mode 100644 src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/Makefile.am create mode 100644 src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/profile.config delete mode 100644 src/profiles/KDevAssistant/CMakeLists.txt delete mode 100644 src/profiles/KDevAssistant/Makefile.am delete mode 100644 src/profiles/KDevAssistant/profile.config create mode 100644 src/profiles/TDevAssistant/CMakeLists.txt create mode 100644 src/profiles/TDevAssistant/Makefile.am create mode 100644 src/profiles/TDevAssistant/profile.config delete mode 100644 src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp delete mode 100644 src/tdeconf_update/kdev-gen-settings.upd create mode 100644 src/tdeconf_update/tdev-gen-settings-tdeconf_update.cpp create mode 100644 src/tdeconf_update/tdev-gen-settings.upd create mode 100644 src/tdevassistantextension.cpp create mode 100644 src/tdevassistantextension.h create mode 100644 src/tdevassistantrc create mode 100644 src/tdevassistantui.rc create mode 100644 src/tdevideextension.cpp create mode 100644 src/tdevideextension.h create mode 100644 src/tdevpluginprofilerc (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 558caeb4..b58b6df5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -52,8 +52,8 @@ install( FILES ##### other data ################################ install( FILES tdevelopui.rc eventsrc DESTINATION ${DATA_INSTALL_DIR}/tdevelop ) -install( FILES tdeveloprc kdevassistantrc DESTINATION ${CONFIG_INSTALL_DIR} ) -install( FILES kdevassistantui.rc DESTINATION ${DATA_INSTALL_DIR}/kdevassistant ) +install( FILES tdeveloprc tdevassistantrc DESTINATION ${CONFIG_INSTALL_DIR} ) +install( FILES tdevassistantui.rc DESTINATION ${DATA_INSTALL_DIR}/tdevassistant ) install( FILES projectprofiles DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles ) @@ -61,25 +61,25 @@ install( FILES projectprofiles DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles tde_add_executable( tdevelop SOURCES - main.cpp kdevideextension.cpp settingswidget.ui - LINK kdevshell-shared + main.cpp tdevideextension.cpp settingswidget.ui + LINK tdevshell-shared DESTINATION ${BIN_INSTALL_DIR} ) -##### kdevassistant (executable) ################ +##### tdevassistant (executable) ################ -tde_add_executable( kdevassistant +tde_add_executable( tdevassistant SOURCES - main_assistant.cpp kdevassistantextension.cpp - LINK kdevshell-shared + main_assistant.cpp tdevassistantextension.cpp + LINK tdevshell-shared DESTINATION ${BIN_INSTALL_DIR} ) -##### kdevshell (shared) ######################## +##### tdevshell (shared) ######################## -tde_add_library( kdevshell SHARED AUTOMOC +tde_add_library( tdevshell SHARED AUTOMOC SOURCES api.cpp core.cpp documentationpart.cpp editorproxy.cpp generalinfowidget.cpp generalinfowidgetbase.ui @@ -92,7 +92,7 @@ tde_add_library( kdevshell SHARED AUTOMOC toplevel.cpp VERSION 0.0.0 LINK - kdevutil-static d-shared kinterfacedesigner-shared - profileengine-shared tdevelop-shared kdevwidgets-shared + tdevutil-static d-shared kinterfacedesigner-shared + profileengine-shared tdevelop-shared tdevwidgets-shared DESTINATION ${LIB_INSTALL_DIR} ) diff --git a/src/Mainpage.dox b/src/Mainpage.dox index 2f055d1b..7f2255d2 100644 --- a/src/Mainpage.dox +++ b/src/Mainpage.dox @@ -3,7 +3,7 @@ This library contains the Shell - a profile-based implementation of TDevelop plugin architecture. -Link with: -lkdevshell +Link with: -ltdevshell Include path: -I\$(kde_includes)/tdevelop/shell @@ -109,7 +109,7 @@ Example: } protected: - KDevAssistantExtension(); + TDevAssistantExtension(); }; @endcode diff --git a/src/Makefile.am b/src/Makefile.am index 047e89a4..b0b8a04c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -6,41 +6,41 @@ INCLUDES = -I$(top_srcdir)/lib -I$(top_srcdir)/lib/interfaces \ KDE_OPTIONS=nofinal -lib_LTLIBRARIES = libkdevshell.la -libkdevshell_la_LDFLAGS = $(all_libraries) -ltdevelop -L../lib/.libs -L../lib/interfaces/external/.libs -lkinterfacedesigner -libkdevshell_la_LIBADD = \ +lib_LTLIBRARIES = libtdevshell.la +libtdevshell_la_LDFLAGS = $(all_libraries) -ltdevelop -L../lib/.libs -L../lib/interfaces/external/.libs -lkinterfacedesigner +libtdevshell_la_LIBADD = \ $(top_builddir)/src/profileengine/lib/libprofileengine.la $(top_builddir)/lib/libtdevelop.la \ - $(top_builddir)/lib/widgets/libkdevwidgets.la $(top_builddir)/lib/interfaces/extras/libkdevextras.la \ + $(top_builddir)/lib/widgets/libtdevwidgets.la $(top_builddir)/lib/interfaces/extras/libtdevextras.la \ $(top_builddir)/src/newui/libd.la $(LIB_TDEHTML) -ltdetexteditor -L../lib/interfaces/external/.libs -lkinterfacedesigner -libkdevshell_la_SOURCES = api.cpp core.cpp documentationpart.cpp \ +libtdevshell_la_SOURCES = api.cpp core.cpp documentationpart.cpp \ editorproxy.cpp generalinfowidget.cpp generalinfowidgetbase.ui languageselectwidget.cpp \ mainwindowshare.cpp mimewarningdialog.ui multibuffer.cpp partcontroller.cpp \ plugincontroller.cpp pluginselectdialog.cpp pluginselectdialog.h pluginselectdialogbase.ui \ projectmanager.cpp projectsession.cpp shellextension.cpp simplemainwindow.cpp \ splashscreen.cpp statusbar.cpp toplevel.cpp -bin_PROGRAMS = tdevelop kdevassistant +bin_PROGRAMS = tdevelop tdevassistant -tdevelop_SOURCES = main.cpp kdevideextension.cpp settingswidget.ui +tdevelop_SOURCES = main.cpp tdevideextension.cpp settingswidget.ui tdevelop_METASOURCES = AUTO tdevelop_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor -ltdevelop -L../lib/.libs -L../lib/interfaces/external/.libs -lkinterfacedesigner -tdevelop_LDADD = libkdevshell.la -L../lib/interfaces/external/.libs -lkinterfacedesigner +tdevelop_LDADD = libtdevshell.la -L../lib/interfaces/external/.libs -lkinterfacedesigner rcdir = $(kde_datadir)/tdevelop rc_DATA = tdevelopui.rc eventsrc -# default KDevelop configuration +# default TDevelop configuration tdevelopdatadir = $(kde_confdir) -tdevelopdata_DATA = tdeveloprc kdevassistantrc +tdevelopdata_DATA = tdeveloprc tdevassistantrc SUBDIRS = profiles profileengine newui tdeconf_update -kdevassistant_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor -ltdevelop -L../lib/.libs -L../lib/interfaces/external/.libs -lkinterfacedesigner -kdevassistant_SOURCES = main_assistant.cpp kdevassistantextension.cpp -kdevassistant_LDADD = libkdevshell.la -L../lib/interfaces/external/.libs -lkinterfacedesigner +tdevassistant_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor -ltdevelop -L../lib/.libs -L../lib/interfaces/external/.libs -lkinterfacedesigner +tdevassistant_SOURCES = main_assistant.cpp tdevassistantextension.cpp +tdevassistant_LDADD = libtdevshell.la -L../lib/interfaces/external/.libs -lkinterfacedesigner -rc_assistantdir = $(kde_datadir)/kdevassistant -rc_assistant_DATA = kdevassistantui.rc +rc_assistantdir = $(kde_datadir)/tdevassistant +rc_assistant_DATA = tdevassistantui.rc shellincludedir = $(includedir)/tdevelop/shell shellinclude_HEADERS = api.h core.h documentationpart.h editorproxy.h \ generalinfowidget.h languageselectwidget.h mainwindowshare.h partcontroller.h \ @@ -48,9 +48,9 @@ shellinclude_HEADERS = api.h core.h documentationpart.h editorproxy.h \ statusbar.h toplevel.h generalinfowidgetbase.h mimewarningdialog.h settingswidget.h \ simplemainwindow.h multibuffer.h -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevutil kdevinterfaces kdevextensions -DOXYGEN_PROJECTNAME = KDevelop Generic Shell -DOXYGEN_DOCDIRPREFIX = kdevshell +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevutil tdevinterfaces tdevextensions +DOXYGEN_PROJECTNAME = TDevelop Generic Shell +DOXYGEN_DOCDIRPREFIX = tdevshell include ../Doxyfile.am profilesdatadir = $(kde_datadir)/tdevelop/profiles profilesdata_DATA = projectprofiles diff --git a/src/api.cpp b/src/api.cpp index 8e56da3d..4053f871 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -9,18 +9,18 @@ API *API::s_instance = 0; -KDevMainWindow *API::mainWindow() const +TDevMainWindow *API::mainWindow() const { return TopLevel::getInstance(); } -KDevPartController *API::partController() const +TDevPartController *API::partController() const { return PartController::getInstance(); } -KDevCore *API::core() const +TDevCore *API::core() const { return Core::getInstance(); } @@ -41,7 +41,7 @@ API *API::getInstance() API::API() - : KDevApi() + : TDevApi() { m_classStore = new CodeModel(); } @@ -53,7 +53,7 @@ API::~API() m_classStore = 0; } -KDevPluginController * API::pluginController() const +TDevPluginController * API::pluginController() const { return PluginController::getInstance(); } diff --git a/src/api.h b/src/api.h index fb20447a..2957b42a 100644 --- a/src/api.h +++ b/src/api.h @@ -2,7 +2,7 @@ #define _API_H_ -#include "kdevapi.h" +#include "tdevapi.h" class CodeModel; @@ -10,14 +10,14 @@ class CodeModel; /** API implementation. */ -class API : public KDevApi +class API : public TDevApi { public: - virtual KDevMainWindow *mainWindow() const; - virtual KDevPartController *partController() const; - virtual KDevPluginController *pluginController() const; - virtual KDevCore *core() const; + virtual TDevMainWindow *mainWindow() const; + virtual TDevPartController *partController() const; + virtual TDevPluginController *pluginController() const; + virtual TDevCore *core() const; virtual CodeModel *codeModel() const; static API *getInstance(); diff --git a/src/core.cpp b/src/core.cpp index ccdd0ace..64c3d0b9 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -59,7 +59,7 @@ void Core::setupShourtcutTips(KXMLGUIClient * client) } Core::Core() - : KDevCore() + : TDevCore() { } @@ -88,7 +88,7 @@ bool Core::queryClose() } -void Core::running(KDevPlugin * which, bool runs) +void Core::running(TDevPlugin * which, bool runs) { emit activeProcessChanged( which, runs ); } diff --git a/src/core.h b/src/core.h index c041eac0..9973c7e0 100644 --- a/src/core.h +++ b/src/core.h @@ -7,7 +7,7 @@ #include -#include "kdevcore.h" +#include "tdevcore.h" namespace MainWindowUtils{ @@ -17,7 +17,7 @@ TQString beautifyToolTip(const TQString& text); /** Core implementation. */ -class Core : public KDevCore +class Core : public TDevCore { Q_OBJECT @@ -41,7 +41,7 @@ public: ~Core(); - virtual void running(KDevPlugin *which, bool runs); + virtual void running(TDevPlugin *which, bool runs); virtual void fillContextMenu(TQPopupMenu *popup, const Context *context); virtual void openProject(const TQString& projectFileName); @@ -51,13 +51,13 @@ public: void doEmitCoreInitialized() { emit coreInitialized(); } void doEmitProjectConfigWidget(KDialogBase *base) { emit projectConfigWidget(base); } void doEmitConfigWidget(KDialogBase *base) { emit configWidget(base); } - void doEmitStopButtonPressed(KDevPlugin* which = 0) { emit stopButtonClicked( which ); } + void doEmitStopButtonPressed(TDevPlugin* which = 0) { emit stopButtonClicked( which ); } bool queryClose(); signals: - void activeProcessChanged(KDevPlugin* which, bool runs); + void activeProcessChanged(TDevPlugin* which, bool runs); protected: diff --git a/src/documentationpart.cpp b/src/documentationpart.cpp index b9ad78d0..43c9db67 100644 --- a/src/documentationpart.cpp +++ b/src/documentationpart.cpp @@ -3,7 +3,7 @@ #include "documentationpart.h" HTMLDocumentationPart::HTMLDocumentationPart() - : KDevHTMLPart() + : TDevHTMLPart() { setOptions(CanDuplicate | CanOpenInNewWindow); } diff --git a/src/documentationpart.h b/src/documentationpart.h index dd86ce8a..84f17023 100644 --- a/src/documentationpart.h +++ b/src/documentationpart.h @@ -1,14 +1,14 @@ #ifndef __DOCUMENTATIONPART_H__ #define __DOCUMENTATIONPART_H__ -#include +#include /** HTML documentation part. -Implements shell-dependent "duplicate" and "open in new window" actions of KDevHTMLPart. +Implements shell-dependent "duplicate" and "open in new window" actions of TDevHTMLPart. */ -class HTMLDocumentationPart : public KDevHTMLPart +class HTMLDocumentationPart : public TDevHTMLPart { Q_OBJECT diff --git a/src/editorproxy.cpp b/src/editorproxy.cpp index 73ff852b..fca4bfdf 100644 --- a/src/editorproxy.cpp +++ b/src/editorproxy.cpp @@ -27,7 +27,7 @@ #include "partcontroller.h" #include "core.h" #include "multibuffer.h" -#include "kdeveditorutil.h" +#include "tdeveditorutil.h" #include "editorproxy.h" @@ -178,20 +178,20 @@ void EditorProxy::popupAboutToShow() unsigned int line; unsigned int col; - if ( !KDevEditorUtil::currentPositionReal( &line, &col, doc ) ) return; + if ( !TDevEditorUtil::currentPositionReal( &line, &col, doc ) ) return; TQString wordstr; - TQString selection = KDevEditorUtil::currentSelection( doc ); + TQString selection = TDevEditorUtil::currentSelection( doc ); if ( !selection.isEmpty() && selection.contains('\n') != 0 ) { wordstr = selection; } else { - wordstr = KDevEditorUtil::currentWord( doc ); + wordstr = TDevEditorUtil::currentWord( doc ); } - TQString linestr = KDevEditorUtil::currentLine( doc ); + TQString linestr = TDevEditorUtil::currentLine( doc ); EditorContext context( doc->url(), line, col, linestr, wordstr ); Core::getInstance()->fillContextMenu( popup, &context ); diff --git a/src/eventsrc b/src/eventsrc index baa16c20..4032da95 100644 --- a/src/eventsrc +++ b/src/eventsrc @@ -1,6 +1,6 @@ [!Global!] IconName=tdevelop -Comment=KDevelop +Comment=TDevelop Comment[hi]=के-डेवलप [ProcessSuccess] diff --git a/src/kdevassistantextension.cpp b/src/kdevassistantextension.cpp deleted file mode 100644 index ddbfb6bf..00000000 --- a/src/kdevassistantextension.cpp +++ /dev/null @@ -1,40 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2004 by Alexander Dymo * - * adymo@kdevelop.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - ***************************************************************************/ -#include "kdevassistantextension.h" - -KDevAssistantExtension::KDevAssistantExtension() - : ShellExtension() -{ -} - -void KDevAssistantExtension::init() -{ - s_instance = new KDevAssistantExtension(); -} - -TQString KDevAssistantExtension::xmlFile() -{ - return "kdevassistantui.rc"; -} - -TQString KDevAssistantExtension::defaultProfile() -{ - return "KDevAssistant"; -} diff --git a/src/kdevassistantextension.h b/src/kdevassistantextension.h deleted file mode 100644 index 874cafbd..00000000 --- a/src/kdevassistantextension.h +++ /dev/null @@ -1,41 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2004 by Alexander Dymo * - * adymo@kdevelop.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - ***************************************************************************/ -#ifndef KDEVASSISTANTEXTENSION_H -#define KDEVASSISTANTEXTENSION_H - -#include "shellextension.h" - -class KDevAssistantExtension : public ShellExtension { -public: - static void init(); - - virtual void createGlobalSettingsPage(KDialogBase */*dlg*/) {}; - virtual void acceptGlobalSettingsPage(KDialogBase */*dlg*/) {}; - - virtual TQString xmlFile(); - - virtual TQString defaultProfile(); - -protected: - KDevAssistantExtension(); - -}; - -#endif diff --git a/src/kdevassistantrc b/src/kdevassistantrc deleted file mode 100644 index eaab6fc6..00000000 --- a/src/kdevassistantrc +++ /dev/null @@ -1,14 +0,0 @@ -[RightToolWindow] -LastWidget=Documentation -Width=254 - -[UI] -CloseOnHover=false -CloseOnHoverDelay=false -MDIMode=4 -MDIStyle=1 -OpenNewTabAfterCurrent=true -ShowCloseTabsButton=true -ShowTabIcons=true -TabWidgetVisibility=0 -UseSimpleMainWindow=true diff --git a/src/kdevassistantui.rc b/src/kdevassistantui.rc deleted file mode 100644 index a5b202ce..00000000 --- a/src/kdevassistantui.rc +++ /dev/null @@ -1,168 +0,0 @@ - - - - &File - - - - - - - - - - - - - - - - - - - - - - - - - - &View - - - - - - - - - - - - - - &Settings - - - - - - - - - - - - - - - - - - - - &Window - - - - - - - - - - - - - - - &Help - - - - - - Main Toolbar - - - - - - - - - - - - - - - - - Browser Toolbar - - - - - - - - - - - - - - - - diff --git a/src/kdevideextension.cpp b/src/kdevideextension.cpp deleted file mode 100644 index 7bfbf29f..00000000 --- a/src/kdevideextension.cpp +++ /dev/null @@ -1,129 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2004 by Alexander Dymo * - * adymo@kdevelop.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - ***************************************************************************/ -#include "kdevideextension.h" - -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include - -#include "api.h" -#include "settingswidget.h" - -KDevIDEExtension::KDevIDEExtension() - : ShellExtension() -{ -} - -void KDevIDEExtension::init() -{ - s_instance = new KDevIDEExtension(); -} - -void KDevIDEExtension::createGlobalSettingsPage(KDialogBase *dlg) -{ - TDEConfig* config = kapp->config(); - TQVBox *vbox = dlg->addVBoxPage(i18n("General"), i18n("General"), BarIcon("tdevelop", TDEIcon::SizeMedium) ); - gsw = new SettingsWidget(vbox, "general settings widget"); - - gsw->projectsURL->setMode((int)KFile::Directory); - - config->setGroup("General Options"); - gsw->lastProjectCheckbox->setChecked(config->readBoolEntry("Read Last Project On Startup",true)); - gsw->outputFont->setFont( config->readFontEntry( "OutputViewFont" ) ); - config->setGroup("MakeOutputView"); - gsw->lineWrappingCheckBox->setChecked(config->readBoolEntry("LineWrapping",true)); - gsw->dirNavigMsgCheckBox->setChecked(config->readBoolEntry("ShowDirNavigMsg",false)); - gsw->compileOutputCombo->setCurrentItem(config->readNumEntry("CompilerOutputLevel",2)); - gsw->forceCLocaleRadio->setChecked( config->readBoolEntry( "ForceCLocale", true ) ); - gsw->userLocaleRadio->setChecked( !config->readBoolEntry( "ForceCLocale", true ) ); - - config->setGroup("General Options"); - gsw->projectsURL->setURL(config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/")); - gsw->designerButtonGroup->setButton( config->readNumEntry( "DesignerApp", 0 ) ); - - TQString DesignerSetting = config->readEntry( "DesignerSetting", "ExternalDesigner" ); - gsw->qtDesignerRadioButton->setChecked( DesignerSetting == "ExternalDesigner" ); - gsw->seperateAppRadioButton->setChecked( DesignerSetting == "ExternalKDevDesigner" ); - gsw->embeddedDesignerRadioButton->setChecked( DesignerSetting == "EmbeddedKDevDesigner" ); - - config->setGroup("TerminalEmulator"); - gsw->terminalEdit->setText( config->readEntry( "TerminalApplication", TQString::fromLatin1("konsole") ) ); - bool useKDESetting = config->readBoolEntry( "UseKDESetting", true ); - gsw->useKDETerminal->setChecked( useKDESetting ); - gsw->useOtherTerminal->setChecked( !useKDESetting ); -} - -void KDevIDEExtension::acceptGlobalSettingsPage(KDialogBase *dlg) -{ - TDEConfig* config = kapp->config(); - - config->setGroup("General Options"); - config->writeEntry("DesignerApp", gsw->designerButtonGroup->selectedId()); - config->writeEntry("Read Last Project On Startup",gsw->lastProjectCheckbox->isChecked()); - config->writePathEntry("DefaultProjectsDir", gsw->projectsURL->url()); - config->writeEntry("OutputViewFont", gsw->outputFont->font()); - - TQString DesignerSetting; - if ( gsw->qtDesignerRadioButton->isChecked() ) DesignerSetting = "ExternalDesigner"; - if ( gsw->seperateAppRadioButton->isChecked() ) DesignerSetting = "ExternalKDevDesigner"; - if ( gsw->embeddedDesignerRadioButton->isChecked() ) DesignerSetting = "EmbeddedKDevDesigner"; - config->writeEntry( "DesignerSetting", DesignerSetting ); - - config->setGroup("MakeOutputView"); - config->writeEntry("LineWrapping",gsw->lineWrappingCheckBox->isChecked()); - config->writeEntry("ShowDirNavigMsg",gsw->dirNavigMsgCheckBox->isChecked()); - config->writeEntry( "ForceCLocale", gsw->forceCLocaleRadio->isChecked() ); - //current item id must be in sync with the enum! - config->writeEntry("CompilerOutputLevel",gsw->compileOutputCombo->currentItem()); - config->sync(); - if( KDevPlugin *makeExt = API::getInstance()->pluginController()->extension("TDevelop/MakeFrontend")) - { - static_cast(makeExt)->updateSettingsFromConfig(); - } - - config->setGroup("TerminalEmulator"); - config->writeEntry("UseKDESetting", gsw->useKDETerminal->isChecked() ); - config->writeEntry("TerminalApplication", gsw->terminalEdit->text().stripWhiteSpace() ); -} - -TQString KDevIDEExtension::xmlFile() -{ - return "tdevelopui.rc"; -} - -TQString KDevIDEExtension::defaultProfile() -{ - return "IDE"; -} diff --git a/src/kdevideextension.h b/src/kdevideextension.h deleted file mode 100644 index 1e25da7e..00000000 --- a/src/kdevideextension.h +++ /dev/null @@ -1,45 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2004 by Alexander Dymo * - * adymo@kdevelop.org * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * - ***************************************************************************/ -#ifndef KDEVIDEEXTENSION_H -#define KDEVIDEEXTENSION_H - -#include - -class SettingsWidget; - -class KDevIDEExtension : public ShellExtension { -public: - static void init(); - - virtual void createGlobalSettingsPage(KDialogBase *dlg); - virtual void acceptGlobalSettingsPage(KDialogBase *dlg); - - virtual TQString xmlFile(); - - virtual TQString defaultProfile(); - -protected: - KDevIDEExtension(); - -private: - SettingsWidget *gsw; -}; - -#endif diff --git a/src/kdevpluginprofilerc b/src/kdevpluginprofilerc deleted file mode 100644 index 1c2abb92..00000000 --- a/src/kdevpluginprofilerc +++ /dev/null @@ -1,52 +0,0 @@ -[Plugin Profiles] -profiles=Profile_BASE,Profile_COMPILED,Profile_CPP,Profile_SCRIPT,Profile_WEB -default=Profile_BASE - -[Category] -Ada= -C= -C/GNOME= -C/GBA= -C/PalmOS= -C++=Profile_CPP -C++/Embedded=Profile_CPP -C++/KDE=Profile_CPP -C++/wxWidgets= -C++/KDevelop -C++/Generic -C++/GTK+ -C++/QMake= -PHP= -Database= -Shell= -Java= -Java/KDE= -Java/Ant= -Perl= -Ruby= -Python= -Fortran= -Haskell= -Pascal/Free Pascal= - -[Profile_BASE] -plugins=KDevFileView,KDevClassView,KDevBookmarks,KDevQuickOpen - -[Profile_COMPILED] -inherits=Profile_BASE -plugins= - -[Profile_CPP] -inherits=Profile_COMPILED -plugins=KDevDebugger - -[Profile_SCRIPT] -inherits=Profile_BASE -plugins= - -[Profile_WEB] -inherits=Profile_SCRIPT -plugins=KDevcopyto - - - diff --git a/src/languageselectwidget.cpp b/src/languageselectwidget.cpp index 7a8695ff..67723b65 100644 --- a/src/languageselectwidget.cpp +++ b/src/languageselectwidget.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include "domutil.h" #include "languageselectwidget.h" diff --git a/src/main.cpp b/src/main.cpp index 6f27e415..2df35f7e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -18,7 +18,7 @@ #include "core.h" #include "projectmanager.h" -#include "kdevideextension.h" +#include "tdevideextension.h" static TDECmdLineOptions options[] = { @@ -86,15 +86,15 @@ int main(int argc, char *argv[]) TDEApplication app; - KDevIDEExtension::init(); + TDevIDEExtension::init(); - KDevSplashScreen *splash = 0; + TDevSplashScreen *splash = 0; TQString splashFile = locate("appdata", "pics/tdevelop-splash.png"); if (!splashFile.isEmpty()) { TQPixmap pm; pm.load(splashFile); - splash = new KDevSplashScreen( pm ); + splash = new TDevSplashScreen( pm ); } app.processEvents(); diff --git a/src/main_assistant.cpp b/src/main_assistant.cpp index ba2c1886..7cd9a98d 100644 --- a/src/main_assistant.cpp +++ b/src/main_assistant.cpp @@ -18,7 +18,7 @@ #include "core.h" #include "projectmanager.h" -#include "kdevassistantextension.h" +#include "tdevassistantextension.h" static TDECmdLineOptions options[] = { @@ -30,7 +30,7 @@ static TDECmdLineOptions options[] = int main(int argc, char *argv[]) { static const char description[] = I18N_NOOP("The TDevelop Integrated Development Environment:\nassistant and documentation viewer"); - TDEAboutData aboutData("kdevassistant", I18N_NOOP("TDevelop Assistant"), + TDEAboutData aboutData("tdevassistant", I18N_NOOP("TDevelop Assistant"), VERSION, description, TDEAboutData::License_GPL, I18N_NOOP("(c) 1999-2007, The KDevelop developers"), "", "http://www.kdevelop.org"); aboutData.addAuthor("Alexander Dymo", I18N_NOOP("Release coordinator, Overall improvements, Pascal support, C++ support, New File and Documentation parts"), "adymo@kdevelop.org"); @@ -80,15 +80,15 @@ int main(int argc, char *argv[]) TDEApplication app; - KDevAssistantExtension::init(); + TDevAssistantExtension::init(); - KDevSplashScreen *splash = 0; - TQString splashFile = locate("data", "tdevelop/pics/kdevassistant-splash.png"); + TDevSplashScreen *splash = 0; + TQString splashFile = locate("data", "tdevelop/pics/tdevassistant-splash.png"); if (!splashFile.isEmpty()) { TQPixmap pm; pm.load(splashFile); - splash = new KDevSplashScreen( pm ); + splash = new TDevSplashScreen( pm ); } if (splash) splash->show(); @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) if (splash) delete splash; - kapp->dcopClient()->registerAs("kdevassistant"); + kapp->dcopClient()->registerAs("tdevassistant"); return app.exec(); } diff --git a/src/mainwindowshare.cpp b/src/mainwindowshare.cpp index a06dba14..8e44d7b7 100644 --- a/src/mainwindowshare.cpp +++ b/src/mainwindowshare.cpp @@ -55,11 +55,11 @@ #include "projectmanager.h" #include "core.h" #include "api.h" -#include "kdevmakefrontend.h" +#include "tdevmakefrontend.h" #include "toplevel.h" #include "plugincontroller.h" -#include "kdevplugininfo.h" +#include "tdevplugininfo.h" #include "mainwindowshare.h" @@ -120,8 +120,8 @@ void MainWindowShare::createActions() connect(m_stopProcesses->popupMenu(), TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotStopPopupActivated(int))); - connect( Core::getInstance(), TQT_SIGNAL(activeProcessChanged(KDevPlugin*, bool)), - this, TQT_SLOT(slotActiveProcessChanged(KDevPlugin*, bool)) ); + connect( Core::getInstance(), TQT_SIGNAL(activeProcessChanged(TDevPlugin*, bool)), + this, TQT_SLOT(slotActiveProcessChanged(TDevPlugin*, bool)) ); action = KStdAction::showMenubar( this, TQT_SLOT(slotShowMenuBar()), @@ -180,7 +180,7 @@ void MainWindowShare::createActions() m_configureEditorAction->setWhatsThis(i18n("Configure editor

Opens editor configuration dialog.")); m_configureEditorAction->setEnabled( false ); - KDevPartController * partController = API::getInstance()->partController(); + TDevPartController * partController = API::getInstance()->partController(); connect( partController, TQT_SIGNAL(activePartChanged(KParts::Part*)), this, TQT_SLOT(slotActivePartChanged(KParts::Part* )) ); } @@ -236,7 +236,7 @@ void MainWindowShare::slotStopButtonPressed() Core::getInstance()->doEmitStopButtonPressed(); } -void MainWindowShare::slotActiveProcessChanged( KDevPlugin* plugin, bool active ) +void MainWindowShare::slotActiveProcessChanged( TDevPlugin* plugin, bool active ) { if ( !plugin ) return; @@ -251,7 +251,7 @@ void MainWindowShare::slotActiveProcessChanged( KDevPlugin* plugin, bool active void MainWindowShare::slotStopPopupActivated( int id ) { - KDevPlugin* plugin = activeProcesses.at( id ); + TDevPlugin* plugin = activeProcesses.at( id ); if ( plugin && plugin->info()->genericName() == m_stopProcesses->popupMenu()->text( id ) ) { Core::getInstance()->doEmitStopButtonPressed( plugin ); return; @@ -273,7 +273,7 @@ void MainWindowShare::slotStopMenuAboutToShow() popup->clear(); int i = 0; - for ( KDevPlugin* plugin = activeProcesses.first(); plugin; plugin = activeProcesses.next() ) { + for ( TDevPlugin* plugin = activeProcesses.first(); plugin; plugin = activeProcesses.next() ) { popup->insertItem( plugin->info()->genericName(), i++ ); } } @@ -325,7 +325,7 @@ void MainWindowShare::slotConfigureEditors() { kdDebug(9000) << " *** MainWindowShare::slotConfigureEditors()" << endl; - KDevPartController * partController = API::getInstance()->partController(); + TDevPartController * partController = API::getInstance()->partController(); KParts::Part * part = partController->activePart(); KTextEditor::ConfigInterface * conf = dynamic_cast( part ); diff --git a/src/mainwindowshare.h b/src/mainwindowshare.h index a9ec620a..7ac08bdb 100644 --- a/src/mainwindowshare.h +++ b/src/mainwindowshare.h @@ -54,7 +54,7 @@ private slots: void slotConfigureNotifications(); void slotConfigureEditors(); void slotSettings(); - void slotActiveProcessChanged( KDevPlugin*, bool ); + void slotActiveProcessChanged( TDevPlugin*, bool ); void slotActivePartChanged( KParts::Part* part ); void slotStopPopupActivated(int); void slotStopMenuAboutToShow(); @@ -83,7 +83,7 @@ private: TDEToolBarPopupAction* m_stopProcesses; //!< Stops all running processes KParts::MainWindow* m_pMainWnd; - TQPtrList activeProcesses; + TQPtrList activeProcesses; }; #endif // __MAINWINDOWSHARE_H__ diff --git a/src/multibuffer.cpp b/src/multibuffer.cpp index 05a4d26f..757eeab7 100644 --- a/src/multibuffer.cpp +++ b/src/multibuffer.cpp @@ -32,7 +32,7 @@ #include "toplevel.h" #include "editorproxy.h" #include "partcontroller.h" -#include "kdevlanguagesupport.h" +#include "tdevlanguagesupport.h" #include #include @@ -53,7 +53,7 @@ MultiBuffer::MultiBuffer( TQWidget *parent ) m_activeBuffer( 0 ) { EditorProxy::getInstance() ->registerEditor( this ); - if ( KDevLanguageSupport *lang = + if ( TDevLanguageSupport *lang = API::getInstance() ->languageSupport() ) { setOrientation( lang->splitOrientation() ); diff --git a/src/partcontroller.cpp b/src/partcontroller.cpp index 21b78a8c..16bffcca 100644 --- a/src/partcontroller.cpp +++ b/src/partcontroller.cpp @@ -54,14 +54,14 @@ #include "documentationpart.h" #include "ksavealldialog.h" -#include "kdevproject.h" +#include "tdevproject.h" #include "urlutil.h" #include "mimewarningdialog.h" #include "domutil.h" -#include "kdevjobtimer.h" +#include "tdevjobtimer.h" #include "designer.h" -#include "kdevlanguagesupport.h" +#include "tdevlanguagesupport.h" #include "multibuffer.h" #include "partcontroller.h" @@ -90,7 +90,7 @@ struct ModificationData PartController::PartController(TQWidget *parent) - : KDevPartController(parent), _editorFactory(0L), m_currentActivePart(0), m_removingActivePart(false) + : TDevPartController(parent), _editorFactory(0L), m_currentActivePart(0), m_removingActivePart(false) { connect(this, TQT_SIGNAL(partRemoved(KParts::Part*)), this, TQT_SLOT(slotPartRemoved(KParts::Part* )) ); connect(this, TQT_SIGNAL(partAdded(KParts::Part*)), this, TQT_SLOT(slotPartAdded(KParts::Part* )) ); @@ -348,7 +348,7 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum, if ( !addToCurrentBuffer ) { - if ( KDevLanguageSupport *lang = + if ( TDevLanguageSupport *lang = API::getInstance()->languageSupport() ) { // Let the language part override the addToCurrentBuffer flag @@ -406,11 +406,11 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum, DesignerSetting = DomUtil::readEntry(*dom, "/kdevcppsupport/qt/designerintegration", DesignerSetting ); designerExec = DomUtil::readEntry(*dom, "/kdevcppsupport/qt/designer", designerExec ); } - if ( DesignerSetting == "ExternalKDevDesigner" ) + if ( DesignerSetting == "ExternalTDevDesigner" ) { - designerExec = "kdevdesigner"; + designerExec = "tdevdesigner"; } - else if ( DesignerSetting == "EmbeddedKDevDesigner" ) + else if ( DesignerSetting == "EmbeddedTDevDesigner" ) { if ( KParts::ReadOnlyPart *designerPart = qtDesignerPart() ) { @@ -419,12 +419,12 @@ void PartController::editDocumentInternal( const KURL & inputUrl, int lineNum, designerPart->openURL(url); return; } - else if ( KParts::Factory * KDevDesignerFactory = static_cast( KLibLoader::self()->factory( TQFile::encodeName( "libkdevdesignerpart" ) ) ) ) + else if ( KParts::Factory * TDevDesignerFactory = static_cast( KLibLoader::self()->factory( TQFile::encodeName( "libtdevdesignerpart" ) ) ) ) { - KParts::ReadWritePart * kdevpart = static_cast( KDevDesignerFactory->createPart( TopLevel::getInstance()->main(), 0, 0, 0, "KParts::ReadWritePart" ) ); - kdevpart->openURL( url ); + KParts::ReadWritePart * tdevpart = static_cast( TDevDesignerFactory->createPart( TopLevel::getInstance()->main(), 0, 0, 0, "KParts::ReadWritePart" ) ); + tdevpart->openURL( url ); addHistoryEntry(); - integratePart( kdevpart, url ); + integratePart( tdevpart, url ); m_openRecentAction->addURL( url ); m_openRecentAction->saveEntries( kapp->config(), "RecentFiles" ); return; @@ -1386,7 +1386,7 @@ void PartController::slotDocumentDirty( Kate::Document * d, bool isModified, uns p->doc = doc; p->isModified = isModified; p->reason = reason; - KDevJobTimer::singleShot( 0, this, TQT_SLOT(slotDocumentDirtyStepTwo(void*)), p ); + TDevJobTimer::singleShot( 0, this, TQT_SLOT(slotDocumentDirtyStepTwo(void*)), p ); } } diff --git a/src/partcontroller.h b/src/partcontroller.h index 2e621c38..064c6ef6 100644 --- a/src/partcontroller.h +++ b/src/partcontroller.h @@ -1,7 +1,7 @@ #ifndef __PARTCONTROLLER_H__ #define __PARTCONTROLLER_H__ -#include "kdevpartcontroller.h" +#include "tdevpartcontroller.h" #include #include @@ -40,7 +40,7 @@ class KDirWatch; /** Part controler implementation. */ -class PartController : public KDevPartController +class PartController : public TDevPartController { Q_OBJECT @@ -51,7 +51,7 @@ public: static void createInstance(TQWidget *parent); static PartController *getInstance(); - ///// KDevPartController interface + ///// TDevPartController interface void setEncoding(const TQString &encoding); void editDocument(const KURL &inputUrl, int lineNum=-1, int col=-1); diff --git a/src/plugincontroller.cpp b/src/plugincontroller.cpp index 30aa9171..7b6410b7 100644 --- a/src/plugincontroller.cpp +++ b/src/plugincontroller.cpp @@ -19,14 +19,14 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include @@ -77,7 +77,7 @@ PluginController *PluginController::getInstance() PluginController::PluginController() - : KDevPluginController() + : TDevPluginController() { /* m_defaultProfile = TQString::fromLatin1( "FullIDE" ); m_defaultProfilePath = kapp->dirs()->localtdedir() + "/" + @@ -149,7 +149,7 @@ void PluginController::loadPlugins( TDETrader::OfferList offers, const TQStringL emit loadingPlugin(i18n("Loading: %1").arg((*it)->genericName())); - KDevPlugin *plugin = loadPlugin( *it ); + TDevPlugin *plugin = loadPlugin( *it ); if ( plugin ) { m_parts.insert( name, plugin ); @@ -160,9 +160,9 @@ void PluginController::loadPlugins( TDETrader::OfferList offers, const TQStringL void PluginController::unloadPlugins() { - for( TQDictIterator it( m_parts ); !it.isEmpty(); ) + for( TQDictIterator it( m_parts ); !it.isEmpty(); ) { - KDevPlugin* part = it.current(); + TDevPlugin* part = it.current(); removePart( part ); m_parts.remove( it.currentKey() ); delete part; @@ -180,7 +180,7 @@ void PluginController::unloadProjectPlugins( ) { TQString name = (*it)->desktopEntryName(); - if ( KDevPlugin * plugin = m_parts[ name ] ) + if ( TDevPlugin * plugin = m_parts[ name ] ) { kdDebug(9000) << " *** Removing: " << name << endl; removeAndForgetPart( name, plugin ); @@ -194,7 +194,7 @@ void PluginController::unloadPlugins( TQStringList const & unloadParts ) TQStringList::ConstIterator it = unloadParts.begin(); while ( it != unloadParts.end() ) { - KDevPlugin* part = m_parts[ *it ]; + TDevPlugin* part = m_parts[ *it ]; if( part ) { kdDebug(9000) << " *** Removing: " << *it << endl; @@ -206,11 +206,11 @@ void PluginController::unloadPlugins( TQStringList const & unloadParts ) } } -KDevPlugin *PluginController::loadPlugin( const KService::Ptr &service ) +TDevPlugin *PluginController::loadPlugin( const KService::Ptr &service ) { int err = 0; - KDevPlugin * pl = KParts::ComponentFactory - ::createInstanceFromService( service, API::getInstance(), 0, + TDevPlugin * pl = KParts::ComponentFactory + ::createInstanceFromService( service, API::getInstance(), 0, argumentsFromService( service ), &err ); if (!pl) { @@ -248,7 +248,7 @@ void PluginController::integratePart(KXMLGUIClient *part) TopLevel::getInstance()->main()->actionCollection(), TQT_SIGNAL( actionStatusText( const TQString & ) ) ); } -void PluginController::integrateAndRememberPart(const TQString &name, KDevPlugin *part) +void PluginController::integrateAndRememberPart(const TQString &name, TDevPlugin *part) { m_parts.insert(name, part); integratePart(part); @@ -260,17 +260,17 @@ void PluginController::removePart(KXMLGUIClient *part) TopLevel::getInstance()->main()->guiFactory()->removeClient(part); } -void PluginController::removeAndForgetPart(const TQString &name, KDevPlugin *part) +void PluginController::removeAndForgetPart(const TQString &name, TDevPlugin *part) { kdDebug() << "removing: " << name << endl; m_parts.remove(name); removePart(part); } -const TQValueList PluginController::loadedPlugins() +const TQValueList PluginController::loadedPlugins() { - TQValueList plugins; - TQDictIterator itt(m_parts); + TQValueList plugins; + TQDictIterator itt(m_parts); while( itt.current() ) { plugins.append( itt.current() ); @@ -279,26 +279,26 @@ const TQValueList PluginController::loadedPlugins() return plugins; } -KDevPlugin * PluginController::extension( const TQString & serviceType, const TQString & constraint ) +TDevPlugin * PluginController::extension( const TQString & serviceType, const TQString & constraint ) { - TDETrader::OfferList offers = KDevPluginController::query(serviceType, constraint); + TDETrader::OfferList offers = TDevPluginController::query(serviceType, constraint); for (TDETrader::OfferList::const_iterator it = offers.constBegin(); it != offers.end(); ++it) { - KDevPlugin *ext = m_parts[(*it)->desktopEntryName()]; + TDevPlugin *ext = m_parts[(*it)->desktopEntryName()]; if (ext) return ext; } return 0; } -KDevPlugin * PluginController::loadPlugin( const TQString & serviceType, const TQString & constraint ) +TDevPlugin * PluginController::loadPlugin( const TQString & serviceType, const TQString & constraint ) { - TDETrader::OfferList offers = KDevPluginController::query( serviceType, constraint ); + TDETrader::OfferList offers = TDevPluginController::query( serviceType, constraint ); if ( !offers.size() == 1 ) return 0; TDETrader::OfferList::const_iterator it = offers.constBegin(); TQString name = (*it)->desktopEntryName(); - KDevPlugin * plugin = 0; + TDevPlugin * plugin = 0; if ( plugin = m_parts[ name ] ) { return plugin; @@ -372,12 +372,12 @@ void PluginController::selectPlugins( ) } /* -KDevPlugin * PluginController::getPlugin( const KService::Ptr & service ) +TDevPlugin * PluginController::getPlugin( const KService::Ptr & service ) { - KDevPlugin * plugin = m_parts[ (*it)->name() ]; + TDevPlugin * plugin = m_parts[ (*it)->name() ]; if ( !plugin ) { - KDevPlugin * plugin = loadPlugin( *it ); + TDevPlugin * plugin = loadPlugin( *it ); if ( plugin ) { integratePart( plugin ); diff --git a/src/plugincontroller.h b/src/plugincontroller.h index d5c3f423..eb635bb6 100644 --- a/src/plugincontroller.h +++ b/src/plugincontroller.h @@ -6,13 +6,13 @@ #include -#include +#include #include class KXMLGUIClient; class KService; -class KDevPlugin; +class TDevPlugin; class KDialogBase; class ProjectInfo; @@ -20,7 +20,7 @@ class ProjectInfo; Plugin controller implementation. Loads and unloads plugins. */ -class PluginController : public KDevPluginController +class PluginController : public TDevPluginController { Q_OBJECT @@ -33,7 +33,7 @@ public: static TQStringList argumentsFromService( const KService::Ptr &service ); - virtual KDevPlugin * loadPlugin( const TQString & serviceType, const TQString & constraint ); + virtual TDevPlugin * loadPlugin( const TQString & serviceType, const TQString & constraint ); virtual void unloadPlugin( const TQString & plugin ); TQString currentProfile() const { return m_profile; } @@ -45,18 +45,18 @@ public: void loadGlobalPlugins( const TQStringList & ignorePlugins = TQStringList() ); - // KDevPlugin * getPlugin( const KService::Ptr &service ); + // TDevPlugin * getPlugin( const KService::Ptr &service ); - virtual KDevPlugin *extension(const TQString &serviceType, const TQString &constraint = ""); + virtual TDevPlugin *extension(const TQString &serviceType, const TQString &constraint = ""); void unloadPlugins( TQStringList const & ); void integratePart(KXMLGUIClient *part); - void integrateAndRememberPart(const TQString &name, KDevPlugin *part); + void integrateAndRememberPart(const TQString &name, TDevPlugin *part); void removePart(KXMLGUIClient* part); - void removeAndForgetPart(const TQString &name, KDevPlugin* part); + void removeAndForgetPart(const TQString &name, TDevPlugin* part); - const TQValueList loadedPlugins(); + const TQValueList loadedPlugins(); ProfileEngine &engine() { return m_engine; } @@ -82,10 +82,10 @@ private slots: void unloadPlugins(); private: - static KDevPlugin *loadPlugin( const KService::Ptr &service ); + static TDevPlugin *loadPlugin( const KService::Ptr &service ); - TQDict m_parts; + TQDict m_parts; TQString m_profile; static PluginController *s_instance; diff --git a/src/pluginselectdialog.cpp b/src/pluginselectdialog.cpp index 2f896b51..4f32a37d 100644 --- a/src/pluginselectdialog.cpp +++ b/src/pluginselectdialog.cpp @@ -18,7 +18,7 @@ #include #include -#include "kdevplugin.h" +#include "tdevplugin.h" #include "projectmanager.h" #include "plugincontroller.h" #include "pluginselectdialog.h" @@ -109,9 +109,9 @@ void PluginSelectDialog::itemSelected( TQListViewItem * item ) void PluginSelectDialog::init( ) { - const TQValueList loadedPlugins = PluginController::getInstance()->loadedPlugins(); + const TQValueList loadedPlugins = PluginController::getInstance()->loadedPlugins(); TQStringList loadedPluginDesktopNames; - TQValueList::ConstIterator it = loadedPlugins.begin(); + TQValueList::ConstIterator it = loadedPlugins.begin(); while( it != loadedPlugins.end() ) { loadedPluginDesktopNames << (*it)->instance()->instanceName(); diff --git a/src/profileengine/editor/CMakeLists.txt b/src/profileengine/editor/CMakeLists.txt index cfd7c59c..443da696 100644 --- a/src/profileengine/editor/CMakeLists.txt +++ b/src/profileengine/editor/CMakeLists.txt @@ -21,9 +21,9 @@ link_directories( ) -##### kdevprofileeditor (executable) ############ +##### tdevprofileeditor (executable) ############ -tde_add_executable( kdevprofileeditor +tde_add_executable( tdevprofileeditor SOURCES main.cpp LINK profileeditor-static profileengine-shared tdeio-shared DESTINATION ${BIN_INSTALL_DIR} diff --git a/src/profileengine/editor/Makefile.am b/src/profileengine/editor/Makefile.am index 26f69be6..fae89b48 100644 --- a/src/profileengine/editor/Makefile.am +++ b/src/profileengine/editor/Makefile.am @@ -12,11 +12,11 @@ libprofileeditor_la_SOURCES = profileeditorbase.ui profileeditor.cpp \ noinst_HEADERS = profileeditor.h -bin_PROGRAMS = kdevprofileeditor -kdevprofileeditor_LDFLAGS = $(all_libraries) -kdevprofileeditor_LDADD = \ +bin_PROGRAMS = tdevprofileeditor +tdevprofileeditor_LDFLAGS = $(all_libraries) +tdevprofileeditor_LDADD = \ $(top_builddir)/src/profileengine/lib/libprofileengine.la libprofileeditor.la \ $(LIB_TDEUI) $(LIB_TDEIO) -kdevprofileeditor_SOURCES = main.cpp +tdevprofileeditor_SOURCES = main.cpp diff --git a/src/profileengine/editor/main.cpp b/src/profileengine/editor/main.cpp index 46d128f3..68e942d7 100644 --- a/src/profileengine/editor/main.cpp +++ b/src/profileengine/editor/main.cpp @@ -30,7 +30,7 @@ static TDECmdLineOptions options[] = int main(int argc, char **argv) { - TDEAboutData about("kdevprofileeditor", I18N_NOOP("TDevelop Profile Editor"), "1", "", + TDEAboutData about("tdevprofileeditor", I18N_NOOP("TDevelop Profile Editor"), "1", "", TDEAboutData::License_GPL, I18N_NOOP("(c) 2004, The KDevelop Developers"), 0, 0, ""); about.addAuthor("Alexander Dymo", 0, "adymo@kdevelop.org"); TDECmdLineArgs::init(argc, argv, &about); diff --git a/src/profileengine/lib/Makefile.am b/src/profileengine/lib/Makefile.am index 08b6e7ad..66b1f159 100644 --- a/src/profileengine/lib/Makefile.am +++ b/src/profileengine/lib/Makefile.am @@ -10,7 +10,7 @@ libprofileengine_la_SOURCES = profileengine.cpp profile.cpp profileincludedir = $(includedir)/tdevelop/shell/profileengine profileinclude_HEADERS = profileengine.h profile.h -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevutil kdevinterfaces -DOXYGEN_PROJECTNAME = KDevelop Shell Profiles Library -DOXYGEN_DOCDIRPREFIX = kdevprofiles +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevutil tdevinterfaces +DOXYGEN_PROJECTNAME = TDevelop Shell Profiles Library +DOXYGEN_DOCDIRPREFIX = tdevprofiles include ../../../Doxyfile.am diff --git a/src/profileengine/lib/profileengine.cpp b/src/profileengine/lib/profileengine.cpp index fd4d06fa..8678732e 100644 --- a/src/profileengine/lib/profileengine.cpp +++ b/src/profileengine/lib/profileengine.cpp @@ -25,7 +25,7 @@ #include #include -#include +#include ProfileEngine::ProfileEngine() { diff --git a/src/profileengine/lib/profileengine.h b/src/profileengine/lib/profileengine.h index 36d85697..d630f576 100644 --- a/src/profileengine/lib/profileengine.h +++ b/src/profileengine/lib/profileengine.h @@ -61,27 +61,27 @@ public: /** Profile engine. -- Uses KDevelop profiles to form lists of plugin offers; +- Uses TDevelop profiles to form lists of plugin offers; - Provides means of managing profiles; - Provides means to access the resources provided by a profile. -KDevelop profiles form a tree with a root profile named "KDevelop". +TDevelop profiles form a tree with a root profile named "TDevelop". For example, such profiles tree can look as: @code -KDevelop +TDevelop - IDE - CompiledLanguageIDE - AdaIDE - CandCppIDE - CIDE - CppIDE - - KDECppIDE + - TDECppIDE - FortranIDE ... - DatabaseIDE - ScriptingLanguageIDE .. -- KDevAssistant +- TDevAssistant @endcode To manage a tree of profiles, use @ref ProfileEngine::walkProfiles methods. */ @@ -92,7 +92,7 @@ public: /**Type of the plugin offer. Engine will usually find profiles and return offers of selected type. - @sa KDevPlugin class documentation for more information of plugin types.*/ + @sa TDevPlugin class documentation for more information of plugin types.*/ enum OfferType { Global /**= 2 -# -################################################# - -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE ) diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/Makefile.am b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/Makefile.am deleted file mode 100644 index 5e5e943e..00000000 --- a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -profilesdir = $(kde_datadir)/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE -profiles_DATA = profile.config - diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/profile.config b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/profile.config deleted file mode 100644 index b5b45c4c..00000000 --- a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/KDECppIDE/profile.config +++ /dev/null @@ -1,12 +0,0 @@ -[Disable] -List= - -[Enable] -List= - -[Information] -Description=C++ IDE for KDE profile -GenericName=C++ IDE for KDE - -[Properties] -List=KDEDevelopment diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/Makefile.am b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/Makefile.am index 79978385..fc781b15 100644 --- a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/Makefile.am +++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/Makefile.am @@ -1,3 +1,3 @@ profilesdir = $(kde_datadir)/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE profiles_DATA = profile.config -SUBDIRS = KDECppIDE +SUBDIRS = TDECppIDE diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/CMakeLists.txt b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/CMakeLists.txt new file mode 100644 index 00000000..a364b7a9 --- /dev/null +++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES + profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE ) diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/Makefile.am b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/Makefile.am new file mode 100644 index 00000000..9368caac --- /dev/null +++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/Makefile.am @@ -0,0 +1,3 @@ +profilesdir = $(kde_datadir)/tdevelop/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE +profiles_DATA = profile.config + diff --git a/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/profile.config b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/profile.config new file mode 100644 index 00000000..b5b45c4c --- /dev/null +++ b/src/profiles/IDE/CompiledLanguageIDE/CandCppIDE/CppIDE/TDECppIDE/profile.config @@ -0,0 +1,12 @@ +[Disable] +List= + +[Enable] +List= + +[Information] +Description=C++ IDE for KDE profile +GenericName=C++ IDE for KDE + +[Properties] +List=KDEDevelopment diff --git a/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/profile.config b/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/profile.config index 5e58c161..99a52802 100644 --- a/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/profile.config +++ b/src/profiles/IDE/ScriptingLanguageIDE/RubyIDE/profile.config @@ -1,5 +1,5 @@ [Disable] -List=kdevfilelist,kdevsnippet,kdevvalgrind,kdevastyle,kdevctags2,kdevsecurity,kdevregexptest +List=tdevfilelist,kdevsnippet,kdevvalgrind,kdevastyle,kdevctags2,kdevsecurity,kdevregexptest [Enable] List= diff --git a/src/profiles/KDevAssistant/CMakeLists.txt b/src/profiles/KDevAssistant/CMakeLists.txt deleted file mode 100644 index 1f22e2e7..00000000 --- a/src/profiles/KDevAssistant/CMakeLists.txt +++ /dev/null @@ -1,14 +0,0 @@ -################################################# -# -# (C) 2010-2011 Serghei Amelian -# serghei (DOT) amelian (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - profile.config - DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/KDevAssistant ) diff --git a/src/profiles/KDevAssistant/Makefile.am b/src/profiles/KDevAssistant/Makefile.am deleted file mode 100644 index dda1dd47..00000000 --- a/src/profiles/KDevAssistant/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -profilesdir = $(kde_datadir)/tdevelop/profiles/KDevAssistant -profiles_DATA = profile.config - diff --git a/src/profiles/KDevAssistant/profile.config b/src/profiles/KDevAssistant/profile.config deleted file mode 100644 index 46edc970..00000000 --- a/src/profiles/KDevAssistant/profile.config +++ /dev/null @@ -1,12 +0,0 @@ -[Disable] -List= - -[Enable] -List= - -[Information] -Description=TDevelop Assistant profile -GenericName=TDevelop Assistant - -[Properties] -List=GlobalFileManagement,Documentation,UISwitching,ViewManagement diff --git a/src/profiles/Makefile.am b/src/profiles/Makefile.am index 3e0a706a..34789723 100644 --- a/src/profiles/Makefile.am +++ b/src/profiles/Makefile.am @@ -1,3 +1,3 @@ profilesdir = $(kde_datadir)/tdevelop/profiles profiles_DATA = profile.config -SUBDIRS = IDE KDevAssistant +SUBDIRS = IDE TDevAssistant diff --git a/src/profiles/TDevAssistant/CMakeLists.txt b/src/profiles/TDevAssistant/CMakeLists.txt new file mode 100644 index 00000000..c6f5900f --- /dev/null +++ b/src/profiles/TDevAssistant/CMakeLists.txt @@ -0,0 +1,14 @@ +################################################# +# +# (C) 2010-2011 Serghei Amelian +# serghei (DOT) amelian (AT) gmail.com +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +install( FILES + profile.config + DESTINATION ${DATA_INSTALL_DIR}/tdevelop/profiles/TDevAssistant ) diff --git a/src/profiles/TDevAssistant/Makefile.am b/src/profiles/TDevAssistant/Makefile.am new file mode 100644 index 00000000..39590a36 --- /dev/null +++ b/src/profiles/TDevAssistant/Makefile.am @@ -0,0 +1,3 @@ +profilesdir = $(kde_datadir)/tdevelop/profiles/TDevAssistant +profiles_DATA = profile.config + diff --git a/src/profiles/TDevAssistant/profile.config b/src/profiles/TDevAssistant/profile.config new file mode 100644 index 00000000..46edc970 --- /dev/null +++ b/src/profiles/TDevAssistant/profile.config @@ -0,0 +1,12 @@ +[Disable] +List= + +[Enable] +List= + +[Information] +Description=TDevelop Assistant profile +GenericName=TDevelop Assistant + +[Properties] +List=GlobalFileManagement,Documentation,UISwitching,ViewManagement diff --git a/src/projectmanager.cpp b/src/projectmanager.cpp index c0380ffb..3ced0d63 100644 --- a/src/projectmanager.cpp +++ b/src/projectmanager.cpp @@ -30,11 +30,11 @@ class TQDomDocument; #include #include -#include "kdevproject.h" -#include "kdevlanguagesupport.h" -#include "kdevplugin.h" -#include "kdevcreatefile.h" -#include "kdevversioncontrol.h" +#include "tdevproject.h" +#include "tdevlanguagesupport.h" +#include "tdevplugin.h" +#include "tdevcreatefile.h" +#include "tdevversioncontrol.h" #include "toplevel.h" @@ -97,7 +97,7 @@ void ProjectManager::createActions( TDEActionCollection* ac ) this, TQT_SLOT(slotOpenProject()), ac, "project_open"); action->setToolTip( i18n("Open project")); - action->setWhatsThis(i18n("Open project

Opens a KDevelop3 or KDevelop2 project.")); + action->setWhatsThis(i18n("Open project

Opens a KDevelop3 or TDevelop2 project.")); m_openRecentProjectAction = new TDERecentFilesAction(i18n("Open &Recent Project"), 0, @@ -137,8 +137,8 @@ void ProjectManager::slotOpenProject() if( url.isEmpty() ) return; - if (url.path().endsWith("kdevprj")) - loadKDevelop2Project( url ); + if (url.path().endsWith("tdevprj")) + loadTDevelop2Project( url ); else loadProject( url ); } @@ -490,8 +490,8 @@ bool ProjectManager::loadProjectPart() return false; } - KDevProject *projectPart = KParts::ComponentFactory - ::createInstanceFromService< KDevProject >( projectService, API::getInstance(), 0, + TDevProject *projectPart = KParts::ComponentFactory + ::createInstanceFromService< TDevProject >( projectService, API::getInstance(), 0, PluginController::argumentsFromService( projectService ) ); if ( !projectPart ) { KMessageBox::sorry(TopLevel::getInstance()->main(), @@ -517,7 +517,7 @@ bool ProjectManager::loadProjectPart() void ProjectManager::unloadProjectPart() { - KDevProject *projectPart = API::getInstance()->project(); + TDevProject *projectPart = API::getInstance()->project(); if( !projectPart ) return; PluginController::getInstance()->removePart( projectPart ); projectPart->closeProject(); @@ -547,8 +547,8 @@ bool ProjectManager::loadLanguageSupport(const TQString& lang) } KService::Ptr languageSupportService = *languageSupportOffers.begin(); - KDevLanguageSupport *langSupport = KParts::ComponentFactory - ::createInstanceFromService( languageSupportService, + TDevLanguageSupport *langSupport = KParts::ComponentFactory + ::createInstanceFromService( languageSupportService, API::getInstance(), 0, PluginController::argumentsFromService( languageSupportService ) ); @@ -569,7 +569,7 @@ bool ProjectManager::loadLanguageSupport(const TQString& lang) void ProjectManager::unloadLanguageSupport() { - KDevLanguageSupport *langSupport = API::getInstance()->languageSupport(); + TDevLanguageSupport *langSupport = API::getInstance()->languageSupport(); if( !langSupport ) return; kdDebug(9000) << "Language support for " << langSupport->name() << " unloading..." << endl; PluginController::getInstance()->removePart( langSupport ); @@ -611,14 +611,14 @@ ProjectSession* ProjectManager::projectSession() const return m_pProjectSession; } -bool ProjectManager::loadKDevelop2Project( const KURL & url ) +bool ProjectManager::loadTDevelop2Project( const KURL & url ) { if( !url.isValid() || !url.isLocalFile() ){ KMessageBox::sorry(0, i18n("Invalid URL.")); return false; } - TQString cmd = TDEGlobal::dirs()->findExe( "kdevprj2tdevelop" ); + TQString cmd = TDEGlobal::dirs()->findExe( "tdevprj2tdevelop" ); if (cmd.isEmpty()) { KMessageBox::sorry(0, i18n("You do not have 'kdevprj2tdevelop' installed.")); return false; diff --git a/src/projectmanager.h b/src/projectmanager.h index 3a92409e..3c1b3599 100644 --- a/src/projectmanager.h +++ b/src/projectmanager.h @@ -17,7 +17,7 @@ class KService; class ProjectInfo; class ProjectSession; class TDERecentFilesAction; -class KDevPlugin; +class TDevPlugin; class ProjectInfo @@ -65,7 +65,7 @@ public: public slots: bool loadProject( const KURL& url); - bool loadKDevelop2Project( const KURL& url); + bool loadTDevelop2Project( const KURL& url); bool closeProject( bool exiting = false ); private slots: @@ -102,7 +102,7 @@ private: ProjectSession* m_pProjectSession; - KDevPlugin *m_vcsPlugin; + TDevPlugin *m_vcsPlugin; TQString m_vcsName; TQString m_oldProfileName; diff --git a/src/projectprofiles b/src/projectprofiles index d2224272..b86f9b25 100644 --- a/src/projectprofiles +++ b/src/projectprofiles @@ -8,8 +8,8 @@ Profiles=ShellIDE Profiles=CIDE [C++] -Keywords=Empty,KDE -Profiles=CppIDE,KDECppIDE +Keywords=Empty,TDE +Profiles=CppIDE,TDECppIDE [Fortran77] Profiles=FortranIDE diff --git a/src/projectsession.cpp b/src/projectsession.cpp index afdaf0b5..1b8173fc 100644 --- a/src/projectsession.cpp +++ b/src/projectsession.cpp @@ -34,7 +34,7 @@ #include "domutil.h" #include "documentationpart.h" #include "toplevel.h" -#include "kdevplugin.h" +#include "tdevplugin.h" #include "projectsession.h" #include "projectsession.moc" @@ -68,7 +68,7 @@ void ProjectSession::initXMLTree() } //--------------------------------------------------------------------------- -bool ProjectSession::restoreFromFile( const TQString & sessionFileName, const TQValueList< KDevPlugin * > plugins ) +bool ProjectSession::restoreFromFile( const TQString & sessionFileName, const TQValueList< TDevPlugin * > plugins ) { bool bFileOpenOK = true; @@ -105,10 +105,10 @@ bool ProjectSession::restoreFromFile( const TQString & sessionFileName, const TQ // now also let the plugins load their session stuff TQDomElement pluginListEl = session.namedItem("pluginList").toElement(); - TQValueList::ConstIterator it = plugins.begin(); + TQValueList::ConstIterator it = plugins.begin(); while( it != plugins.end() ) { - KDevPlugin* pPlugin = (*it); + TDevPlugin* pPlugin = (*it); TQString pluginName = pPlugin->instance()->instanceName(); TQDomElement pluginEl = pluginListEl.namedItem(pluginName).toElement(); if (!pluginEl.isNull()) { @@ -230,7 +230,7 @@ void ProjectSession::recreateViews(KURL& url, TQDomElement docEl, bool activate) } //--------------------------------------------------------------------------- -bool ProjectSession::saveToFile( const TQString & sessionFileName, const TQValueList< KDevPlugin * > plugins ) +bool ProjectSession::saveToFile( const TQString & sessionFileName, const TQValueList< TDevPlugin * > plugins ) { TQString section, keyword; TQDomElement session = domdoc.documentElement(); @@ -390,10 +390,10 @@ bool ProjectSession::saveToFile( const TQString & sessionFileName, const TQValue } } - TQValueList::ConstIterator itt = plugins.begin(); + TQValueList::ConstIterator itt = plugins.begin(); while( itt != plugins.end() ) { - KDevPlugin* pPlugin = (*itt); + TDevPlugin* pPlugin = (*itt); TQString pluginName = pPlugin->instance()->instanceName(); TQDomElement pluginEl = domdoc.createElement(pluginName); diff --git a/src/projectsession.h b/src/projectsession.h index e386bdbc..64101496 100644 --- a/src/projectsession.h +++ b/src/projectsession.h @@ -24,7 +24,7 @@ class TQWidget; class KURL; -class KDevPlugin; +class TDevPlugin; /** * This class stores and restores the last situation before the certain project @@ -42,10 +42,10 @@ public: virtual ~ProjectSession(); /** Opens the .kdevses file and saves the project session in XML format to it. */ - bool saveToFile(const TQString& fileName, const TQValueList plugins ); + bool saveToFile(const TQString& fileName, const TQValueList plugins ); /** Opens the .kdevses file and loads the project session from it. */ - bool restoreFromFile(const TQString& fileName, const TQValueList plugins ); + bool restoreFromFile(const TQString& fileName, const TQValueList plugins ); signals: void sig_restoreMainWindowProperties(const TQDomElement* el); diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp index 3c9db000..f82f4882 100644 --- a/src/simplemainwindow.cpp +++ b/src/simplemainwindow.cpp @@ -41,7 +41,7 @@ #include #include #include -#include +#include #include #include "api.h" @@ -81,7 +81,7 @@ void SimpleMainWindow::init() createFramework(); createActions(); - new KDevStatusBar(this); + new TDevStatusBar(this); setAcceptDrops(true); @@ -466,7 +466,7 @@ void SimpleMainWindow::createActions() void SimpleMainWindow::raiseEditor() { kdDebug() << "SimpleMainWindow::raiseEditor" << endl; - KDevPartController *partcontroller = API::getInstance()->partController(); + TDevPartController *partcontroller = API::getInstance()->partController(); if (partcontroller->activePart() && partcontroller->activePart()->widget()) partcontroller->activePart()->widget()->setFocus(); } @@ -983,7 +983,7 @@ void SimpleMainWindow::setCaption(const TQString &caption) modified = ( state == Modified || state == DirtyAndModified ); } - KDevProject *project = API::getInstance()->project(); + TDevProject *project = API::getInstance()->project(); if (project) { TQString projectname = project->projectName(); diff --git a/src/simplemainwindow.h b/src/simplemainwindow.h index 7dbf5695..1f80119f 100644 --- a/src/simplemainwindow.h +++ b/src/simplemainwindow.h @@ -21,9 +21,9 @@ #define SIMPLEMAINWINDOW_H #include -#include -#include -#include +#include +#include +#include class TDEAction; class TQPopupMenu; @@ -34,7 +34,7 @@ namespace KParts { class ReadOnlyPart; } -class SimpleMainWindow: public DMainWindow, public KDevMainWindow { +class SimpleMainWindow: public DMainWindow, public TDevMainWindow { Q_OBJECT public: diff --git a/src/splashscreen.cpp b/src/splashscreen.cpp index 205656bd..446705b8 100644 --- a/src/splashscreen.cpp +++ b/src/splashscreen.cpp @@ -10,7 +10,7 @@ #include #include -KDevSplashScreen::KDevSplashScreen(const TQPixmap& pixmap, WFlags f) : TQSplashScreen(pixmap, f) +TDevSplashScreen::TDevSplashScreen(const TQPixmap& pixmap, WFlags f) : TQSplashScreen(pixmap, f) { TQTimer *timer = new TQTimer( this ); TQObject::connect(timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(animate())); @@ -21,19 +21,19 @@ KDevSplashScreen::KDevSplashScreen(const TQPixmap& pixmap, WFlags f) : TQSplashS } -KDevSplashScreen::~KDevSplashScreen() +TDevSplashScreen::~TDevSplashScreen() { } -void KDevSplashScreen::animate() +void TDevSplashScreen::animate() { state = ((state + 1) % (2*progress_bar_size-1)); repaint(); } -void KDevSplashScreen::message( const TQString &str, int flags, const TQColor &color) +void TDevSplashScreen::message( const TQString &str, int flags, const TQColor &color) { TQSplashScreen::message(str,flags,color); animate(); @@ -41,7 +41,7 @@ void KDevSplashScreen::message( const TQString &str, int flags, const TQColor &c } -void KDevSplashScreen::drawContents (TQPainter* painter) +void TDevSplashScreen::drawContents (TQPainter* painter) { int position; TQColor base_color (201,229,165); // Base green color diff --git a/src/splashscreen.h b/src/splashscreen.h index b8d5563c..11a329bc 100644 --- a/src/splashscreen.h +++ b/src/splashscreen.h @@ -11,14 +11,14 @@ class TQPixmap; /** Splash screen. */ -class KDevSplashScreen : public TQSplashScreen +class TDevSplashScreen : public TQSplashScreen { Q_OBJECT public: - KDevSplashScreen(const TQPixmap& pixmap, WFlags f = 0); - virtual ~KDevSplashScreen(); + TDevSplashScreen(const TQPixmap& pixmap, WFlags f = 0); + virtual ~TDevSplashScreen(); protected: void drawContents (TQPainter * painter); diff --git a/src/statusbar.cpp b/src/statusbar.cpp index b4e11769..e1f8f3b5 100644 --- a/src/statusbar.cpp +++ b/src/statusbar.cpp @@ -27,7 +27,7 @@ #include "statusbar.h" #include "partcontroller.h" -KDevStatusBar::KDevStatusBar(TQWidget *parent, const char *name) +TDevStatusBar::TDevStatusBar(TQWidget *parent, const char *name) : KStatusBar(parent, name), _cursorIface(0), _activePart(0) { TQWidget * w = new TQWidget( this ); @@ -44,10 +44,10 @@ KDevStatusBar::KDevStatusBar(TQWidget *parent, const char *name) } -KDevStatusBar::~KDevStatusBar() +TDevStatusBar::~TDevStatusBar() {} -void KDevStatusBar::activePartChanged(KParts::Part *part) +void TDevStatusBar::activePartChanged(KParts::Part *part) { if ( _activePart && _activePart->widget() ) disconnect( _activePart->widget(), 0, this, 0 ); @@ -80,7 +80,7 @@ void KDevStatusBar::activePartChanged(KParts::Part *part) } } -void KDevStatusBar::cursorPositionChanged() +void TDevStatusBar::cursorPositionChanged() { if (_cursorIface) { @@ -90,18 +90,18 @@ void KDevStatusBar::cursorPositionChanged() } } -void KDevStatusBar::setStatus(const TQString &str) +void TDevStatusBar::setStatus(const TQString &str) { _status->setText(str); } -void KDevStatusBar::setCursorPosition(int line, int col) +void TDevStatusBar::setCursorPosition(int line, int col) { _status->setText(i18n(" Line: %1 Col: %2 ").arg(line+1).arg(col)); } -void KDevStatusBar::addWidget ( TQWidget *widget, int stretch, bool permanent) +void TDevStatusBar::addWidget ( TQWidget *widget, int stretch, bool permanent) { KStatusBar::addWidget(widget,stretch,permanent); diff --git a/src/statusbar.h b/src/statusbar.h index 2f5370ef..09f1af97 100644 --- a/src/statusbar.h +++ b/src/statusbar.h @@ -24,14 +24,14 @@ namespace KParts { class Part; } /** Status bar. */ -class KDevStatusBar : public KStatusBar +class TDevStatusBar : public KStatusBar { Q_OBJECT public: - KDevStatusBar( TQWidget *parent=0, const char *name=0 ); - ~KDevStatusBar(); + TDevStatusBar( TQWidget *parent=0, const char *name=0 ); + ~TDevStatusBar(); void addWidget ( TQWidget *widget, int stretch = 0, bool permanent = FALSE ); private slots: diff --git a/src/tdeconf_update/CMakeLists.txt b/src/tdeconf_update/CMakeLists.txt index 4b605615..8eb5c732 100644 --- a/src/tdeconf_update/CMakeLists.txt +++ b/src/tdeconf_update/CMakeLists.txt @@ -20,13 +20,13 @@ link_directories( ##### other data ################################ -install( FILES kdev-gen-settings.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) +install( FILES tdev-gen-settings.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) -##### kdev-gen-settings-tdeconf_update (executable) +##### tdev-gen-settings-tdeconf_update (executable) -tde_add_executable( kdev-gen-settings-tdeconf_update - SOURCES kdev-gen-settings-tdeconf_update.cpp +tde_add_executable( tdev-gen-settings-tdeconf_update + SOURCES tdev-gen-settings-tdeconf_update.cpp LINK ${TQT_LIBRARIES} DESTINATION ${LIB_INSTALL_DIR}/tdeconf_update_bin ) diff --git a/src/tdeconf_update/Makefile.am b/src/tdeconf_update/Makefile.am index f806baa2..4cf2dab5 100644 --- a/src/tdeconf_update/Makefile.am +++ b/src/tdeconf_update/Makefile.am @@ -1,18 +1,18 @@ AM_CPPFLAGS = -DKDE_NO_COMPAT -DQT_NO_COMPAT $(all_includes) -update_DATA = kdev-gen-settings.upd +update_DATA = tdev-gen-settings.upd updatedir = $(kde_datadir)/tdeconf_update # The Qt app cannot go into kde_datadir, that is not portable. # install to kde_bindir/tdeconf_update_bin instead. # KDE 3.2 will allow tdeconf_update scripts to run directly from there, # but for us that's too late. Use the .sh script as a workaround. -tdeconf_PROGRAMS = kdev-gen-settings-tdeconf_update +tdeconf_PROGRAMS = tdev-gen-settings-tdeconf_update tdeconfdir = $(libdir)/tdeconf_update_bin -kdev_gen_settings_tdeconf_update_SOURCES = kdev-gen-settings-tdeconf_update.cpp -kdev_gen_settings_tdeconf_update_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor -kdev_gen_settings_tdeconf_update_LDADD = $(LIB_QT) +tdev_gen_settings_tdeconf_update_SOURCES = tdev-gen-settings-tdeconf_update.cpp +tdev_gen_settings_tdeconf_update_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(LIB_QT) -lDCOP $(LIB_TDECORE) $(LIB_TDEUI) -ltdefx $(LIB_TDEIO) -ltdetexteditor +tdev_gen_settings_tdeconf_update_LDADD = $(LIB_QT) # vim: set noet: diff --git a/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp b/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp deleted file mode 100644 index 63e4a834..00000000 --- a/src/tdeconf_update/kdev-gen-settings-tdeconf_update.cpp +++ /dev/null @@ -1,113 +0,0 @@ -/* - tdeconf_update app for migrating tdevelop's ui settings to the new - code that will be in 3.3. - - Copyright (c) 2005 by Matt Rogers - Based on code Copyright (c) 2003 by Martijn Klingens - - ************************************************************************* - * * - * This program is free software; you can redistribute it and/or * - * modify it under the terms of the GNU Lesser General Public * - * License as published by the Free Software Foundation; either * - * version 2 of the License, or (at your option) any later version. * - * * - ************************************************************************* -*/ - -#include -#include -#include - -static TQTextStream qcin ( stdin, IO_ReadOnly ); -static TQTextStream qcout( stdout, IO_WriteOnly ); -static TQTextStream qcerr( stderr, IO_WriteOnly ); - -// Group cache. Yes, I know global vars are ugly :) -bool needFlush = false; -TQString newKeyValue; -int newDataValue; - -void parseKey( const TQString &group, const TQString &key, - const TQString &value, const TQString &rawLine ) -{ - - //qcerr << "*** group='" << group << "'" << endl; - if ( group == "General Options" && key == "Embed KDevDesigner") - { - newKeyValue = "Designer App"; - if ( value.lower() == "true" ) - newDataValue = 0; - else - newDataValue = 2; - qcout << newKeyValue << "=" << newDataValue << endl; - qcout << "# DELETE [" << key << "]" << endl; - - } - else if ( group == "General Options" && key == "Application Font" ) - { - newKeyValue = "OutputViewFont"; - qcout << newKeyValue << "=" << value << endl; - qcout << "# DELETE [" << key << "]" << endl; - } - else if ( group == "MakeOutputView" && key == "Messages Font" ) - { - qcout << "# DELETE [" << key << "]" << endl; - } - else if ( group == "TerminalEmulator" && key == "UseKDESetting" ) - { - newKeyValue = "UseKDESetting"; - if ( value.lower() == "true" ) - newDataValue = 0; - else - newDataValue = 1; - qcout << newKeyValue << "=" << newDataValue << endl; - } - else - { - // keys we don't convert. output the raw line instead. - qcout << rawLine << endl; - } -} - -int main() -{ - qcin.setEncoding( TQTextStream::UnicodeUTF8 ); - qcout.setEncoding( TQTextStream::UnicodeUTF8 ); - - TQString curGroup; - - TQRegExp groupRegExp( "^\\[(.*)\\]" ); - TQRegExp keyRegExp( "^([a-zA-Z0-9:, _-]*)\\s*=\\s*(.*)\\s*" ); - TQRegExp commentRegExp( "^(#.*)?$" ); - - while ( !qcin.atEnd() ) - { - TQString line = qcin.readLine(); - - if ( commentRegExp.exactMatch( line ) ) - { - // We found a comment, leave unchanged - qcout << line << endl; - } - else if ( groupRegExp.exactMatch( line ) ) - { - curGroup = groupRegExp.capturedTexts()[ 1 ]; - qcout << line << endl; - } - else if ( keyRegExp.exactMatch( line ) ) - { - // We found the a key line - parseKey( curGroup, keyRegExp.capturedTexts()[ 1 ], keyRegExp.capturedTexts()[ 2 ], line ); - } - else - { - qcout << line << endl; - } - } - - return 0; -} - -// vim: set noet ts=4 sts=4 sw=4: - diff --git a/src/tdeconf_update/kdev-gen-settings.upd b/src/tdeconf_update/kdev-gen-settings.upd deleted file mode 100644 index 1fd3803f..00000000 --- a/src/tdeconf_update/kdev-gen-settings.upd +++ /dev/null @@ -1,8 +0,0 @@ -#Update the KDevelop General Settings page to work with the -#new UI file created on 20050406 -Id=kdev-gen-settings-update/5 -File=tdeveloprc -Script=kdev-gen-settings-tdeconf_update -Options=overwrite -AllKeys - diff --git a/src/tdeconf_update/tdev-gen-settings-tdeconf_update.cpp b/src/tdeconf_update/tdev-gen-settings-tdeconf_update.cpp new file mode 100644 index 00000000..ae20ae57 --- /dev/null +++ b/src/tdeconf_update/tdev-gen-settings-tdeconf_update.cpp @@ -0,0 +1,113 @@ +/* + tdeconf_update app for migrating tdevelop's ui settings to the new + code that will be in 3.3. + + Copyright (c) 2005 by Matt Rogers + Based on code Copyright (c) 2003 by Martijn Klingens + + ************************************************************************* + * * + * This program is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Lesser General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + ************************************************************************* +*/ + +#include +#include +#include + +static TQTextStream qcin ( stdin, IO_ReadOnly ); +static TQTextStream qcout( stdout, IO_WriteOnly ); +static TQTextStream qcerr( stderr, IO_WriteOnly ); + +// Group cache. Yes, I know global vars are ugly :) +bool needFlush = false; +TQString newKeyValue; +int newDataValue; + +void parseKey( const TQString &group, const TQString &key, + const TQString &value, const TQString &rawLine ) +{ + + //qcerr << "*** group='" << group << "'" << endl; + if ( group == "General Options" && key == "Embed TDevDesigner") + { + newKeyValue = "Designer App"; + if ( value.lower() == "true" ) + newDataValue = 0; + else + newDataValue = 2; + qcout << newKeyValue << "=" << newDataValue << endl; + qcout << "# DELETE [" << key << "]" << endl; + + } + else if ( group == "General Options" && key == "Application Font" ) + { + newKeyValue = "OutputViewFont"; + qcout << newKeyValue << "=" << value << endl; + qcout << "# DELETE [" << key << "]" << endl; + } + else if ( group == "MakeOutputView" && key == "Messages Font" ) + { + qcout << "# DELETE [" << key << "]" << endl; + } + else if ( group == "TerminalEmulator" && key == "UseKDESetting" ) + { + newKeyValue = "UseKDESetting"; + if ( value.lower() == "true" ) + newDataValue = 0; + else + newDataValue = 1; + qcout << newKeyValue << "=" << newDataValue << endl; + } + else + { + // keys we don't convert. output the raw line instead. + qcout << rawLine << endl; + } +} + +int main() +{ + qcin.setEncoding( TQTextStream::UnicodeUTF8 ); + qcout.setEncoding( TQTextStream::UnicodeUTF8 ); + + TQString curGroup; + + TQRegExp groupRegExp( "^\\[(.*)\\]" ); + TQRegExp keyRegExp( "^([a-zA-Z0-9:, _-]*)\\s*=\\s*(.*)\\s*" ); + TQRegExp commentRegExp( "^(#.*)?$" ); + + while ( !qcin.atEnd() ) + { + TQString line = qcin.readLine(); + + if ( commentRegExp.exactMatch( line ) ) + { + // We found a comment, leave unchanged + qcout << line << endl; + } + else if ( groupRegExp.exactMatch( line ) ) + { + curGroup = groupRegExp.capturedTexts()[ 1 ]; + qcout << line << endl; + } + else if ( keyRegExp.exactMatch( line ) ) + { + // We found the a key line + parseKey( curGroup, keyRegExp.capturedTexts()[ 1 ], keyRegExp.capturedTexts()[ 2 ], line ); + } + else + { + qcout << line << endl; + } + } + + return 0; +} + +// vim: set noet ts=4 sts=4 sw=4: + diff --git a/src/tdeconf_update/tdev-gen-settings.upd b/src/tdeconf_update/tdev-gen-settings.upd new file mode 100644 index 00000000..1fd3803f --- /dev/null +++ b/src/tdeconf_update/tdev-gen-settings.upd @@ -0,0 +1,8 @@ +#Update the KDevelop General Settings page to work with the +#new UI file created on 20050406 +Id=kdev-gen-settings-update/5 +File=tdeveloprc +Script=kdev-gen-settings-tdeconf_update +Options=overwrite +AllKeys + diff --git a/src/tdevassistantextension.cpp b/src/tdevassistantextension.cpp new file mode 100644 index 00000000..f53d2bc3 --- /dev/null +++ b/src/tdevassistantextension.cpp @@ -0,0 +1,40 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#include "tdevassistantextension.h" + +TDevAssistantExtension::TDevAssistantExtension() + : ShellExtension() +{ +} + +void TDevAssistantExtension::init() +{ + s_instance = new TDevAssistantExtension(); +} + +TQString TDevAssistantExtension::xmlFile() +{ + return "tdevassistantui.rc"; +} + +TQString TDevAssistantExtension::defaultProfile() +{ + return "TDevAssistant"; +} diff --git a/src/tdevassistantextension.h b/src/tdevassistantextension.h new file mode 100644 index 00000000..a53d9dbd --- /dev/null +++ b/src/tdevassistantextension.h @@ -0,0 +1,41 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef TDEVASSISTANTEXTENSION_H +#define TDEVASSISTANTEXTENSION_H + +#include "shellextension.h" + +class TDevAssistantExtension : public ShellExtension { +public: + static void init(); + + virtual void createGlobalSettingsPage(KDialogBase */*dlg*/) {}; + virtual void acceptGlobalSettingsPage(KDialogBase */*dlg*/) {}; + + virtual TQString xmlFile(); + + virtual TQString defaultProfile(); + +protected: + TDevAssistantExtension(); + +}; + +#endif diff --git a/src/tdevassistantrc b/src/tdevassistantrc new file mode 100644 index 00000000..eaab6fc6 --- /dev/null +++ b/src/tdevassistantrc @@ -0,0 +1,14 @@ +[RightToolWindow] +LastWidget=Documentation +Width=254 + +[UI] +CloseOnHover=false +CloseOnHoverDelay=false +MDIMode=4 +MDIStyle=1 +OpenNewTabAfterCurrent=true +ShowCloseTabsButton=true +ShowTabIcons=true +TabWidgetVisibility=0 +UseSimpleMainWindow=true diff --git a/src/tdevassistantui.rc b/src/tdevassistantui.rc new file mode 100644 index 00000000..39171359 --- /dev/null +++ b/src/tdevassistantui.rc @@ -0,0 +1,168 @@ + + + +

&File + + + + + + + + + + + + + + + + + + + + + + + + + + &View + + + + + + + + + + + + + + &Settings + + + + + + + + + + + + + + + + + + + + &Window + + + + + + + + + + + + + + + &Help + + + + + + Main Toolbar + + + + + + + + + + + + + + + + + Browser Toolbar + + + + + + + + + + + + + + + + diff --git a/src/tdevideextension.cpp b/src/tdevideextension.cpp new file mode 100644 index 00000000..a6b62e12 --- /dev/null +++ b/src/tdevideextension.cpp @@ -0,0 +1,129 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#include "tdevideextension.h" + +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "api.h" +#include "settingswidget.h" + +TDevIDEExtension::TDevIDEExtension() + : ShellExtension() +{ +} + +void TDevIDEExtension::init() +{ + s_instance = new TDevIDEExtension(); +} + +void TDevIDEExtension::createGlobalSettingsPage(KDialogBase *dlg) +{ + TDEConfig* config = kapp->config(); + TQVBox *vbox = dlg->addVBoxPage(i18n("General"), i18n("General"), BarIcon("tdevelop", TDEIcon::SizeMedium) ); + gsw = new SettingsWidget(vbox, "general settings widget"); + + gsw->projectsURL->setMode((int)KFile::Directory); + + config->setGroup("General Options"); + gsw->lastProjectCheckbox->setChecked(config->readBoolEntry("Read Last Project On Startup",true)); + gsw->outputFont->setFont( config->readFontEntry( "OutputViewFont" ) ); + config->setGroup("MakeOutputView"); + gsw->lineWrappingCheckBox->setChecked(config->readBoolEntry("LineWrapping",true)); + gsw->dirNavigMsgCheckBox->setChecked(config->readBoolEntry("ShowDirNavigMsg",false)); + gsw->compileOutputCombo->setCurrentItem(config->readNumEntry("CompilerOutputLevel",2)); + gsw->forceCLocaleRadio->setChecked( config->readBoolEntry( "ForceCLocale", true ) ); + gsw->userLocaleRadio->setChecked( !config->readBoolEntry( "ForceCLocale", true ) ); + + config->setGroup("General Options"); + gsw->projectsURL->setURL(config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/")); + gsw->designerButtonGroup->setButton( config->readNumEntry( "DesignerApp", 0 ) ); + + TQString DesignerSetting = config->readEntry( "DesignerSetting", "ExternalDesigner" ); + gsw->qtDesignerRadioButton->setChecked( DesignerSetting == "ExternalDesigner" ); + gsw->seperateAppRadioButton->setChecked( DesignerSetting == "ExternalTDevDesigner" ); + gsw->embeddedDesignerRadioButton->setChecked( DesignerSetting == "EmbeddedTDevDesigner" ); + + config->setGroup("TerminalEmulator"); + gsw->terminalEdit->setText( config->readEntry( "TerminalApplication", TQString::fromLatin1("konsole") ) ); + bool useKDESetting = config->readBoolEntry( "UseKDESetting", true ); + gsw->useKDETerminal->setChecked( useKDESetting ); + gsw->useOtherTerminal->setChecked( !useKDESetting ); +} + +void TDevIDEExtension::acceptGlobalSettingsPage(KDialogBase *dlg) +{ + TDEConfig* config = kapp->config(); + + config->setGroup("General Options"); + config->writeEntry("DesignerApp", gsw->designerButtonGroup->selectedId()); + config->writeEntry("Read Last Project On Startup",gsw->lastProjectCheckbox->isChecked()); + config->writePathEntry("DefaultProjectsDir", gsw->projectsURL->url()); + config->writeEntry("OutputViewFont", gsw->outputFont->font()); + + TQString DesignerSetting; + if ( gsw->qtDesignerRadioButton->isChecked() ) DesignerSetting = "ExternalDesigner"; + if ( gsw->seperateAppRadioButton->isChecked() ) DesignerSetting = "ExternalTDevDesigner"; + if ( gsw->embeddedDesignerRadioButton->isChecked() ) DesignerSetting = "EmbeddedTDevDesigner"; + config->writeEntry( "DesignerSetting", DesignerSetting ); + + config->setGroup("MakeOutputView"); + config->writeEntry("LineWrapping",gsw->lineWrappingCheckBox->isChecked()); + config->writeEntry("ShowDirNavigMsg",gsw->dirNavigMsgCheckBox->isChecked()); + config->writeEntry( "ForceCLocale", gsw->forceCLocaleRadio->isChecked() ); + //current item id must be in sync with the enum! + config->writeEntry("CompilerOutputLevel",gsw->compileOutputCombo->currentItem()); + config->sync(); + if( TDevPlugin *makeExt = API::getInstance()->pluginController()->extension("TDevelop/MakeFrontend")) + { + static_cast(makeExt)->updateSettingsFromConfig(); + } + + config->setGroup("TerminalEmulator"); + config->writeEntry("UseKDESetting", gsw->useKDETerminal->isChecked() ); + config->writeEntry("TerminalApplication", gsw->terminalEdit->text().stripWhiteSpace() ); +} + +TQString TDevIDEExtension::xmlFile() +{ + return "tdevelopui.rc"; +} + +TQString TDevIDEExtension::defaultProfile() +{ + return "IDE"; +} diff --git a/src/tdevideextension.h b/src/tdevideextension.h new file mode 100644 index 00000000..64c1a8ca --- /dev/null +++ b/src/tdevideextension.h @@ -0,0 +1,45 @@ +/*************************************************************************** + * Copyright (C) 2004 by Alexander Dymo * + * adymo@kdevelop.org * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + * This program is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU General Public License for more details. * + * * + * You should have received a copy of the GNU General Public License * + * along with this program; if not, write to the * + * Free Software Foundation, Inc., * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * + ***************************************************************************/ +#ifndef TDEVIDEEXTENSION_H +#define TDEVIDEEXTENSION_H + +#include + +class SettingsWidget; + +class TDevIDEExtension : public ShellExtension { +public: + static void init(); + + virtual void createGlobalSettingsPage(KDialogBase *dlg); + virtual void acceptGlobalSettingsPage(KDialogBase *dlg); + + virtual TQString xmlFile(); + + virtual TQString defaultProfile(); + +protected: + TDevIDEExtension(); + +private: + SettingsWidget *gsw; +}; + +#endif diff --git a/src/tdevpluginprofilerc b/src/tdevpluginprofilerc new file mode 100644 index 00000000..b93ba2c1 --- /dev/null +++ b/src/tdevpluginprofilerc @@ -0,0 +1,52 @@ +[Plugin Profiles] +profiles=Profile_BASE,Profile_COMPILED,Profile_CPP,Profile_SCRIPT,Profile_WEB +default=Profile_BASE + +[Category] +Ada= +C= +C/GNOME= +C/GBA= +C/PalmOS= +C++=Profile_CPP +C++/Embedded=Profile_CPP +C++/KDE=Profile_CPP +C++/wxWidgets= +C++/TDevelop +C++/Generic +C++/GTK+ +C++/QMake= +PHP= +Database= +Shell= +Java= +Java/KDE= +Java/Ant= +Perl= +Ruby= +Python= +Fortran= +Haskell= +Pascal/Free Pascal= + +[Profile_BASE] +plugins=TDevFileView,KDevClassView,KDevBookmarks,KDevQuickOpen + +[Profile_COMPILED] +inherits=Profile_BASE +plugins= + +[Profile_CPP] +inherits=Profile_COMPILED +plugins=TDevDebugger + +[Profile_SCRIPT] +inherits=Profile_BASE +plugins= + +[Profile_WEB] +inherits=Profile_SCRIPT +plugins=KDevcopyto + + + diff --git a/src/toplevel.cpp b/src/toplevel.cpp index 129d869c..63416175 100644 --- a/src/toplevel.cpp +++ b/src/toplevel.cpp @@ -8,14 +8,14 @@ #include "simplemainwindow.h" -KDevMainWindow *TopLevel::s_instance = 0; +TDevMainWindow *TopLevel::s_instance = 0; bool TopLevel::mainWindowValid() { return s_instance != 0; } -KDevMainWindow *TopLevel::getInstance() +TDevMainWindow *TopLevel::getInstance() { if (!s_instance) { @@ -28,7 +28,7 @@ KDevMainWindow *TopLevel::getInstance() return s_instance; } -void TopLevel::invalidateInstance(KDevMainWindow *instance) +void TopLevel::invalidateInstance(TDevMainWindow *instance) { if ( s_instance == instance ) s_instance = 0; diff --git a/src/toplevel.h b/src/toplevel.h index 8eb0243a..081ddcae 100644 --- a/src/toplevel.h +++ b/src/toplevel.h @@ -2,10 +2,10 @@ #define __TOPLEVEL_H__ -#include "kdevmainwindow.h" +#include "tdevmainwindow.h" -/**\brief This class handles the single object of type KDevMainWindow. +/**\brief This class handles the single object of type TDevMainWindow. It is completely static (all methods and attributes). */ @@ -14,13 +14,13 @@ class TopLevel { public: - static KDevMainWindow *getInstance(); //!< Get a pointer to the single KDevTopLevel object + static TDevMainWindow *getInstance(); //!< Get a pointer to the single KDevTopLevel object static bool mainWindowValid(); - static void invalidateInstance(KDevMainWindow *instance); //!< Signal that the object has been (or is about to be) destroyed + static void invalidateInstance(TDevMainWindow *instance); //!< Signal that the object has been (or is about to be) destroyed private: - static KDevMainWindow *s_instance; //!< Pointer to the single KDevTopLevel object or 0L + static TDevMainWindow *s_instance; //!< Pointer to the single KDevTopLevel object or 0L }; -- cgit v1.2.3