diff options
Diffstat (limited to 'knights/core.cpp')
-rw-r--r-- | knights/core.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/knights/core.cpp b/knights/core.cpp index 69e59fd..0caf844 100644 --- a/knights/core.cpp +++ b/knights/core.cpp @@ -90,7 +90,7 @@ void core::createNewIO( int type, int ID, int side, int str ) else { /* Use an existing internetIO */ - internetioPtr = (io_internet*) myIOMap.tqfind(Null); + internetioPtr = (io_internet*) myIOMap.find(Null); if( internetioPtr == NULL ) { kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl; @@ -114,12 +114,12 @@ void core::createNewIO( int type, int ID, int side, int str ) } else { - internetioPtr = (io_internet*) myIOMap.tqfind(ID); + internetioPtr = (io_internet*) myIOMap.find(ID); if( internetioPtr == NULL ) { /* no io mapped to the ID yet, use the internetio */ /* Use an existing internetIO */ - internetioPtr = (io_internet*) myIOMap.tqfind(Null); + internetioPtr = (io_internet*) myIOMap.find(Null); if( internetioPtr == NULL ) { kdWarning() << "core::createNewIO: Trying to connect a match to an internetIO that doesn't exsist." << endl; @@ -214,7 +214,7 @@ void core::setMatch( int ID ) /* Now display the new match, and connect it's signals to the GUI */ - currentMatch = myMatchMap.tqfind( ID ); + currentMatch = myMatchMap.find( ID ); currentMatch->setVisibility( TRUE ); myButtonGroup->setButton( ID ); connect( currentMatch, TQT_SIGNAL( setClocks() ), this, TQT_SLOT( slot_setClocks() ) ); @@ -264,7 +264,7 @@ bool core::clearMatch( int id ) return FALSE; } } - departingMatch = myMatchMap.tqfind(id); + departingMatch = myMatchMap.find(id); /* A bad ID was passed */ if( departingMatch == NULL ) @@ -305,7 +305,7 @@ bool core::clearMatch( int id ) } /* Remove IOs in this match... */ - ioPtr = myIOMap.tqfind(id); + ioPtr = myIOMap.find(id); while( ioPtr != NULL ) { myIOMap.remove( id ); @@ -313,7 +313,7 @@ bool core::clearMatch( int id ) { delete ioPtr; } - ioPtr = myIOMap.tqfind(id); + ioPtr = myIOMap.find(id); } /* ...and remove the match */ @@ -357,7 +357,7 @@ void core::command2IO( const Command &command ) io_base *io; int id = ((Command)command).getID(); - io = myIOMap.tqfind(id); + io = myIOMap.find(id); while( io != NULL ) { io->recvCMD(command); @@ -375,7 +375,7 @@ void core::command2Match( const Command &command ) match *matchPtr; Command cmd = command; - matchPtr = myMatchMap.tqfind( cmd.getID() ); + matchPtr = myMatchMap.find( cmd.getID() ); while( matchPtr != NULL ) { /* Catch Commands Meant for Core */ @@ -503,7 +503,7 @@ TQString core::caption( void ) { TQButton *Button; if( currentMatch == NULL ) return TQString(); - Button = myButtonGroup->tqfind( currentMatch->getID() ); + Button = myButtonGroup->find( currentMatch->getID() ); if( Button != NULL ) Button->setText( currentMatch->caption() ); return currentMatch->caption(); } @@ -599,7 +599,7 @@ void core::print( int ID ) } else { - m2p = myMatchMap.tqfind( ID ); + m2p = myMatchMap.find( ID ); } if( m2p == NULL ) return; m2p->print(); @@ -650,7 +650,7 @@ bool core::save( const int ID, const bool Prompt, const bool SaveAs ) } else { - match2bSaved = myMatchMap.tqfind( ID ); + match2bSaved = myMatchMap.find( ID ); } if( match2bSaved == NULL ) return FALSE; if( Prompt ) @@ -683,7 +683,7 @@ bool core::save( const int ID, const bool Prompt, const bool SaveAs ) { return FALSE; } - if( URL.tqfindRev( ".pgn", -1, FALSE ) == -1 ) + if( URL.findRev( ".pgn", -1, FALSE ) == -1 ) { URL += ".pgn"; } |