next startwindow steps
This commit is contained in:
@@ -49,6 +49,7 @@ INCLUDEPATH += . \
|
|||||||
src/gui/qt/settingsdialog/selectavatardialog \
|
src/gui/qt/settingsdialog/selectavatardialog \
|
||||||
src/gui/qt/settingsdialog/manualblindsorderdialog \
|
src/gui/qt/settingsdialog/manualblindsorderdialog \
|
||||||
src/gui/qt/startnetworkgamedialog \
|
src/gui/qt/startnetworkgamedialog \
|
||||||
|
src/gui/qt/startwindow \
|
||||||
src/gui/qt/changehumanplayernamedialog \
|
src/gui/qt/changehumanplayernamedialog \
|
||||||
src/gui/qt/changecompleteblindsdialog \
|
src/gui/qt/changecompleteblindsdialog \
|
||||||
src/gui/qt/mymessagedialog \
|
src/gui/qt/mymessagedialog \
|
||||||
@@ -87,6 +88,7 @@ DEPENDPATH += . \
|
|||||||
src/gui/qt/settingsdialog/selectavatardialog \
|
src/gui/qt/settingsdialog/selectavatardialog \
|
||||||
src/gui/qt/settingsdialog/manualblindsorderdialog \
|
src/gui/qt/settingsdialog/manualblindsorderdialog \
|
||||||
src/gui/qt/startnetworkgamedialog \
|
src/gui/qt/startnetworkgamedialog \
|
||||||
|
src/gui/qt/startwindow \
|
||||||
src/gui/qt/changehumanplayernamedialog \
|
src/gui/qt/changehumanplayernamedialog \
|
||||||
src/gui/qt/changecompleteblindsdialog \
|
src/gui/qt/changecompleteblindsdialog \
|
||||||
src/gui/qt/mymessagedialog \
|
src/gui/qt/mymessagedialog \
|
||||||
@@ -169,6 +171,7 @@ HEADERS += \
|
|||||||
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \
|
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \
|
||||||
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \
|
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \
|
||||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
|
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
|
||||||
|
src/gui/qt/startwindow/startwindowimpl.h \
|
||||||
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.h \
|
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.h \
|
||||||
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.h \
|
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.h \
|
||||||
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \
|
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \
|
||||||
@@ -192,6 +195,7 @@ FORMS += \
|
|||||||
src/gui/qt/settingsdialog.ui \
|
src/gui/qt/settingsdialog.ui \
|
||||||
src/gui/qt/selectavatardialog.ui \
|
src/gui/qt/selectavatardialog.ui \
|
||||||
src/gui/qt/startnetworkgamedialog.ui \
|
src/gui/qt/startnetworkgamedialog.ui \
|
||||||
|
src/gui/qt/startwindow.ui \
|
||||||
src/gui/qt/changehumanplayernamedialog.ui \
|
src/gui/qt/changehumanplayernamedialog.ui \
|
||||||
src/gui/qt/changecompleteblindsdialog.ui \
|
src/gui/qt/changecompleteblindsdialog.ui \
|
||||||
src/gui/qt/gamelobbydialog.ui \
|
src/gui/qt/gamelobbydialog.ui \
|
||||||
@@ -228,6 +232,7 @@ SOURCES += \
|
|||||||
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \
|
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \
|
||||||
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \
|
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \
|
||||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
|
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
|
||||||
|
src/gui/qt/startwindow/startwindowimpl.cpp \
|
||||||
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.cpp \
|
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.cpp \
|
||||||
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.cpp \
|
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.cpp \
|
||||||
src/gui/qt/mymessagedialog/mymessagedialogimpl.cpp \
|
src/gui/qt/mymessagedialog/mymessagedialogimpl.cpp \
|
||||||
|
|||||||
+13
-30
@@ -1,6 +1,6 @@
|
|||||||
<ui version="4.0" >
|
<ui version="4.0" >
|
||||||
<class>mainWindow</class>
|
<class>startWindow</class>
|
||||||
<widget class="QMainWindow" name="mainWindow" >
|
<widget class="QMainWindow" name="startWindow" >
|
||||||
<property name="geometry" >
|
<property name="geometry" >
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
@@ -13,21 +13,13 @@
|
|||||||
<string>PokerTH 0.6.3 - The Open-Source Texas Holdem Engine</string>
|
<string>PokerTH 0.6.3 - The Open-Source Texas Holdem Engine</string>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget" >
|
<widget class="QWidget" name="centralwidget" >
|
||||||
<property name="geometry" >
|
<layout class="QGridLayout" >
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>28</y>
|
|
||||||
<width>444</width>
|
|
||||||
<height>289</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_2" >
|
|
||||||
<item row="0" column="1" >
|
<item row="0" column="1" >
|
||||||
<spacer name="verticalSpacer" >
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>95</height>
|
<height>95</height>
|
||||||
@@ -36,11 +28,11 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0" >
|
||||||
<spacer name="horizontalSpacer" >
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>63</width>
|
<width>63</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
@@ -49,7 +41,7 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1" colspan="2" >
|
<item row="1" column="1" colspan="2" >
|
||||||
<layout class="QGridLayout" name="gridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<item row="0" column="1" >
|
<item row="0" column="1" >
|
||||||
<widget class="QPushButton" name="pushButton_2" >
|
<widget class="QPushButton" name="pushButton_2" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
@@ -81,11 +73,11 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3" >
|
<item row="1" column="3" >
|
||||||
<spacer name="horizontalSpacer_2" >
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>63</width>
|
<width>63</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
@@ -94,11 +86,11 @@
|
|||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="2" >
|
<item row="2" column="2" >
|
||||||
<spacer name="verticalSpacer_2" >
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>95</height>
|
<height>95</height>
|
||||||
@@ -149,16 +141,7 @@
|
|||||||
<addaction name="menuSettings" />
|
<addaction name="menuSettings" />
|
||||||
<addaction name="menuAbout" />
|
<addaction name="menuAbout" />
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusbar" >
|
<widget class="QStatusBar" name="statusbar" />
|
||||||
<property name="geometry" >
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>317</y>
|
|
||||||
<width>444</width>
|
|
||||||
<height>21</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<action name="actionStart_Local_Game" >
|
<action name="actionStart_Local_Game" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Start Local Game ...</string>
|
<string>Start Local Game ...</string>
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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 "startwindowimpl.h"
|
||||||
|
#include "configfile.h"
|
||||||
|
#include "gametableimpl.h"
|
||||||
|
|
||||||
|
startWindowImpl::startWindowImpl(gameTableImpl *w, ConfigFile *c)
|
||||||
|
: myW(w), myConfig(c)
|
||||||
|
{
|
||||||
|
// #ifdef __APPLE__
|
||||||
|
// setWindowModality(Qt::ApplicationModal);
|
||||||
|
// setWindowFlags(Qt::WindowSystemMenuHint | Qt::CustomizeWindowHint | Qt::Dialog);
|
||||||
|
// #endif
|
||||||
|
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 STARTWINDOWIMPL_H
|
||||||
|
#define STARTWINDOWIMPL_H
|
||||||
|
|
||||||
|
#include "ui_startwindow.h"
|
||||||
|
|
||||||
|
class ConfigFile;
|
||||||
|
class gameTableImpl;
|
||||||
|
|
||||||
|
class startWindowImpl: public QMainWindow, public Ui::startWindow {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
startWindowImpl(gameTableImpl *w = 0, ConfigFile *c =0);
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
ConfigFile *myConfig;
|
||||||
|
gameTableImpl *myW;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
#include "session.h"
|
#include "session.h"
|
||||||
#include "guiwrapper.h"
|
#include "guiwrapper.h"
|
||||||
|
#include "startwindowimpl.h"
|
||||||
#include "configfile.h"
|
#include "configfile.h"
|
||||||
#include <net/socket_startup.h>
|
#include <net/socket_startup.h>
|
||||||
|
|
||||||
@@ -134,6 +135,8 @@ int main( int argc, char **argv )
|
|||||||
myGuiInterface->setSession(session);
|
myGuiInterface->setSession(session);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// boost::shared_ptr<startWindowImpl> myStartWindow(new startWindowImpl(myGuiInterface.get(), myConfig));
|
||||||
|
|
||||||
int retVal = a.exec();
|
int retVal = a.exec();
|
||||||
|
|
||||||
curl_global_cleanup();
|
curl_global_cleanup();
|
||||||
|
|||||||
Reference in New Issue
Block a user