add joinnewgamedialog

This commit is contained in:
doitux
2007-02-15 00:57:04 +00:00
parent d637b83bed
commit f85d962af2
6 changed files with 217 additions and 82 deletions
+129 -80
View File
@@ -19,18 +19,110 @@
<property name="spacing" >
<number>6</number>
</property>
<item row="3" column="0" >
<spacer>
<item row="1" column="0" colspan="2" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</widget>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Quick Connect</string>
</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 row="2" column="0" colspan="2" >
<widget class="QGroupBox" name="groupBox_2" >
@@ -84,17 +176,17 @@
<widget class="QTreeWidget" name="treeWidget" >
<column>
<property name="text" >
<string>Server</string>
<string> Server </string>
</property>
</column>
<column>
<property name="text" >
<string>Address</string>
<string> Address </string>
</property>
</column>
<column>
<property name="text" >
<string>Port</string>
<string> Port </string>
</property>
</column>
<column>
@@ -107,81 +199,38 @@
</layout>
</widget>
</item>
<item row="1" column="0" colspan="2" >
<widget class="Line" name="line" >
<item row="3" column="0" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Quick Connect</string>
<property name="sizeHint" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
<layout class="QGridLayout" >
<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>
</spacer>
</item>
</layout>
</widget>
<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>
@@ -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
+11 -1
View File
@@ -22,6 +22,8 @@
#include "newgamedialogimpl.h"
#include "aboutpokerthimpl.h"
#include "settingsdialogimpl.h"
#include "joinnetworkgamedialog.h"
#include "startsplash.h"
#include "mycardspixmaplabel.h"
@@ -429,8 +431,10 @@ mainWindowImpl::mainWindowImpl(QMainWindow *parent)
connect( actionNewGame, SIGNAL( triggered() ), this, SLOT( callNewGameDialog() ) );
connect( actionAboutPokerth, SIGNAL( triggered() ), this, SLOT( callAboutPokerthDialog() ) );
connect( actionSettings, SIGNAL( triggered() ), this, SLOT( callSettingsDialog() ) );
connect( actionJoin_network_Game, SIGNAL( triggered() ), this, SLOT( callJoinNetworkGameDialog() ) );
connect( actionQuit, SIGNAL( triggered() ), qApp, SLOT( quit() ) );
actionCreate_network_Game->setVisible(FALSE);
connect( pushButton_raise, SIGNAL( clicked() ), this, SLOT( myRaise() ) );
connect( pushButton_call, SIGNAL( clicked() ), this, SLOT( myCall() ) );
connect( pushButton_bet, SIGNAL( clicked() ), this, SLOT( myBet() ) );
@@ -537,6 +541,12 @@ void mainWindowImpl::callAboutPokerthDialog() {
v->exec();
}
void mainWindowImpl::callJoinNetworkGameDialog() {
joinNetworkGameDialogImpl *v = new joinNetworkGameDialogImpl();
v->exec();
}
void mainWindowImpl::callSettingsDialog() {
settingsDialogImpl *v = new settingsDialogImpl();
+2
View File
@@ -90,6 +90,8 @@ public slots:
void callNewGameDialog() ;
void callAboutPokerthDialog();
void callSettingsDialog();
void callJoinNetworkGameDialog();
void myFold();
void myCheck();
void myCall();