stringToUtf8 added in guiinterface
This commit is contained in:
+6
-2
@@ -22,6 +22,7 @@ DEPENDPATH += . \
|
||||
src/gui/qt/createnetworkgamedialog \
|
||||
src/gui/qt/joinnetworkgamedialog \
|
||||
src/gui/qt/log \
|
||||
src/gui/qt/qthelper \
|
||||
src/gui/qt/newlocalgamedialog \
|
||||
src/gui/qt/settingsdialog \
|
||||
src/gui/qt/startnetworkgamedialog \
|
||||
@@ -36,6 +37,7 @@ INCLUDEPATH += . \
|
||||
src/core/tinyxml \
|
||||
src/gui/qt \
|
||||
src/gui/qt/log \
|
||||
src/gui/qt/qthelper \
|
||||
src/gui/qt/connecttoserverdialog \
|
||||
src/core \
|
||||
src/gui/qt/mainwindow \
|
||||
@@ -99,7 +101,8 @@ HEADERS += src/game.h \
|
||||
src/gui/qt/newlocalgamedialog/newgamedialogimpl.h \
|
||||
src/gui/qt/settingsdialog/settingsdialogimpl.h \
|
||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
|
||||
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.h
|
||||
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.h \
|
||||
src/gui/qt/qthelper/qthelper.h
|
||||
FORMS += src/gui/qt/mainwindow.ui \
|
||||
src/gui/qt/aboutpokerth.ui \
|
||||
src/gui/qt/connecttoserverdialog.ui \
|
||||
@@ -170,7 +173,8 @@ SOURCES += src/game.cpp \
|
||||
src/gui/qt/newlocalgamedialog/newgamedialogimpl.cpp \
|
||||
src/gui/qt/settingsdialog/settingsdialogimpl.cpp \
|
||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
|
||||
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp
|
||||
src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp \
|
||||
src/gui/qt/qthelper/qthelper.cpp
|
||||
RESOURCES += src/gui/qt/resources.qrc
|
||||
|
||||
TEMPLATE = vcapp
|
||||
|
||||
@@ -98,6 +98,9 @@ public:
|
||||
virtual void logPlayerActionMsg(std::string playName, int action, int setValue) =0;
|
||||
virtual void logNewGameHandMsg(int gameID, int HandID) =0;
|
||||
|
||||
//qthelper.cpp
|
||||
virtual std::string stringToUtf8(const std::string &) =0;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -90,6 +90,9 @@ void GuiWrapper::meInAction() const { myW->meInAction(); }
|
||||
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); }
|
||||
|
||||
std::string GuiWrapper::stringToUtf8(const std::string &myString) { myQtHelper->stringToUtf8(myString); }
|
||||
|
||||
|
||||
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); }
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "log.h"
|
||||
#include "mainwindowimpl.h"
|
||||
#include "connecttoserverdialogimpl.h"
|
||||
#include "qthelper.h"
|
||||
#include "configfile.h"
|
||||
|
||||
#include <string>
|
||||
@@ -90,6 +91,8 @@ public:
|
||||
void logPlayerActionMsg(std::string playerName, int action, int setValue) ;
|
||||
void logNewGameHandMsg(int gameID, int handID) ;
|
||||
|
||||
std::string stringToUtf8(const std::string &);
|
||||
|
||||
void SignalNetClientConnect(int actionID);
|
||||
void SignalNetClientGameInfo(int actionID);
|
||||
void SignalNetClientError(int errorID, int osErrorID);
|
||||
@@ -102,6 +105,7 @@ private:
|
||||
Log *myLog;
|
||||
mainWindowImpl *myW;
|
||||
ConfigFile *myConfig;
|
||||
QtHelper *myQtHelper;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user