2007-01-13 02:40:33 +00:00
|
|
|
/***************************************************************************
|
|
|
|
|
* Copyright (C) 2006 by FThauer FHammer *
|
|
|
|
|
* f.thauer@web.de *
|
|
|
|
|
* *
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
|
* (at your option) any later version. *
|
|
|
|
|
* *
|
|
|
|
|
* This program is distributed in the hope that it will be useful, *
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
|
* GNU General Public License for more details. *
|
|
|
|
|
* *
|
|
|
|
|
* You should have received a copy of the GNU General Public License *
|
|
|
|
|
* along with this program; if not, write to the *
|
|
|
|
|
* Free Software Foundation, Inc., *
|
|
|
|
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
|
|
|
|
***************************************************************************/
|
2007-01-13 17:20:12 +00:00
|
|
|
|
2007-01-13 02:40:33 +00:00
|
|
|
#include "guiwrapper.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
2007-01-31 22:48:44 +00:00
|
|
|
GuiWrapper::GuiWrapper() : myLog(0), myW(0)
|
2007-01-13 02:40:33 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
2007-02-18 15:13:55 +00:00
|
|
|
myW = new mainWindowImpl;
|
2007-01-13 17:20:12 +00:00
|
|
|
myW->show();
|
|
|
|
|
|
2007-01-31 22:48:44 +00:00
|
|
|
myLog = new Log(myW);
|
2007-01-19 19:13:59 +00:00
|
|
|
myConfig = new ConfigFile;
|
2007-01-13 02:40:33 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GuiWrapper::~GuiWrapper()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2007-01-13 14:27:56 +00:00
|
|
|
void GuiWrapper::setGame(Game *g) { myW->setGame(g); }
|
2007-01-13 22:29:17 +00:00
|
|
|
void GuiWrapper::setHand(HandInterface *lh) { myW->setHand(lh); }
|
2007-01-13 14:27:56 +00:00
|
|
|
void GuiWrapper::setSession(Session *s) { myW->setSession(s); }
|
2007-01-13 02:40:33 +00:00
|
|
|
|
2007-01-13 14:27:56 +00:00
|
|
|
int GuiWrapper::getMaxQuantityPlayers() const { return myW->getMaxQuantityPlayers(); }
|
2007-01-13 02:40:33 +00:00
|
|
|
|
|
|
|
|
void GuiWrapper::refreshSet() const { myW->refreshSet(); }
|
|
|
|
|
void GuiWrapper::refreshChangePlayer() const { myW->refreshChangePlayer(); }
|
2007-01-13 14:27:56 +00:00
|
|
|
void GuiWrapper::refreshAll() const { myW->refreshAll(); }
|
|
|
|
|
void GuiWrapper::refreshPot() const { myW->refreshPot(); }
|
|
|
|
|
void GuiWrapper::refreshGroupbox() const { myW->refreshGroupbox(); }
|
|
|
|
|
void GuiWrapper::refreshPlayerName() const { myW->refreshPlayerName(); }
|
2007-01-13 02:40:33 +00:00
|
|
|
|
2007-01-13 14:27:56 +00:00
|
|
|
void GuiWrapper::dealHoleCards() const { myW->dealHoleCards(); }
|
2007-01-13 02:40:33 +00:00
|
|
|
void GuiWrapper::dealFlopCards() const { myW->dealFlopCards0(); }
|
|
|
|
|
void GuiWrapper::dealTurnCard() const { myW->dealTurnCards0(); }
|
|
|
|
|
void GuiWrapper::dealRiverCard() const { myW->dealRiverCards0(); }
|
|
|
|
|
|
2007-01-13 14:27:56 +00:00
|
|
|
void GuiWrapper::highlightRoundLabel(string round) const { myW->highlightRoundLabel(round); }
|
|
|
|
|
|
|
|
|
|
|
2007-01-13 02:40:33 +00:00
|
|
|
void GuiWrapper::nextPlayerAnimation() const { myW->nextPlayerAnimation(); }
|
|
|
|
|
|
|
|
|
|
void GuiWrapper::preflopAnimation1() const { myW->preflopAnimation1(); }
|
|
|
|
|
void GuiWrapper::preflopAnimation2() const { myW->preflopAnimation2(); }
|
|
|
|
|
|
|
|
|
|
void GuiWrapper::flopAnimation1() const { myW->flopAnimation1(); }
|
|
|
|
|
void GuiWrapper::flopAnimation2() const { myW->flopAnimation2(); }
|
|
|
|
|
|
|
|
|
|
void GuiWrapper::turnAnimation1() const { myW->turnAnimation1(); }
|
|
|
|
|
void GuiWrapper::turnAnimation2() const { myW->turnAnimation2(); }
|
|
|
|
|
|
|
|
|
|
void GuiWrapper::riverAnimation1() const { myW->riverAnimation1(); }
|
|
|
|
|
void GuiWrapper::riverAnimation2() const { myW->riverAnimation2(); }
|
|
|
|
|
|
|
|
|
|
void GuiWrapper::postRiverAnimation1() const { myW->postRiverAnimation1(); }
|
2007-01-13 14:27:56 +00:00
|
|
|
void GuiWrapper::postRiverRunAnimation1() const { myW->postRiverRunAnimation1(); }
|
|
|
|
|
|
2007-01-29 09:11:44 +00:00
|
|
|
void GuiWrapper::flipHolecardsAllIn() const { myW->flipHolecardsAllIn(); }
|
|
|
|
|
|
2007-01-13 14:27:56 +00:00
|
|
|
void GuiWrapper::nextRoundCleanGui() const { myW->nextRoundCleanGui(); }
|
|
|
|
|
|
|
|
|
|
void GuiWrapper::meInAction() const { myW->meInAction(); }
|
|
|
|
|
|
2007-02-04 13:46:27 +00:00
|
|
|
void GuiWrapper::logPlayerActionMsg(string playerName, int action, int setValue) { myLog->logPlayerActionMsg(playerName, action, setValue); }
|
|
|
|
|
void GuiWrapper::logNewGameHandMsg(int gameID, int handID) { myLog->logNewGameHandMsg(gameID, handID); }
|
2007-01-13 14:27:56 +00:00
|
|
|
|
2007-03-20 02:20:50 +00:00
|
|
|
void GuiWrapper::SignalNetClientConnect(int actionID) { myW->SignalNetClientConnect(actionID); }
|
|
|
|
|
void GuiWrapper::SignalNetClientGameInfo(int actionID) { myW->SignalNetClientGameInfo(actionID); }
|
|
|
|
|
void GuiWrapper::SignalNetClientError(int errorID, int osErrorID) { myW->SignalNetClientError(errorID, osErrorID); }
|
|
|
|
|
|
2007-03-26 00:12:56 +00:00
|
|
|
void GuiWrapper::SignalNetServerSuccess(int actionID) { }
|
|
|
|
|
void GuiWrapper::SignalNetServerError(int errorID, int osErrorID) { }
|
2007-03-20 02:20:50 +00:00
|
|
|
|