adds internet game login dialog. nothing implemented yet. just the clean ui
This commit is contained in:
+11
-5
@@ -8,7 +8,7 @@ CONFIG += qt \
|
|||||||
exceptions \
|
exceptions \
|
||||||
rtti \
|
rtti \
|
||||||
stl \
|
stl \
|
||||||
warn_on \
|
warn_on
|
||||||
|
|
||||||
# ####Uncomment this for RELEASE on Linux/Unix/BSD (only for static Qt)
|
# ####Uncomment this for RELEASE on Linux/Unix/BSD (only for static Qt)
|
||||||
# QTPLUGIN += qjpeg qgif
|
# QTPLUGIN += qjpeg qgif
|
||||||
@@ -55,6 +55,7 @@ INCLUDEPATH += . \
|
|||||||
src/gui/qt/styles \
|
src/gui/qt/styles \
|
||||||
src/gui/qt/changehumanplayernamedialog \
|
src/gui/qt/changehumanplayernamedialog \
|
||||||
src/gui/qt/changecompleteblindsdialog \
|
src/gui/qt/changecompleteblindsdialog \
|
||||||
|
src/gui/qt/internetgamelogindialog \
|
||||||
src/gui/qt/mymessagedialog \
|
src/gui/qt/mymessagedialog \
|
||||||
src/gui/qt/gamelobbydialog \
|
src/gui/qt/gamelobbydialog \
|
||||||
src/gui/qt/timeoutmsgbox
|
src/gui/qt/timeoutmsgbox
|
||||||
@@ -92,6 +93,7 @@ DEPENDPATH += . \
|
|||||||
src/gui/qt/serverlistdialog \
|
src/gui/qt/serverlistdialog \
|
||||||
src/gui/qt/styles \
|
src/gui/qt/styles \
|
||||||
src/gui/qt/changehumanplayernamedialog \
|
src/gui/qt/changehumanplayernamedialog \
|
||||||
|
src/gui/qt/internetgamelogindialog \
|
||||||
src/gui/qt/changecompleteblindsdialog \
|
src/gui/qt/changecompleteblindsdialog \
|
||||||
src/gui/qt/mymessagedialog \
|
src/gui/qt/mymessagedialog \
|
||||||
src/gui/qt/gamelobbydialog \
|
src/gui/qt/gamelobbydialog \
|
||||||
@@ -189,7 +191,8 @@ HEADERS += src/game.h \
|
|||||||
src/gui/qt/gametable/mytimeoutlabel.h \
|
src/gui/qt/gametable/mytimeoutlabel.h \
|
||||||
src/gui/qt/gametable/mynamelabel.h \
|
src/gui/qt/gametable/mynamelabel.h \
|
||||||
src/gui/qt/settingsdialog/mystylelistitem.h \
|
src/gui/qt/settingsdialog/mystylelistitem.h \
|
||||||
src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.h
|
src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.h \
|
||||||
|
src/gui/qt/internetgamelogindialog/internetgamelogindialogimpl.h
|
||||||
FORMS += src/gui/qt/gametable.ui \
|
FORMS += src/gui/qt/gametable.ui \
|
||||||
src/gui/qt/aboutpokerth.ui \
|
src/gui/qt/aboutpokerth.ui \
|
||||||
src/gui/qt/connecttoserverdialog.ui \
|
src/gui/qt/connecttoserverdialog.ui \
|
||||||
@@ -206,7 +209,8 @@ FORMS += src/gui/qt/gametable.ui \
|
|||||||
src/gui/qt/gamelobbydialog.ui \
|
src/gui/qt/gamelobbydialog.ui \
|
||||||
src/gui/qt/mymessagedialog.ui \
|
src/gui/qt/mymessagedialog.ui \
|
||||||
src/gui/qt/manualblindsorderdialog.ui \
|
src/gui/qt/manualblindsorderdialog.ui \
|
||||||
src/gui/qt/serverlistdialog.ui
|
src/gui/qt/serverlistdialog.ui \
|
||||||
|
src/gui/qt/internetgamelogindialog.ui
|
||||||
SOURCES += src/pokerth.cpp \
|
SOURCES += src/pokerth.cpp \
|
||||||
src/gui/qt/chattools/chattools.cpp \
|
src/gui/qt/chattools/chattools.cpp \
|
||||||
src/gui/qt/sound/sdlplayer.cpp \
|
src/gui/qt/sound/sdlplayer.cpp \
|
||||||
@@ -253,7 +257,8 @@ SOURCES += src/pokerth.cpp \
|
|||||||
src/gui/qt/gametable/mytimeoutlabel.cpp \
|
src/gui/qt/gametable/mytimeoutlabel.cpp \
|
||||||
src/gui/qt/gametable/mynamelabel.cpp \
|
src/gui/qt/gametable/mynamelabel.cpp \
|
||||||
src/gui/qt/settingsdialog/mystylelistitem.cpp \
|
src/gui/qt/settingsdialog/mystylelistitem.cpp \
|
||||||
src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.cpp
|
src/gui/qt/gamelobbydialog/mygamelistsortfilterproxymodel.cpp \
|
||||||
|
src/gui/qt/internetgamelogindialog/internetgamelogindialogimpl.cpp
|
||||||
TRANSLATIONS = ts/pokerth_bg.ts \
|
TRANSLATIONS = ts/pokerth_bg.ts \
|
||||||
ts/pokerth_cz.ts \
|
ts/pokerth_cz.ts \
|
||||||
ts/pokerth_de.ts \
|
ts/pokerth_de.ts \
|
||||||
@@ -294,7 +299,8 @@ win32 {
|
|||||||
../GnuTLS/lib \
|
../GnuTLS/lib \
|
||||||
../curl/lib \
|
../curl/lib \
|
||||||
../zlib
|
../zlib
|
||||||
LIBS += -lpokerth_lib -lpokerth_protocol
|
LIBS += -lpokerth_lib \
|
||||||
|
-lpokerth_protocol
|
||||||
win32-msvc2005 {
|
win32-msvc2005 {
|
||||||
LIBPATH += Release/lib \
|
LIBPATH += Release/lib \
|
||||||
../SDL/VisualC/SDL/Release \
|
../SDL/VisualC/SDL/Release \
|
||||||
|
|||||||
@@ -0,0 +1,142 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>internetGameLoginDialog</class>
|
||||||
|
<widget class="QDialog" name="internetGameLoginDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>288</width>
|
||||||
|
<height>230</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Internet Game Login</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QGroupBox" name="groupBox_reguser">
|
||||||
|
<property name="title">
|
||||||
|
<string>Registered User</string>
|
||||||
|
</property>
|
||||||
|
<property name="checkable">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label">
|
||||||
|
<property name="text">
|
||||||
|
<string>Username:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_username"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="label_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Password:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QLineEdit" name="lineEdit_password"/>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" colspan="2">
|
||||||
|
<widget class="QCheckBox" name="checkBox_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Remember Password (not recommended)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QCheckBox" name="checkBox_guest">
|
||||||
|
<property name="text">
|
||||||
|
<string>Login as Guest</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<item>
|
||||||
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>40</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Login</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="pushButton_2">
|
||||||
|
<property name="text">
|
||||||
|
<string>Cancel</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="label_3">
|
||||||
|
<property name="text">
|
||||||
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||||
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||||
|
p, li { white-space: pre-wrap; }
|
||||||
|
</style></head><body style="font-weight:400; font-style:normal;">
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0000ff;">Create an user account ...</span></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>pushButton</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>internetGameLoginDialog</receiver>
|
||||||
|
<slot>accept()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>176</x>
|
||||||
|
<y>180</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>284</x>
|
||||||
|
<y>216</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>pushButton_2</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>internetGameLoginDialog</receiver>
|
||||||
|
<slot>reject()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>244</x>
|
||||||
|
<y>194</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>290</x>
|
||||||
|
<y>150</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
|
</ui>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include "internetgamelogindialogimpl.h"
|
||||||
|
|
||||||
|
internetGameLoginDialog::internetGameLoginDialog(QWidget *parent) :
|
||||||
|
QDialog(parent){
|
||||||
|
setupUi(this);
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#ifndef INTERNETGAMELOGINDIALOGIMPL_H
|
||||||
|
#define INTERNETGAMELOGINDIALOGIMPL_H
|
||||||
|
|
||||||
|
#include "ui_internetgamelogindialog.h"
|
||||||
|
|
||||||
|
class internetGameLoginDialog : public QDialog, private Ui::internetGameLoginDialog {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
internetGameLoginDialog(QWidget *parent = 0);
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // INTERNETGAMELOGINDIALOGIMPL_H
|
||||||
Reference in New Issue
Block a user