add simple maemo gui support into main pokerth_game.pro

This commit is contained in:
doitux
2011-10-17 13:08:31 +00:00
parent 75b84f9401
commit 6f938c110c
2 changed files with 473 additions and 1 deletions
+26 -1
View File
@@ -196,7 +196,9 @@ HEADERS += src/engine/game.h \
src/engine/local_engine/replay.h \
src/gui/qt/gamelobbydialog/mynicklistsortfilterproxymodel.h \
src/gui/qt/gametable/myslider.h
FORMS += src/gui/qt/gametable.ui \
!gui_800x480 {
FORMS += src/gui/qt/gametable.ui \
src/gui/qt/aboutpokerth.ui \
src/gui/qt/connecttoserverdialog.ui \
src/gui/qt/createnetworkgamedialog.ui \
@@ -214,6 +216,29 @@ FORMS += src/gui/qt/gametable.ui \
src/gui/qt/serverlistdialog.ui \
src/gui/qt/internetgamelogindialog.ui \
src/gui/qt/changecontentdialog.ui
}
gui_800x480 {
FORMS += src/gui/qt/gui_800x480/gametable_800x480.ui \
src/gui/qt/gui_800x480/aboutpokerth_800x480.ui \
src/gui/qt/gui_800x480/connecttoserverdialog_800x480.ui \
src/gui/qt/gui_800x480/createnetworkgamedialog_800x480.ui \
src/gui/qt/gui_800x480/createinternetgamedialog_800x480.ui \
src/gui/qt/gui_800x480/joinnetworkgamedialog_800x480.ui \
src/gui/qt/gui_800x480/newgamedialog_800x480.ui \
src/gui/qt/gui_800x480/settingsdialog_800x480.ui \
src/gui/qt/gui_800x480/selectavatardialog_800x480.ui \
src/gui/qt/gui_800x480/startnetworkgamedialog_800x480.ui \
src/gui/qt/gui_800x480/startwindow_800x480.ui \
src/gui/qt/gui_800x480/changecompleteblindsdialog_800x480.ui \
src/gui/qt/gui_800x480/gamelobbydialog_800x480.ui \
src/gui/qt/gui_800x480/mymessagedialog_800x480.ui \
src/gui/qt/gui_800x480/manualblindsorderdialog_800x480.ui \
src/gui/qt/gui_800x480/serverlistdialog_800x480.ui \
src/gui/qt/gui_800x480/internetgamelogindialog_800x480.ui \
src/gui/qt/gui_800x480/changecontentdialog_800x480.ui
}
SOURCES += src/pokerth.cpp \
src/gui/qt/chattools/chattools.cpp \
src/gui/qt/sound/sdlplayer.cpp \
+447
View File
@@ -0,0 +1,447 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>startWindow</class>
<widget class="QMainWindow" name="startWindow">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>448</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>800</width>
<height>448</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>800</width>
<height>448</height>
</size>
</property>
<property name="windowTitle">
<string>PokerTH - The Open-Source Texas Holdem Engine</string>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<widget class="QWidget" name="centralwidget">
<property name="minimumSize">
<size>
<width>800</width>
<height>424</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>800</width>
<height>424</height>
</size>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="1">
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>95</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>63</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1">
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QPushButton" name="pushButtonStart_Local_Game">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="font">
<font>
<pointsize>-1</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { text-align:left; font: bold 20px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
</property>
<property name="text">
<string>&amp;1 Start Local Game</string>
</property>
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttonlocalgame.png</normaloff>:/gfx/swbuttonlocalgame.png</iconset>
</property>
<property name="iconSize">
<size>
<width>37</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QPushButton" name="pushButtonInternet_Game">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="font">
<font>
<pointsize>-1</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { text-align:left; font: bold 20px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
</property>
<property name="text">
<string>&amp;2 Internet Game</string>
</property>
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttoninternetgame.png</normaloff>:/gfx/swbuttoninternetgame.png</iconset>
</property>
<property name="iconSize">
<size>
<width>37</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QPushButton" name="pushButton_Create_Network_Game">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="font">
<font>
<pointsize>-1</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { text-align:left; font: bold 20px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
</property>
<property name="text">
<string>&amp;3 Create Network Game</string>
</property>
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttoncreatenetworkgame.png</normaloff>:/gfx/swbuttoncreatenetworkgame.png</iconset>
</property>
<property name="iconSize">
<size>
<width>37</width>
<height>32</height>
</size>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QPushButton" name="pushButton_Join_Network_Game">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>350</width>
<height>80</height>
</size>
</property>
<property name="font">
<font>
<pointsize>-1</pointsize>
<weight>75</weight>
<italic>false</italic>
<bold>true</bold>
</font>
</property>
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
<property name="layoutDirection">
<enum>Qt::LeftToRight</enum>
</property>
<property name="autoFillBackground">
<bool>false</bool>
</property>
<property name="styleSheet">
<string notr="true">QPushButton { text-align:left; font: bold 20px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px; padding-right: 3px;}</string>
</property>
<property name="text">
<string>&amp;4 Join Network Game</string>
</property>
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttonjoinnetworkgame.png</normaloff>:/gfx/swbuttonjoinnetworkgame.png</iconset>
</property>
<property name="iconSize">
<size>
<width>37</width>
<height>32</height>
</size>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
<property name="flat">
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</item>
<item row="1" column="2">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>63</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1">
<spacer>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>95</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>800</width>
<height>34</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">QObject {font-size: 20px}</string>
</property>
<widget class="QMenu" name="menuPokerTH">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>&amp;PokerTH</string>
</property>
<addaction name="actionAbout_PokerTH"/>
</widget>
<widget class="QMenu" name="menuSettings">
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="title">
<string>&amp;Settings</string>
</property>
<addaction name="actionConfigure_PokerTH"/>
</widget>
<addaction name="menuPokerTH"/>
<addaction name="menuSettings"/>
</widget>
<widget class="QStatusBar" name="statusbar"/>
<action name="actionStart_Local_Game">
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttonlocalgame.png</normaloff>:/gfx/swbuttonlocalgame.png</iconset>
</property>
<property name="text">
<string>Start Local Game ...</string>
</property>
<property name="shortcut">
<string>Ctrl+N</string>
</property>
</action>
<action name="actionInternet_Game">
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttoninternetgame.png</normaloff>:/gfx/swbuttoninternetgame.png</iconset>
</property>
<property name="text">
<string>Internet Game ...</string>
</property>
<property name="shortcut">
<string>Ctrl+I</string>
</property>
</action>
<action name="actionAbout_PokerTH">
<property name="checkable">
<bool>false</bool>
</property>
<property name="text">
<string>About PokerTH</string>
</property>
<property name="font">
<font/>
</property>
</action>
<action name="actionConfigure_PokerTH">
<property name="checkable">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/systemsettings.png</normaloff>:/gfx/systemsettings.png</iconset>
</property>
<property name="text">
<string>Configure PokerTH ...</string>
</property>
<property name="font">
<font/>
</property>
</action>
<action name="actionQuit">
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/application_exit.png</normaloff>:/gfx/application_exit.png</iconset>
</property>
<property name="text">
<string>Quit</string>
</property>
<property name="shortcut">
<string>Ctrl+Q</string>
</property>
</action>
<action name="actionCreate_Network_Game">
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttoncreatenetworkgame.png</normaloff>:/gfx/swbuttoncreatenetworkgame.png</iconset>
</property>
<property name="text">
<string>Create Network Game ...</string>
</property>
</action>
<action name="actionJoin_Network_Game">
<property name="icon">
<iconset resource="resources/pokerth.qrc">
<normaloff>:/gfx/swbuttonjoinnetworkgame.png</normaloff>:/gfx/swbuttonjoinnetworkgame.png</iconset>
</property>
<property name="text">
<string>Join Network Game ...</string>
</property>
</action>
</widget>
<resources>
<include location="resources/pokerth.qrc"/>
</resources>
<connections>
<connection>
<sender>actionQuit</sender>
<signal>triggered()</signal>
<receiver>startWindow</receiver>
<slot>close()</slot>
<hints>
<hint type="sourcelabel">
<x>-1</x>
<y>-1</y>
</hint>
<hint type="destinationlabel">
<x>221</x>
<y>168</y>
</hint>
</hints>
</connection>
</connections>
</ui>