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 --- languages/lib/debugger/CMakeLists.txt | 4 +- languages/lib/debugger/Makefile.am | 10 +- languages/lib/debugger/debugger.cpp | 4 +- languages/lib/debugger/debugger.h | 10 +- languages/lib/debugger/kdevdebugger.cpp | 182 --------------------- languages/lib/debugger/kdevdebugger.h | 89 ---------- languages/lib/debugger/tdevdebugger.cpp | 182 +++++++++++++++++++++ languages/lib/debugger/tdevdebugger.h | 89 ++++++++++ languages/lib/designer_integration/Mainpage.dox | 10 +- languages/lib/designer_integration/Makefile.am | 6 +- .../designer_integration/implementationwidget.cpp | 6 +- .../designer_integration/implementationwidget.h | 6 +- .../designer_integration/qtdesignerintegration.cpp | 12 +- .../designer_integration/qtdesignerintegration.h | 12 +- languages/lib/interfaces/CMakeLists.txt | 4 +- languages/lib/interfaces/Makefile.am | 10 +- languages/lib/interfaces/kdevpcsimporter.cpp | 35 ---- languages/lib/interfaces/kdevpcsimporter.h | 50 ------ languages/lib/interfaces/tdevpcsimporter.cpp | 35 ++++ languages/lib/interfaces/tdevpcsimporter.h | 50 ++++++ 20 files changed, 403 insertions(+), 403 deletions(-) delete mode 100644 languages/lib/debugger/kdevdebugger.cpp delete mode 100644 languages/lib/debugger/kdevdebugger.h create mode 100644 languages/lib/debugger/tdevdebugger.cpp create mode 100644 languages/lib/debugger/tdevdebugger.h delete mode 100644 languages/lib/interfaces/kdevpcsimporter.cpp delete mode 100644 languages/lib/interfaces/kdevpcsimporter.h create mode 100644 languages/lib/interfaces/tdevpcsimporter.cpp create mode 100644 languages/lib/interfaces/tdevpcsimporter.h (limited to 'languages/lib') diff --git a/languages/lib/debugger/CMakeLists.txt b/languages/lib/debugger/CMakeLists.txt index c159528b..fbd121e4 100644 --- a/languages/lib/debugger/CMakeLists.txt +++ b/languages/lib/debugger/CMakeLists.txt @@ -24,14 +24,14 @@ link_directories( ##### headers ################################### install( FILES - debugger.h kdevdebugger.h + debugger.h tdevdebugger.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/languages/debugger ) ##### lang_debugger (shared) #################### tde_add_library( lang_debugger SHARED AUTOMOC - SOURCES kdevdebugger.cpp debugger.cpp + SOURCES tdevdebugger.cpp debugger.cpp VERSION 0.0.0 LINK tdetexteditor-shared DESTINATION ${LIB_INSTALL_DIR} diff --git a/languages/lib/debugger/Makefile.am b/languages/lib/debugger/Makefile.am index fc8923aa..3ca4e3a8 100644 --- a/languages/lib/debugger/Makefile.am +++ b/languages/lib/debugger/Makefile.am @@ -3,11 +3,11 @@ METASOURCES = AUTO lib_LTLIBRARIES = liblang_debugger.la liblang_debugger_la_LDFLAGS = $(all_libraries) liblang_debugger_la_LIBADD = $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEPARTS) -ltdetexteditor -liblang_debugger_la_SOURCES = kdevdebugger.cpp debugger.cpp +liblang_debugger_la_SOURCES = tdevdebugger.cpp debugger.cpp langincludedirdir = $(includedir)/tdevelop/languages/debugger -langincludedir_HEADERS = debugger.h kdevdebugger.h +langincludedir_HEADERS = debugger.h tdevdebugger.h -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevinterfaces kdevutil -DOXYGEN_PROJECTNAME = KDevelop Debugger Support Library -DOXYGEN_DOCDIRPREFIX = kdevlang +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevinterfaces tdevutil +DOXYGEN_PROJECTNAME = TDevelop Debugger Support Library +DOXYGEN_DOCDIRPREFIX = tdevlang include ../../../Doxyfile.am diff --git a/languages/lib/debugger/debugger.cpp b/languages/lib/debugger/debugger.cpp index bc8356b7..341abecd 100644 --- a/languages/lib/debugger/debugger.cpp +++ b/languages/lib/debugger/debugger.cpp @@ -6,14 +6,14 @@ #include // #include "editorproxy.h" -#include +#include using namespace KTextEditor; Debugger *Debugger::s_instance = 0; -Debugger::Debugger(KDevPartController *partController) +Debugger::Debugger(TDevPartController *partController) :m_partController(partController) { connect( m_partController, TQT_SIGNAL(partAdded(KParts::Part*)), diff --git a/languages/lib/debugger/debugger.h b/languages/lib/debugger/debugger.h index d4112490..1f5cbae8 100644 --- a/languages/lib/debugger/debugger.h +++ b/languages/lib/debugger/debugger.h @@ -3,7 +3,7 @@ #include -#include "kdevdebugger.h" +#include "tdevdebugger.h" #include #include @@ -11,7 +11,7 @@ #include #include -class KDevPartController; +class TDevPartController; /** * Describes a single breakpoint in the system @@ -54,7 +54,7 @@ private: * point of the debugger. * We may change, add or remove breakpoints in this class. */ -class Debugger : public KDevDebugger +class Debugger : public TDevDebugger { Q_OBJECT @@ -94,7 +94,7 @@ public: // protected: - Debugger(KDevPartController *partController); + Debugger(TDevPartController *partController); ~Debugger(); private slots: @@ -126,7 +126,7 @@ private: }; static Debugger *s_instance; - KDevPartController *m_partController; + TDevPartController *m_partController; TQValueList BPList; }; diff --git a/languages/lib/debugger/kdevdebugger.cpp b/languages/lib/debugger/kdevdebugger.cpp deleted file mode 100644 index b9ee4a05..00000000 --- a/languages/lib/debugger/kdevdebugger.cpp +++ /dev/null @@ -1,182 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2002 Matthias Hoelzer-Kluepfel - Copyright (C) 2002 John Firebaugh - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ -#include "kdevdebugger.h" - -KDevDebugger::KDevDebugger(TQObject *parent, const char *name) - : TQObject(parent, name) -{ -} - - -KDevDebugger::~KDevDebugger() -{ -} - -const TQPixmap* KDevDebugger::inactiveBreakpointPixmap() -{ - const char*breakpoint_gr_xpm[]={ - "11 16 6 1", - "c c #c6c6c6", - "d c #2c2c2c", - "# c #000000", - ". c None", - "a c #ffffff", - "b c #555555", - "...........", - "...........", - "...#####...", - "..#aaaaa#..", - ".#abbbbbb#.", - "#abbbbbbbb#", - "#abcacacbd#", - "#abbbbbbbb#", - "#abcacacbd#", - "#abbbbbbbb#", - ".#bbbbbbb#.", - "..#bdbdb#..", - "...#####...", - "...........", - "...........", - "..........."}; - static TQPixmap pixmap( breakpoint_gr_xpm ); - return &pixmap; -} - -const TQPixmap* KDevDebugger::activeBreakpointPixmap() -{ - const char* breakpoint_xpm[]={ - "11 16 6 1", - "c c #c6c6c6", - ". c None", - "# c #000000", - "d c #840000", - "a c #ffffff", - "b c #ff0000", - "...........", - "...........", - "...#####...", - "..#aaaaa#..", - ".#abbbbbb#.", - "#abbbbbbbb#", - "#abcacacbd#", - "#abbbbbbbb#", - "#abcacacbd#", - "#abbbbbbbb#", - ".#bbbbbbb#.", - "..#bdbdb#..", - "...#####...", - "...........", - "...........", - "..........."}; - static TQPixmap pixmap( breakpoint_xpm ); - return &pixmap; -} - -const TQPixmap* KDevDebugger::reachedBreakpointPixmap() -{ - const char*breakpoint_bl_xpm[]={ - "11 16 7 1", - "a c #c0c0ff", - "# c #000000", - "c c #0000c0", - "e c #0000ff", - "b c #dcdcdc", - "d c #ffffff", - ". c None", - "...........", - "...........", - "...#####...", - "..#ababa#..", - ".#bcccccc#.", - "#acccccccc#", - "#bcadadace#", - "#acccccccc#", - "#bcadadace#", - "#acccccccc#", - ".#ccccccc#.", - "..#cecec#..", - "...#####...", - "...........", - "...........", - "..........."}; - static TQPixmap pixmap( breakpoint_bl_xpm ); - return &pixmap; -} - -const TQPixmap* KDevDebugger::disabledBreakpointPixmap() -{ - const char*breakpoint_wh_xpm[]={ - "11 16 7 1", - "a c #c0c0ff", - "# c #000000", - "c c #0000c0", - "e c #0000ff", - "b c #dcdcdc", - "d c #ffffff", - ". c None", - "...........", - "...........", - "...#####...", - "..#ddddd#..", - ".#ddddddd#.", - "#ddddddddd#", - "#ddddddddd#", - "#ddddddddd#", - "#ddddddddd#", - "#ddddddddd#", - ".#ddddddd#.", - "..#ddddd#..", - "...#####...", - "...........", - "...........", - "..........."}; - static TQPixmap pixmap( breakpoint_wh_xpm ); - return &pixmap; -} - -const TQPixmap* KDevDebugger::executionPointPixmap() -{ - const char*exec_xpm[]={ - "11 16 4 1", - "a c #00ff00", - "b c #000000", - ". c None", - "# c #00c000", - "...........", - "...........", - "...........", - "#a.........", - "#aaa.......", - "#aaaaa.....", - "#aaaaaaa...", - "#aaaaaaaaa.", - "#aaaaaaa#b.", - "#aaaaa#b...", - "#aaa#b.....", - "#a#b.......", - "#b.........", - "...........", - "...........", - "..........."}; - static TQPixmap pixmap( exec_xpm ); - return &pixmap; -} - -#include "kdevdebugger.moc" diff --git a/languages/lib/debugger/kdevdebugger.h b/languages/lib/debugger/kdevdebugger.h deleted file mode 100644 index 4cb7df3f..00000000 --- a/languages/lib/debugger/kdevdebugger.h +++ /dev/null @@ -1,89 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2002 Matthias Hoelzer-Kluepfel - Copyright (C) 2002 John Firebaugh - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ -#ifndef _KDEVDEBUGGER_H_ -#define _KDEVDEBUGGER_H_ - - -#include -#include - - -#include - -/** -* Base class to handle signals from the editor that relate to breakpoints -* and the execution point of the debugger. -*/ -class KDevDebugger : public TQObject -{ - Q_OBJECT - - -public: - - KDevDebugger(TQObject *parent=0, const char *name=0); - ~KDevDebugger(); - - /** - * Sets a breakpoint in the editor document belong to fileName. - * If id==-1, the breakpoint is deleted. - */ - virtual void setBreakpoint(const TQString &fileName, int lineNum, - int id, bool enabled, bool pending) = 0; - - /** - * Goes to a given location in a source file and marks the line. - * This is used by the debugger to mark the location where the - * the debugger has stopped. - */ - virtual void gotoExecutionPoint(const KURL &url, int lineNum=0) = 0; - - /** - * Clear the execution point. Usefull if debugging has ended. - */ - virtual void clearExecutionPoint() = 0; - - static const TQPixmap* inactiveBreakpointPixmap(); - static const TQPixmap* activeBreakpointPixmap(); - static const TQPixmap* reachedBreakpointPixmap(); - static const TQPixmap* disabledBreakpointPixmap(); - static const TQPixmap* executionPointPixmap(); - -signals: - - /** - * The user has toggled a breakpoint. - */ - void toggledBreakpoint(const TQString &fileName, int lineNum); - - /* - * The user wants to edit the properties of a breakpoint. - */ - void editedBreakpoint(const TQString &fileName, int lineNum); - - /** - * The user wants to enable/disable a breakpoint. - */ - void toggledBreakpointEnabled(const TQString &fileName, int lineNum); - -}; - - -#endif diff --git a/languages/lib/debugger/tdevdebugger.cpp b/languages/lib/debugger/tdevdebugger.cpp new file mode 100644 index 00000000..e005491f --- /dev/null +++ b/languages/lib/debugger/tdevdebugger.cpp @@ -0,0 +1,182 @@ +/* This file is part of the KDE project + Copyright (C) 2002 Matthias Hoelzer-Kluepfel + Copyright (C) 2002 John Firebaugh + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#include "tdevdebugger.h" + +TDevDebugger::TDevDebugger(TQObject *parent, const char *name) + : TQObject(parent, name) +{ +} + + +TDevDebugger::~TDevDebugger() +{ +} + +const TQPixmap* TDevDebugger::inactiveBreakpointPixmap() +{ + const char*breakpoint_gr_xpm[]={ + "11 16 6 1", + "c c #c6c6c6", + "d c #2c2c2c", + "# c #000000", + ". c None", + "a c #ffffff", + "b c #555555", + "...........", + "...........", + "...#####...", + "..#aaaaa#..", + ".#abbbbbb#.", + "#abbbbbbbb#", + "#abcacacbd#", + "#abbbbbbbb#", + "#abcacacbd#", + "#abbbbbbbb#", + ".#bbbbbbb#.", + "..#bdbdb#..", + "...#####...", + "...........", + "...........", + "..........."}; + static TQPixmap pixmap( breakpoint_gr_xpm ); + return &pixmap; +} + +const TQPixmap* TDevDebugger::activeBreakpointPixmap() +{ + const char* breakpoint_xpm[]={ + "11 16 6 1", + "c c #c6c6c6", + ". c None", + "# c #000000", + "d c #840000", + "a c #ffffff", + "b c #ff0000", + "...........", + "...........", + "...#####...", + "..#aaaaa#..", + ".#abbbbbb#.", + "#abbbbbbbb#", + "#abcacacbd#", + "#abbbbbbbb#", + "#abcacacbd#", + "#abbbbbbbb#", + ".#bbbbbbb#.", + "..#bdbdb#..", + "...#####...", + "...........", + "...........", + "..........."}; + static TQPixmap pixmap( breakpoint_xpm ); + return &pixmap; +} + +const TQPixmap* TDevDebugger::reachedBreakpointPixmap() +{ + const char*breakpoint_bl_xpm[]={ + "11 16 7 1", + "a c #c0c0ff", + "# c #000000", + "c c #0000c0", + "e c #0000ff", + "b c #dcdcdc", + "d c #ffffff", + ". c None", + "...........", + "...........", + "...#####...", + "..#ababa#..", + ".#bcccccc#.", + "#acccccccc#", + "#bcadadace#", + "#acccccccc#", + "#bcadadace#", + "#acccccccc#", + ".#ccccccc#.", + "..#cecec#..", + "...#####...", + "...........", + "...........", + "..........."}; + static TQPixmap pixmap( breakpoint_bl_xpm ); + return &pixmap; +} + +const TQPixmap* TDevDebugger::disabledBreakpointPixmap() +{ + const char*breakpoint_wh_xpm[]={ + "11 16 7 1", + "a c #c0c0ff", + "# c #000000", + "c c #0000c0", + "e c #0000ff", + "b c #dcdcdc", + "d c #ffffff", + ". c None", + "...........", + "...........", + "...#####...", + "..#ddddd#..", + ".#ddddddd#.", + "#ddddddddd#", + "#ddddddddd#", + "#ddddddddd#", + "#ddddddddd#", + "#ddddddddd#", + ".#ddddddd#.", + "..#ddddd#..", + "...#####...", + "...........", + "...........", + "..........."}; + static TQPixmap pixmap( breakpoint_wh_xpm ); + return &pixmap; +} + +const TQPixmap* TDevDebugger::executionPointPixmap() +{ + const char*exec_xpm[]={ + "11 16 4 1", + "a c #00ff00", + "b c #000000", + ". c None", + "# c #00c000", + "...........", + "...........", + "...........", + "#a.........", + "#aaa.......", + "#aaaaa.....", + "#aaaaaaa...", + "#aaaaaaaaa.", + "#aaaaaaa#b.", + "#aaaaa#b...", + "#aaa#b.....", + "#a#b.......", + "#b.........", + "...........", + "...........", + "..........."}; + static TQPixmap pixmap( exec_xpm ); + return &pixmap; +} + +#include "tdevdebugger.moc" diff --git a/languages/lib/debugger/tdevdebugger.h b/languages/lib/debugger/tdevdebugger.h new file mode 100644 index 00000000..3cfcd5de --- /dev/null +++ b/languages/lib/debugger/tdevdebugger.h @@ -0,0 +1,89 @@ +/* This file is part of the KDE project + Copyright (C) 2002 Matthias Hoelzer-Kluepfel + Copyright (C) 2002 John Firebaugh + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef _TDEVDEBUGGER_H_ +#define _TDEVDEBUGGER_H_ + + +#include +#include + + +#include + +/** +* Base class to handle signals from the editor that relate to breakpoints +* and the execution point of the debugger. +*/ +class TDevDebugger : public TQObject +{ + Q_OBJECT + + +public: + + TDevDebugger(TQObject *parent=0, const char *name=0); + ~TDevDebugger(); + + /** + * Sets a breakpoint in the editor document belong to fileName. + * If id==-1, the breakpoint is deleted. + */ + virtual void setBreakpoint(const TQString &fileName, int lineNum, + int id, bool enabled, bool pending) = 0; + + /** + * Goes to a given location in a source file and marks the line. + * This is used by the debugger to mark the location where the + * the debugger has stopped. + */ + virtual void gotoExecutionPoint(const KURL &url, int lineNum=0) = 0; + + /** + * Clear the execution point. Usefull if debugging has ended. + */ + virtual void clearExecutionPoint() = 0; + + static const TQPixmap* inactiveBreakpointPixmap(); + static const TQPixmap* activeBreakpointPixmap(); + static const TQPixmap* reachedBreakpointPixmap(); + static const TQPixmap* disabledBreakpointPixmap(); + static const TQPixmap* executionPointPixmap(); + +signals: + + /** + * The user has toggled a breakpoint. + */ + void toggledBreakpoint(const TQString &fileName, int lineNum); + + /* + * The user wants to edit the properties of a breakpoint. + */ + void editedBreakpoint(const TQString &fileName, int lineNum); + + /** + * The user wants to enable/disable a breakpoint. + */ + void toggledBreakpointEnabled(const TQString &fileName, int lineNum); + +}; + + +#endif diff --git a/languages/lib/designer_integration/Mainpage.dox b/languages/lib/designer_integration/Mainpage.dox index 1f2db949..43070931 100644 --- a/languages/lib/designer_integration/Mainpage.dox +++ b/languages/lib/designer_integration/Mainpage.dox @@ -10,18 +10,18 @@ This library contains base classes to implement GUI designer integration in lang \section usingintegration Using designer integration support library Each language support which wants to use integrated designer, must reimplement @code -virtual KDevDesignerIntegration *KDevLanguageSupport::designer(KInterfaceDesigner::DesignerType type) +virtual TDevDesignerIntegration *TDevLanguageSupport::designer(KInterfaceDesigner::DesignerType type) @endcode -method and return designer integration object (@ref KDevLanguageSupport base class returns 0). +method and return designer integration object (@ref TDevLanguageSupport base class returns 0). Qt designer integration can be easily implemented by reusing @ref QtDesignerIntegration base class. For example, designer method of a language support could look like: @code -KDevDesignerIntegration * MyLanguageSupportPart::designer(KInterfaceDesigner::DesignerType type) +TDevDesignerIntegration * MyLanguageSupportPart::designer(KInterfaceDesigner::DesignerType type) { - KDevDesignerIntegration *des = 0; + TDevDesignerIntegration *des = 0; switch (type) { case KInterfaceDesigner::QtDesigner: @@ -40,7 +40,7 @@ return des; @endcode In the code above m_designers is a designer cache declared as: @code -QMap m_designers; +QMap m_designers; @endcode MyLanguageImplementationWidget and MyLanguageQtDesignerIntegration classes are subclasses of @ref QtDesignerIntegration and @ref ImplementationWidget base classes. diff --git a/languages/lib/designer_integration/Makefile.am b/languages/lib/designer_integration/Makefile.am index 6e9680a9..41c0395d 100644 --- a/languages/lib/designer_integration/Makefile.am +++ b/languages/lib/designer_integration/Makefile.am @@ -4,13 +4,13 @@ INCLUDES = -I$(top_srcdir)/lib/interfaces \ METASOURCES = AUTO libdesignerintegration_la_LDFLAGS = $(all_libraries) lib_LTLIBRARIES = libdesignerintegration.la -libdesignerintegration_la_LIBADD = $(top_builddir)/lib/interfaces/libkdevinterfaces.la $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) +libdesignerintegration_la_LIBADD = $(top_builddir)/lib/interfaces/libtdevinterfaces.la $(LIB_QT) $(LIB_TDECORE) $(LIB_TDEUI) libdesignerintegration_la_SOURCES = implementationwidgetbase.ui \ implementationwidget.cpp qtdesignerintegration.cpp langincludedirdir = $(includedir)/tdevelop/languages/designer_integration langincludedir_HEADERS = qtdesignerintegration.h implementationwidget.h implementationwidgetbase.h -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevinterfaces kdevutil -DOXYGEN_PROJECTNAME = KDevelop Designer Integration Support Library +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevinterfaces tdevutil +DOXYGEN_PROJECTNAME = TDevelop Designer Integration Support Library include ../../../Doxyfile.am diff --git a/languages/lib/designer_integration/implementationwidget.cpp b/languages/lib/designer_integration/implementationwidget.cpp index bdca4558..314e9eeb 100644 --- a/languages/lib/designer_integration/implementationwidget.cpp +++ b/languages/lib/designer_integration/implementationwidget.cpp @@ -32,10 +32,10 @@ #include #include -#include +#include #include #include -#include +#include namespace ImplUtils{ class ClassItem: public TDEListViewItem{ @@ -61,7 +61,7 @@ private: }; } -ImplementationWidget::ImplementationWidget(KDevLanguageSupport *part, TQWidget* parent, const char* name, bool modal) +ImplementationWidget::ImplementationWidget(TDevLanguageSupport *part, TQWidget* parent, const char* name, bool modal) :CreateImplemenationWidgetBase(parent, name, modal), m_part(part) { } diff --git a/languages/lib/designer_integration/implementationwidget.h b/languages/lib/designer_integration/implementationwidget.h index 3dd53763..c74947be 100644 --- a/languages/lib/designer_integration/implementationwidget.h +++ b/languages/lib/designer_integration/implementationwidget.h @@ -26,7 +26,7 @@ #include class TDEListViewItem; -class KDevLanguageSupport; +class TDevLanguageSupport; /** Base class for implementation creation widgets. @@ -42,7 +42,7 @@ class ImplementationWidget : public CreateImplemenationWidgetBase Q_OBJECT public: - ImplementationWidget(KDevLanguageSupport *part, TQWidget* parent = 0, const char* name = 0, bool modal = false); + ImplementationWidget(TDevLanguageSupport *part, TQWidget* parent = 0, const char* name = 0, bool modal = false); virtual ~ImplementationWidget(); /*$PUBLIC_FUNCTIONS$*/ @@ -77,7 +77,7 @@ protected slots: virtual void accept(); protected: - KDevLanguageSupport *m_part; + TDevLanguageSupport *m_part; ClassDom m_selectedClass; TQString m_formName; TQString m_baseClassName; diff --git a/languages/lib/designer_integration/qtdesignerintegration.cpp b/languages/lib/designer_integration/qtdesignerintegration.cpp index 26912ba1..c2b9ab34 100644 --- a/languages/lib/designer_integration/qtdesignerintegration.cpp +++ b/languages/lib/designer_integration/qtdesignerintegration.cpp @@ -30,16 +30,16 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include "codemodel_utils.h" #include "implementationwidget.h" -QtDesignerIntegration::QtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl, bool classHasDefinitions, const char* name) - :KDevDesignerIntegration(part, name), m_part(part), m_impl(impl), +QtDesignerIntegration::QtDesignerIntegration(TDevLanguageSupport *part, ImplementationWidget *impl, bool classHasDefinitions, const char* name) + :TDevDesignerIntegration(part, name), m_part(part), m_impl(impl), m_classHasDefinitions(classHasDefinitions) { } diff --git a/languages/lib/designer_integration/qtdesignerintegration.h b/languages/lib/designer_integration/qtdesignerintegration.h index f76eecba..faafec58 100644 --- a/languages/lib/designer_integration/qtdesignerintegration.h +++ b/languages/lib/designer_integration/qtdesignerintegration.h @@ -23,24 +23,24 @@ #include #include -#include "kdevdesignerintegration.h" +#include "tdevdesignerintegration.h" -class KDevLanguageSupport; +class TDevLanguageSupport; class ImplementationWidget; /** TQt Designer integration base class. -Contains language-independent implementation part of a @ref KDevDesignerIntegration interface. +Contains language-independent implementation part of a @ref TDevDesignerIntegration interface. Ready to use in KDevelop language support plugins. Subclasses of this class should reimplement only pure virtual functions in the common case. */ -class QtDesignerIntegration : public KDevDesignerIntegration +class QtDesignerIntegration : public TDevDesignerIntegration { Q_OBJECT public: - QtDesignerIntegration(KDevLanguageSupport *part, ImplementationWidget *impl, + QtDesignerIntegration(TDevLanguageSupport *part, ImplementationWidget *impl, bool classHasDefinitions, const char* name = 0); virtual ~QtDesignerIntegration(); @@ -73,7 +73,7 @@ protected: //Form file - derived class name TQMap m_implementations; - KDevLanguageSupport *m_part; + TDevLanguageSupport *m_part; ImplementationWidget *m_impl; bool m_classHasDefinitions; }; diff --git a/languages/lib/interfaces/CMakeLists.txt b/languages/lib/interfaces/CMakeLists.txt index 370eece3..e8af2f36 100644 --- a/languages/lib/interfaces/CMakeLists.txt +++ b/languages/lib/interfaces/CMakeLists.txt @@ -22,7 +22,7 @@ link_directories( ##### headers ################################### -install( FILES kdevpcsimporter.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/languages/interfaces ) +install( FILES tdevpcsimporter.h DESTINATION ${INCLUDE_INSTALL_DIR}/tdevelop/languages/interfaces ) ##### other data ################################ @@ -33,7 +33,7 @@ install( FILES tdeveloppcsimporter.desktop DESTINATION ${SERVICETYPES_INSTALL_DI ##### lang_interfaces (shared) ################## tde_add_library( lang_interfaces SHARED AUTOMOC - SOURCES kdevpcsimporter.cpp + SOURCES tdevpcsimporter.cpp VERSION 0.0.0 LINK ${TQT_LIBRARIES} DESTINATION ${LIB_INSTALL_DIR} diff --git a/languages/lib/interfaces/Makefile.am b/languages/lib/interfaces/Makefile.am index c3ed3d00..127999e6 100644 --- a/languages/lib/interfaces/Makefile.am +++ b/languages/lib/interfaces/Makefile.am @@ -3,14 +3,14 @@ METASOURCES = AUTO langincludedirdir = $(includedir)/tdevelop/languages/interfaces lib_LTLIBRARIES = liblang_interfaces.la liblang_interfaces_la_LDFLAGS = $(all_libraries) -liblang_interfaces_la_SOURCES = kdevpcsimporter.cpp +liblang_interfaces_la_SOURCES = tdevpcsimporter.cpp liblang_interfaces_la_LIBADD = $(LIB_QT) -langincludedir_HEADERS = kdevpcsimporter.h +langincludedir_HEADERS = tdevpcsimporter.h INCLUDES = $(all_includes) servicetypedir = $(kde_servicetypesdir) servicetype_DATA = tdeveloppcsimporter.desktop -DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils kdevinterfaces kdevutil -DOXYGEN_PROJECTNAME = KDevelop Language Support Interfaces Library -DOXYGEN_DOCDIRPREFIX = kdevlang +DOXYGEN_REFERENCES = dcop interfaces tdecore tdefx tdeui tdehtml tdemdi tdeio kjs tdeparts tdeutils tdevinterfaces tdevutil +DOXYGEN_PROJECTNAME = TDevelop Language Support Interfaces Library +DOXYGEN_DOCDIRPREFIX = tdevlang include ../../../Doxyfile.am diff --git a/languages/lib/interfaces/kdevpcsimporter.cpp b/languages/lib/interfaces/kdevpcsimporter.cpp deleted file mode 100644 index 166cc862..00000000 --- a/languages/lib/interfaces/kdevpcsimporter.cpp +++ /dev/null @@ -1,35 +0,0 @@ -/* This file is part of TDevelop - Copyright (C) 2003 Roberto Raggi - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#include "kdevpcsimporter.h" -#include "kdevpcsimporter.moc" - -KDevPCSImporter::KDevPCSImporter( TQObject * parent, const char * name ) - : TQObject( parent, name ) -{ -} - -KDevPCSImporter::~ KDevPCSImporter( ) -{ -} - -TQWidget * KDevPCSImporter::createSettingsPage( TQWidget * /*parent*/, const char * /*name*/ ) -{ - return 0; -} diff --git a/languages/lib/interfaces/kdevpcsimporter.h b/languages/lib/interfaces/kdevpcsimporter.h deleted file mode 100644 index 870865cb..00000000 --- a/languages/lib/interfaces/kdevpcsimporter.h +++ /dev/null @@ -1,50 +0,0 @@ -/* This file is part of TDevelop - Copyright (C) 2003 Roberto Raggi - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ - -#ifndef KDEVPCSIMPORTER_H -#define KDEVPCSIMPORTER_H - -#include -#include - -class TQWidget; - -/** -KDevelop persistent class store importer plugin. - -These plugins are used by language support plugins to fill symbol stores -with symbol information from certain files. The purpose of the importer -is to provide file selection wizard. -*/ -class KDevPCSImporter: public TQObject -{ - Q_OBJECT - -public: - KDevPCSImporter( TQObject* parent=0, const char* name=0 ); - virtual ~KDevPCSImporter(); - - virtual TQString dbName() const = 0; - virtual TQStringList includePaths() = 0; - virtual TQStringList fileList() = 0; - - virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 ); -}; - -#endif // KDEVPCSIMPORTER_H diff --git a/languages/lib/interfaces/tdevpcsimporter.cpp b/languages/lib/interfaces/tdevpcsimporter.cpp new file mode 100644 index 00000000..66e29c13 --- /dev/null +++ b/languages/lib/interfaces/tdevpcsimporter.cpp @@ -0,0 +1,35 @@ +/* This file is part of TDevelop + Copyright (C) 2003 Roberto Raggi + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "tdevpcsimporter.h" +#include "tdevpcsimporter.moc" + +TDevPCSImporter::TDevPCSImporter( TQObject * parent, const char * name ) + : TQObject( parent, name ) +{ +} + +TDevPCSImporter::~ TDevPCSImporter( ) +{ +} + +TQWidget * TDevPCSImporter::createSettingsPage( TQWidget * /*parent*/, const char * /*name*/ ) +{ + return 0; +} diff --git a/languages/lib/interfaces/tdevpcsimporter.h b/languages/lib/interfaces/tdevpcsimporter.h new file mode 100644 index 00000000..62878973 --- /dev/null +++ b/languages/lib/interfaces/tdevpcsimporter.h @@ -0,0 +1,50 @@ +/* This file is part of TDevelop + Copyright (C) 2003 Roberto Raggi + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef TDEVPCSIMPORTER_H +#define TDEVPCSIMPORTER_H + +#include +#include + +class TQWidget; + +/** +KDevelop persistent class store importer plugin. + +These plugins are used by language support plugins to fill symbol stores +with symbol information from certain files. The purpose of the importer +is to provide file selection wizard. +*/ +class TDevPCSImporter: public TQObject +{ + Q_OBJECT + +public: + TDevPCSImporter( TQObject* parent=0, const char* name=0 ); + virtual ~TDevPCSImporter(); + + virtual TQString dbName() const = 0; + virtual TQStringList includePaths() = 0; + virtual TQStringList fileList() = 0; + + virtual TQWidget* createSettingsPage( TQWidget* parent, const char* name=0 ); +}; + +#endif // TDEVPCSIMPORTER_H -- cgit v1.2.3