summaryrefslogtreecommitdiffstats
path: root/languages/cpp/cppsupportpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/cppsupportpart.cpp')
-rw-r--r--languages/cpp/cppsupportpart.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/languages/cpp/cppsupportpart.cpp b/languages/cpp/cppsupportpart.cpp
index 747a7e0a..ac9d52ba 100644
--- a/languages/cpp/cppsupportpart.cpp
+++ b/languages/cpp/cppsupportpart.cpp
@@ -688,7 +688,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
if ( !text.isEmpty() )
{
id = popup->insertItem( i18n( "Make Member" ), this, TQT_SLOT( slotMakeMember() ) );
- popup->setWhatsThis( id, i18n( "<b>Make member</b><p>Creates a class member function in implementation file "
+ popup->tqsetWhatsThis( id, i18n( "<b>Make member</b><p>Creates a class member function in implementation file "
"based on the member declaration at the current line." ) );
}
@@ -737,7 +737,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
TQPopupMenu * m2 = new TQPopupMenu( popup );
id = popup->insertItem( i18n( "Go to Declaration" ), m2 );
- popup->setWhatsThis( id, i18n( "<b>Go to declaration</b><p>Provides a menu to select available function declarations "
+ popup->tqsetWhatsThis( id, i18n( "<b>Go to declaration</b><p>Provides a menu to select available function declarations "
"in the current file and in the corresponding header (if the current file is an implementation) or source (if the current file is a header) file." ) );
FileDom file2 = codeModel() ->fileByName( candidate );
@@ -753,7 +753,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
text += "::";
}
text += formatModelItem( *it, true );
- text = text.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&&" ) );
+ text = text.replace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&&" ) );
int id = m2->insertItem( text, this, TQT_SLOT( gotoDeclarationLine( int ) ) );
int line, column;
( *it ) ->getStartPosition( &line, &column );
@@ -781,7 +781,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
TQPopupMenu * m = new TQPopupMenu( popup );
id = popup->insertItem( i18n( "Go to Definition" ), m );
- popup->setWhatsThis( id, i18n( "<b>Go to definition</b><p>Provides a menu to select available function definitions "
+ popup->tqsetWhatsThis( id, i18n( "<b>Go to definition</b><p>Provides a menu to select available function definitions "
"in the current file and in the corresponding header (if the current file is an implementation) or source (if the current file is a header) file." ) );
const FileDom file = codeModel() ->fileByName( candidate1 );
@@ -794,7 +794,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
text += "::";
}
text += formatModelItem( *it, true );
- text = text.replace( TQString::fromLatin1( "&" ), TQString::fromLatin1( "&&" ) );
+ text = text.replace( TQString::tqfromLatin1( "&" ), TQString::tqfromLatin1( "&&" ) );
int id = m->insertItem( text, this, TQT_SLOT( gotoLine( int ) ) );
int line, column;
( *it ) ->getStartPosition( &line, &column );
@@ -822,7 +822,7 @@ void CppSupportPart::contextMenu( TQPopupMenu *popup, const Context *context )
{
m_activeClass = ( ClassModel* ) mcontext->item();
int id = popup->insertItem( i18n( "Extract Interface..." ), this, TQT_SLOT( slotExtractInterface() ) );
- popup->setWhatsThis( id, i18n( "<b>Extract interface</b><p>Extracts interface from the selected class and creates a new class with this interface. "
+ popup->tqsetWhatsThis( id, i18n( "<b>Extract interface</b><p>Extracts interface from the selected class and creates a new class with this interface. "
"No implementation code is extracted and no implementation code is created." ) );
}
else if ( mcontext->item() ->isFunction() )
@@ -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->tqsetWhatsThis( id, i18n( "<b>Create or select implementation</b><p>Creates or selects a subclass of selected form for use with integrated KDevDesigner." ) );
}
}
}
@@ -1558,7 +1558,7 @@ void CppSupportPart::slotParseFiles()
{
if ( _jd->pcs.contains( absFilePath ) )
{
- _jd->stream.device() ->at( _jd->pcs[ absFilePath ].second );
+ _jd->stream.tqdevice() ->at( _jd->pcs[ absFilePath ].second );
FileDom file = codeModel() ->create<FileModel>();
file->read( _jd->stream );
codeModel() ->addFile( file );
@@ -1777,7 +1777,7 @@ void CppSupportPart::MakeMemberHelper( TQString& text, int& atLine, int& atColum
TQString declStr = declaratorToString( declarator, scopeStr ).simplifyWhiteSpace();
if ( declarator->exceptionSpecification() )
{
- declStr += TQString::fromLatin1( " throw( " );
+ declStr += TQString::tqfromLatin1( " throw( " );
TQPtrList<AST> l = declarator->exceptionSpecification() ->nodeList();
TQPtrListIterator<AST> type_it( l );
while ( type_it.current() )
@@ -1786,10 +1786,10 @@ void CppSupportPart::MakeMemberHelper( TQString& text, int& atLine, int& atColum
++type_it;
if ( type_it.current() )
- declStr += TQString::fromLatin1( ", " );
+ declStr += TQString::tqfromLatin1( ", " );
}
- declStr += TQString::fromLatin1( " )" );
+ declStr += TQString::tqfromLatin1( " )" );
}
text += "\n\n";
@@ -2034,10 +2034,10 @@ TQString CppSupportPart::formatTag( const Tag & inputTag )
switch ( tag.kind() )
{
case Tag::Kind_Namespace:
- return TQString::fromLatin1( "namespace " ) + tag.name();
+ return TQString::tqfromLatin1( "namespace " ) + tag.name();
case Tag::Kind_Class:
- return TQString::fromLatin1( "class " ) + tag.name();
+ return TQString::tqfromLatin1( "class " ) + tag.name();
case Tag::Kind_Function:
case Tag::Kind_FunctionDeclaration:
@@ -2182,22 +2182,22 @@ void CppSupportPart::saveProjectSourceInfo()
if( m_timestamp.find( dom->name() ) == m_timestamp.end() ) {
kdDebug( 9007 ) << dom->name() << ": timestamp is missing " << endl;
}
- offsets.insert( dom->name(), stream.device() ->at() );
+ offsets.insert( dom->name(), stream.tqdevice() ->at() );
stream << ( uint ) 0; // dummy offset
}
for ( FileList::ConstIterator it = fileList.begin(); it != fileList.end(); ++it )
{
const FileDom dom = ( *it );
- int offset = stream.device() ->at();
+ int offset = stream.tqdevice() ->at();
dom->write( stream );
- int end = stream.device() ->at();
+ int end = stream.tqdevice() ->at();
- stream.device() ->at( offsets[ dom->name() ] );
+ stream.tqdevice() ->at( offsets[ dom->name() ] );
stream << offset;
- stream.device() ->at( end );
+ stream.tqdevice() ->at( end );
}
TQFile::remove( project() ->projectDirectory() + "/"
@@ -2259,7 +2259,7 @@ void CppSupportPart::slotExtractInterface( )
TQString ifaceFileName = fileInfo.dirPath( true ) + "/" + m_activeClass->name().lower() + "_interface.h";
if ( TQFile::exists( ifaceFileName ) )
{
- KMessageBox::error( mainWindow() ->main(), i18n( "File %1 already exists" ).arg( ifaceFileName ),
+ KMessageBox::error( mainWindow() ->main(), i18n( "File %1 already exists" ).tqarg( ifaceFileName ),
i18n( "C++ Support" ) );
}
else
@@ -2856,7 +2856,7 @@ void CppSupportPart::addMethod( ClassDom aClass, const TQString& name, const TQS
if ( !editIface )
return ; //@fixme errorverdoedelung
- editIface->insertLine( editIface->numLines(), TQString::fromLatin1( "" ) );
+ editIface->insertLine( editIface->numLines(), TQString::tqfromLatin1( "" ) );
editIface->insertText( editIface->numLines() - 1, 0, definitionString );
backgroundParser() ->addFile( implementationFile );
}
@@ -3118,7 +3118,7 @@ void CppSupportPart::addToRepository( ParsedFilePointer file ) {
w.parseTranslationUnit( *file );
codeRepository()->touchCatalog( catalog );
- m_safeProjectFiles.insert( file->fileName() + "||" + TQString("%1").arg(file->usedMacros().valueHash()) + "||" + TQString("%1").arg(file->usedMacros().idHash()) );
+ m_safeProjectFiles.insert( file->fileName() + "||" + TQString("%1").tqarg(file->usedMacros().valueHash()) + "||" + TQString("%1").tqarg(file->usedMacros().idHash()) );
}
TQString CppSupportPart::findHeaderSimple( const TQString &header )
@@ -3143,7 +3143,7 @@ void UIBlockTester::UIBlockTesterThread::run() {
while(!m_stop) {
msleep( m_parent.m_msecs / 10 );
m_parent.m_timeMutex.lock();
- TQDateTime t = TQDateTime::currentDateTime();
+ TQDateTime t = TQDateTime::tqcurrentDateTime();
uint msecs = m_parent.m_lastTime.time().msecsTo( t.time() );
if( msecs > m_parent.m_msecs ) {
m_parent.lockup();
@@ -3171,7 +3171,7 @@ UIBlockTester::~UIBlockTester() {
void UIBlockTester::timer() {
m_timeMutex.lock();
- m_lastTime = TQDateTime::currentDateTime();
+ m_lastTime = TQDateTime::tqcurrentDateTime();
m_timeMutex.unlock();
}