waitforservertostartgamedialog added

This commit is contained in:
doitux
2007-02-21 23:32:56 +00:00
parent 3300b1fe98
commit b5c8c13a47
4 changed files with 166 additions and 3 deletions
@@ -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