next startwindow steps

This commit is contained in:
doitux
2008-06-07 21:11:57 +00:00
parent e0202f6462
commit 0c98902905
5 changed files with 94 additions and 30 deletions
+5
View File
@@ -49,6 +49,7 @@ INCLUDEPATH += . \
src/gui/qt/settingsdialog/selectavatardialog \
src/gui/qt/settingsdialog/manualblindsorderdialog \
src/gui/qt/startnetworkgamedialog \
src/gui/qt/startwindow \
src/gui/qt/changehumanplayernamedialog \
src/gui/qt/changecompleteblindsdialog \
src/gui/qt/mymessagedialog \
@@ -87,6 +88,7 @@ DEPENDPATH += . \
src/gui/qt/settingsdialog/selectavatardialog \
src/gui/qt/settingsdialog/manualblindsorderdialog \
src/gui/qt/startnetworkgamedialog \
src/gui/qt/startwindow \
src/gui/qt/changehumanplayernamedialog \
src/gui/qt/changecompleteblindsdialog \
src/gui/qt/mymessagedialog \
@@ -169,6 +171,7 @@ HEADERS += \
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
src/gui/qt/startwindow/startwindowimpl.h \
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.h \
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.h \
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \
@@ -192,6 +195,7 @@ FORMS += \
src/gui/qt/settingsdialog.ui \
src/gui/qt/selectavatardialog.ui \
src/gui/qt/startnetworkgamedialog.ui \
src/gui/qt/startwindow.ui \
src/gui/qt/changehumanplayernamedialog.ui \
src/gui/qt/changecompleteblindsdialog.ui \
src/gui/qt/gamelobbydialog.ui \
@@ -228,6 +232,7 @@ SOURCES += \
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
src/gui/qt/startwindow/startwindowimpl.cpp \
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.cpp \
src/gui/qt/changecompleteblindsdialog/changecompleteblindsdialogimpl.cpp \
src/gui/qt/mymessagedialog/mymessagedialogimpl.cpp \
+13 -30
View File
@@ -1,6 +1,6 @@
<ui version="4.0" >
<class>mainWindow</class>
<widget class="QMainWindow" name="mainWindow" >
<class>startWindow</class>
<widget class="QMainWindow" name="startWindow" >
<property name="geometry" >
<rect>
<x>0</x>
@@ -13,21 +13,13 @@
<string>PokerTH 0.6.3 - The Open-Source Texas Holdem Engine</string>
</property>
<widget class="QWidget" name="centralwidget" >
<property name="geometry" >
<rect>
<x>0</x>
<y>28</y>
<width>444</width>
<height>289</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_2" >
<layout class="QGridLayout" >
<item row="0" column="1" >
<spacer name="verticalSpacer" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<property name="sizeHint" >
<size>
<width>20</width>
<height>95</height>
@@ -36,11 +28,11 @@
</spacer>
</item>
<item row="1" column="0" >
<spacer name="horizontalSpacer" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<property name="sizeHint" >
<size>
<width>63</width>
<height>20</height>
@@ -49,7 +41,7 @@
</spacer>
</item>
<item row="1" column="1" colspan="2" >
<layout class="QGridLayout" name="gridLayout" >
<layout class="QGridLayout" >
<item row="0" column="1" >
<widget class="QPushButton" name="pushButton_2" >
<property name="text" >
@@ -81,11 +73,11 @@
</layout>
</item>
<item row="1" column="3" >
<spacer name="horizontalSpacer_2" >
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<property name="sizeHint" >
<size>
<width>63</width>
<height>20</height>
@@ -94,11 +86,11 @@
</spacer>
</item>
<item row="2" column="2" >
<spacer name="verticalSpacer_2" >
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0" >
<property name="sizeHint" >
<size>
<width>20</width>
<height>95</height>
@@ -149,16 +141,7 @@
<addaction name="menuSettings" />
<addaction name="menuAbout" />
</widget>
<widget class="QStatusBar" name="statusbar" >
<property name="geometry" >
<rect>
<x>0</x>
<y>317</y>
<width>444</width>
<height>21</height>
</rect>
</property>
</widget>
<widget class="QStatusBar" name="statusbar" />
<action name="actionStart_Local_Game" >
<property name="text" >
<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);
}
+39
View File
@@ -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
+3
View File
@@ -28,6 +28,7 @@
#include "session.h"
#include "guiwrapper.h"
#include "startwindowimpl.h"
#include "configfile.h"
#include <net/socket_startup.h>
@@ -134,6 +135,8 @@ int main( int argc, char **argv )
myGuiInterface->setSession(session);
}
// boost::shared_ptr<startWindowImpl> myStartWindow(new startWindowImpl(myGuiInterface.get(), myConfig));
int retVal = a.exec();
curl_global_cleanup();