add joinnewgamedialog
This commit is contained in:
+4
-1
@@ -9,13 +9,15 @@ TARGET.path = /usr/bin/
|
|||||||
FORMS += mainwindow.ui \
|
FORMS += mainwindow.ui \
|
||||||
aboutpokerth.ui \
|
aboutpokerth.ui \
|
||||||
newgamedialog.ui \
|
newgamedialog.ui \
|
||||||
settingsdialog.ui
|
settingsdialog.ui \
|
||||||
|
joinnetworkgamedialog.ui
|
||||||
HEADERS += tinystr.h \
|
HEADERS += tinystr.h \
|
||||||
tinyxml.h \
|
tinyxml.h \
|
||||||
mainwindowimpl.h \
|
mainwindowimpl.h \
|
||||||
newgamedialogimpl.h \
|
newgamedialogimpl.h \
|
||||||
aboutpokerthimpl.h \
|
aboutpokerthimpl.h \
|
||||||
settingsdialogimpl.h \
|
settingsdialogimpl.h \
|
||||||
|
joinnetworkgamedialog.h \
|
||||||
configfile.h \
|
configfile.h \
|
||||||
log.h \
|
log.h \
|
||||||
guiinterface.h \
|
guiinterface.h \
|
||||||
@@ -51,6 +53,7 @@ SOURCES += pokerth.cpp \
|
|||||||
newgamedialogimpl.cpp \
|
newgamedialogimpl.cpp \
|
||||||
aboutpokerthimpl.cpp \
|
aboutpokerthimpl.cpp \
|
||||||
settingsdialogimpl.cpp \
|
settingsdialogimpl.cpp \
|
||||||
|
joinnetworkgamedialog.cpp \
|
||||||
configfile.cpp \
|
configfile.cpp \
|
||||||
log.cpp \
|
log.cpp \
|
||||||
guiinterface.cpp \
|
guiinterface.cpp \
|
||||||
|
|||||||
@@ -19,18 +19,110 @@
|
|||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="3" column="0" >
|
<item row="1" column="0" colspan="2" >
|
||||||
<spacer>
|
<widget class="Line" name="line" >
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
</widget>
|
||||||
<size>
|
</item>
|
||||||
<width>40</width>
|
<item row="0" column="0" colspan="2" >
|
||||||
<height>20</height>
|
<widget class="QGroupBox" name="groupBox" >
|
||||||
</size>
|
<property name="title" >
|
||||||
|
<string>Quick Connect</string>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
<layout class="QGridLayout" >
|
||||||
|
<property name="margin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="spacing" >
|
||||||
|
<number>6</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QLabel" name="label" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>IP Address / Domain Name:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QLabel" name="label_2" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Port:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="3" >
|
||||||
|
<widget class="QLabel" name="label_3" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Password (optional):</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item rowspan="2" row="0" column="2" >
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType" >
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>8</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1" >
|
||||||
|
<widget class="QSpinBox" name="spinBox" />
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1" >
|
||||||
|
<widget class="QLineEdit" name="lineEdit" />
|
||||||
|
</item>
|
||||||
|
<item row="0" column="4" >
|
||||||
|
<widget class="QLineEdit" name="lineEdit_2" />
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" colspan="5" >
|
||||||
|
<widget class="QPushButton" name="pushButton_3" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Connect</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="3" colspan="2" >
|
||||||
|
<widget class="QCheckBox" name="checkBox" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Use IPv6</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" colspan="5" >
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeType" >
|
||||||
|
<enum>QSizePolicy::Fixed</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>1</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1" >
|
||||||
|
<widget class="QPushButton" name="pushButton" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Close</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2" >
|
<item row="2" column="0" colspan="2" >
|
||||||
<widget class="QGroupBox" name="groupBox_2" >
|
<widget class="QGroupBox" name="groupBox_2" >
|
||||||
@@ -84,17 +176,17 @@
|
|||||||
<widget class="QTreeWidget" name="treeWidget" >
|
<widget class="QTreeWidget" name="treeWidget" >
|
||||||
<column>
|
<column>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Server</string>
|
<string> Server </string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Address</string>
|
<string> Address </string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Port</string>
|
<string> Port </string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
<column>
|
<column>
|
||||||
@@ -107,81 +199,38 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2" >
|
<item row="3" column="0" >
|
||||||
<widget class="Line" name="line" >
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
<property name="sizeHint" >
|
||||||
</item>
|
<size>
|
||||||
<item row="0" column="0" colspan="2" >
|
<width>40</width>
|
||||||
<widget class="QGroupBox" name="groupBox" >
|
<height>20</height>
|
||||||
<property name="title" >
|
</size>
|
||||||
<string>Quick Connect</string>
|
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
</spacer>
|
||||||
<property name="margin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="spacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="1" >
|
|
||||||
<widget class="QLineEdit" name="lineEdit" />
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2" >
|
|
||||||
<widget class="QLabel" name="label_3" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Password (optional):</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="2" colspan="2" >
|
|
||||||
<widget class="QCheckBox" name="checkBox" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Use IPv6</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox" />
|
|
||||||
</item>
|
|
||||||
<item row="0" column="3" >
|
|
||||||
<widget class="QLineEdit" name="lineEdit_2" />
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" >
|
|
||||||
<widget class="QLabel" name="label_2" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Port:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QLabel" name="label" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>IP Address / Domain Name:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" colspan="4" >
|
|
||||||
<widget class="QPushButton" name="pushButton_3" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Connect</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1" >
|
|
||||||
<widget class="QPushButton" name="pushButton" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Close</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections/>
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>pushButton</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>joinNetworkGameDialog</receiver>
|
||||||
|
<slot>reject()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>512</x>
|
||||||
|
<y>446</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>405</x>
|
||||||
|
<y>443</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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 "joinnetworkgamedialog.h"
|
||||||
|
// #include "configfile.h"
|
||||||
|
|
||||||
|
joinNetworkGameDialogImpl::joinNetworkGameDialogImpl(QWidget *parent)
|
||||||
|
: QDialog(parent)
|
||||||
|
{
|
||||||
|
|
||||||
|
setupUi(this);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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 JOINNETWORKGAMEDIALOGIMPL_H
|
||||||
|
#define JOINNETWORKGAMEDIALOGIMPL_H
|
||||||
|
|
||||||
|
#include "ui_joinnetworkgamedialog.h"
|
||||||
|
|
||||||
|
#include <iostream>
|
||||||
|
#include <QtGui>
|
||||||
|
#include <QtCore>
|
||||||
|
|
||||||
|
|
||||||
|
class joinNetworkGameDialogImpl: public QDialog, public Ui::joinNetworkGameDialog {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
joinNetworkGameDialogImpl(QWidget *parent = 0);
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -22,6 +22,8 @@
|
|||||||
#include "newgamedialogimpl.h"
|
#include "newgamedialogimpl.h"
|
||||||
#include "aboutpokerthimpl.h"
|
#include "aboutpokerthimpl.h"
|
||||||
#include "settingsdialogimpl.h"
|
#include "settingsdialogimpl.h"
|
||||||
|
#include "joinnetworkgamedialog.h"
|
||||||
|
|
||||||
|
|
||||||
#include "startsplash.h"
|
#include "startsplash.h"
|
||||||
#include "mycardspixmaplabel.h"
|
#include "mycardspixmaplabel.h"
|
||||||
@@ -429,7 +431,9 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent)
|
|||||||
connect( actionNewGame, SIGNAL( triggered() ), this, SLOT( callNewGameDialog() ) );
|
connect( actionNewGame, SIGNAL( triggered() ), this, SLOT( callNewGameDialog() ) );
|
||||||
connect( actionAboutPokerth, SIGNAL( triggered() ), this, SLOT( callAboutPokerthDialog() ) );
|
connect( actionAboutPokerth, SIGNAL( triggered() ), this, SLOT( callAboutPokerthDialog() ) );
|
||||||
connect( actionSettings, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) );
|
connect( actionSettings, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) );
|
||||||
|
connect( actionJoin_network_Game, SIGNAL( triggered() ), this, SLOT( callJoinNetworkGameDialog() ) );
|
||||||
connect( actionQuit, SIGNAL( triggered() ), qApp, SLOT( quit() ) );
|
connect( actionQuit, SIGNAL( triggered() ), qApp, SLOT( quit() ) );
|
||||||
|
actionCreate_network_Game->setVisible(FALSE);
|
||||||
|
|
||||||
connect( pushButton_raise, SIGNAL( clicked() ), this, SLOT( myRaise() ) );
|
connect( pushButton_raise, SIGNAL( clicked() ), this, SLOT( myRaise() ) );
|
||||||
connect( pushButton_call, SIGNAL( clicked() ), this, SLOT( myCall() ) );
|
connect( pushButton_call, SIGNAL( clicked() ), this, SLOT( myCall() ) );
|
||||||
@@ -537,6 +541,12 @@ void mainWindowImpl::callAboutPokerthDialog() {
|
|||||||
v->exec();
|
v->exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void mainWindowImpl::callJoinNetworkGameDialog() {
|
||||||
|
|
||||||
|
joinNetworkGameDialogImpl *v = new joinNetworkGameDialogImpl();
|
||||||
|
v->exec();
|
||||||
|
}
|
||||||
|
|
||||||
void mainWindowImpl::callSettingsDialog() {
|
void mainWindowImpl::callSettingsDialog() {
|
||||||
|
|
||||||
settingsDialogImpl *v = new settingsDialogImpl();
|
settingsDialogImpl *v = new settingsDialogImpl();
|
||||||
|
|||||||
@@ -90,6 +90,8 @@ public slots:
|
|||||||
void callNewGameDialog() ;
|
void callNewGameDialog() ;
|
||||||
void callAboutPokerthDialog();
|
void callAboutPokerthDialog();
|
||||||
void callSettingsDialog();
|
void callSettingsDialog();
|
||||||
|
void callJoinNetworkGameDialog();
|
||||||
|
|
||||||
void myFold();
|
void myFold();
|
||||||
void myCheck();
|
void myCheck();
|
||||||
void myCall();
|
void myCall();
|
||||||
|
|||||||
Reference in New Issue
Block a user