start manual blinds order feature
This commit is contained in:
+6
-1
@@ -37,6 +37,7 @@ INCLUDEPATH += . \
|
|||||||
src/gui/qt/newlocalgamedialog \
|
src/gui/qt/newlocalgamedialog \
|
||||||
src/gui/qt/settingsdialog \
|
src/gui/qt/settingsdialog \
|
||||||
src/gui/qt/settingsdialog/selectavatardialog \
|
src/gui/qt/settingsdialog/selectavatardialog \
|
||||||
|
src/gui/qt/settingsdialog/manualblindsorderdialog \
|
||||||
src/gui/qt/startnetworkgamedialog \
|
src/gui/qt/startnetworkgamedialog \
|
||||||
src/gui/qt/changehumanplayernamedialog \
|
src/gui/qt/changehumanplayernamedialog \
|
||||||
src/gui/qt/gamelobbydialog \
|
src/gui/qt/gamelobbydialog \
|
||||||
@@ -70,6 +71,7 @@ DEPENDPATH += . \
|
|||||||
src/gui/qt/newlocalgamedialog \
|
src/gui/qt/newlocalgamedialog \
|
||||||
src/gui/qt/settingsdialog \
|
src/gui/qt/settingsdialog \
|
||||||
src/gui/qt/settingsdialog/selectavatardialog \
|
src/gui/qt/settingsdialog/selectavatardialog \
|
||||||
|
src/gui/qt/settingsdialog/manualblindsorderdialog \
|
||||||
src/gui/qt/startnetworkgamedialog \
|
src/gui/qt/startnetworkgamedialog \
|
||||||
src/gui/qt/changehumanplayernamedialog \
|
src/gui/qt/changehumanplayernamedialog \
|
||||||
src/gui/qt/gamelobbydialog \
|
src/gui/qt/gamelobbydialog \
|
||||||
@@ -144,6 +146,7 @@ HEADERS += \
|
|||||||
src/gui/qt/settingsdialog/myhpavatarbutton.h \
|
src/gui/qt/settingsdialog/myhpavatarbutton.h \
|
||||||
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.h \
|
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.h \
|
||||||
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \
|
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.h \
|
||||||
|
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.h \
|
||||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
|
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.h \
|
||||||
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.h \
|
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.h \
|
||||||
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \
|
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.h \
|
||||||
@@ -165,7 +168,8 @@ FORMS += \
|
|||||||
src/gui/qt/selectavatardialog.ui \
|
src/gui/qt/selectavatardialog.ui \
|
||||||
src/gui/qt/startnetworkgamedialog.ui \
|
src/gui/qt/startnetworkgamedialog.ui \
|
||||||
src/gui/qt/changehumanplayernamedialog.ui \
|
src/gui/qt/changehumanplayernamedialog.ui \
|
||||||
src/gui/qt/gamelobbydialog.ui
|
src/gui/qt/gamelobbydialog.ui \
|
||||||
|
src/gui/qt/manualblindsorderdialog.ui
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
src/pokerth.cpp \
|
src/pokerth.cpp \
|
||||||
@@ -191,6 +195,7 @@ SOURCES += \
|
|||||||
src/gui/qt/settingsdialog/myhpavatarbutton.cpp \
|
src/gui/qt/settingsdialog/myhpavatarbutton.cpp \
|
||||||
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp \
|
src/gui/qt/settingsdialog/selectavatardialog/selectavatardialogimpl.cpp \
|
||||||
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \
|
src/gui/qt/settingsdialog/selectavatardialog/myavatarlistitem.cpp \
|
||||||
|
src/gui/qt/settingsdialog/manualblindsorderdialog/manualblindsorderdialogimpl.cpp \
|
||||||
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
|
src/gui/qt/startnetworkgamedialog/startnetworkgamedialogimpl.cpp \
|
||||||
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.cpp \
|
src/gui/qt/changehumanplayernamedialog/changehumanplayernamedialogimpl.cpp \
|
||||||
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp \
|
src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp \
|
||||||
|
|||||||
+15
-48
@@ -55,7 +55,7 @@ ConfigFile::ConfigFile(int argc, char **argv) : noWriteAccess(0)
|
|||||||
if(strcmp(argv[i], "--nowriteaccess") == 0) { noWriteAccess = 1; }
|
if(strcmp(argv[i], "--nowriteaccess") == 0) { noWriteAccess = 1; }
|
||||||
}
|
}
|
||||||
// !!!! Revisionsnummer der Configdefaults !!!!!
|
// !!!! Revisionsnummer der Configdefaults !!!!!
|
||||||
configRev = 35;
|
configRev = 37;
|
||||||
|
|
||||||
//standard defaults
|
//standard defaults
|
||||||
logOnOffDefault = "1";
|
logOnOffDefault = "1";
|
||||||
@@ -168,16 +168,26 @@ ConfigFile::ConfigFile(int argc, char **argv) : noWriteAccess(0)
|
|||||||
configList.push_back(ConfigInfo("FlipsideOwnFile", CONFIG_TYPE_STRING, ""));
|
configList.push_back(ConfigInfo("FlipsideOwnFile", CONFIG_TYPE_STRING, ""));
|
||||||
configList.push_back(ConfigInfo("NumberOfPlayers", CONFIG_TYPE_INT, "7"));
|
configList.push_back(ConfigInfo("NumberOfPlayers", CONFIG_TYPE_INT, "7"));
|
||||||
configList.push_back(ConfigInfo("StartCash", CONFIG_TYPE_INT, "3000"));
|
configList.push_back(ConfigInfo("StartCash", CONFIG_TYPE_INT, "3000"));
|
||||||
configList.push_back(ConfigInfo("SmallBlind", CONFIG_TYPE_INT, "10"));
|
configList.push_back(ConfigInfo("FirstSmallBlind", CONFIG_TYPE_INT, "10"));
|
||||||
configList.push_back(ConfigInfo("HandsBeforeRaiseSmallBlind", CONFIG_TYPE_INT, "8"));
|
configList.push_back(ConfigInfo("RaiseBlindsAtHands", CONFIG_TYPE_INT, "1"));
|
||||||
|
configList.push_back(ConfigInfo("RaiseBlindsAtMinutes", CONFIG_TYPE_INT, "0"));
|
||||||
|
configList.push_back(ConfigInfo("RaiseSmallBlindEveryHands", CONFIG_TYPE_INT, "8"));
|
||||||
|
configList.push_back(ConfigInfo("RaiseSmallBlindEveryMinutes", CONFIG_TYPE_INT, "5"));
|
||||||
|
configList.push_back(ConfigInfo("AlwaysDoubleBlinds", CONFIG_TYPE_INT, "1"));
|
||||||
|
configList.push_back(ConfigInfo("ManualBlindsOrder", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("GameSpeed", CONFIG_TYPE_INT, "4"));
|
configList.push_back(ConfigInfo("GameSpeed", CONFIG_TYPE_INT, "4"));
|
||||||
configList.push_back(ConfigInfo("EngineVersion", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("EngineVersion", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("PauseBetweenHands", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("PauseBetweenHands", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("ShowGameSettingsDialogOnNewGame", CONFIG_TYPE_INT, "1"));
|
configList.push_back(ConfigInfo("ShowGameSettingsDialogOnNewGame", CONFIG_TYPE_INT, "1"));
|
||||||
configList.push_back(ConfigInfo("NetNumberOfPlayers", CONFIG_TYPE_INT, "7"));
|
configList.push_back(ConfigInfo("NetNumberOfPlayers", CONFIG_TYPE_INT, "7"));
|
||||||
configList.push_back(ConfigInfo("NetStartCash", CONFIG_TYPE_INT, "3000"));
|
configList.push_back(ConfigInfo("NetStartCash", CONFIG_TYPE_INT, "3000"));
|
||||||
configList.push_back(ConfigInfo("NetSmallBlind", CONFIG_TYPE_INT, "10"));
|
configList.push_back(ConfigInfo("NetFirstSmallBlind", CONFIG_TYPE_INT, "10"));
|
||||||
configList.push_back(ConfigInfo("NetHandsBeforeRaiseSmallBlind", CONFIG_TYPE_INT, "8"));
|
configList.push_back(ConfigInfo("NetRaiseBlindsAtHands", CONFIG_TYPE_INT, "1"));
|
||||||
|
configList.push_back(ConfigInfo("NetRaiseBlindsAtMinutes", CONFIG_TYPE_INT, "0"));
|
||||||
|
configList.push_back(ConfigInfo("NetRaiseSmallBlindEveryHands", CONFIG_TYPE_INT, "8"));
|
||||||
|
configList.push_back(ConfigInfo("NetRaiseSmallBlindEveryMinutes", CONFIG_TYPE_INT, "5"));
|
||||||
|
configList.push_back(ConfigInfo("NetAlwaysDoubleBlinds", CONFIG_TYPE_INT, "1"));
|
||||||
|
configList.push_back(ConfigInfo("NetManualBlindsOrder", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("NetGameSpeed", CONFIG_TYPE_INT, "4"));
|
configList.push_back(ConfigInfo("NetGameSpeed", CONFIG_TYPE_INT, "4"));
|
||||||
configList.push_back(ConfigInfo("NetEngineVersion", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("NetEngineVersion", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("NetTimeOutPlayerAction", CONFIG_TYPE_INT, "20"));
|
configList.push_back(ConfigInfo("NetTimeOutPlayerAction", CONFIG_TYPE_INT, "20"));
|
||||||
@@ -429,26 +439,6 @@ string ConfigFile::readConfigString(string varName) const
|
|||||||
size_t i;
|
size_t i;
|
||||||
string tempString("");
|
string tempString("");
|
||||||
|
|
||||||
// TiXmlDocument doc(configFileName);
|
|
||||||
// if(!doc.LoadFile()) { cout << "Could Not Load Config-File!!! " << configFileName << "\n"; }
|
|
||||||
// TiXmlHandle docHandle( &doc );
|
|
||||||
//
|
|
||||||
// TiXmlElement* conf = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).FirstChild( varName ).ToElement();
|
|
||||||
// if ( conf ) {
|
|
||||||
// const char *tmpStr = conf->Attribute("value");
|
|
||||||
// if (tmpStr) tempString = tmpStr;
|
|
||||||
// } /*else {
|
|
||||||
// //Wenn nicht gefunden eines neues Anlegen
|
|
||||||
// TiXmlElement* config = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).ToElement();
|
|
||||||
// if ( config ) {
|
|
||||||
// TiXmlElement * confElement1 = new TiXmlElement( varName );
|
|
||||||
// config->LinkEndChild( confElement1 );
|
|
||||||
// confElement1->SetAttribute("value", defaultValue);
|
|
||||||
// if(!doc.SaveFile()) { cout << "Could Not Save Config-File!!! " << configFileName << "\n"; }
|
|
||||||
//
|
|
||||||
// return readConfigString(varName, defaultValue);
|
|
||||||
// }
|
|
||||||
// }*/
|
|
||||||
for (i=0; i<configBufferList.size(); i++) {
|
for (i=0; i<configBufferList.size(); i++) {
|
||||||
|
|
||||||
if (configBufferList[i].name == varName) {
|
if (configBufferList[i].name == varName) {
|
||||||
@@ -467,29 +457,6 @@ int ConfigFile::readConfigInt(string varName) const
|
|||||||
string tempString("");
|
string tempString("");
|
||||||
int tempInt=0;
|
int tempInt=0;
|
||||||
|
|
||||||
// cout << varName << " : " << tempInt << "\n";
|
|
||||||
// TiXmlDocument doc(configFileName);
|
|
||||||
// if(!doc.LoadFile()) { cout << "Could Not Load Config-File!!! " << configFileName << "\n"; }
|
|
||||||
// TiXmlHandle docHandle( &doc );
|
|
||||||
//
|
|
||||||
// TiXmlElement* conf = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).FirstChild( varName ).ToElement();
|
|
||||||
// if ( conf ) {
|
|
||||||
// // cout << varName << " : " << tempInt << "\n";
|
|
||||||
// conf->QueryIntAttribute("value", &tempInt );
|
|
||||||
// // cout << varName << " : " << tempInt << "\n";
|
|
||||||
// } /*else {
|
|
||||||
// // Wenn nicht gefunden eines neues Anlegen
|
|
||||||
// TiXmlElement* config = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).ToElement();
|
|
||||||
// if ( config ) {
|
|
||||||
// TiXmlElement * confElement1 = new TiXmlElement( varName );
|
|
||||||
// config->LinkEndChild( confElement1 );
|
|
||||||
// confElement1->SetAttribute("value", defaultValue);
|
|
||||||
// if(!doc.SaveFile()) { cout << "Could Not Save Config-File!!! " << configFileName << "\n"; }
|
|
||||||
//
|
|
||||||
// return readConfigInt(varName, defaultValue);
|
|
||||||
// }
|
|
||||||
// }*/
|
|
||||||
|
|
||||||
for (i=0; i<configBufferList.size(); i++) {
|
for (i=0; i<configBufferList.size(); i++) {
|
||||||
|
|
||||||
if (configBufferList[i].name == varName) {
|
if (configBufferList[i].name == varName) {
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ void createInternetGameDialogImpl::fillFormular() {
|
|||||||
//Network Game Settings
|
//Network Game Settings
|
||||||
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
||||||
spinBox_startCash->setValue(myConfig->readConfigInt("NetStartCash"));
|
spinBox_startCash->setValue(myConfig->readConfigInt("NetStartCash"));
|
||||||
spinBox_smallBlind->setValue(myConfig->readConfigInt("NetSmallBlind"));
|
spinBox_smallBlind->setValue(myConfig->readConfigInt("NetFirstSmallBlind"));
|
||||||
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("NetHandsBeforeRaiseSmallBlind"));
|
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("NetRaiseSmallBlindEveryHands"));
|
||||||
//temporarely unused until ai is enabled in network
|
//temporarely unused until ai is enabled in network
|
||||||
spinBox_gameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
spinBox_gameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
||||||
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
||||||
|
|||||||
@@ -59,8 +59,8 @@ void createNetworkGameDialogImpl::fillFormular() {
|
|||||||
//Network Game Settings
|
//Network Game Settings
|
||||||
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
||||||
spinBox_startCash->setValue(myConfig->readConfigInt("NetStartCash"));
|
spinBox_startCash->setValue(myConfig->readConfigInt("NetStartCash"));
|
||||||
spinBox_smallBlind->setValue(myConfig->readConfigInt("NetSmallBlind"));
|
spinBox_smallBlind->setValue(myConfig->readConfigInt("NetFirstSmallBlind"));
|
||||||
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("NetHandsBeforeRaiseSmallBlind"));
|
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("NetRaiseSmallBlindEveryHands"));
|
||||||
//temporarely unused until ai is enabled in network
|
//temporarely unused until ai is enabled in network
|
||||||
spinBox_gameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
spinBox_gameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
||||||
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
||||||
|
|||||||
@@ -724,8 +724,8 @@ void mainWindowImpl::startNewLocalGame(newGameDialogImpl *v) {
|
|||||||
// Set Game Data
|
// Set Game Data
|
||||||
gameData.maxNumberOfPlayers = myConfig->readConfigInt("NumberOfPlayers");
|
gameData.maxNumberOfPlayers = myConfig->readConfigInt("NumberOfPlayers");
|
||||||
gameData.startMoney = myConfig->readConfigInt("StartCash");
|
gameData.startMoney = myConfig->readConfigInt("StartCash");
|
||||||
gameData.smallBlind = myConfig->readConfigInt("SmallBlind");
|
gameData.smallBlind = myConfig->readConfigInt("FirstSmallBlind");
|
||||||
gameData.handsBeforeRaise = myConfig->readConfigInt("HandsBeforeRaiseSmallBlind");
|
gameData.handsBeforeRaise = myConfig->readConfigInt("RaiseSmallBlindEveryHands");
|
||||||
//Speeds
|
//Speeds
|
||||||
gameData.guiSpeed = myConfig->readConfigInt("GameSpeed");
|
gameData.guiSpeed = myConfig->readConfigInt("GameSpeed");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,185 @@
|
|||||||
|
<ui version="4.0" >
|
||||||
|
<class>manualBlindsOrderDialog</class>
|
||||||
|
<widget class="QDialog" name="manualBlindsOrderDialog" >
|
||||||
|
<property name="geometry" >
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>248</width>
|
||||||
|
<height>407</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle" >
|
||||||
|
<string>Manual Blinds Order</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="horizontalSpacing" >
|
||||||
|
<number>4</number>
|
||||||
|
</property>
|
||||||
|
<item rowspan="2" row="0" column="0" >
|
||||||
|
<widget class="QListWidget" name="listWidget_blinds" >
|
||||||
|
<property name="sortingEnabled" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1" >
|
||||||
|
<widget class="QPushButton" name="pushButton_delete" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Delete</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1" >
|
||||||
|
<spacer>
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" >
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>121</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<widget class="QSpinBox" name="spinBox_input" >
|
||||||
|
<property name="maximum" >
|
||||||
|
<number>9999</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1" >
|
||||||
|
<widget class="QPushButton" name="pushButton_add" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Add</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QGroupBox" name="groupBox" >
|
||||||
|
<property name="title" >
|
||||||
|
<string>After this:</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_alwaysDoubleBlinds" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Always double blinds</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QRadioButton" name="radioButton_alwaysRaiseAbout" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Always raise about:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_AfterThisAlwaysRaiseValue" />
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>$</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_stayAtLastBlind" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Stay at last blind</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox" >
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons" >
|
||||||
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>listWidget_blinds</tabstop>
|
||||||
|
<tabstop>spinBox_input</tabstop>
|
||||||
|
<tabstop>pushButton_add</tabstop>
|
||||||
|
<tabstop>pushButton_delete</tabstop>
|
||||||
|
<tabstop>radioButton_alwaysDoubleBlinds</tabstop>
|
||||||
|
<tabstop>radioButton_alwaysRaiseAbout</tabstop>
|
||||||
|
<tabstop>spinBox_AfterThisAlwaysRaiseValue</tabstop>
|
||||||
|
<tabstop>radioButton_stayAtLastBlind</tabstop>
|
||||||
|
<tabstop>buttonBox</tabstop>
|
||||||
|
</tabstops>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>manualBlindsOrderDialog</receiver>
|
||||||
|
<slot>accept()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>228</x>
|
||||||
|
<y>394</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>157</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>rejected()</signal>
|
||||||
|
<receiver>manualBlindsOrderDialog</receiver>
|
||||||
|
<slot>reject()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>270</x>
|
||||||
|
<y>400</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>286</x>
|
||||||
|
<y>274</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>radioButton_alwaysRaiseAbout</sender>
|
||||||
|
<signal>toggled(bool)</signal>
|
||||||
|
<receiver>spinBox_AfterThisAlwaysRaiseValue</receiver>
|
||||||
|
<slot>setEnabled(bool)</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>109</x>
|
||||||
|
<y>307</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>173</x>
|
||||||
|
<y>303</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
</connections>
|
||||||
|
</ui>
|
||||||
@@ -33,9 +33,9 @@ void newGameDialogImpl::exec() {
|
|||||||
|
|
||||||
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NumberOfPlayers"));
|
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NumberOfPlayers"));
|
||||||
spinBox_startCash->setValue(myConfig->readConfigInt("StartCash"));
|
spinBox_startCash->setValue(myConfig->readConfigInt("StartCash"));
|
||||||
spinBox_smallBlind->setValue(myConfig->readConfigInt("SmallBlind"));
|
spinBox_smallBlind->setValue(myConfig->readConfigInt("FirstSmallBlind"));
|
||||||
spinBox_gameSpeed->setValue(myConfig->readConfigInt("GameSpeed"));
|
spinBox_gameSpeed->setValue(myConfig->readConfigInt("GameSpeed"));
|
||||||
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("HandsBeforeRaiseSmallBlind"));
|
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("RaiseSmallBlindEveryHands"));
|
||||||
|
|
||||||
QDialog::exec();
|
QDialog::exec();
|
||||||
|
|
||||||
|
|||||||
+499
-291
@@ -6,7 +6,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>632</width>
|
<width>632</width>
|
||||||
<height>571</height>
|
<height>606</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimumSize" >
|
<property name="minimumSize" >
|
||||||
@@ -394,45 +394,33 @@ p, li { white-space: pre-wrap; }
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="page_2" >
|
<widget class="QWidget" name="page_2" >
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="leftMargin" >
|
<item row="0" column="0" >
|
||||||
<number>9</number>
|
<widget class="QLabel" name="label_5" >
|
||||||
|
<property name="styleSheet" >
|
||||||
|
<string>QLabel { font-weight: bold; }</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="horizontalSpacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="verticalSpacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="9" column="0" colspan="2" >
|
|
||||||
<widget class="QCheckBox" name="checkBox_showGameSettingsDialogOnNewGame" >
|
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Show game settings dialog on every new game</string>
|
<string>Local Game Settings</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="6" column="1" >
|
<item row="1" column="0" >
|
||||||
<widget class="QSpinBox" name="spinBox_gameSpeed" >
|
<widget class="Line" name="line_3" >
|
||||||
<property name="minimum" >
|
<property name="orientation" >
|
||||||
<number>1</number>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
|
||||||
<property name="maximum" >
|
|
||||||
<number>11</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep" >
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1" >
|
<item row="2" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_4" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Number of players:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
<widget class="QSpinBox" name="spinBox_quantityPlayers" >
|
<widget class="QSpinBox" name="spinBox_quantityPlayers" >
|
||||||
<property name="minimum" >
|
<property name="minimum" >
|
||||||
<number>2</number>
|
<number>2</number>
|
||||||
@@ -445,17 +433,221 @@ p, li { white-space: pre-wrap; }
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" >
|
</layout>
|
||||||
<widget class="QLabel" name="label_14" >
|
</item>
|
||||||
|
<item row="3" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_2" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Hands before raise blinds:</string>
|
<string>Start Cash:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_startCash" >
|
||||||
|
<property name="minimum" >
|
||||||
|
<number>1000</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum" >
|
||||||
|
<number>5000</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_3" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>First small blind:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_firstSmallBlind" >
|
||||||
|
<property name="minimum" >
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum" >
|
||||||
|
<number>500</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="groupBox_6" >
|
||||||
|
<property name="title" >
|
||||||
|
<string>Raise blinds:</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="leftMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="bottomMargin" >
|
||||||
|
<number>9</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_raiseBlindsAtHands" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Every:</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1" >
|
||||||
|
<widget class="QSpinBox" name="spinBox_raiseSmallBlindEveryHands" />
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2" >
|
||||||
|
<widget class="QLabel" name="label_47" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
|
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>hands</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_raiseBlindsAtMinutes" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Every:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1" >
|
||||||
|
<widget class="QSpinBox" name="spinBox_raiseSmallBlindEveryMinutes" />
|
||||||
|
</item>
|
||||||
|
<item row="1" column="2" >
|
||||||
|
<widget class="QLabel" name="label_50" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
|
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>minutes</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="groupBox_7" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
|
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="title" >
|
||||||
|
<string>Raise mode:</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_alwaysDoubleBlinds" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Always double blinds</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_manualBlindsOrder" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Manual blinds order:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0" >
|
||||||
<widget class="QLabel" name="label_4" >
|
<widget class="QPushButton" name="pushButton_editManualBlindsOrder" >
|
||||||
|
<property name="enabled" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Number of players:</string>
|
<string>Edit ...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="6" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Game Speed:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_gameSpeed" >
|
||||||
|
<property name="minimum" >
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum" >
|
||||||
|
<number>11</number>
|
||||||
|
</property>
|
||||||
|
<property name="singleStep" >
|
||||||
|
<number>1</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="7" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_17" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Engine Version:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="comboBox_engineVersion" >
|
||||||
|
<item>
|
||||||
|
<property name="text" >
|
||||||
|
<string>0.4 (current)</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="8" column="0" >
|
||||||
|
<widget class="QCheckBox" name="checkBox_pauseBetweenHands" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Pause between hands (press "start" button to go on)</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0" >
|
||||||
|
<widget class="QCheckBox" name="checkBox_showGameSettingsDialogOnNewGame" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Show game settings dialog on every new game</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -467,47 +659,67 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>20</height>
|
<height>141</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" colspan="2" >
|
</layout>
|
||||||
<widget class="QLabel" name="label_5" >
|
</widget>
|
||||||
|
<widget class="QWidget" name="page_4" >
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QLabel" name="label_34" >
|
||||||
<property name="styleSheet" >
|
<property name="styleSheet" >
|
||||||
<string>QLabel { font-weight: bold; }</string>
|
<string>QLabel { font-weight: bold; }</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Local Game Settings</string>
|
<string>Network Game Settings</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2" >
|
<item row="1" column="0" >
|
||||||
<widget class="Line" name="line_3" >
|
<widget class="Line" name="line_5" >
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1" >
|
<item row="2" column="0" >
|
||||||
<widget class="QSpinBox" name="spinBox_smallBlind" >
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_15" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Maximum number of players:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_netQuantityPlayers" >
|
||||||
<property name="minimum" >
|
<property name="minimum" >
|
||||||
<number>5</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximum" >
|
<property name="maximum" >
|
||||||
<number>500</number>
|
<number>7</number>
|
||||||
|
</property>
|
||||||
|
<property name="value" >
|
||||||
|
<number>7</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" >
|
</layout>
|
||||||
<widget class="QLabel" name="label_3" >
|
</item>
|
||||||
|
<item row="3" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_13" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Small Blind:</string>
|
<string>Start Cash:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1" >
|
<item>
|
||||||
<widget class="QSpinBox" name="spinBox_startCash" >
|
<widget class="QSpinBox" name="spinBox_netStartCash" >
|
||||||
<property name="minimum" >
|
<property name="minimum" >
|
||||||
<number>1000</number>
|
<number>1000</number>
|
||||||
</property>
|
</property>
|
||||||
@@ -516,39 +728,174 @@ p, li { white-space: pre-wrap; }
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="4" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_35" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>First small blind:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_netFirstSmallBlind" >
|
||||||
|
<property name="minimum" >
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum" >
|
||||||
|
<number>500</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="5" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="groupBox_8" >
|
||||||
|
<property name="title" >
|
||||||
|
<string>Raise blinds:</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_netRaiseBlindsAtHands" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Every:</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1" >
|
||||||
|
<widget class="QSpinBox" name="spinBox_netRaiseSmallBlindEveryHands" />
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2" >
|
||||||
|
<widget class="QLabel" name="label_51" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
|
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>hands</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_netRaiseBlindsAtMinutes" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Every:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1" >
|
||||||
|
<widget class="QSpinBox" name="spinBox_netRaiseSmallBlindEveryMinutes" />
|
||||||
|
</item>
|
||||||
|
<item row="1" column="2" >
|
||||||
|
<widget class="QLabel" name="label_52" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
|
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>minutes</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QGroupBox" name="groupBox_9" >
|
||||||
|
<property name="sizePolicy" >
|
||||||
|
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="title" >
|
||||||
|
<string>Raise mode:</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_netAlwaysDoubleBlinds" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Always double blinds</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QRadioButton" name="radioButton_netManualBlindsOrder" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Manual blinds order:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<widget class="QPushButton" name="pushButton_netEditManualBlindsOrder" >
|
||||||
|
<property name="enabled" >
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
<property name="text" >
|
||||||
|
<string>Edit ...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
<item row="6" column="0" >
|
<item row="6" column="0" >
|
||||||
<widget class="QLabel" name="label" >
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_36" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Game Speed:</string>
|
<string>Game Speed for computer opponents:</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" >
|
<item>
|
||||||
<widget class="QLabel" name="label_2" >
|
<widget class="QSpinBox" name="spinBox_netGameSpeed" >
|
||||||
<property name="text" >
|
|
||||||
<string>Start Cash:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0" colspan="2" >
|
|
||||||
<widget class="QCheckBox" name="checkBox_pauseBetweenHands" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Pause between hands (press "start" button to go on)</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox_handsBeforeRaiseSmallBlind" >
|
|
||||||
<property name="minimum" >
|
<property name="minimum" >
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="value" >
|
<property name="maximum" >
|
||||||
<number>9</number>
|
<number>11</number>
|
||||||
|
</property>
|
||||||
|
<property name="singleStep" >
|
||||||
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="1" >
|
</layout>
|
||||||
<widget class="QComboBox" name="comboBox_engineVersion" >
|
</item>
|
||||||
|
<item row="7" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_18" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Engine Version for computer opponents:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="comboBox_netEngineVersion" >
|
||||||
<item>
|
<item>
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>0.4 (current)</string>
|
<string>0.4 (current)</string>
|
||||||
@@ -556,36 +903,40 @@ p, li { white-space: pre-wrap; }
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0" >
|
</layout>
|
||||||
<widget class="QLabel" name="label_17" >
|
</item>
|
||||||
|
<item row="8" column="0" >
|
||||||
|
<layout class="QHBoxLayout" >
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_40" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Engine Version:</string>
|
<string>Timeout for player action (sec):</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QSpinBox" name="spinBox_netTimeOutPlayerAction" >
|
||||||
|
<property name="minimum" >
|
||||||
|
<number>5</number>
|
||||||
|
</property>
|
||||||
|
<property name="maximum" >
|
||||||
|
<number>60</number>
|
||||||
|
</property>
|
||||||
|
<property name="value" >
|
||||||
|
<number>20</number>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="9" column="0" >
|
||||||
|
<widget class="Line" name="line_7" >
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="page_4" >
|
</item>
|
||||||
<layout class="QGridLayout" >
|
<item row="10" column="0" >
|
||||||
<property name="leftMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
<property name="horizontalSpacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="verticalSpacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="4" column="0" >
|
|
||||||
<widget class="QGroupBox" name="groupBox_2" >
|
<widget class="QGroupBox" name="groupBox_2" >
|
||||||
<property name="title" >
|
<property name="title" >
|
||||||
<string>Network Server Settings</string>
|
<string>Network Server Settings</string>
|
||||||
@@ -595,7 +946,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<number>9</number>
|
<number>9</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="topMargin" >
|
<property name="topMargin" >
|
||||||
<number>9</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="rightMargin" >
|
<property name="rightMargin" >
|
||||||
<number>9</number>
|
<number>9</number>
|
||||||
@@ -683,180 +1034,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="11" column="0" >
|
||||||
<widget class="Line" name="line_5" >
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QLabel" name="label_34" >
|
|
||||||
<property name="styleSheet" >
|
|
||||||
<string>QLabel { font-weight: bold; }</string>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>Network Game Settings</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" >
|
|
||||||
<layout class="QGridLayout" >
|
|
||||||
<property name="leftMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin" >
|
|
||||||
<number>0</number>
|
|
||||||
</property>
|
|
||||||
<property name="horizontalSpacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<property name="verticalSpacing" >
|
|
||||||
<number>6</number>
|
|
||||||
</property>
|
|
||||||
<item row="3" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox_netHandsBeforeRaiseSmallBlind" >
|
|
||||||
<property name="minimum" >
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="value" >
|
|
||||||
<number>9</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox_netStartCash" >
|
|
||||||
<property name="minimum" >
|
|
||||||
<number>1000</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum" >
|
|
||||||
<number>5000</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox_netQuantityPlayers" >
|
|
||||||
<property name="minimum" >
|
|
||||||
<number>2</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum" >
|
|
||||||
<number>7</number>
|
|
||||||
</property>
|
|
||||||
<property name="value" >
|
|
||||||
<number>7</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox_netGameSpeed" >
|
|
||||||
<property name="minimum" >
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum" >
|
|
||||||
<number>11</number>
|
|
||||||
</property>
|
|
||||||
<property name="singleStep" >
|
|
||||||
<number>1</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0" >
|
|
||||||
<widget class="QLabel" name="label_35" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Small Blind:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0" >
|
|
||||||
<widget class="QLabel" name="label_36" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Game Speed for computer opponents:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QLabel" name="label_15" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Maximum number of players:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1" >
|
|
||||||
<widget class="QComboBox" name="comboBox_netEngineVersion" >
|
|
||||||
<item>
|
|
||||||
<property name="text" >
|
|
||||||
<string>0.4 (current)</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0" >
|
|
||||||
<widget class="QLabel" name="label_18" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Engine Version for computer opponents:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" >
|
|
||||||
<widget class="QLabel" name="label_13" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Start Cash:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox_netSmallBlind" >
|
|
||||||
<property name="minimum" >
|
|
||||||
<number>5</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum" >
|
|
||||||
<number>500</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0" >
|
|
||||||
<widget class="QLabel" name="label_33" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Hands before raise blinds:</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0" >
|
|
||||||
<widget class="QLabel" name="label_40" >
|
|
||||||
<property name="text" >
|
|
||||||
<string>Timeout for player action (sec):</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1" >
|
|
||||||
<widget class="QSpinBox" name="spinBox_netTimeOutPlayerAction" >
|
|
||||||
<property name="minimum" >
|
|
||||||
<number>5</number>
|
|
||||||
</property>
|
|
||||||
<property name="maximum" >
|
|
||||||
<number>60</number>
|
|
||||||
</property>
|
|
||||||
<property name="value" >
|
|
||||||
<number>20</number>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0" >
|
|
||||||
<widget class="Line" name="line_7" >
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0" >
|
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@@ -2800,16 +2978,14 @@ p, li { white-space: pre-wrap; }
|
|||||||
<tabstop>pushButton_openFlipsidePicture</tabstop>
|
<tabstop>pushButton_openFlipsidePicture</tabstop>
|
||||||
<tabstop>spinBox_quantityPlayers</tabstop>
|
<tabstop>spinBox_quantityPlayers</tabstop>
|
||||||
<tabstop>spinBox_startCash</tabstop>
|
<tabstop>spinBox_startCash</tabstop>
|
||||||
<tabstop>spinBox_smallBlind</tabstop>
|
<tabstop>spinBox_firstSmallBlind</tabstop>
|
||||||
<tabstop>spinBox_handsBeforeRaiseSmallBlind</tabstop>
|
|
||||||
<tabstop>spinBox_gameSpeed</tabstop>
|
<tabstop>spinBox_gameSpeed</tabstop>
|
||||||
<tabstop>comboBox_engineVersion</tabstop>
|
<tabstop>comboBox_engineVersion</tabstop>
|
||||||
<tabstop>checkBox_pauseBetweenHands</tabstop>
|
<tabstop>checkBox_pauseBetweenHands</tabstop>
|
||||||
<tabstop>checkBox_showGameSettingsDialogOnNewGame</tabstop>
|
<tabstop>checkBox_showGameSettingsDialogOnNewGame</tabstop>
|
||||||
<tabstop>spinBox_netQuantityPlayers</tabstop>
|
<tabstop>spinBox_netQuantityPlayers</tabstop>
|
||||||
<tabstop>spinBox_netStartCash</tabstop>
|
<tabstop>spinBox_netStartCash</tabstop>
|
||||||
<tabstop>spinBox_netSmallBlind</tabstop>
|
<tabstop>spinBox_netFirstSmallBlind</tabstop>
|
||||||
<tabstop>spinBox_netHandsBeforeRaiseSmallBlind</tabstop>
|
|
||||||
<tabstop>spinBox_netGameSpeed</tabstop>
|
<tabstop>spinBox_netGameSpeed</tabstop>
|
||||||
<tabstop>comboBox_netEngineVersion</tabstop>
|
<tabstop>comboBox_netEngineVersion</tabstop>
|
||||||
<tabstop>spinBox_netTimeOutPlayerAction</tabstop>
|
<tabstop>spinBox_netTimeOutPlayerAction</tabstop>
|
||||||
@@ -2862,12 +3038,12 @@ p, li { white-space: pre-wrap; }
|
|||||||
<slot>setEnabled(bool)</slot>
|
<slot>setEnabled(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel" >
|
||||||
<x>308</x>
|
<x>360</x>
|
||||||
<y>356</y>
|
<y>395</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel" >
|
||||||
<x>540</x>
|
<x>571</x>
|
||||||
<y>355</y>
|
<y>395</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
@@ -2878,12 +3054,12 @@ p, li { white-space: pre-wrap; }
|
|||||||
<slot>setEnabled(bool)</slot>
|
<slot>setEnabled(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel" >
|
||||||
<x>308</x>
|
<x>360</x>
|
||||||
<y>356</y>
|
<y>395</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel" >
|
||||||
<x>567</x>
|
<x>600</x>
|
||||||
<y>356</y>
|
<y>396</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
@@ -2894,8 +3070,8 @@ p, li { white-space: pre-wrap; }
|
|||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel" >
|
||||||
<x>480</x>
|
<x>489</x>
|
||||||
<y>578</y>
|
<y>596</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel" >
|
||||||
<x>354</x>
|
<x>354</x>
|
||||||
@@ -2910,8 +3086,8 @@ p, li { white-space: pre-wrap; }
|
|||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel" >
|
||||||
<x>568</x>
|
<x>577</x>
|
||||||
<y>578</y>
|
<y>596</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel" >
|
||||||
<x>599</x>
|
<x>599</x>
|
||||||
@@ -2926,11 +3102,11 @@ p, li { white-space: pre-wrap; }
|
|||||||
<slot>setEnabled(bool)</slot>
|
<slot>setEnabled(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel" >
|
<hint type="sourcelabel" >
|
||||||
<x>409</x>
|
<x>314</x>
|
||||||
<y>327</y>
|
<y>327</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel" >
|
<hint type="destinationlabel" >
|
||||||
<x>600</x>
|
<x>515</x>
|
||||||
<y>328</y>
|
<y>328</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
@@ -2951,5 +3127,37 @@ p, li { white-space: pre-wrap; }
|
|||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>radioButton_manualBlindsOrder</sender>
|
||||||
|
<signal>toggled(bool)</signal>
|
||||||
|
<receiver>pushButton_editManualBlindsOrder</receiver>
|
||||||
|
<slot>setEnabled(bool)</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>557</x>
|
||||||
|
<y>219</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>498</x>
|
||||||
|
<y>248</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>radioButton_netManualBlindsOrder</sender>
|
||||||
|
<signal>toggled(bool)</signal>
|
||||||
|
<receiver>pushButton_netEditManualBlindsOrder</receiver>
|
||||||
|
<slot>setEnabled(bool)</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel" >
|
||||||
|
<x>463</x>
|
||||||
|
<y>212</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel" >
|
||||||
|
<x>521</x>
|
||||||
|
<y>244</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
</connections>
|
</connections>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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 "manualblindsorderdialogimpl.h"
|
||||||
|
#include "configfile.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
|
||||||
|
manualBlindsOrderDialogImpl::manualBlindsOrderDialogImpl(QWidget *parent, ConfigFile *c)
|
||||||
|
: QDialog(parent), myConfig(c), settingsCorrect(TRUE)
|
||||||
|
{
|
||||||
|
|
||||||
|
setupUi(this);
|
||||||
|
|
||||||
|
connect( pushButton_add, SIGNAL( clicked() ), this, SLOT( addBlindValueToList() ) );
|
||||||
|
connect( pushButton_delete, SIGNAL( clicked() ), this, SLOT( removeBlindFromList() ) );
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void manualBlindsOrderDialogImpl::exec() {
|
||||||
|
|
||||||
|
|
||||||
|
QDialog::exec();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void manualBlindsOrderDialogImpl::addBlindValueToList() {
|
||||||
|
|
||||||
|
listWidget_blinds->addItem(QString::number(spinBox_input->value(),10));
|
||||||
|
listWidget_blinds->sortItems();
|
||||||
|
}
|
||||||
|
|
||||||
|
void manualBlindsOrderDialogImpl::removeBlindFromList() {
|
||||||
|
|
||||||
|
listWidget_blinds->removeItemWidget(listWidget_blinds->currentItem());
|
||||||
|
listWidget_blinds->sortItems();
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* 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 MANUALBLINDSORDERDIALOGIMPL_H
|
||||||
|
#define MANUALBLINDSORDERDIALOGIMPL_H
|
||||||
|
|
||||||
|
#include "ui_manualblindsorderdialog.h"
|
||||||
|
|
||||||
|
#include <QtCore>
|
||||||
|
#include <QtGui>
|
||||||
|
|
||||||
|
class ConfigFile;
|
||||||
|
|
||||||
|
class manualBlindsOrderDialogImpl: public QDialog, public Ui::manualBlindsOrderDialog {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
manualBlindsOrderDialogImpl(QWidget *parent = 0, ConfigFile *c = 0);
|
||||||
|
|
||||||
|
void exec();
|
||||||
|
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
bool getSettingsCorrect() const { return settingsCorrect;}
|
||||||
|
|
||||||
|
void addBlindValueToList();
|
||||||
|
void removeBlindFromList();
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
ConfigFile* myConfig;
|
||||||
|
|
||||||
|
bool settingsCorrect;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
@@ -31,6 +31,8 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva
|
|||||||
|
|
||||||
setupUi(this);
|
setupUi(this);
|
||||||
|
|
||||||
|
myManualBlindsOrderDialog = new manualBlindsOrderDialogImpl;
|
||||||
|
|
||||||
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
myAppDataPath = QString::fromUtf8(myConfig->readConfigString("AppDataDir").c_str());
|
||||||
|
|
||||||
pushButton_openFlipsidePicture->setIcon(QIcon(QPixmap(myAppDataPath+"gfx/gui/misc/fileopen16.png")));
|
pushButton_openFlipsidePicture->setIcon(QIcon(QPixmap(myAppDataPath+"gfx/gui/misc/fileopen16.png")));
|
||||||
@@ -56,6 +58,9 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva
|
|||||||
connect( pushButton_Opponent5Avatar, SIGNAL( clicked() ), this, SLOT( setAvatarFile5()) );
|
connect( pushButton_Opponent5Avatar, SIGNAL( clicked() ), this, SLOT( setAvatarFile5()) );
|
||||||
connect( pushButton_Opponent6Avatar, SIGNAL( clicked() ), this, SLOT( setAvatarFile6()) );
|
connect( pushButton_Opponent6Avatar, SIGNAL( clicked() ), this, SLOT( setAvatarFile6()) );
|
||||||
|
|
||||||
|
connect( pushButton_editManualBlindsOrder, SIGNAL( clicked() ), this, SLOT( callManualBlindsOrderDialog()) );
|
||||||
|
connect( pushButton_netEditManualBlindsOrder, SIGNAL( clicked() ), this, SLOT( callNetManualBlindsOrderDialog()) );
|
||||||
|
|
||||||
connect( checkBox_UseInternetGamePassword, SIGNAL( toggled(bool) ), this, SLOT( clearInternetGamePassword(bool)) );
|
connect( checkBox_UseInternetGamePassword, SIGNAL( toggled(bool) ), this, SLOT( clearInternetGamePassword(bool)) );
|
||||||
|
|
||||||
//temporarely unused until ai is enabled in network
|
//temporarely unused until ai is enabled in network
|
||||||
@@ -103,8 +108,13 @@ void settingsDialogImpl::exec() {
|
|||||||
//Local Game Settings
|
//Local Game Settings
|
||||||
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NumberOfPlayers"));
|
spinBox_quantityPlayers->setValue(myConfig->readConfigInt("NumberOfPlayers"));
|
||||||
spinBox_startCash->setValue(myConfig->readConfigInt("StartCash"));
|
spinBox_startCash->setValue(myConfig->readConfigInt("StartCash"));
|
||||||
spinBox_smallBlind->setValue(myConfig->readConfigInt("SmallBlind"));
|
spinBox_firstSmallBlind->setValue(myConfig->readConfigInt("FirstSmallBlind"));
|
||||||
spinBox_handsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("HandsBeforeRaiseSmallBlind"));
|
radioButton_raiseBlindsAtHands->setChecked(myConfig->readConfigInt("RaiseBlindsAtHands"));
|
||||||
|
radioButton_raiseBlindsAtMinutes->setChecked(myConfig->readConfigInt("RaiseBlindsAtMinutes"));
|
||||||
|
spinBox_raiseSmallBlindEveryHands->setValue(myConfig->readConfigInt("RaiseSmallBlindEveryHands"));
|
||||||
|
spinBox_raiseSmallBlindEveryMinutes->setValue(myConfig->readConfigInt("RaiseSmallBlindEveryMinutes"));
|
||||||
|
radioButton_alwaysDoubleBlinds->setChecked(myConfig->readConfigInt("AlwaysDoubleBlinds"));
|
||||||
|
radioButton_manualBlindsOrder->setChecked(myConfig->readConfigInt("ManualBlindsOrder"));
|
||||||
spinBox_gameSpeed->setValue(myConfig->readConfigInt("GameSpeed"));
|
spinBox_gameSpeed->setValue(myConfig->readConfigInt("GameSpeed"));
|
||||||
checkBox_pauseBetweenHands->setChecked(myConfig->readConfigInt("PauseBetweenHands"));
|
checkBox_pauseBetweenHands->setChecked(myConfig->readConfigInt("PauseBetweenHands"));
|
||||||
checkBox_showGameSettingsDialogOnNewGame->setChecked(myConfig->readConfigInt("ShowGameSettingsDialogOnNewGame"));
|
checkBox_showGameSettingsDialogOnNewGame->setChecked(myConfig->readConfigInt("ShowGameSettingsDialogOnNewGame"));
|
||||||
@@ -113,8 +123,13 @@ void settingsDialogImpl::exec() {
|
|||||||
//Network Game Settings
|
//Network Game Settings
|
||||||
spinBox_netQuantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
spinBox_netQuantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
||||||
spinBox_netStartCash->setValue(myConfig->readConfigInt("NetStartCash"));
|
spinBox_netStartCash->setValue(myConfig->readConfigInt("NetStartCash"));
|
||||||
spinBox_netSmallBlind->setValue(myConfig->readConfigInt("NetSmallBlind"));
|
spinBox_netFirstSmallBlind->setValue(myConfig->readConfigInt("NetFirstSmallBlind"));
|
||||||
spinBox_netHandsBeforeRaiseSmallBlind->setValue(myConfig->readConfigInt("NetHandsBeforeRaiseSmallBlind"));
|
radioButton_netRaiseBlindsAtHands->setChecked(myConfig->readConfigInt("NetRaiseBlindsAtHands"));
|
||||||
|
radioButton_netRaiseBlindsAtMinutes->setChecked(myConfig->readConfigInt("NetRaiseBlindsAtMinutes"));
|
||||||
|
spinBox_netRaiseSmallBlindEveryHands->setValue(myConfig->readConfigInt("NetRaiseSmallBlindEveryHands"));
|
||||||
|
spinBox_netRaiseSmallBlindEveryMinutes->setValue(myConfig->readConfigInt("NetRaiseSmallBlindEveryMinutes"));
|
||||||
|
radioButton_netAlwaysDoubleBlinds->setChecked(myConfig->readConfigInt("NetAlwaysDoubleBlinds"));
|
||||||
|
radioButton_netManualBlindsOrder->setChecked(myConfig->readConfigInt("NetManualBlindsOrder"));
|
||||||
spinBox_netGameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
spinBox_netGameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
||||||
comboBox_netEngineVersion->setCurrentIndex(myConfig->readConfigInt("NetEngineVersion"));
|
comboBox_netEngineVersion->setCurrentIndex(myConfig->readConfigInt("NetEngineVersion"));
|
||||||
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
||||||
@@ -200,8 +215,13 @@ void settingsDialogImpl::isAccepted() {
|
|||||||
// Local Game Settings
|
// Local Game Settings
|
||||||
myConfig->writeConfigInt("NumberOfPlayers", spinBox_quantityPlayers->value());
|
myConfig->writeConfigInt("NumberOfPlayers", spinBox_quantityPlayers->value());
|
||||||
myConfig->writeConfigInt("StartCash", spinBox_startCash->value());
|
myConfig->writeConfigInt("StartCash", spinBox_startCash->value());
|
||||||
myConfig->writeConfigInt("SmallBlind", spinBox_smallBlind->value());
|
myConfig->writeConfigInt("FirstSmallBlind", spinBox_firstSmallBlind->value());
|
||||||
myConfig->writeConfigInt("HandsBeforeRaiseSmallBlind", spinBox_handsBeforeRaiseSmallBlind->value());
|
myConfig->writeConfigInt("RaiseBlindsAtHands", radioButton_raiseBlindsAtHands->isChecked());
|
||||||
|
myConfig->writeConfigInt("RaiseBlindsAtMinutes", radioButton_raiseBlindsAtMinutes->isChecked());
|
||||||
|
myConfig->writeConfigInt("RaiseSmallBlindEveryHands", spinBox_raiseSmallBlindEveryHands->value());
|
||||||
|
myConfig->writeConfigInt("RaiseSmallBlindEveryMinutes", spinBox_raiseSmallBlindEveryMinutes->value());
|
||||||
|
myConfig->writeConfigInt("AlwaysDoubleBlinds", radioButton_alwaysDoubleBlinds->isChecked());
|
||||||
|
myConfig->writeConfigInt("ManualBlindsOrder", radioButton_manualBlindsOrder->isChecked());
|
||||||
myConfig->writeConfigInt("GameSpeed", spinBox_gameSpeed->value());
|
myConfig->writeConfigInt("GameSpeed", spinBox_gameSpeed->value());
|
||||||
myConfig->writeConfigInt("EngineVersion", comboBox_engineVersion->currentIndex());
|
myConfig->writeConfigInt("EngineVersion", comboBox_engineVersion->currentIndex());
|
||||||
myConfig->writeConfigInt("PauseBetweenHands", checkBox_pauseBetweenHands->isChecked());
|
myConfig->writeConfigInt("PauseBetweenHands", checkBox_pauseBetweenHands->isChecked());
|
||||||
@@ -210,8 +230,13 @@ void settingsDialogImpl::isAccepted() {
|
|||||||
//Network Game Settings
|
//Network Game Settings
|
||||||
myConfig->writeConfigInt("NetNumberOfPlayers", spinBox_netQuantityPlayers->value());
|
myConfig->writeConfigInt("NetNumberOfPlayers", spinBox_netQuantityPlayers->value());
|
||||||
myConfig->writeConfigInt("NetStartCash", spinBox_netStartCash->value());
|
myConfig->writeConfigInt("NetStartCash", spinBox_netStartCash->value());
|
||||||
myConfig->writeConfigInt("NetSmallBlind", spinBox_netSmallBlind->value());
|
myConfig->writeConfigInt("NetFirstSmallBlind", spinBox_netFirstSmallBlind->value());
|
||||||
myConfig->writeConfigInt("NetHandsBeforeRaiseSmallBlind", spinBox_netHandsBeforeRaiseSmallBlind->value());
|
myConfig->writeConfigInt("NetRaiseBlindsAtHands", radioButton_netRaiseBlindsAtHands->isChecked());
|
||||||
|
myConfig->writeConfigInt("NetRaiseBlindsAtMinutes", radioButton_netRaiseBlindsAtMinutes->isChecked());
|
||||||
|
myConfig->writeConfigInt("NetRaiseSmallBlindEveryHands", spinBox_netRaiseSmallBlindEveryHands->value());
|
||||||
|
myConfig->writeConfigInt("NetRaiseSmallBlindEveryMinutes", spinBox_netRaiseSmallBlindEveryMinutes->value());
|
||||||
|
myConfig->writeConfigInt("NetAlwaysDoubleBlinds", radioButton_netAlwaysDoubleBlinds->isChecked());
|
||||||
|
myConfig->writeConfigInt("NetManualBlindsOrder", radioButton_netManualBlindsOrder->isChecked());
|
||||||
myConfig->writeConfigInt("NetGameSpeed", spinBox_netGameSpeed->value());
|
myConfig->writeConfigInt("NetGameSpeed", spinBox_netGameSpeed->value());
|
||||||
myConfig->writeConfigInt("NetEngineVersion", comboBox_netEngineVersion->currentIndex());
|
myConfig->writeConfigInt("NetEngineVersion", comboBox_netEngineVersion->currentIndex());
|
||||||
myConfig->writeConfigInt("NetTimeOutPlayerAction", spinBox_netTimeOutPlayerAction->value());
|
myConfig->writeConfigInt("NetTimeOutPlayerAction", spinBox_netTimeOutPlayerAction->value());
|
||||||
@@ -371,3 +396,5 @@ void settingsDialogImpl::clearInternetGamePassword(bool clear) {
|
|||||||
if(!clear) { lineEdit_InternetGamePassword->clear(); }
|
if(!clear) { lineEdit_InternetGamePassword->clear(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void settingsDialogImpl::callManualBlindsOrderDialog() { myManualBlindsOrderDialog->exec(); }
|
||||||
|
void settingsDialogImpl::callNetManualBlindsOrderDialog() { myManualBlindsOrderDialog->exec(); }
|
||||||
@@ -22,12 +22,14 @@
|
|||||||
|
|
||||||
#include "ui_settingsdialog.h"
|
#include "ui_settingsdialog.h"
|
||||||
#include "selectavatardialogimpl.h"
|
#include "selectavatardialogimpl.h"
|
||||||
|
#include "manualblindsorderdialogimpl.h"
|
||||||
|
|
||||||
#include <QtCore>
|
#include <QtCore>
|
||||||
#include <QtGui>
|
#include <QtGui>
|
||||||
|
|
||||||
class ConfigFile;
|
class ConfigFile;
|
||||||
class selectAvatarDialogImpl;
|
class selectAvatarDialogImpl;
|
||||||
|
class manualBlindsOrderDialogImpl;
|
||||||
|
|
||||||
class settingsDialogImpl: public QDialog, public Ui::settingsDialog {
|
class settingsDialogImpl: public QDialog, public Ui::settingsDialog {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -55,10 +57,15 @@ public slots:
|
|||||||
void setAvatarFile5();
|
void setAvatarFile5();
|
||||||
void setAvatarFile6();
|
void setAvatarFile6();
|
||||||
|
|
||||||
|
void callManualBlindsOrderDialog();
|
||||||
|
void callNetManualBlindsOrderDialog();
|
||||||
|
|
||||||
void callSelectAvatarDialog() { mySelectAvatarDialogImpl->exec(); }
|
void callSelectAvatarDialog() { mySelectAvatarDialogImpl->exec(); }
|
||||||
|
|
||||||
void clearInternetGamePassword(bool);
|
void clearInternetGamePassword(bool);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
bool playerNickIsChanged;
|
bool playerNickIsChanged;
|
||||||
@@ -66,6 +73,7 @@ private:
|
|||||||
|
|
||||||
ConfigFile* myConfig;
|
ConfigFile* myConfig;
|
||||||
selectAvatarDialogImpl* mySelectAvatarDialogImpl;
|
selectAvatarDialogImpl* mySelectAvatarDialogImpl;
|
||||||
|
manualBlindsOrderDialogImpl* myManualBlindsOrderDialog;
|
||||||
QString myAppDataPath;
|
QString myAppDataPath;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user