diff options
Diffstat (limited to 'kdevdesigner/designer/metadatabase.cpp')
-rw-r--r-- | kdevdesigner/designer/metadatabase.cpp | 354 |
1 files changed, 177 insertions, 177 deletions
diff --git a/kdevdesigner/designer/metadatabase.cpp b/kdevdesigner/designer/metadatabase.cpp index 5fc1960f..1a609f8f 100644 --- a/kdevdesigner/designer/metadatabase.cpp +++ b/kdevdesigner/designer/metadatabase.cpp @@ -1,15 +1,15 @@ /********************************************************************** ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. ** -** This file is part of Qt Designer. +** This file is part of TQt Designer. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** -** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition -** licenses may use this file in accordance with the Qt Commercial License +** Licensees holding valid TQt Enterprise Edition or TQt Professional Edition +** licenses may use this file in accordance with the TQt Commercial License ** Agreement provided with the Software. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE @@ -17,7 +17,7 @@ ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** See http://www.trolltech.com/pricing.html or email [email protected] for -** information about Qt Commercial License Agreements. +** information about TQt Commercial License Agreements. ** ** Contact [email protected] if any conditions of this licensing are ** not clear to you. @@ -50,7 +50,7 @@ #include <tqwidgetlist.h> #include <tqmainwindow.h> #include <tqregexp.h> -#include <private/qpluginmanager_p.h> +#include <private/tqpluginmanager_p.h> #include <tqdatetime.h> #include <tqfile.h> #include <tqfileinfo.h> @@ -88,7 +88,7 @@ static TQPtrList<MetaDataBase::CustomWidget> *cWidgets = 0; static bool doUpdate = TRUE; static TQStringList langList; static TQStringList editorLangList; -static QPluginManager<LanguageInterface> *languageInterfaceManager = 0; +static TQPluginManager<LanguageInterface> *languageInterfaceManager = 0; /*! \class MetaDataBase metadatabase.h @@ -126,7 +126,7 @@ void MetaDataBase::addEntry( TQObject *o ) if ( !o ) return; setupDataBase(); - if ( db->find( o ) ) + if ( db->tqfind( o ) ) return; MetaDataBaseRecord *r = new MetaDataBaseRecord; r->object = o; @@ -149,7 +149,7 @@ void MetaDataBase::setPropertyChanged( TQObject *o, const TQString &property, bo ( (PropertyObject*)o )->mdPropertyChanged( property, changed ); return; } - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -157,24 +157,24 @@ void MetaDataBase::setPropertyChanged( TQObject *o, const TQString &property, bo } if ( changed ) { - if ( r->changedProperties.findIndex( property ) == -1 ) + if ( r->changedProperties.tqfindIndex( property ) == -1 ) r->changedProperties.append( property ); } else { - if ( r->changedProperties.findIndex( property ) != -1 ) + if ( r->changedProperties.tqfindIndex( property ) != -1 ) r->changedProperties.remove( property ); } if ( doUpdate && ( property == "hAlign" || property == "vAlign" || property == "wordwrap" ) ) { doUpdate = FALSE; - setPropertyChanged( o, "alignment", changed || + setPropertyChanged( o, "tqalignment", changed || isPropertyChanged( o, "hAlign" ) || isPropertyChanged( o, "vAlign" ) || isPropertyChanged( o, "wordwrap" ) ); doUpdate = TRUE; } - if ( doUpdate && property == "alignment" ) { + if ( doUpdate && property == "tqalignment" ) { doUpdate = FALSE; setPropertyChanged( o, "hAlign", changed ); setPropertyChanged( o, "vAlign", changed ); @@ -188,20 +188,20 @@ bool MetaDataBase::isPropertyChanged( TQObject *o, const TQString &property ) setupDataBase(); if ( o->isA( "PropertyObject" ) ) return ( (PropertyObject*)o )->mdIsPropertyChanged( property ); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); return FALSE; } - return r->changedProperties.findIndex( property ) != -1; + return r->changedProperties.tqfindIndex( property ) != -1; } TQStringList MetaDataBase::changedProperties( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -219,7 +219,7 @@ void MetaDataBase::setPropertyComment( TQObject *o, const TQString &property, co ( (PropertyObject*)o )->mdSetPropertyComment( property, comment ); return; } - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -234,14 +234,14 @@ TQString MetaDataBase::propertyComment( TQObject *o, const TQString &property ) setupDataBase(); if ( o->isA( "PropertyObject" ) ) return ( (PropertyObject*)o )->mdPropertyComment( property ); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); - return TQString::null; + return TQString(); } - return *r->propertyComments.find( property ); + return *r->propertyComments.tqfind( property ); } void MetaDataBase::setFakeProperty( TQObject *o, const TQString &property, const TQVariant& value ) @@ -251,7 +251,7 @@ void MetaDataBase::setFakeProperty( TQObject *o, const TQString &property, const ( (PropertyObject*)o )->mdSetFakeProperty( property, value ); return; } - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -265,13 +265,13 @@ TQVariant MetaDataBase::fakeProperty( TQObject * o, const TQString &property) setupDataBase(); if ( o->isA( "PropertyObject" ) ) return ( (PropertyObject*)o )->mdFakeProperty( property ); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); return TQVariant(); } - TQMap<TQString, TQVariant>::Iterator it = r->fakeProperties.find( property ); + TQMap<TQString, TQVariant>::Iterator it = r->fakeProperties.tqfind( property ); if ( it != r->fakeProperties.end() ) return r->fakeProperties[property]; return WidgetFactory::defaultValue( o, property ); @@ -281,7 +281,7 @@ TQVariant MetaDataBase::fakeProperty( TQObject * o, const TQString &property) TQMap<TQString,TQVariant>* MetaDataBase::fakeProperties( TQObject* o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -295,7 +295,7 @@ void MetaDataBase::setSpacing( TQObject *o, int spacing ) if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r || !o->isWidgetType() ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -303,16 +303,16 @@ void MetaDataBase::setSpacing( TQObject *o, int spacing ) } r->spacing = spacing; - TQLayout * layout = 0; - WidgetFactory::layoutType( (TQWidget*)o, layout ); - if ( layout ) { + TQLayout * tqlayout = 0; + WidgetFactory::tqlayoutType( (TQWidget*)o, tqlayout ); + if ( tqlayout ) { int spadef = 6; if ( MainWindow::self->formWindow() ) - spadef = MainWindow::self->formWindow()->layoutDefaultSpacing(); + spadef = MainWindow::self->formWindow()->tqlayoutDefaultSpacing(); if ( spacing == -1 ) - layout->setSpacing( spadef ); + tqlayout->setSpacing( spadef ); else - layout->setSpacing( spacing ); + tqlayout->setSpacing( spacing ); } } @@ -321,9 +321,9 @@ int MetaDataBase::spacing( TQObject *o ) if ( !o ) return -1; setupDataBase(); - if ( ::qt_cast<TQMainWindow*>(o) ) - o = ( (TQMainWindow*)o )->centralWidget(); - MetaDataBaseRecord *r = db->find( (void*)o ); + if ( ::tqqt_cast<TQMainWindow*>(o) ) + o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget()); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r || !o->isWidgetType() ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -338,7 +338,7 @@ void MetaDataBase::setMargin( TQObject *o, int margin ) if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r || !o->isWidgetType() ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -346,30 +346,30 @@ void MetaDataBase::setMargin( TQObject *o, int margin ) } r->margin = margin; - TQLayout * layout = 0; - WidgetFactory::layoutType( (TQWidget*)o, layout ); + TQLayout * tqlayout = 0; + WidgetFactory::tqlayoutType( (TQWidget*)o, tqlayout ); bool isInnerLayout = TRUE; TQWidget *widget = (TQWidget*)o; - if ( widget && !::qt_cast<QLayoutWidget*>(widget) && - ( WidgetDatabase::isContainer( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( widget ) ) ) || - widget && widget->parentWidget() && ::qt_cast<FormWindow*>(widget->parentWidget()) ) ) + if ( widget && !::tqqt_cast<TQLayoutWidget*>(widget) && + ( WidgetDatabase::isContainer( WidgetDatabase::idFromClassName( WidgetFactory::classNameOf( TQT_TQOBJECT(widget) ) ) ) || + widget && widget->tqparentWidget() && ::tqqt_cast<FormWindow*>(widget->tqparentWidget()) ) ) isInnerLayout = FALSE; - if ( layout ) { + if ( tqlayout ) { int mardef = 11; if ( MainWindow::self->formWindow() ) - mardef = MainWindow::self->formWindow()->layoutDefaultMargin(); + mardef = MainWindow::self->formWindow()->tqlayoutDefaultMargin(); if ( margin == -1 ) { if ( isInnerLayout ) - layout->setMargin( 1 ); + tqlayout->setMargin( 1 ); else - layout->setMargin( QMAX( 1, mardef ) ); + tqlayout->setMargin( TQMAX( 1, mardef ) ); } else - layout->setMargin( QMAX( 1, margin ) ); + tqlayout->setMargin( TQMAX( 1, margin ) ); } } @@ -378,9 +378,9 @@ int MetaDataBase::margin( TQObject *o ) if ( !o ) return -1; setupDataBase(); - if ( ::qt_cast<TQMainWindow*>(o) ) - o = ( (TQMainWindow*)o )->centralWidget(); - MetaDataBaseRecord *r = db->find( (void*)o ); + if ( ::tqqt_cast<TQMainWindow*>(o) ) + o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget()); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r || !o->isWidgetType() ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -394,7 +394,7 @@ void MetaDataBase::setResizeMode( TQObject *o, const TQString &mode ) if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r || !o->isWidgetType() ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -407,15 +407,15 @@ void MetaDataBase::setResizeMode( TQObject *o, const TQString &mode ) TQString MetaDataBase::resizeMode( TQObject *o ) { if ( !o ) - return TQString::null; + return TQString(); setupDataBase(); - if ( ::qt_cast<TQMainWindow*>(o) ) - o = ( (TQMainWindow*)o )->centralWidget(); - MetaDataBaseRecord *r = db->find( (void*)o ); + if ( ::tqqt_cast<TQMainWindow*>(o) ) + o = TQT_TQOBJECT(( (TQMainWindow*)o )->centralWidget()); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r || !o->isWidgetType() ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); - return TQString::null; + return TQString(); } return r->resizeMode; } @@ -424,7 +424,7 @@ void MetaDataBase::addConnection( TQObject *o, TQObject *sender, const TQCString TQObject *receiver, const TQCString &slot, bool addCode ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -440,15 +440,15 @@ void MetaDataBase::addConnection( TQObject *o, TQObject *sender, const TQCString r->connections.append( conn ); if ( addCode ) { TQString rec = receiver->name(); - if ( ::qt_cast<FormWindow*>(o) && receiver == ( (FormWindow*)o )->mainContainer() ) + if ( ::tqqt_cast<FormWindow*>(o) && TQT_BASE_OBJECT(receiver) ==( (FormWindow*)o )->mainContainer() ) rec = "this"; TQString sen = sender->name(); - if ( ::qt_cast<FormWindow*>(o) && sender == ( (FormWindow*)o )->mainContainer() ) + if ( ::tqqt_cast<FormWindow*>(o) && TQT_BASE_OBJECT(sender) ==( (FormWindow*)o )->mainContainer() ) sen = "this"; FormFile *ff = 0; - if ( ::qt_cast<FormFile*>(o) ) + if ( ::tqqt_cast<FormFile*>(o) ) ff = (FormFile*)o; - else if ( ::qt_cast<FormWindow*>(o) ) + else if ( ::tqqt_cast<FormWindow*>(o) ) ff = ( (FormWindow*)o )->formFile(); ff->addConnection( sen, signal, rec, slot ); } @@ -458,7 +458,7 @@ void MetaDataBase::removeConnection( TQObject *o, TQObject *sender, const TQCStr TQObject *receiver, const TQCString &slot ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -468,17 +468,17 @@ void MetaDataBase::removeConnection( TQObject *o, TQObject *sender, const TQCStr return; for ( TQValueList<Connection>::Iterator it = r->connections.begin(); it != r->connections.end(); ++it ) { Connection conn = *it; - if ( conn.sender == sender && + if ( TQT_BASE_OBJECT(conn.sender) ==sender && conn.signal == signal && - conn.receiver == receiver && + TQT_BASE_OBJECT(conn.receiver) ==receiver && conn.slot == slot ) { r->connections.remove( it ); break; } } - if ( ::qt_cast<FormWindow*>(o) ) { + if ( ::tqqt_cast<FormWindow*>(o) ) { TQString rec = receiver->name(); - if ( receiver == ( (FormWindow*)o )->mainContainer() ) + if ( TQT_BASE_OBJECT(receiver) ==( (FormWindow*)o )->mainContainer() ) rec = "this"; ( (FormWindow*)o )->formFile()->removeConnection( sender->name(), signal, rec, slot ); } @@ -487,14 +487,14 @@ void MetaDataBase::removeConnection( TQObject *o, TQObject *sender, const TQCStr void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInterface::Connection> &conns ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); return; } - if ( !::qt_cast<FormFile*>(o) ) + if ( !::tqqt_cast<FormFile*>(o) ) return; FormFile *formfile = (FormFile*)o; @@ -505,8 +505,8 @@ void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInte cit != conns.end(); ++cit ) { // #### get the correct sender object out of Bla.Blub.sender TQString senderName = (*cit).sender; - if ( senderName.find( '.' ) != -1 ) - senderName = senderName.mid( senderName.findRev( '.' ) + 1 ); + if ( senderName.tqfind( '.' ) != -1 ) + senderName = senderName.mid( senderName.tqfindRev( '.' ) + 1 ); TQObject *sender = 0; if ( formfile->formWindow() ) sender = formfile->formWindow()->child( senderName ); @@ -514,8 +514,8 @@ void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInte sender = formfile->project()->objectForFakeFormFile( formfile ); if ( !sender && senderName == "this" ) sender = formfile->formWindow() ? - formfile->formWindow()->mainContainer() : - formfile->project()->objectForFakeFormFile( formfile ); + TQT_TQOBJECT(formfile->formWindow()->mainContainer()) : + TQT_TQOBJECT(formfile->project()->objectForFakeFormFile( formfile )); if ( !sender ) continue; MetaDataBase::addConnection( formfile->formWindow() ? @@ -524,8 +524,8 @@ void MetaDataBase::setupConnections( TQObject *o, const TQValueList<LanguageInte sender, (*cit).signal.latin1(), formfile->formWindow() ? - formfile->formWindow()->mainContainer() : - formfile->project()->objectForFakeFormFile( formfile ), + TQT_TQOBJECT(formfile->formWindow()->mainContainer()) : + TQT_TQOBJECT(formfile->project()->objectForFakeFormFile( formfile )), (*cit).slot.latin1(), FALSE ); } @@ -535,7 +535,7 @@ bool MetaDataBase::hasConnection( TQObject *o, TQObject *sender, const TQCString TQObject *receiver, const TQCString &slot ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -544,9 +544,9 @@ bool MetaDataBase::hasConnection( TQObject *o, TQObject *sender, const TQCString for ( TQValueList<Connection>::Iterator it = r->connections.begin(); it != r->connections.end(); ++it ) { Connection conn = *it; - if ( conn.sender == sender && + if ( TQT_BASE_OBJECT(conn.sender) ==sender && conn.signal == signal && - conn.receiver == receiver && + TQT_BASE_OBJECT(conn.receiver) ==receiver && conn.slot == slot ) return TRUE; } @@ -557,7 +557,7 @@ bool MetaDataBase::hasConnection( TQObject *o, TQObject *sender, const TQCString TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -570,7 +570,7 @@ TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQ TQObject *receiver ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -581,8 +581,8 @@ TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQ TQValueList<Connection>::Iterator conn; while ( ( conn = it ) != r->connections.end() ) { ++it; - if ( (*conn).sender == sender && - (*conn).receiver == receiver ) + if ( TQT_BASE_OBJECT((*conn).sender) ==sender && + TQT_BASE_OBJECT((*conn).receiver) ==receiver ) ret << *conn; } @@ -592,7 +592,7 @@ TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQ TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQObject *object ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -603,8 +603,8 @@ TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQ TQValueList<Connection>::Iterator conn; while ( ( conn = it ) != r->connections.end() ) { ++it; - if ( (*conn).sender == object || - (*conn).receiver == object ) + if ( TQT_BASE_OBJECT((*conn).sender) ==object || + TQT_BASE_OBJECT((*conn).receiver) ==object ) ret << *conn; } return ret; @@ -613,7 +613,7 @@ TQValueList<MetaDataBase::Connection> MetaDataBase::connections( TQObject *o, TQ void MetaDataBase::doConnections( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -648,16 +648,16 @@ void MetaDataBase::doConnections( TQObject *o ) delete l; } TQString s = "2""%1"; - s = s.arg( conn.signal ); + s = s.tqarg( conn.signal.data() ); TQString s2 = "1""%1"; - s2 = s2.arg( conn.slot ); + s2 = s2.tqarg( conn.slot.data() ); - TQStrList signalList = sender->metaObject()->signalNames( TRUE ); - TQStrList slotList = receiver->metaObject()->slotNames( TRUE ); + TQStrList signalList = sender->tqmetaObject()->signalNames( TRUE ); + TQStrList slotList = receiver->tqmetaObject()->slotNames( TRUE ); // avoid warnings - if ( signalList.find( conn.signal ) == -1 || - slotList.find( conn.slot ) == -1 ) + if ( signalList.tqfind( conn.signal ) == -1 || + slotList.tqfind( conn.slot ) == -1 ) continue; TQObject::connect( sender, s, receiver, s2 ); @@ -667,7 +667,7 @@ void MetaDataBase::doConnections( TQObject *o ) bool MetaDataBase::hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -675,18 +675,18 @@ bool MetaDataBase::hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom } if ( !onlyCustom ) { - TQStrList slotList = o->metaObject()->slotNames( TRUE ); - if ( slotList.find( slot ) != -1 ) + TQStrList slotList = o->tqmetaObject()->slotNames( TRUE ); + if ( slotList.tqfind( slot ) != -1 ) return TRUE; - if ( ::qt_cast<FormWindow*>(o) ) { - o = ( (FormWindow*)o )->mainContainer(); - slotList = o->metaObject()->slotNames( TRUE ); - if ( slotList.find( slot ) != -1 ) + if ( ::tqqt_cast<FormWindow*>(o) ) { + o = TQT_TQOBJECT(( (FormWindow*)o )->mainContainer()); + slotList = o->tqmetaObject()->slotNames( TRUE ); + if ( slotList.tqfind( slot ) != -1 ) return TRUE; } - //if ( ::qt_cast<CustomWidget*>(o) ) { + //if ( ::tqqt_cast<CustomWidget*>(o) ) { if ( o->inherits( "CustomWidget" ) ) { MetaDataBase::CustomWidget *w = ( (::CustomWidget*)o )->customWidget(); for ( TQValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) { @@ -711,7 +711,7 @@ bool MetaDataBase::hasSlot( TQObject *o, const TQCString &slot, bool onlyCustom bool MetaDataBase::isSlotUsed( TQObject *o, const TQCString &slot ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -732,7 +732,7 @@ void MetaDataBase::addFunction( TQObject *o, const TQCString &function, const TQ const TQString &returnType ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -746,7 +746,7 @@ void MetaDataBase::addFunction( TQObject *o, const TQCString &function, const TQ f.type = type; f.language = language; f.returnType = returnType; - TQValueList<MetaDataBase::Function>::Iterator it = r->functionList.find( f ); + TQValueList<MetaDataBase::Function>::Iterator it = r->functionList.tqfind( f ); if ( it != r->functionList.end() ) r->functionList.remove( it ); r->functionList.append( f ); @@ -756,7 +756,7 @@ void MetaDataBase::addFunction( TQObject *o, const TQCString &function, const TQ void MetaDataBase::setFunctionList( TQObject *o, const TQValueList<Function> &functionList ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -770,7 +770,7 @@ void MetaDataBase::removeFunction( TQObject *o, const TQCString &function, const const TQString &returnType ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -794,7 +794,7 @@ void MetaDataBase::removeFunction( TQObject *o, const TQCString &function, const void MetaDataBase::removeFunction( TQObject *o, const TQString &function ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -812,7 +812,7 @@ void MetaDataBase::removeFunction( TQObject *o, const TQString &function ) TQValueList<MetaDataBase::Function> MetaDataBase::functionList( TQObject *o, bool onlyFunctions ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -831,7 +831,7 @@ TQValueList<MetaDataBase::Function> MetaDataBase::functionList( TQObject *o, boo TQValueList<MetaDataBase::Function> MetaDataBase::slotList( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -849,7 +849,7 @@ void MetaDataBase::changeFunction( TQObject *o, const TQString &function, const const TQString &returnType ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -873,7 +873,7 @@ void MetaDataBase::changeFunctionAttributes( TQObject *o, const TQString &oldNam const TQString &returnType ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -897,7 +897,7 @@ void MetaDataBase::changeFunctionAttributes( TQObject *o, const TQString &oldNam bool MetaDataBase::hasFunction( TQObject *o, const TQCString &function, bool onlyCustom ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -905,18 +905,18 @@ bool MetaDataBase::hasFunction( TQObject *o, const TQCString &function, bool onl } if ( !onlyCustom ) { - TQStrList functionList = o->metaObject()->slotNames( TRUE ); - if ( functionList.find( function ) != -1 ) + TQStrList functionList = o->tqmetaObject()->slotNames( TRUE ); + if ( functionList.tqfind( function ) != -1 ) return TRUE; - if ( ::qt_cast<FormWindow*>(o) ) { - o = ( (FormWindow*)o )->mainContainer(); - functionList = o->metaObject()->slotNames( TRUE ); - if ( functionList.find( function ) != -1 ) + if ( ::tqqt_cast<FormWindow*>(o) ) { + o = TQT_TQOBJECT(( (FormWindow*)o )->mainContainer()); + functionList = o->tqmetaObject()->slotNames( TRUE ); + if ( functionList.tqfind( function ) != -1 ) return TRUE; } - //if ( ::qt_cast<CustomWidget*>(o) ) { + //if ( ::tqqt_cast<CustomWidget*>(o) ) { if ( o->inherits( "CustomWidget" ) ) { MetaDataBase::CustomWidget *w = ( (::CustomWidget*)o )->customWidget(); for ( TQValueList<Function>::Iterator it = w->lstSlots.begin(); it != w->lstSlots.end(); ++it ) { @@ -941,11 +941,11 @@ bool MetaDataBase::hasFunction( TQObject *o, const TQCString &function, bool onl TQString MetaDataBase::languageOfFunction( TQObject *o, const TQCString &function ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); - return TQString::null; + return TQString(); } TQString fu = normalizeFunction( function ); @@ -953,7 +953,7 @@ TQString MetaDataBase::languageOfFunction( TQObject *o, const TQCString &functio if ( fu == normalizeFunction( (*it).function ) ) return (*it).language; } - return TQString::null; + return TQString(); } bool MetaDataBase::addCustomWidget( CustomWidget *wid ) @@ -1034,7 +1034,7 @@ bool MetaDataBase::hasCustomWidget( const TQString &className ) void MetaDataBase::setTabOrder( TQWidget *w, const TQWidgetList &order ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*) w ); + MetaDataBaseRecord *r = db->tqfind( (void*) w ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", w, w->name(), w->className() ); @@ -1047,7 +1047,7 @@ void MetaDataBase::setTabOrder( TQWidget *w, const TQWidgetList &order ) TQWidgetList MetaDataBase::tabOrder( TQWidget *w ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*) w ); + MetaDataBaseRecord *r = db->tqfind( (void*) w ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", w, w->name(), w->className() ); @@ -1060,7 +1060,7 @@ TQWidgetList MetaDataBase::tabOrder( TQWidget *w ) void MetaDataBase::setIncludes( TQObject *o, const TQValueList<Include> &incs ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1073,7 +1073,7 @@ void MetaDataBase::setIncludes( TQObject *o, const TQValueList<Include> &incs ) TQValueList<MetaDataBase::Include> MetaDataBase::includes( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1086,7 +1086,7 @@ TQValueList<MetaDataBase::Include> MetaDataBase::includes( TQObject *o ) void MetaDataBase::setForwards( TQObject *o, const TQStringList &fwds ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1099,7 +1099,7 @@ void MetaDataBase::setForwards( TQObject *o, const TQStringList &fwds ) TQStringList MetaDataBase::forwards( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1112,7 +1112,7 @@ TQStringList MetaDataBase::forwards( TQObject *o ) void MetaDataBase::setVariables( TQObject *o, const TQValueList<Variable> &vars ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1125,7 +1125,7 @@ void MetaDataBase::setVariables( TQObject *o, const TQValueList<Variable> &vars void MetaDataBase::addVariable( TQObject *o, const TQString &name, const TQString &access ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1140,7 +1140,7 @@ void MetaDataBase::addVariable( TQObject *o, const TQString &name, const TQStrin void MetaDataBase::removeVariable( TQObject *o, const TQString &name ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1158,7 +1158,7 @@ void MetaDataBase::removeVariable( TQObject *o, const TQString &name ) TQValueList<MetaDataBase::Variable> MetaDataBase::variables( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1171,7 +1171,7 @@ TQValueList<MetaDataBase::Variable> MetaDataBase::variables( TQObject *o ) bool MetaDataBase::hasVariable( TQObject *o, const TQString &name ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1188,7 +1188,7 @@ bool MetaDataBase::hasVariable( TQObject *o, const TQString &name ) TQString MetaDataBase::extractVariableName( const TQString &name ) { - TQString n = name.right( name.length() - name.findRev( ' ' ) - 1 ); + TQString n = name.right( name.length() - name.tqfindRev( ' ' ) - 1 ); if ( n[ 0 ] == '*' || n[ 0 ] == '&' ) n[ 0 ] = ' '; if ( n[ (int)n.length() - 1 ] == ';' ) @@ -1199,7 +1199,7 @@ TQString MetaDataBase::extractVariableName( const TQString &name ) void MetaDataBase::setSignalList( TQObject *o, const TQStringList &sigs ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1213,10 +1213,10 @@ void MetaDataBase::setSignalList( TQObject *o, const TQStringList &sigs ) bool hasSemicolon = s.endsWith( ";" ); if ( hasSemicolon ) s = s.left( s.length() - 1 ); - int p = s.find( '(' ); + int p = s.tqfind( '(' ); if ( p < 0 ) p = s.length(); - int sp = s.find( ' ' ); + int sp = s.tqfind( ' ' ); if ( sp >= 0 && sp < p ) { s = s.mid( sp+1 ); p -= sp + 1; @@ -1232,7 +1232,7 @@ void MetaDataBase::setSignalList( TQObject *o, const TQStringList &sigs ) TQStringList MetaDataBase::signalList( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1245,7 +1245,7 @@ TQStringList MetaDataBase::signalList( TQObject *o ) void MetaDataBase::setMetaInfo( TQObject *o, MetaInfo mi ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1258,7 +1258,7 @@ void MetaDataBase::setMetaInfo( TQObject *o, MetaInfo mi ) MetaDataBase::MetaInfo MetaDataBase::metaInfo( TQObject *o ) { setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1276,7 +1276,7 @@ MetaDataBase::CustomWidget::CustomWidget() className = "MyCustomWidget"; includeFile = "mywidget.h"; includePolicy = Local; - sizeHint = TQSize( -1, -1 ); + tqsizeHint = TQSize( -1, -1 ); pixmap = new TQPixmap( BarIcon( "designer_customwidget.png", KDevDesignerPartFactory::instance() ) ); id = -1; sizePolicy = TQSizePolicy( TQSizePolicy::Preferred, TQSizePolicy::Preferred ); @@ -1288,7 +1288,7 @@ MetaDataBase::CustomWidget::CustomWidget( const CustomWidget &w ) className = w.className; includeFile = w.includeFile; includePolicy = w.includePolicy; - sizeHint = w.sizeHint; + tqsizeHint = w.tqsizeHint; if ( w.pixmap ) pixmap = new TQPixmap( *w.pixmap ); else @@ -1304,7 +1304,7 @@ void MetaDataBase::setCursor( TQWidget *w, const TQCursor &c ) ( (PropertyObject*)w )->mdSetCursor( c ); return; } - MetaDataBaseRecord *r = db->find( (void*)w ); + MetaDataBaseRecord *r = db->tqfind( (void*)w ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", w, w->name(), w->className() ); @@ -1319,7 +1319,7 @@ TQCursor MetaDataBase::cursor( TQWidget *w ) setupDataBase(); if ( w->isA( "PropertyObject" ) ) return ( (PropertyObject*)w )->mdCursor(); - MetaDataBaseRecord *r = db->find( (void*)w ); + MetaDataBaseRecord *r = db->tqfind( (void*)w ); if ( !r ) { w->unsetCursor(); return w->cursor(); @@ -1339,7 +1339,7 @@ MetaDataBase::CustomWidget &MetaDataBase::CustomWidget::operator=( const CustomW className = w.className; includeFile = w.includeFile; includePolicy = w.includePolicy; - sizeHint = w.sizeHint; + tqsizeHint = w.tqsizeHint; if ( w.pixmap ) pixmap = new TQPixmap( *w.pixmap ); else @@ -1354,8 +1354,8 @@ MetaDataBase::CustomWidget &MetaDataBase::CustomWidget::operator=( const CustomW bool MetaDataBase::CustomWidget::hasSignal( const TQCString &signal ) const { - TQStrList sigList = TQWidget::staticMetaObject()->signalNames( TRUE ); - if ( sigList.find( signal ) != -1 ) + TQStrList sigList = TQWidget::tqstaticMetaObject()->signalNames( TRUE ); + if ( sigList.tqfind( signal ) != -1 ) return TRUE; for ( TQValueList<TQCString>::ConstIterator it = lstSignals.begin(); it != lstSignals.end(); ++it ) { if ( normalizeFunction( *it ) == normalizeFunction( signal ) ) @@ -1366,8 +1366,8 @@ bool MetaDataBase::CustomWidget::hasSignal( const TQCString &signal ) const bool MetaDataBase::CustomWidget::hasSlot( const TQCString &slot ) const { - TQStrList slotList = TQWidget::staticMetaObject()->slotNames( TRUE ); - if ( slotList.find( normalizeFunction( slot ) ) != -1 ) + TQStrList slotList = TQWidget::tqstaticMetaObject()->slotNames( TRUE ); + if ( slotList.tqfind( normalizeFunction( slot ) ) != -1 ) return TRUE; for ( TQValueList<MetaDataBase::Function>::ConstIterator it = lstSlots.begin(); it != lstSlots.end(); ++it ) { @@ -1379,8 +1379,8 @@ bool MetaDataBase::CustomWidget::hasSlot( const TQCString &slot ) const bool MetaDataBase::CustomWidget::hasProperty( const TQCString &prop ) const { - TQStrList propList = TQWidget::staticMetaObject()->propertyNames( TRUE ); - if ( propList.find( prop ) != -1 ) + TQStrList propList = TQWidget::tqstaticMetaObject()->propertyNames( TRUE ); + if ( propList.tqfind( prop ) != -1 ) return TRUE; for ( TQValueList<MetaDataBase::Property>::ConstIterator it = lstProperties.begin(); it != lstProperties.end(); ++it ) { @@ -1395,7 +1395,7 @@ void MetaDataBase::setPixmapArgument( TQObject *o, int pixmap, const TQString &a if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1409,16 +1409,16 @@ void MetaDataBase::setPixmapArgument( TQObject *o, int pixmap, const TQString &a TQString MetaDataBase::pixmapArgument( TQObject *o, int pixmap ) { if ( !o ) - return TQString::null; + return TQString(); setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); - return TQString::null; + return TQString(); } - return *r->pixmapArguments.find( pixmap ); + return *r->pixmapArguments.tqfind( pixmap ); } void MetaDataBase::clearPixmapArguments( TQObject *o ) @@ -1426,7 +1426,7 @@ void MetaDataBase::clearPixmapArguments( TQObject *o ) if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1446,7 +1446,7 @@ void MetaDataBase::setPixmapKey( TQObject *o, int pixmap, const TQString &arg ) ( (PropertyObject*)o )->mdSetPixmapKey( pixmap, arg ); return; } - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1460,25 +1460,25 @@ void MetaDataBase::setPixmapKey( TQObject *o, int pixmap, const TQString &arg ) TQString MetaDataBase::pixmapKey( TQObject *o, int pixmap ) { if ( !o ) - return TQString::null; + return TQString(); setupDataBase(); if ( o->isA( "PropertyObject" ) ) return ( (PropertyObject*)o )->mdPixmapKey( pixmap ); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); - return TQString::null; + return TQString(); } - TQString s = *r->pixmapKeys.find( pixmap ); + TQString s = *r->pixmapKeys.tqfind( pixmap ); if ( !s.isNull() ) return s; if ( !o->isWidgetType() ) return s; TQWidget *w = (TQWidget*)o; if ( w->icon() ) - return *r->pixmapKeys.find( w->icon()->serialNumber() ); + return *r->pixmapKeys.tqfind( w->icon()->serialNumber() ); return s; } @@ -1487,7 +1487,7 @@ void MetaDataBase::clearPixmapKeys( TQObject *o ) if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1504,7 +1504,7 @@ void MetaDataBase::setColumnFields( TQObject *o, const TQMap<TQString, TQString> if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1519,7 +1519,7 @@ TQMap<TQString, TQString> MetaDataBase::columnFields( TQObject *o ) if ( !o ) return TQMap<TQString, TQString>(); setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1536,14 +1536,14 @@ void MetaDataBase::setEditor( const TQStringList &langs ) bool MetaDataBase::hasEditor( const TQString &lang ) { - return editorLangList.find( lang ) != editorLangList.end(); + return editorLangList.tqfind( lang ) != editorLangList.end(); } void MetaDataBase::setupInterfaceManagers( const TQString &plugDir ) { if ( !languageInterfaceManager ) { languageInterfaceManager = - new QPluginManager<LanguageInterface>( IID_Language, + new TQPluginManager<LanguageInterface>( IID_Language, TQApplication::libraryPaths(), // kapp->dirs()->resourceDirs("qtplugins"), plugDir ); @@ -1586,7 +1586,7 @@ void MetaDataBase::setBreakPoints( TQObject *o, const TQValueList<uint> &l ) if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1599,8 +1599,8 @@ void MetaDataBase::setBreakPoints( TQObject *o, const TQValueList<uint> &l ) while ( it != r->breakPointConditions.end() ) { int line = it.key(); ++it; - if ( r->breakPoints.find( line ) == r->breakPoints.end() ) - r->breakPointConditions.remove( r->breakPointConditions.find( line ) ); + if ( r->breakPoints.tqfind( line ) == r->breakPoints.end() ) + r->breakPointConditions.remove( r->breakPointConditions.tqfind( line ) ); } } @@ -1609,7 +1609,7 @@ TQValueList<uint> MetaDataBase::breakPoints( TQObject *o ) if ( !o ) return TQValueList<uint>(); setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1624,29 +1624,29 @@ void MetaDataBase::setBreakPointCondition( TQObject *o, int line, const TQString if ( !o ) return; setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); return; } - r->breakPointConditions.replace( line, condition ); + r->breakPointConditions.tqreplace( line, condition ); } TQString MetaDataBase::breakPointCondition( TQObject *o, int line ) { if ( !o ) - return TQString::null; + return TQString(); setupDataBase(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); - return TQString::null; + return TQString(); } - TQMap<int, TQString>::Iterator it = r->breakPointConditions.find( line ); + TQMap<int, TQString>::Iterator it = r->breakPointConditions.tqfind( line ); if ( it == r->breakPointConditions.end() ) - return TQString::null; + return TQString(); return *it; } @@ -1659,7 +1659,7 @@ void MetaDataBase::setExportMacro( TQObject *o, const TQString ¯o ) ( (PropertyObject*)o )->mdSetExportMacro( macro ); return; } - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1676,7 +1676,7 @@ TQString MetaDataBase::exportMacro( TQObject *o ) setupDataBase(); if ( o->isA( "PropertyObject" ) ) return ( (PropertyObject*)o )->mdExportMacro(); - MetaDataBaseRecord *r = db->find( (void*)o ); + MetaDataBaseRecord *r = db->tqfind( (void*)o ); if ( !r ) { qWarning( "No entry for %p (%s, %s) found in MetaDataBase", o, o->name(), o->className() ); @@ -1688,5 +1688,5 @@ TQString MetaDataBase::exportMacro( TQObject *o ) bool MetaDataBase::hasObject( TQObject *o ) { - return !!db->find( o ); + return !!db->tqfind( o ); } |