@ -67,12 +67,12 @@
LogTextEdit : : LogTextEdit ( TQWidget * parent , const char * name ) : TQTextEdit ( parent , name )
{
# ifdef KDE_3_2_FEATURES
m_clear = KStdAction : : clear ( this , TQ T _SLOT( clear ( ) ) , 0 ) ;
m_clear = KStdAction : : clear ( this , TQ _SLOT( clear ( ) ) , 0 ) ;
# else
m_clear = new TDEAction ( i18n ( " Clear " ) , " clear " , NULL , this , TQ T _SLOT( clear ( ) ) , static_cast < TDEActionCollection * > ( 0 ) , " clear " ) ;
m_clear = new TDEAction ( i18n ( " Clear " ) , " clear " , NULL , this , TQ _SLOT( clear ( ) ) , static_cast < TDEActionCollection * > ( 0 ) , " clear " ) ;
# endif
m_selectAll = KStdAction : : selectAll ( this , TQ T _SLOT( selectAll ( ) ) , 0 ) ;
m_copy = KStdAction : : copy ( this , TQ T _SLOT( copy ( ) ) , 0 ) ;
m_selectAll = KStdAction : : selectAll ( this , TQ _SLOT( selectAll ( ) ) , 0 ) ;
m_copy = KStdAction : : copy ( this , TQ _SLOT( copy ( ) ) , 0 ) ;
}
LogTextEdit : : ~ LogTextEdit ( )
@ -102,13 +102,13 @@ Atlantik::Atlantik ()
readConfig ( ) ;
// Toolbar: Game
// KStdGameAction::gameNew(this, TQ T _SLOT(slotNewGame()), actionCollection(), "game_new");
m_showEventLog = new TDEAction ( i18n ( " Show Event &Log " ) /*, "atlantik_showeventlog"*/ , CTRL + Key_L , this , TQ T _SLOT( showEventLog ( ) ) , actionCollection ( ) , " showeventlog " ) ;
KStdGameAction : : quit ( kapp , TQ T _SLOT( closeAllWindows ( ) ) , actionCollection ( ) , " game_quit " ) ;
// KStdGameAction::gameNew(this, TQ _SLOT(slotNewGame()), actionCollection(), "game_new");
m_showEventLog = new TDEAction ( i18n ( " Show Event &Log " ) /*, "atlantik_showeventlog"*/ , CTRL + Key_L , this , TQ _SLOT( showEventLog ( ) ) , actionCollection ( ) , " showeventlog " ) ;
KStdGameAction : : quit ( kapp , TQ _SLOT( closeAllWindows ( ) ) , actionCollection ( ) , " game_quit " ) ;
// Toolbar: Settings
KStdAction : : preferences ( this , TQ T _SLOT( slotConfigure ( ) ) , actionCollection ( ) ) ;
KStdAction : : configureNotifications ( this , TQ T _SLOT( configureNotifications ( ) ) , actionCollection ( ) ) ;
KStdAction : : preferences ( this , TQ _SLOT( slotConfigure ( ) ) , actionCollection ( ) ) ;
KStdAction : : configureNotifications ( this , TQ _SLOT( configureNotifications ( ) ) , actionCollection ( ) ) ;
// Initialize pointers to 0L
m_configDialog = 0 ;
@ -121,28 +121,28 @@ Atlantik::Atlantik ()
// Game and network core
m_atlanticCore = new AtlanticCore ( this , " atlanticCore " ) ;
connect ( m_atlanticCore , TQ T _SIGNAL( createGUI ( Player * ) ) , this , TQ T _SLOT( newPlayer ( Player * ) ) ) ;
connect ( m_atlanticCore , TQ T _SIGNAL( removeGUI ( Player * ) ) , this , TQ T _SLOT( removeGUI ( Player * ) ) ) ;
connect ( m_atlanticCore , TQ T _SIGNAL( createGUI ( Trade * ) ) , this , TQ T _SLOT( newTrade ( Trade * ) ) ) ;
connect ( m_atlanticCore , TQ T _SIGNAL( removeGUI ( Trade * ) ) , this , TQ T _SLOT( removeGUI ( Trade * ) ) ) ;
connect ( m_atlanticCore , TQ _SIGNAL( createGUI ( Player * ) ) , this , TQ _SLOT( newPlayer ( Player * ) ) ) ;
connect ( m_atlanticCore , TQ _SIGNAL( removeGUI ( Player * ) ) , this , TQ _SLOT( removeGUI ( Player * ) ) ) ;
connect ( m_atlanticCore , TQ _SIGNAL( createGUI ( Trade * ) ) , this , TQ _SLOT( newTrade ( Trade * ) ) ) ;
connect ( m_atlanticCore , TQ _SIGNAL( removeGUI ( Trade * ) ) , this , TQ _SLOT( removeGUI ( Trade * ) ) ) ;
initEventLog ( ) ;
initNetworkObject ( ) ;
// Menu,toolbar: Move
m_roll = KStdGameAction : : roll ( this , TQ T _SIGNAL( rollDice ( ) ) , actionCollection ( ) ) ;
m_roll = KStdGameAction : : roll ( this , TQ _SIGNAL( rollDice ( ) ) , actionCollection ( ) ) ;
m_roll - > setEnabled ( false ) ;
m_buyEstate = new TDEAction ( i18n ( " &Buy " ) , " atlantik_buy_estate " , CTRL + Key_B , this , TQ T _SIGNAL( buyEstate ( ) ) , actionCollection ( ) , " buy_estate " ) ;
m_buyEstate = new TDEAction ( i18n ( " &Buy " ) , " atlantik_buy_estate " , CTRL + Key_B , this , TQ _SIGNAL( buyEstate ( ) ) , actionCollection ( ) , " buy_estate " ) ;
m_buyEstate - > setEnabled ( false ) ;
m_auctionEstate = new TDEAction ( i18n ( " &Auction " ) , " auction " , CTRL + Key_A , this , TQ T _SIGNAL( auctionEstate ( ) ) , actionCollection ( ) , " auction " ) ;
m_auctionEstate = new TDEAction ( i18n ( " &Auction " ) , " auction " , CTRL + Key_A , this , TQ _SIGNAL( auctionEstate ( ) ) , actionCollection ( ) , " auction " ) ;
m_auctionEstate - > setEnabled ( false ) ;
m_endTurn = KStdGameAction : : endTurn ( this , TQ T _SIGNAL( endTurn ( ) ) , actionCollection ( ) ) ;
m_endTurn = KStdGameAction : : endTurn ( this , TQ _SIGNAL( endTurn ( ) ) , actionCollection ( ) ) ;
m_endTurn - > setEnabled ( false ) ;
m_jailCard = new TDEAction ( i18n ( " Use Card to Leave Jail " ) /*, "atlantik_move_jail_card"*/ , 0 , this , TQ T _SIGNAL( jailCard ( ) ) , actionCollection ( ) , " move_jailcard " ) ;
m_jailCard = new TDEAction ( i18n ( " Use Card to Leave Jail " ) /*, "atlantik_move_jail_card"*/ , 0 , this , TQ _SIGNAL( jailCard ( ) ) , actionCollection ( ) , " move_jailcard " ) ;
m_jailCard - > setEnabled ( false ) ;
m_jailPay = new TDEAction ( i18n ( " &Pay to Leave Jail " ) , " jail_pay " , CTRL + Key_P , this , TQ T _SIGNAL( jailPay ( ) ) , actionCollection ( ) , " move_jailpay " ) ;
m_jailPay = new TDEAction ( i18n ( " &Pay to Leave Jail " ) , " jail_pay " , CTRL + Key_P , this , TQ _SIGNAL( jailPay ( ) ) , actionCollection ( ) , " move_jailpay " ) ;
m_jailPay - > setEnabled ( false ) ;
m_jailRoll = new TDEAction ( i18n ( " Roll to Leave &Jail " ) /*, "atlantik_move_jail_roll"*/ , CTRL + Key_J , this , TQ T _SIGNAL( jailRoll ( ) ) , actionCollection ( ) , " move_jailroll " ) ;
m_jailRoll = new TDEAction ( i18n ( " Roll to Leave &Jail " ) /*, "atlantik_move_jail_roll"*/ , CTRL + Key_J , this , TQ _SIGNAL( jailRoll ( ) ) , actionCollection ( ) , " move_jailroll " ) ;
m_jailRoll - > setEnabled ( false ) ;
// Mix code and XML into GUI
@ -150,7 +150,7 @@ Atlantik::Atlantik ()
applyMainWindowSettings ( TDEGlobal : : config ( ) , " AtlantikMainWindow " ) ;
TDEMainWindow : : statusBar ( ) - > insertItem ( " Atlantik " ATLANTIK_VERSION_STRING , 0 ) ;
TDEMainWindow : : statusBar ( ) - > insertItem ( TQString ( ) , 1 ) ;
connect ( statusBar ( ) , TQ T _SIGNAL( released ( int ) ) , this , TQ T _SLOT( statusBarClick ( int ) ) ) ;
connect ( statusBar ( ) , TQ _SIGNAL( released ( int ) ) , this , TQ _SLOT( statusBarClick ( int ) ) ) ;
// Main widget, containing all others
m_mainWidget = new TQWidget ( this , " main " ) ;
@ -192,7 +192,7 @@ Atlantik::Atlantik ()
m_serverMsgs - > setFocusProxy ( m_input ) ;
connect ( m_input , TQ T _SIGNAL( returnPressed ( ) ) , this , TQ T _SLOT( slotSendMsg ( ) ) ) ;
connect ( m_input , TQ _SIGNAL( returnPressed ( ) ) , this , TQ _SLOT( slotSendMsg ( ) ) ) ;
// Set stretching where we want it.
m_mainLayout - > setRowStretch ( 1 , 1 ) ; // make m_board+m_serverMsgs stretch vertically, not the rest
@ -253,9 +253,9 @@ void Atlantik::newPlayer(Player *player)
// we'd better force an update.
playerChanged ( player ) ;
connect ( player , TQ T _SIGNAL( changed ( Player * ) ) , this , TQ T _SLOT( playerChanged ( Player * ) ) ) ;
connect ( player , TQ T _SIGNAL( gainedTurn ( ) ) , this , TQ T _SLOT( gainedTurn ( ) ) ) ;
connect ( player , TQ T _SIGNAL( changed ( Player * ) ) , m_board , TQ T _SLOT( playerChanged ( Player * ) ) ) ;
connect ( player , TQ _SIGNAL( changed ( Player * ) ) , this , TQ _SLOT( playerChanged ( Player * ) ) ) ;
connect ( player , TQ _SIGNAL( gainedTurn ( ) ) , this , TQ _SLOT( gainedTurn ( ) ) ) ;
connect ( player , TQ _SIGNAL( changed ( Player * ) ) , m_board , TQ _SLOT( playerChanged ( Player * ) ) ) ;
KNotifyClient : : event ( winId ( ) , " newplayer " ) ;
}
@ -314,8 +314,8 @@ void Atlantik::showSelectServer()
m_atlanticCore - > reset ( true ) ;
initNetworkObject ( ) ;
connect ( m_selectServer , TQ T _SIGNAL( serverConnect ( const TQString , int ) ) , m_atlantikNetwork , TQ T _SLOT( serverConnect ( const TQString , int ) ) ) ;
connect ( m_selectServer , TQ T _SIGNAL( msgStatus ( const TQString & ) ) , this , TQ T _SLOT( slotMsgStatus ( const TQString & ) ) ) ;
connect ( m_selectServer , TQ _SIGNAL( serverConnect ( const TQString , int ) ) , m_atlantikNetwork , TQ _SLOT( serverConnect ( const TQString , int ) ) ) ;
connect ( m_selectServer , TQ _SIGNAL( msgStatus ( const TQString & ) ) , this , TQ _SLOT( slotMsgStatus ( const TQString & ) ) ) ;
m_selectServer - > slotRefresh ( m_config . connectOnStart ) ;
}
@ -354,10 +354,10 @@ void Atlantik::showSelectGame()
m_selectConfiguration = 0 ;
}
connect ( m_selectGame , TQ T _SIGNAL( joinGame ( int ) ) , m_atlantikNetwork , TQ T _SLOT( joinGame ( int ) ) ) ;
connect ( m_selectGame , TQ T _SIGNAL( newGame ( const TQString & ) ) , m_atlantikNetwork , TQ T _SLOT( newGame ( const TQString & ) ) ) ;
connect ( m_selectGame , TQ T _SIGNAL( leaveServer ( ) ) , this , TQ T _SLOT( showSelectServer ( ) ) ) ;
connect ( m_selectGame , TQ T _SIGNAL( msgStatus ( const TQString & ) ) , this , TQ T _SLOT( slotMsgStatus ( const TQString & ) ) ) ;
connect ( m_selectGame , TQ _SIGNAL( joinGame ( int ) ) , m_atlantikNetwork , TQ _SLOT( joinGame ( int ) ) ) ;
connect ( m_selectGame , TQ _SIGNAL( newGame ( const TQString & ) ) , m_atlantikNetwork , TQ _SLOT( newGame ( const TQString & ) ) ) ;
connect ( m_selectGame , TQ _SIGNAL( leaveServer ( ) ) , this , TQ _SLOT( showSelectServer ( ) ) ) ;
connect ( m_selectGame , TQ _SIGNAL( msgStatus ( const TQString & ) ) , this , TQ _SLOT( slotMsgStatus ( const TQString & ) ) ) ;
}
void Atlantik : : showSelectConfiguration ( )
@ -375,15 +375,15 @@ void Atlantik::showSelectConfiguration()
m_mainLayout - > addMultiCellWidget ( m_selectConfiguration , 0 , 2 , 1 , 1 ) ;
m_selectConfiguration - > show ( ) ;
connect ( m_atlanticCore , TQ T _SIGNAL( createGUI ( ConfigOption * ) ) , m_selectConfiguration , TQ T _SLOT( addConfigOption ( ConfigOption * ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( gameOption ( TQString , TQString , TQString , TQString , TQString ) ) , m_selectConfiguration , TQ T _SLOT( gameOption ( TQString , TQString , TQString , TQString , TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( gameInit ( ) ) , m_selectConfiguration , TQ T _SLOT( initGame ( ) ) ) ;
connect ( m_selectConfiguration , TQ T _SIGNAL( startGame ( ) ) , m_atlantikNetwork , TQ T _SLOT( startGame ( ) ) ) ;
connect ( m_selectConfiguration , TQ T _SIGNAL( leaveGame ( ) ) , m_atlantikNetwork , TQ T _SLOT( leaveGame ( ) ) ) ;
connect ( m_selectConfiguration , TQ T _SIGNAL( changeOption ( int , const TQString & ) ) , m_atlantikNetwork , TQ T _SLOT( changeOption ( int , const TQString & ) ) ) ;
connect ( m_selectConfiguration , TQ T _SIGNAL( buttonCommand ( TQString ) ) , m_atlantikNetwork , TQ T _SLOT( writeData ( TQString ) ) ) ;
connect ( m_selectConfiguration , TQ T _SIGNAL( iconSelected ( const TQString & ) ) , m_atlantikNetwork , TQ T _SLOT( setImage ( const TQString & ) ) ) ;
connect ( m_selectConfiguration , TQ T _SIGNAL( statusMessage ( const TQString & ) ) , this , TQ T _SLOT( slotMsgStatus ( const TQString & ) ) ) ;
connect ( m_atlanticCore , TQ _SIGNAL( createGUI ( ConfigOption * ) ) , m_selectConfiguration , TQ _SLOT( addConfigOption ( ConfigOption * ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( gameOption ( TQString , TQString , TQString , TQString , TQString ) ) , m_selectConfiguration , TQ _SLOT( gameOption ( TQString , TQString , TQString , TQString , TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( gameInit ( ) ) , m_selectConfiguration , TQ _SLOT( initGame ( ) ) ) ;
connect ( m_selectConfiguration , TQ _SIGNAL( startGame ( ) ) , m_atlantikNetwork , TQ _SLOT( startGame ( ) ) ) ;
connect ( m_selectConfiguration , TQ _SIGNAL( leaveGame ( ) ) , m_atlantikNetwork , TQ _SLOT( leaveGame ( ) ) ) ;
connect ( m_selectConfiguration , TQ _SIGNAL( changeOption ( int , const TQString & ) ) , m_atlantikNetwork , TQ _SLOT( changeOption ( int , const TQString & ) ) ) ;
connect ( m_selectConfiguration , TQ _SIGNAL( buttonCommand ( TQString ) ) , m_atlantikNetwork , TQ _SLOT( writeData ( TQString ) ) ) ;
connect ( m_selectConfiguration , TQ _SIGNAL( iconSelected ( const TQString & ) ) , m_atlantikNetwork , TQ _SLOT( setImage ( const TQString & ) ) ) ;
connect ( m_selectConfiguration , TQ _SIGNAL( statusMessage ( const TQString & ) ) , this , TQ _SLOT( slotMsgStatus ( const TQString & ) ) ) ;
}
void Atlantik : : initBoard ( )
@ -394,11 +394,11 @@ void Atlantik::initBoard()
m_board = new AtlantikBoard ( m_atlanticCore , 40 , AtlantikBoard : : Play , m_mainWidget , " board " ) ;
m_board - > setViewProperties ( m_config . indicateUnowned , m_config . highliteUnowned , m_config . darkenMortgaged , m_config . quartzEffects , m_config . animateTokens ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( displayDetails ( TQString , bool , bool , Estate * ) ) , m_board , TQ T _SLOT( insertDetails ( TQString , bool , bool , Estate * ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( addCommandButton ( TQString , TQString , bool ) ) , m_board , TQ T _SLOT( displayButton ( TQString , TQString , bool ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( addCloseButton ( ) ) , m_board , TQ T _SLOT( addCloseButton ( ) ) ) ;
connect ( m_board , TQ T _SIGNAL( tokenConfirmation ( Estate * ) ) , m_atlantikNetwork , TQ T _SLOT( tokenConfirmation ( Estate * ) ) ) ;
connect ( m_board , TQ T _SIGNAL( buttonCommand ( TQString ) ) , m_atlantikNetwork , TQ T _SLOT( writeData ( TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( displayDetails ( TQString , bool , bool , Estate * ) ) , m_board , TQ _SLOT( insertDetails ( TQString , bool , bool , Estate * ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( addCommandButton ( TQString , TQString , bool ) ) , m_board , TQ _SLOT( displayButton ( TQString , TQString , bool ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( addCloseButton ( ) ) , m_board , TQ _SLOT( addCloseButton ( ) ) ) ;
connect ( m_board , TQ _SIGNAL( tokenConfirmation ( Estate * ) ) , m_atlantikNetwork , TQ _SLOT( tokenConfirmation ( Estate * ) ) ) ;
connect ( m_board , TQ _SIGNAL( buttonCommand ( TQString ) ) , m_atlantikNetwork , TQ _SLOT( writeData ( TQString ) ) ) ;
}
void Atlantik : : showBoard ( )
@ -491,7 +491,7 @@ void Atlantik::slotConfigure()
m_configDialog = new ConfigDialog ( this ) ;
m_configDialog - > show ( ) ;
connect ( m_configDialog , TQ T _SIGNAL( okClicked ( ) ) , this , TQ T _SLOT( slotUpdateConfig ( ) ) ) ;
connect ( m_configDialog , TQ _SIGNAL( okClicked ( ) ) , this , TQ _SLOT( slotUpdateConfig ( ) ) ) ;
}
void Atlantik : : showEventLog ( )
@ -728,35 +728,35 @@ void Atlantik::initNetworkObject()
}
m_atlantikNetwork = new AtlantikNetwork ( m_atlanticCore ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( msgInfo ( TQString ) ) , this , TQ T _SLOT( slotMsgInfo ( TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( msgError ( TQString ) ) , this , TQ T _SLOT( slotMsgError ( TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( msgStatus ( const TQString & , const TQString & ) ) , this , TQ T _SLOT( slotMsgStatus ( const TQString & , const TQString & ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( msgChat ( TQString , TQString ) ) , this , TQ T _SLOT( slotMsgChat ( TQString , TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( msgInfo ( TQString ) ) , this , TQ _SLOT( slotMsgInfo ( TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( msgError ( TQString ) ) , this , TQ _SLOT( slotMsgError ( TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( msgStatus ( const TQString & , const TQString & ) ) , this , TQ _SLOT( slotMsgStatus ( const TQString & , const TQString & ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( msgChat ( TQString , TQString ) ) , this , TQ _SLOT( slotMsgChat ( TQString , TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( connectionSuccess ( ) ) , this , TQ T _SLOT( slotNetworkConnected ( ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( connectionFailed ( int ) ) , this , TQ T _SLOT( slotNetworkError ( int ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( closed ( int ) ) , this , TQ T _SLOT( networkClosed ( int ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( connectionSuccess ( ) ) , this , TQ _SLOT( slotNetworkConnected ( ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( connectionFailed ( int ) ) , this , TQ _SLOT( slotNetworkError ( int ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( closed ( int ) ) , this , TQ _SLOT( networkClosed ( int ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( receivedHandshake ( ) ) , this , TQ T _SLOT( sendHandshake ( ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( receivedHandshake ( ) ) , this , TQ _SLOT( sendHandshake ( ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( gameConfig ( ) ) , this , TQ T _SLOT( showSelectConfiguration ( ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( gameInit ( ) ) , this , TQ T _SLOT( initBoard ( ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( gameRun ( ) ) , this , TQ T _SLOT( showBoard ( ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( gameEnd ( ) ) , this , TQ T _SLOT( freezeBoard ( ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( gameConfig ( ) ) , this , TQ _SLOT( showSelectConfiguration ( ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( gameInit ( ) ) , this , TQ _SLOT( initBoard ( ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( gameRun ( ) ) , this , TQ _SLOT( showBoard ( ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( gameEnd ( ) ) , this , TQ _SLOT( freezeBoard ( ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( newEstate ( Estate * ) ) , this , TQ T _SLOT( newEstate ( Estate * ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( newAuction ( Auction * ) ) , this , TQ T _SLOT( newAuction ( Auction * ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( newEstate ( Estate * ) ) , this , TQ _SLOT( newEstate ( Estate * ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( newAuction ( Auction * ) ) , this , TQ _SLOT( newAuction ( Auction * ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( clientCookie ( TQString ) ) , this , TQ T _SLOT( clientCookie ( TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ T _SIGNAL( networkEvent ( const TQString & , const TQString & ) ) , m_eventLog , TQ T _SLOT( addEvent ( const TQString & , const TQString & ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( clientCookie ( TQString ) ) , this , TQ _SLOT( clientCookie ( TQString ) ) ) ;
connect ( m_atlantikNetwork , TQ _SIGNAL( networkEvent ( const TQString & , const TQString & ) ) , m_eventLog , TQ _SLOT( addEvent ( const TQString & , const TQString & ) ) ) ;
connect ( this , TQ T _SIGNAL( rollDice ( ) ) , m_atlantikNetwork , TQ T _SLOT( rollDice ( ) ) ) ;
connect ( this , TQ T _SIGNAL( buyEstate ( ) ) , m_atlantikNetwork , TQ T _SLOT( buyEstate ( ) ) ) ;
connect ( this , TQ T _SIGNAL( auctionEstate ( ) ) , m_atlantikNetwork , TQ T _SLOT( auctionEstate ( ) ) ) ;
connect ( this , TQ T _SIGNAL( endTurn ( ) ) , m_atlantikNetwork , TQ T _SLOT( endTurn ( ) ) ) ;
connect ( this , TQ T _SIGNAL( jailCard ( ) ) , m_atlantikNetwork , TQ T _SLOT( jailCard ( ) ) ) ;
connect ( this , TQ T _SIGNAL( jailPay ( ) ) , m_atlantikNetwork , TQ T _SLOT( jailPay ( ) ) ) ;
connect ( this , TQ T _SIGNAL( jailRoll ( ) ) , m_atlantikNetwork , TQ T _SLOT( jailRoll ( ) ) ) ;
connect ( this , TQ _SIGNAL( rollDice ( ) ) , m_atlantikNetwork , TQ _SLOT( rollDice ( ) ) ) ;
connect ( this , TQ _SIGNAL( buyEstate ( ) ) , m_atlantikNetwork , TQ _SLOT( buyEstate ( ) ) ) ;
connect ( this , TQ _SIGNAL( auctionEstate ( ) ) , m_atlantikNetwork , TQ _SLOT( auctionEstate ( ) ) ) ;
connect ( this , TQ _SIGNAL( endTurn ( ) ) , m_atlantikNetwork , TQ _SLOT( endTurn ( ) ) ) ;
connect ( this , TQ _SIGNAL( jailCard ( ) ) , m_atlantikNetwork , TQ _SLOT( jailCard ( ) ) ) ;
connect ( this , TQ _SIGNAL( jailPay ( ) ) , m_atlantikNetwork , TQ _SLOT( jailPay ( ) ) ) ;
connect ( this , TQ _SIGNAL( jailRoll ( ) ) , m_atlantikNetwork , TQ _SLOT( jailRoll ( ) ) ) ;
}
void Atlantik : : clientCookie ( TQString cookie )
@ -812,10 +812,10 @@ PortfolioView *Atlantik::addPortfolioView(Player *player)
if ( m_portfolioViews . count ( ) > 0 & & m_portfolioScroll - > isHidden ( ) )
m_portfolioScroll - > show ( ) ;
connect ( player , TQ T _SIGNAL( changed ( Player * ) ) , portfolioView , TQ T _SLOT( playerChanged ( ) ) ) ;
connect ( portfolioView , TQ T _SIGNAL( newTrade ( Player * ) ) , m_atlantikNetwork , TQ T _SLOT( newTrade ( Player * ) ) ) ;
connect ( portfolioView , TQ T _SIGNAL( kickPlayer ( Player * ) ) , m_atlantikNetwork , TQ T _SLOT( kickPlayer ( Player * ) ) ) ;
connect ( portfolioView , TQ T _SIGNAL( estateClicked ( Estate * ) ) , m_board , TQ T _SLOT( prependEstateDetails ( Estate * ) ) ) ;
connect ( player , TQ _SIGNAL( changed ( Player * ) ) , portfolioView , TQ _SLOT( playerChanged ( ) ) ) ;
connect ( portfolioView , TQ _SIGNAL( newTrade ( Player * ) ) , m_atlantikNetwork , TQ _SLOT( newTrade ( Player * ) ) ) ;
connect ( portfolioView , TQ _SIGNAL( kickPlayer ( Player * ) ) , m_atlantikNetwork , TQ _SLOT( kickPlayer ( Player * ) ) ) ;
connect ( portfolioView , TQ _SIGNAL( estateClicked ( Estate * ) ) , m_board , TQ _SLOT( prependEstateDetails ( Estate * ) ) ) ;
m_portfolioLayout - > addWidget ( portfolioView ) ;
portfolioView - > show ( ) ;