waitforservertostartgamedialog added
This commit is contained in:
+6
-3
@@ -11,7 +11,8 @@ FORMS += mainwindow.ui \
|
|||||||
newgamedialog.ui \
|
newgamedialog.ui \
|
||||||
settingsdialog.ui \
|
settingsdialog.ui \
|
||||||
joinnetworkgamedialog.ui \
|
joinnetworkgamedialog.ui \
|
||||||
connecttoserverdialog.ui
|
connecttoserverdialog.ui \
|
||||||
|
waitforservertostartgamedialog.ui
|
||||||
HEADERS += tinystr.h \
|
HEADERS += tinystr.h \
|
||||||
tinyxml.h \
|
tinyxml.h \
|
||||||
mainwindowimpl.h \
|
mainwindowimpl.h \
|
||||||
@@ -20,6 +21,7 @@ HEADERS += tinystr.h \
|
|||||||
settingsdialogimpl.h \
|
settingsdialogimpl.h \
|
||||||
joinnetworkgamedialogimpl.h \
|
joinnetworkgamedialogimpl.h \
|
||||||
connecttoserverdialogimpl.h \
|
connecttoserverdialogimpl.h \
|
||||||
|
waitforservertostartgamedialogimpl.h \
|
||||||
configfile.h \
|
configfile.h \
|
||||||
log.h \
|
log.h \
|
||||||
guiinterface.h \
|
guiinterface.h \
|
||||||
@@ -65,6 +67,7 @@ SOURCES += pokerth.cpp \
|
|||||||
settingsdialogimpl.cpp \
|
settingsdialogimpl.cpp \
|
||||||
joinnetworkgamedialogimpl.cpp \
|
joinnetworkgamedialogimpl.cpp \
|
||||||
connecttoserverdialogimpl.cpp \
|
connecttoserverdialogimpl.cpp \
|
||||||
|
waitforservertostartgamedialogimpl.cpp \
|
||||||
configfile.cpp \
|
configfile.cpp \
|
||||||
log.cpp \
|
log.cpp \
|
||||||
guiinterface.cpp \
|
guiinterface.cpp \
|
||||||
@@ -102,8 +105,8 @@ SOURCES += pokerth.cpp \
|
|||||||
TEMPLATE = vcapp
|
TEMPLATE = vcapp
|
||||||
RESOURCES = src/gui/qt/deck.qrc
|
RESOURCES = src/gui/qt/deck.qrc
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
DEPENDPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/gui/qt/mainwindow/startsplash src/gui/qt/mainwindow src/gui/qt/aboutpokerth src/gui/qt/joinnetworkgamedialog src/gui/qt/connecttoserverdialog src/gui/qt/newlocalgamedialog src/gui/qt/settingsdialog src/gui/qt/log src/engine src/engine/local_engine src/net src/net/common src/core/
|
DEPENDPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/gui/qt/mainwindow/startsplash src/gui/qt/mainwindow src/gui/qt/aboutpokerth src/gui/qt/joinnetworkgamedialog src/gui/qt/connecttoserverdialog src/gui/qt/newlocalgamedialog src/gui/qt/settingsdialog src/gui/qt/waitforservertostartgamedialog src/gui/qt/log src/engine src/engine/local_engine src/net src/net/common src/core/
|
||||||
INCLUDEPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/gui/qt/mainwindow/startsplash src/gui/qt/mainwindow src/gui/qt/aboutpokerth src/gui/qt/joinnetworkgamedialog src/gui/qt/connecttoserverdialog src/gui/qt/newlocalgamedialog src/gui/qt/settingsdialog src/gui/qt/log src/engine src/engine/local_engine src/net src/net/common src/core/
|
INCLUDEPATH += . src uics src/config src/config/tinyxml src/gui src/gui/qt src/gui/qt/mainwindow/startsplash src/gui/qt/mainwindow src/gui/qt/aboutpokerth src/gui/qt/joinnetworkgamedialog src/gui/qt/connecttoserverdialog src/gui/qt/newlocalgamedialog src/gui/qt/settingsdialog src/gui/qt/waitforservertostartgamedialog src/gui/qt/log src/engine src/engine/local_engine src/net src/net/common src/core/
|
||||||
win32 {
|
win32 {
|
||||||
DEPENDPATH += src/net/win32/
|
DEPENDPATH += src/net/win32/
|
||||||
INCLUDEPATH += ../boost/
|
INCLUDEPATH += ../boost/
|
||||||
|
|||||||
@@ -0,0 +1,75 @@
|
|||||||
|
<ui version="4.0" >
|
||||||
|
<class>waitForServerToStartGameDialog</class>
|
||||||
|
<widget class="QDialog" name="waitForServerToStartGameDialog" >
|
||||||
|
<property name="geometry" >
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>279</width>
|
||||||
|
<height>81</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle" >
|
||||||
|
<string>Dialog</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="1" column="2" >
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1" >
|
||||||
|
<widget class="QPushButton" name="pushButton_cancel" >
|
||||||
|
<property name="maximumSize" >
|
||||||
|
<size>
|
||||||
|
<width>100</width>
|
||||||
|
<height>16777215</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Cancel</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0" colspan="3" >
|
||||||
|
<widget class="QLabel" name="label" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Waiting for the Server to start the Game ...</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment" >
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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. *
|
||||||
|
***************************************************************************/
|
||||||
|
#include "waitforservertostartgamedialogimpl.h"
|
||||||
|
#include "session.h"
|
||||||
|
// #include "configfile.h"
|
||||||
|
|
||||||
|
waitForServerToStartGameDialogImpl::waitForServerToStartGameDialogImpl(QWidget *parent)
|
||||||
|
: QDialog(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
setupUi(this);
|
||||||
|
|
||||||
|
connect( pushButton_cancel, SIGNAL( clicked() ), this, SLOT( cancel() ) );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void waitForServerToStartGameDialogImpl::cancel() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void waitForServerToStartGameDialogImpl::keyPressEvent ( QKeyEvent * event ) {
|
||||||
|
|
||||||
|
|
||||||
|
// if (event->key() == 16777220) { pushButton_connect->click(); } //ENTER
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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. *
|
||||||
|
***************************************************************************/
|
||||||
|
#ifndef WAITFORSERVERTOSTARTGAMEDIALOGIMPL_H
|
||||||
|
#define WAITFORSERVERTOSTARTGAMEDIALOGIMPL_H
|
||||||
|
|
||||||
|
#include "ui_waitforservertostartgamedialog.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <QtGui>
|
||||||
|
#include <QtCore>
|
||||||
|
|
||||||
|
class Session;
|
||||||
|
|
||||||
|
class waitForServerToStartGameDialogImpl: public QDialog, public Ui::waitForServerToStartGameDialog {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
waitForServerToStartGameDialogImpl(QWidget *parent = 0);
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
void cancel();
|
||||||
|
void keyPressEvent ( QKeyEvent * event );
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
Reference in New Issue
Block a user