new functions in gui-interface for connectToServerDialogImpl
This commit is contained in:
+4
-4
@@ -18,8 +18,8 @@ HEADERS += tinystr.h \
|
||||
newgamedialogimpl.h \
|
||||
aboutpokerthimpl.h \
|
||||
settingsdialogimpl.h \
|
||||
joinnetworkgamedialog.h \
|
||||
connecttoserverdialog.h \
|
||||
joinnetworkgamedialogimpl.h \
|
||||
connecttoserverdialogimpl.h \
|
||||
configfile.h \
|
||||
log.h \
|
||||
guiinterface.h \
|
||||
@@ -55,8 +55,8 @@ SOURCES += pokerth.cpp \
|
||||
newgamedialogimpl.cpp \
|
||||
aboutpokerthimpl.cpp \
|
||||
settingsdialogimpl.cpp \
|
||||
joinnetworkgamedialog.cpp \
|
||||
connecttoserverdialog.cpp \
|
||||
joinnetworkgamedialogimpl.cpp \
|
||||
connecttoserverdialogimpl.cpp \
|
||||
configfile.cpp \
|
||||
log.cpp \
|
||||
guiinterface.cpp \
|
||||
|
||||
@@ -95,6 +95,9 @@ public:
|
||||
virtual void logPlayerActionMsg(std::string playName, int action, int setValue) =0;
|
||||
virtual void logNewGameHandMsg(int gameID, int HandID) =0;
|
||||
|
||||
//connectToServerDialog
|
||||
virtual void refreshConnectToServerDialog(int messageID, int percent) =0;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -85,5 +85,22 @@
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>pushButton</sender>
|
||||
<signal>clicked()</signal>
|
||||
<receiver>connectToServerDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel" >
|
||||
<x>122</x>
|
||||
<y>96</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel" >
|
||||
<x>44</x>
|
||||
<y>90</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
||||
|
||||
+6
-1
@@ -17,7 +17,7 @@
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#include "connecttoserverdialog.h"
|
||||
#include "connecttoserverdialogimpl.h"
|
||||
// #include "configfile.h"
|
||||
|
||||
connectToServerDialogImpl::connectToServerDialogImpl(QWidget *parent)
|
||||
@@ -30,3 +30,8 @@ connectToServerDialogImpl::connectToServerDialogImpl(QWidget *parent)
|
||||
|
||||
}
|
||||
|
||||
void connectToServerDialogImpl::refresh(int messageID, int percent) {
|
||||
|
||||
|
||||
|
||||
}
|
||||
+3
@@ -32,8 +32,11 @@ Q_OBJECT
|
||||
public:
|
||||
connectToServerDialogImpl(QWidget *parent = 0);
|
||||
|
||||
|
||||
public slots:
|
||||
|
||||
void refresh(int messageID, int percent);
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -32,6 +32,7 @@ GuiWrapper::GuiWrapper() : myLog(0), myW(0)
|
||||
myW->show();
|
||||
|
||||
myLog = new Log(myW);
|
||||
myConnectToServerDialog = new connectToServerDialogImpl();
|
||||
|
||||
myConfig = new ConfigFile;
|
||||
|
||||
@@ -89,4 +90,4 @@ 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); }
|
||||
|
||||
|
||||
void GuiWrapper::refreshConnectToServerDialog(int messageID, int percent) { myConnectToServerDialog->refresh(messageID, percent); }
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "log.h"
|
||||
#include "mainwindowimpl.h"
|
||||
#include "connecttoserverdialogimpl.h"
|
||||
#include "configfile.h"
|
||||
|
||||
#include <string>
|
||||
@@ -86,12 +87,16 @@ public:
|
||||
void logPlayerActionMsg(std::string playerName, int action, int setValue) ;
|
||||
void logNewGameHandMsg(int gameID, int handID) ;
|
||||
|
||||
void refreshConnectToServerDialog(int messageID, int percent);
|
||||
|
||||
private:
|
||||
|
||||
Log *myLog;
|
||||
mainWindowImpl *myW;
|
||||
ConfigFile *myConfig;
|
||||
|
||||
connectToServerDialogImpl *myConnectToServerDialog;
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@
|
||||
* Free Software Foundation, Inc., *
|
||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||
***************************************************************************/
|
||||
#include "joinnetworkgamedialog.h"
|
||||
#include "joinnetworkgamedialogimpl.h"
|
||||
// #include "configfile.h"
|
||||
|
||||
joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent)
|
||||
@@ -22,8 +22,8 @@
|
||||
#include "newgamedialogimpl.h"
|
||||
#include "aboutpokerthimpl.h"
|
||||
#include "settingsdialogimpl.h"
|
||||
#include "joinnetworkgamedialog.h"
|
||||
#include "connecttoserverdialog.h"
|
||||
#include "joinnetworkgamedialogimpl.h"
|
||||
#include "connecttoserverdialogimpl.h"
|
||||
|
||||
|
||||
#include "startsplash.h"
|
||||
|
||||
Reference in New Issue
Block a user