rename the following methods:

tqfind find
tqreplace replace
tqcontains contains


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kbfx@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent ba9755cbdc
commit 055401d5db

@ -45,7 +45,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
for ( it_requested = ConfigInit ().m_pluginsLeft.begin (); for ( it_requested = ConfigInit ().m_pluginsLeft.begin ();
it_requested != ConfigInit ().m_pluginsLeft.end (); ++it_requested ) it_requested != ConfigInit ().m_pluginsLeft.end (); ++it_requested )
{ {
if ( ( *it_available ).tqcontains ( *it_requested ) > 0 ) if ( ( *it_available ).contains ( *it_requested ) > 0 )
{ {
_not_present = FALSE; _not_present = FALSE;
break; break;
@ -57,7 +57,7 @@ TQStringList KbfxConfigDlgPlugins::KbfxListPlugins ( int panel )
for ( it_requested = ConfigInit ().m_pluginsRight.begin (); for ( it_requested = ConfigInit ().m_pluginsRight.begin ();
it_requested != ConfigInit ().m_pluginsRight.end (); ++it_requested ) it_requested != ConfigInit ().m_pluginsRight.end (); ++it_requested )
{ {
if ( ( *it_available ).tqcontains ( *it_requested ) > 0 ) if ( ( *it_available ).contains ( *it_requested ) > 0 )
{ {
_not_present = FALSE; _not_present = FALSE;
break; break;

@ -132,7 +132,7 @@ void KbfxConfigDlgThemes::ChangeForm()
<< KbfxThemesData().setThemeList ( ConfigInit().m_UserSpinxThemeBasePath ) [ConfigInit().m_SpinxThemeName] << KbfxThemesData().setThemeList ( ConfigInit().m_UserSpinxThemeBasePath ) [ConfigInit().m_SpinxThemeName]
<< endl; << endl;
KbfxThemeList->setSelected ( KbfxThemeList->tqfindItem ( ConfigInit().m_SpinxThemeName ), TRUE ); KbfxThemeList->setSelected ( KbfxThemeList->findItem ( ConfigInit().m_SpinxThemeName ), TRUE );
setKbfxThemePreview(); setKbfxThemePreview();

@ -27,7 +27,7 @@ KbfxPlasmaPixmapProvider::addPixmap ( TQString pixmapname )
TQString lFileName = PixmapPath( pixmapname ); TQString lFileName = PixmapPath( pixmapname );
TQPixmap * lPixmapPtr = 0; TQPixmap * lPixmapPtr = 0;
if ( ( lPixmapPtr = TQPixmapCache::tqfind ( pixmapname ) ) == NULL ) if ( ( lPixmapPtr = TQPixmapCache::find ( pixmapname ) ) == NULL )
{ {
lPixmapPtr = new TQPixmap ( lFileName ); lPixmapPtr = new TQPixmap ( lFileName );
TQPixmapCache::insert ( pixmapname,lPixmapPtr ); TQPixmapCache::insert ( pixmapname,lPixmapPtr );
@ -86,12 +86,12 @@ void KbfxPlasmaPixmapProvider::buildCache()
TQPixmapCache::setCacheLimit ( 1024*5 ); TQPixmapCache::setCacheLimit ( 1024*5 );
static TQStringList m_skinElements; static TQStringList m_skinElements;
m_skinElements m_skinElements
<<"apptqfind" <<"appfind"
<<"bg" <<"bg"
<<"botbg" <<"botbg"
<<"butterfly" <<"butterfly"
<<"dudebox" <<"dudebox"
<<"tqfind" <<"find"
<<"hover" <<"hover"
<<"indexseparator" <<"indexseparator"
<<"listboxbg" <<"listboxbg"
@ -132,7 +132,7 @@ KbfxPlasmaPixmapProvider::pixmap ( const TQString & key )
{ {
TQPixmap* pp; TQPixmap* pp;
TQPixmap p; TQPixmap p;
if ( ( pp=TQPixmapCache::tqfind ( key ) ) ) if ( ( pp=TQPixmapCache::find ( key ) ) )
{ {
return pp; return pp;
} }

@ -46,7 +46,7 @@ KbfxDataSource::lookup ( TQString str )
TQString _searchStr = m_text+m_comment+m_description+m_keyWords; TQString _searchStr = m_text+m_comment+m_description+m_keyWords;
if ( _searchStr.tqcontains ( str,false ) > 0 ) if ( _searchStr.contains ( str,false ) > 0 )
return true; return true;
return false; return false;

@ -59,7 +59,7 @@ KbfxDataStack::getStack ( TQString name )
{ {
if ( m_nameList.tqcontains ( name ) >0 ) if ( m_nameList.contains ( name ) >0 )
return m_stack[name]; return m_stack[name];
else else
{ {

@ -204,7 +204,7 @@ search ( TQString _keyword )
TQString *sPtr = new TQString (); TQString *sPtr = new TQString ();
( *sPtr ) = ( *s )->name () + ( *s )->genericName () + ( *s )->comment (); ( *sPtr ) = ( *s )->name () + ( *s )->genericName () + ( *s )->comment ();
if ( ( !sPtr->isNull () ) && sPtr->tqcontains ( _keyword, false ) > 0 ) if ( ( !sPtr->isNull () ) && sPtr->contains ( _keyword, false ) > 0 )
{ {
KbfxDataSource *data = new KbfxDataSource (); KbfxDataSource *data = new KbfxDataSource ();
data->setName ( ( *s )->name () ); data->setName ( ( *s )->name () );

@ -131,7 +131,7 @@ search ( TQString _keyword )
while ( ( fi = it.current () ) != 0 ) while ( ( fi = it.current () ) != 0 )
{ {
if ( fi->fileName ().tqcontains ( _keyword ) > 0 ) if ( fi->fileName ().contains ( _keyword ) > 0 )
{ {
KDesktopFile *desktop = new KDesktopFile ( fi->filePath () ); KDesktopFile *desktop = new KDesktopFile ( fi->filePath () );

@ -129,7 +129,7 @@ search ( TQString _keyword )
while ( ( fi = it.current () ) != 0 ) while ( ( fi = it.current () ) != 0 )
{ {
if ( fi->fileName ().tqcontains ( _keyword ) > 0 ) if ( fi->fileName ().contains ( _keyword ) > 0 )
{ {
KDesktopFile *desktop = new KDesktopFile ( fi->filePath () ); KDesktopFile *desktop = new KDesktopFile ( fi->filePath () );

@ -167,11 +167,11 @@ search ( TQString _keyword )
TQString name; TQString name;
std::map < std::string, std::string >::const_iterator it = std::map < std::string, std::string >::const_iterator it =
hits.hits[i].properties.tqfind ( "title" ); hits.hits[i].properties.find ( "title" );
TQString filename ( hits.hits[i].uri.c_str () ); TQString filename ( hits.hits[i].uri.c_str () );
if ( filename.tqcontains ( ".tar." ) > 0 ) if ( filename.contains ( ".tar." ) > 0 )
{ {
filename = "tar:" + filename; filename = "tar:" + filename;
kdDebug() << filename << endl; kdDebug() << filename << endl;
@ -183,7 +183,7 @@ search ( TQString _keyword )
} }
else else
{ {
uint pos = hits.hits[i].uri.rtqfind ( '/' ); uint pos = hits.hits[i].uri.rfind ( '/' );
if ( pos == std::string::npos ) if ( pos == std::string::npos )
{ {
name = hits.hits[i].uri; name = hits.hits[i].uri;

@ -105,7 +105,7 @@ TQCString KbfxButton::findPanel()
it != objects.end(); it != objects.end();
++it) ++it)
{ {
if ( (*it).tqcontains ( "Panel" ) > 0 ) if ( (*it).contains ( "Panel" ) > 0 )
{ {
DCOPRef _dcop_obj ( "kicker", (*it) ); DCOPRef _dcop_obj ( "kicker", (*it) );
TQStringList _dcop_obj_applets =_dcop_obj.call ( "listApplets()" ); TQStringList _dcop_obj_applets =_dcop_obj.call ( "listApplets()" );
@ -114,7 +114,7 @@ TQCString KbfxButton::findPanel()
_it != _dcop_obj_applets.end(); _it != _dcop_obj_applets.end();
_it++ ) _it++ )
{ {
if ( ( *_it ).tqcontains ( "kbfx" ) ) if ( ( *_it ).contains ( "kbfx" ) )
{ {
m_AppletPanel = (*it); m_AppletPanel = (*it);
break; break;
@ -308,7 +308,7 @@ void KbfxButton::selfDeleter()
for ( it = returnTQStringList.begin();it != returnTQStringList.end();it++ ) for ( it = returnTQStringList.begin();it != returnTQStringList.end();it++ )
{ {
if ( ( *it ).tqcontains ( "kbfx" ) ) if ( ( *it ).contains ( "kbfx" ) )
{ {
break; break;
} }
@ -371,17 +371,17 @@ void KbfxButton::dropEvent ( TQDropEvent * e )
{ {
_tmp = ( *it ); _tmp = ( *it );
kdDebug() << "KBFX button dropped file: " << _tmp << endl; kdDebug() << "KBFX button dropped file: " << _tmp << endl;
if ( _tmp.tqcontains ( "hover", FALSE ) > 0 ) if ( _tmp.contains ( "hover", FALSE ) > 0 )
{ {
_hover = _tmp; _hover = _tmp;
_hover_pix = TQImage ( _tmp ); _hover_pix = TQImage ( _tmp );
} }
if ( _tmp.tqcontains ( "normal", FALSE ) > 0 ) if ( _tmp.contains ( "normal", FALSE ) > 0 )
{ {
_normal = _tmp; _normal = _tmp;
_normal_pix = TQImage ( _tmp ); _normal_pix = TQImage ( _tmp );
} }
if ( _tmp.tqcontains ( "pressed", FALSE ) > 0 ) if ( _tmp.contains ( "pressed", FALSE ) > 0 )
{ {
_pressed = _tmp; _pressed = _tmp;
_pressed_pix = TQImage ( _tmp ); _pressed_pix = TQImage ( _tmp );

@ -96,7 +96,7 @@ KbfxPlasmaCanvasGroup::addItem ( KbfxPlasmaCanvasAbstractItem * it )
qDebug ( "Adding Failed bcos Name Missing" ); qDebug ( "Adding Failed bcos Name Missing" );
return false; return false;
} }
ItemListMap::ConstIterator itn = itemListMap ().tqfind ( it ); ItemListMap::ConstIterator itn = itemListMap ().find ( it );
if ( itn != itemListMap ().end () ) if ( itn != itemListMap ().end () )
{ {
qDebug ( "Adding Failed Due to Item not end" ); qDebug ( "Adding Failed Due to Item not end" );
@ -308,7 +308,7 @@ KbfxPlasmaCanvasGroup::width ()
KbfxPlasmaCanvasGroup * KbfxPlasmaCanvasGroup *
KbfxPlasmaCanvasGroup::groupContaining ( KbfxPlasmaCanvasAbstractItem * item ) KbfxPlasmaCanvasGroup::groupContaining ( KbfxPlasmaCanvasAbstractItem * item )
{ {
ItemListMap::ConstIterator it = itemListMap ().tqfind ( item ); ItemListMap::ConstIterator it = itemListMap ().find ( item );
if ( it == itemListMap ().end () ) if ( it == itemListMap ().end () )
return 0; return 0;
else else

@ -74,7 +74,7 @@ KbfxPlasmaCanvasGroupView::addGroup ( KbfxPlasmaCanvasGroup * gPtr )
} }
KbfxPlasmaCanvasGroupView * KbfxPlasmaCanvasGroupView *
KbfxPlasmaCanvasGroupView::tqcontains ( KbfxPlasmaCanvasGroup * ) KbfxPlasmaCanvasGroupView::contains ( KbfxPlasmaCanvasGroup * )
{ {
//maybe I don't need this //maybe I don't need this
return 0; return 0;

@ -45,7 +45,7 @@ class KbfxPlasmaCanvasGroupView:public TQObject
void addGroup ( KbfxPlasmaCanvasGroup* ); void addGroup ( KbfxPlasmaCanvasGroup* );
void deleteGroup ( KbfxPlasmaCanvasGroup* ); void deleteGroup ( KbfxPlasmaCanvasGroup* );
KbfxPlasmaCanvasGroupView* tqcontains ( KbfxPlasmaCanvasGroup* ); KbfxPlasmaCanvasGroupView* contains ( KbfxPlasmaCanvasGroup* );
virtual int rtti() {return 1006;} virtual int rtti() {return 1006;}
void predend ( KbfxPlasmaCanvasGroup* ); void predend ( KbfxPlasmaCanvasGroup* );
void append ( KbfxPlasmaCanvasGroup * ); void append ( KbfxPlasmaCanvasGroup * );

@ -97,11 +97,11 @@ KbfxPlasmaCanvasItem::lookup ( TQString str )
if ( m_type == SEPARATOR || m_type == INDEX ) if ( m_type == SEPARATOR || m_type == INDEX )
return false; return false;
if ( m_labelText.tqcontains ( str,false ) > 0 ) if ( m_labelText.contains ( str,false ) > 0 )
return true; return true;
if ( m_commentText.tqcontains ( str,false ) > 0 ) if ( m_commentText.contains ( str,false ) > 0 )
return true; return true;
if ( m_exec.tqcontains ( str,false ) >0 ) if ( m_exec.contains ( str,false ) >0 )
return true; return true;

@ -81,10 +81,10 @@ KbfxPlasmaCanvasStack::raise ( uint id )
bool bool
KbfxPlasmaCanvasStack::tqcontains ( TQString name ) KbfxPlasmaCanvasStack::contains ( TQString name )
{ {
//FIXME:Depricated Data Structure Needs fixing //FIXME:Depricated Data Structure Needs fixing
if ( m_dict.tqcontains ( name ) == true ) if ( m_dict.contains ( name ) == true )
return true; return true;
else else
return false; return false;

@ -48,7 +48,7 @@ class KbfxPlasmaCanvasStack:public TQObject
virtual ~KbfxPlasmaCanvasStack(); virtual ~KbfxPlasmaCanvasStack();
void addGroup ( KbfxPlasmaCanvasGroupView* ); void addGroup ( KbfxPlasmaCanvasGroupView* );
void deleteGroup ( KbfxPlasmaCanvasGroupView* ); void deleteGroup ( KbfxPlasmaCanvasGroupView* );
KbfxPlasmaCanvasStack* tqcontains ( KbfxPlasmaCanvasGroupView* ); KbfxPlasmaCanvasStack* contains ( KbfxPlasmaCanvasGroupView* );
TQString getItemName ( int ); TQString getItemName ( int );
virtual int rtti() {return 1006;} virtual int rtti() {return 1006;}
void predend ( KbfxPlasmaCanvasGroupView* ); void predend ( KbfxPlasmaCanvasGroupView* );
@ -66,7 +66,7 @@ class KbfxPlasmaCanvasStack:public TQObject
} }
TQString name() {return m_name;} TQString name() {return m_name;}
void setName ( TQString name ) { m_name = name;} void setName ( TQString name ) { m_name = name;}
bool tqcontains ( TQString ); bool contains ( TQString );
KbfxPlasmaCanvasGroupView * activeViewByName ( TQString name ); KbfxPlasmaCanvasGroupView * activeViewByName ( TQString name );
public slots: public slots:
void raise ( uint id ); void raise ( uint id );

@ -376,7 +376,7 @@ KbfxPlasmaCanvasView::handleLoadRequest ( KbfxSignal signal )
( *it )->hide (); ( *it )->hide ();
} }
if ( m_appletMap[signal.name () ]->tqcontains ( _activateGroup ) != true ) if ( m_appletMap[signal.name () ]->contains ( _activateGroup ) != true )
{ {
loadGroup ( _dataList, gview ); loadGroup ( _dataList, gview );
m_currentView = gview; m_currentView = gview;
@ -562,7 +562,7 @@ KbfxPlasmaCanvasView::search ( const TQString & str )
void void
KbfxPlasmaCanvasView::addStack ( KbfxPlasmaCanvasStack * stak, TQString name ) KbfxPlasmaCanvasView::addStack ( KbfxPlasmaCanvasStack * stak, TQString name )
{ {
if ( m_appletMap.tqcontains ( name ) ) if ( m_appletMap.contains ( name ) )
{ {
return; return;
} }
@ -572,7 +572,7 @@ KbfxPlasmaCanvasView::addStack ( KbfxPlasmaCanvasStack * stak, TQString name )
void void
KbfxPlasmaCanvasView::addStack ( KbfxDataStack * stak, TQString name ) KbfxPlasmaCanvasView::addStack ( KbfxDataStack * stak, TQString name )
{ {
if ( m_dataStack.tqcontains ( name ) ) if ( m_dataStack.contains ( name ) )
{ {
return; return;
} }

@ -271,7 +271,7 @@ KbfxPlasmaIndexView::setKbfxCanvas ( TQCanvas * cnv )
void void
KbfxPlasmaIndexView::loadPlugin ( TQString name, KbfxPlasmaCanvasView * view ) KbfxPlasmaIndexView::loadPlugin ( TQString name, KbfxPlasmaCanvasView * view )
{ {
if ( m_pluginList.tqcontains ( name ) <= 0 ) if ( m_pluginList.contains ( name ) <= 0 )
{ {
KbfxPlasmaPluginLoader *m_loader = new KbfxPlasmaPluginLoader (); KbfxPlasmaPluginLoader *m_loader = new KbfxPlasmaPluginLoader ();
KbfxDataStack *m_stack_R = m_loader->getView ( name ); KbfxDataStack *m_stack_R = m_loader->getView ( name );

@ -71,7 +71,7 @@ KbfxSpinxMenuWidget::init()
m_searchTag->move ( ConfigInit ().m_searchBox_x, m_searchTag->move ( ConfigInit ().m_searchBox_x,
ConfigInit ().m_searchBox_y ); ConfigInit ().m_searchBox_y );
TQPixmap m_searchPixmap = ( *KbfxPlasmaPixmapProvider::pixmap ( "tqfind" ) ); TQPixmap m_searchPixmap = ( *KbfxPlasmaPixmapProvider::pixmap ( "find" ) );
m_searchTag->setPixmap ( m_searchPixmap ); m_searchTag->setPixmap ( m_searchPixmap );
@ -320,7 +320,7 @@ KbfxSpinxMenuWidget::loadPluginLeft ( TQString name )
if (name == NULL) { if (name == NULL) {
return; return;
} }
if ( m_loadedListLeft.tqcontains ( name ) <= 0 ) if ( m_loadedListLeft.contains ( name ) <= 0 )
{ {
m_loader = new KbfxPlasmaPluginLoader (); m_loader = new KbfxPlasmaPluginLoader ();
m_stack_R = m_loader->getView ( name ); m_stack_R = m_loader->getView ( name );
@ -344,7 +344,7 @@ KbfxSpinxMenuWidget::loadPluginLeft ( TQString name )
void void
KbfxSpinxMenuWidget::loadPluginRight ( TQString name ) KbfxSpinxMenuWidget::loadPluginRight ( TQString name )
{ {
if ( m_loadedListRight.tqcontains ( name ) <= 0 ) if ( m_loadedListRight.contains ( name ) <= 0 )
{ {
m_loader = new KbfxPlasmaPluginLoader (); m_loader = new KbfxPlasmaPluginLoader ();
m_stack_R = m_loader->getView ( name ); m_stack_R = m_loader->getView ( name );

Loading…
Cancel
Save