summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppsupportpart.cpp
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2014-03-02 20:05:33 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-03-02 20:05:33 +0100
commit722ce1efbac31c61b1d4b13f7e075c9f311e3e73 (patch)
treedb1b6b28566e5fe9accb4a688f7257673cecb080 /languages/cpp/cppsupportpart.cpp
parentafb74575caf7dd8ccb6c235b1c8d788e320c19da (diff)
downloadtdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.tar.gz
tdevelop-722ce1efbac31c61b1d4b13f7e075c9f311e3e73.zip
Finish renaming tdevelop components
Diffstat (limited to 'languages/cpp/cppsupportpart.cpp')
-rw-r--r--languages/cpp/cppsupportpart.cpp54
1 files changed, 27 insertions, 27 deletions
diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp
index 35739045..f02b967b 100644
--- a/languages/cpp/cppsupportpart.cpp
+++ b/languages/cpp/cppsupportpart.cpp
@@ -25,11 +25,11 @@
#include "ast_utils.h"
#include "cppcodecompletion.h"
#include "ccconfigwidget.h"
-#include "KDevCppSupportIface.h"
+#include "TDevCppSupportIface.h"
#include "cppsupportfactory.h"
#include "catalog.h"
#include "cpp_tags.h"
-#include "kdevdriver.h"
+#include "tdevdriver.h"
#include "cppcodecompletionconfig.h"
#include "cppsplitheadersourceconfig.h"
#include "tag_creator.h"
@@ -37,10 +37,10 @@
#include "classgeneratorconfig.h"
#include "urlutil.h"
#include "creategettersetterconfiguration.h"
-#include "kdevsourceformatter.h"
-#include "kdevcreatefile.h"
+#include "tdevsourceformatter.h"
+#include "tdevcreatefile.h"
#include "qtbuildconfig.h"
-#include "kdeveditorutil.h"
+#include "tdeveditorutil.h"
#include <tdetexteditor/viewcursorinterface.h>
#include <tdepopupmenu.h>
// wizards
@@ -93,14 +93,14 @@
#include <tdetexteditor/clipboardinterface.h>
#include <tdetexteditor/texthintinterface.h>
-#include <kdevcore.h>
-#include <kdevproject.h>
-#include <kdevmainwindow.h>
-#include <kdevpartcontroller.h>
-#include <kdevmakefrontend.h>
-#include <kdevcoderepository.h>
+#include <tdevcore.h>
+#include <tdevproject.h>
+#include <tdevmainwindow.h>
+#include <tdevpartcontroller.h>
+#include <tdevmakefrontend.h>
+#include <tdevcoderepository.h>
#include <codemodel_utils.h>
-#include <kdevplugininfo.h>
+#include <tdevplugininfo.h>
#include <domutil.h>
#include <config.h>
@@ -116,10 +116,10 @@ TQStringList CppSupportPart::m_headerMimeTypes = TQStringList() << "text/x-chdr"
TQStringList CppSupportPart::m_sourceExtensions = TQStringList::split( ",", "c,C,cc,cpp,c++,cxx,m,mm,M" );
TQStringList CppSupportPart::m_headerExtensions = TQStringList::split( ",", "h,H,hh,h++,hxx,hpp,inl,tlh,diff,ui.h" );
-class CppDriver: public KDevDriver
+class CppDriver: public TDevDriver
{
public:
- CppDriver( CppSupportPart* cppSupport ) : KDevDriver( cppSupport, true )
+ CppDriver( CppSupportPart* cppSupport ) : TDevDriver( cppSupport, true )
{}
void fileParsed( ParsedFile& fileName )
@@ -192,7 +192,7 @@ public:
CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStringList &args )
-: KDevLanguageSupport( CppSupportFactory::info(), parent, name ? name : "KDevCppSupport" ), m_backgroundParser(0),
+: TDevLanguageSupport( CppSupportFactory::info(), parent, name ? name : "TDevCppSupport" ), m_backgroundParser(0),
m_activeDocument( 0 ), m_activeView( 0 ), m_activeSelection( 0 ), m_activeEditor( 0 ), m_activeViewCursor( 0 ),
m_projectClosed( true ), m_projectClosing( false ), m_valid( false ), m_isTyping( false ), m_hadErrors( false ),
_jd(0)
@@ -232,7 +232,7 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri
m_saveMemoryTimer->start( 240000, false ); //Free some memory every 4 minutes
// connect( m_functionHintTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotFunctionHint()) );
- setXMLFile( "kdevcppsupport.rc" );
+ setXMLFile( "tdevcppsupport.rc" );
m_catalogList.setAutoDelete( true );
@@ -309,7 +309,7 @@ CppSupportPart::CppSupportPart( TQObject *parent, const char *name, const TQStri
connect( core( ), TQT_SIGNAL( projectConfigWidget( KDialogBase* ) ), this,
TQT_SLOT( projectConfigWidget( KDialogBase* ) ) );
- new KDevCppSupportIface( this );
+ new TDevCppSupportIface( this );
//(void) dcopClient();
m_lockupTester = new UIBlockTester( 100 );
@@ -611,7 +611,7 @@ void CppSupportPart::projectClosed( )
}
DomUtil::writeListEntry( *project() ->projectDom(), "kdevcppsupport/references", "pcs", enabledPCSs );
- for ( TQMap<KInterfaceDesigner::DesignerType, KDevDesignerIntegration*>::const_iterator it = m_designers.begin();
+ for ( TQMap<KInterfaceDesigner::DesignerType, TDevDesignerIntegration*>::const_iterator it = m_designers.begin();
it != m_designers.end(); ++it )
{
kdDebug( 9007 ) << "calling save settings fro designer integration" << endl;
@@ -840,7 +840,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
m_contextFileName = url.path();
int id = popup->insertItem( i18n( "Create or Select Implementation..." ), this, TQT_SLOT( slotCreateSubclass() ) );
- popup->setWhatsThis( id, i18n( "<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner." ) );
+ popup->setWhatsThis( id, i18n( "<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated TDevDesigner." ) );
}
}
}
@@ -1342,7 +1342,7 @@ void CppSupportPart::jumpToCodeModelItem( const ItemDom& item, bool scrollOnly )
lastSyncedUrl = url;
}
-KDevLanguageSupport::Features CppSupportPart::features()
+TDevLanguageSupport::Features CppSupportPart::features()
{
if ( withcpp )
return Features( Classes | Structs | Functions | Variables | Namespaces | Declarations
@@ -2065,7 +2065,7 @@ void CppSupportPart::codeCompletionConfigStored( )
/*
m_backgroundParser->updateParserConfiguration();
- KDevDriver* d = dynamic_cast<KDevDriver*>( m_driver ); //The foreground-parse isn't used anymore, and could be removed
+ TDevDriver* d = dynamic_cast<TDevDriver*>( m_driver ); //The foreground-parse isn't used anymore, and could be removed
if( d ) {
d->setup();
d->makeMacrosPersistent();
@@ -2144,7 +2144,7 @@ TQString CppSupportPart::formatModelItem( const CodeModelItem *item, bool shortD
return arg.stripWhiteSpace();
}
else
- return KDevLanguageSupport::formatModelItem( item, shortDescription );
+ return TDevLanguageSupport::formatModelItem( item, shortDescription );
}
void CppSupportPart::addClass()
@@ -2677,7 +2677,7 @@ void CppSupportPart::slotCursorPositionChanged()
{
unsigned int line = 0;
unsigned int column = 0;
- if ( KDevEditorUtil::currentPositionReal( &line, &column, dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) ) )
+ if ( TDevEditorUtil::currentPositionReal( &line, &column, dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) ) )
{
TQString typeInfoString = codeCompletion()->createTypeInfoString( line, column );
mainWindow()->statusBar()->message( typeInfoString );
@@ -2738,7 +2738,7 @@ void CppSupportPart::updateParserConfiguration()
TQString conf_file_name = specialHeaderName();
m_driver->removeAllMacrosInFile( conf_file_name );
- dynamic_cast<KDevDriver*>(m_driver)->setup();
+ dynamic_cast<TDevDriver*>(m_driver)->setup();
m_driver->parseFile( conf_file_name, true, true, true );
m_buildSafeFileSetTimer->start( 500, true );
@@ -2753,9 +2753,9 @@ Driver* CppSupportPart::driver() {
return m_driver;
}
-KDevDesignerIntegration * CppSupportPart::designer( KInterfaceDesigner::DesignerType type )
+TDevDesignerIntegration * CppSupportPart::designer( KInterfaceDesigner::DesignerType type )
{
- KDevDesignerIntegration * des = 0;
+ TDevDesignerIntegration * des = 0;
switch ( type )
{
case KInterfaceDesigner::Glade:
@@ -2847,7 +2847,7 @@ void CppSupportPart::addMethod( ClassDom aClass, const TQString& name, const TQS
TQFileInfo info( aClass->fileName() );
TQString implementationFile = info.dirPath( true ) + "/" + info.baseName() + ".cpp" ;
TQFileInfo fileInfo( implementationFile );
- KDevCreateFile* createFileSupport = extension<KDevCreateFile>( "TDevelop/CreateFile" );
+ TDevCreateFile* createFileSupport = extension<TDevCreateFile>( "TDevelop/CreateFile" );
if ( !TQFile::exists( fileInfo.absFilePath() ) && createFileSupport != 0 )
createFileSupport->createNewFile( fileInfo.extension(), fileInfo.dirPath( true ), fileInfo.baseName() );