選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
60 行
1.4 KiB
60 行
1.4 KiB
#ifndef __CREATEGAME_H
|
|
/* VierGewinnt - A simple 4-in-a-row network game
|
|
*
|
|
* Copyright (c) 2008 by Sebastian Lohff, seba@seba-geek.de
|
|
* http://www.seba-geek.de
|
|
*
|
|
* This file is part of VierGewinnt.
|
|
*
|
|
* VierGewinnt 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.
|
|
*
|
|
* VierGewinnt 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 VierGewinnt. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#define __CREATEGAME_H
|
|
|
|
#include <QDialog>
|
|
#include <QString>
|
|
#include <QLabel>
|
|
#include <QLineEdit>
|
|
#include <QGridLayout>
|
|
#include <QPushButton>
|
|
#include <QMessageBox>
|
|
#include <QTextStream>
|
|
#include <QTcpSocket>
|
|
#include <sstream>
|
|
|
|
|
|
class CreateGameDialog : public QDialog {
|
|
Q_OBJECT
|
|
public:
|
|
CreateGameDialog(QTcpSocket *_mysock, QWidget *parent=0);
|
|
|
|
// void reset();
|
|
|
|
private slots:
|
|
void startListen();
|
|
|
|
private:
|
|
QTcpSocket *mysock;
|
|
|
|
QGridLayout *layout;
|
|
// QLabel *stat;
|
|
QLabel *gname;
|
|
QLineEdit *editgname;
|
|
QPushButton *ok;
|
|
QPushButton *cancel;
|
|
|
|
};
|
|
|
|
#endif
|