diff --git a/pokerth.pro b/pokerth.pro index a02ecc53..2b6c533e 100755 --- a/pokerth.pro +++ b/pokerth.pro @@ -11,7 +11,8 @@ FORMS += mainwindow.ui \ newgamedialog.ui \ settingsdialog.ui \ joinnetworkgamedialog.ui \ - connecttoserverdialog.ui + connecttoserverdialog.ui \ + waitforservertostartgamedialog.ui HEADERS += tinystr.h \ tinyxml.h \ mainwindowimpl.h \ @@ -20,6 +21,7 @@ HEADERS += tinystr.h \ settingsdialogimpl.h \ joinnetworkgamedialogimpl.h \ connecttoserverdialogimpl.h \ + waitforservertostartgamedialogimpl.h \ configfile.h \ log.h \ guiinterface.h \ @@ -65,6 +67,7 @@ SOURCES += pokerth.cpp \ settingsdialogimpl.cpp \ joinnetworkgamedialogimpl.cpp \ connecttoserverdialogimpl.cpp \ + waitforservertostartgamedialogimpl.cpp \ configfile.cpp \ log.cpp \ guiinterface.cpp \ @@ -102,8 +105,8 @@ SOURCES += pokerth.cpp \ TEMPLATE = vcapp RESOURCES = src/gui/qt/deck.qrc 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/ -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/ +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/waitforservertostartgamedialog src/gui/qt/log src/engine src/engine/local_engine src/net src/net/common src/core/ win32 { DEPENDPATH += src/net/win32/ INCLUDEPATH += ../boost/ diff --git a/src/gui/qt/waitforservertostartgamedialog.ui b/src/gui/qt/waitforservertostartgamedialog.ui new file mode 100644 index 00000000..3253dbc1 --- /dev/null +++ b/src/gui/qt/waitforservertostartgamedialog.ui @@ -0,0 +1,75 @@ + + waitForServerToStartGameDialog + + + + 0 + 0 + 279 + 81 + + + + Dialog + + + + 9 + + + 6 + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 100 + 16777215 + + + + Cancel + + + + + + + Waiting for the Server to start the Game ... + + + Qt::AlignCenter + + + + + + + + diff --git a/src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp b/src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp new file mode 100644 index 00000000..05b1dc46 --- /dev/null +++ b/src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.cpp @@ -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 + +} diff --git a/src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.h b/src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.h new file mode 100644 index 00000000..376463d7 --- /dev/null +++ b/src/gui/qt/waitforservertostartgamedialog/waitforservertostartgamedialogimpl.h @@ -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 +#include +#include + +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