settings updated (+sound categories, -engine versions)
This commit is contained in:
@@ -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 = 42;
|
configRev = 44;
|
||||||
|
|
||||||
//standard defaults
|
//standard defaults
|
||||||
logOnOffDefault = "1";
|
logOnOffDefault = "1";
|
||||||
@@ -161,11 +161,13 @@ ConfigFile::ConfigFile(int argc, char **argv) : noWriteAccess(0)
|
|||||||
configList.push_back(ConfigInfo("ShowBlindButtons", CONFIG_TYPE_INT, "1"));
|
configList.push_back(ConfigInfo("ShowBlindButtons", CONFIG_TYPE_INT, "1"));
|
||||||
configList.push_back(ConfigInfo("AntiPeekMode", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("AntiPeekMode", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("AlternateFKeysUserActionMode", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("AlternateFKeysUserActionMode", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("PlaySoundEffects", CONFIG_TYPE_INT, "1"));
|
|
||||||
configList.push_back(ConfigInfo("SoundVolume", CONFIG_TYPE_INT, "8"));
|
|
||||||
configList.push_back(ConfigInfo("FlipsideTux", CONFIG_TYPE_INT, "1"));
|
configList.push_back(ConfigInfo("FlipsideTux", CONFIG_TYPE_INT, "1"));
|
||||||
configList.push_back(ConfigInfo("FlipsideOwn", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("FlipsideOwn", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("FlipsideOwnFile", CONFIG_TYPE_STRING, ""));
|
configList.push_back(ConfigInfo("FlipsideOwnFile", CONFIG_TYPE_STRING, ""));
|
||||||
|
configList.push_back(ConfigInfo("PlaySoundEffects", CONFIG_TYPE_INT, "1"));
|
||||||
|
configList.push_back(ConfigInfo("SoundVolume", CONFIG_TYPE_INT, "8"));
|
||||||
|
configList.push_back(ConfigInfo("PlayGameActions", CONFIG_TYPE_INT, "1"));
|
||||||
|
configList.push_back(ConfigInfo("PlayLobbyChatNotification", CONFIG_TYPE_INT, "1"));
|
||||||
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("FirstSmallBlind", CONFIG_TYPE_INT, "10"));
|
configList.push_back(ConfigInfo("FirstSmallBlind", CONFIG_TYPE_INT, "10"));
|
||||||
@@ -181,7 +183,6 @@ ConfigFile::ConfigFile(int argc, char **argv) : noWriteAccess(0)
|
|||||||
configList.push_back(ConfigInfo("AfterMBAlwaysRaiseValue", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("AfterMBAlwaysRaiseValue", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("AfterMBStayAtLastBlind", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("AfterMBStayAtLastBlind", 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("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"));
|
||||||
@@ -199,7 +200,6 @@ ConfigFile::ConfigFile(int argc, char **argv) : noWriteAccess(0)
|
|||||||
configList.push_back(ConfigInfo("NetAfterMBAlwaysRaiseValue", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("NetAfterMBAlwaysRaiseValue", CONFIG_TYPE_INT, "0"));
|
||||||
configList.push_back(ConfigInfo("NetAfterMBStayAtLastBlind", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("NetAfterMBStayAtLastBlind", 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("NetTimeOutPlayerAction", CONFIG_TYPE_INT, "20"));
|
configList.push_back(ConfigInfo("NetTimeOutPlayerAction", CONFIG_TYPE_INT, "20"));
|
||||||
configList.push_back(ConfigInfo("ServerPassword", CONFIG_TYPE_STRING, ""));
|
configList.push_back(ConfigInfo("ServerPassword", CONFIG_TYPE_STRING, ""));
|
||||||
configList.push_back(ConfigInfo("ServerUseIpv6", CONFIG_TYPE_INT, "0"));
|
configList.push_back(ConfigInfo("ServerUseIpv6", CONFIG_TYPE_INT, "0"));
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ void LobbyChat::displayMessage(QString playerName, QString message) {
|
|||||||
QString tempMsg;
|
QString tempMsg;
|
||||||
if(message.contains(QString::fromUtf8(myConfig->readConfigString("MyName").c_str()), Qt::CaseInsensitive)) {
|
if(message.contains(QString::fromUtf8(myConfig->readConfigString("MyName").c_str()), Qt::CaseInsensitive)) {
|
||||||
tempMsg = QString("<b>"+message+"</b>");
|
tempMsg = QString("<b>"+message+"</b>");
|
||||||
|
if(myLobby->isVisible() && myConfig->readConfigInt("PlayLobbyChatNotification"))
|
||||||
myLobby->getMyW()->getMySDLPlayer()->playSound("lobbychatnotify",0);
|
myLobby->getMyW()->getMySDLPlayer()->playSound("lobbychatnotify",0);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@@ -1419,6 +1419,7 @@ void mainWindowImpl::refreshAction(int playerID, int playerAction) {
|
|||||||
actionLabelArray[playerID]->setPixmap(QPixmap(myAppDataPath +"gfx/gui/table/default/action_"+actionArray[playerAction]+".png"));
|
actionLabelArray[playerID]->setPixmap(QPixmap(myAppDataPath +"gfx/gui/table/default/action_"+actionArray[playerAction]+".png"));
|
||||||
|
|
||||||
//play sounds if exist
|
//play sounds if exist
|
||||||
|
if(myConfig->readConfigInt("PlayGameActions"))
|
||||||
mySDLPlayer->playSound(actionArray[playerAction].toStdString(), playerID);
|
mySDLPlayer->playSound(actionArray[playerAction].toStdString(), playerID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -280,32 +280,36 @@ p, li { white-space: pre-wrap; }
|
|||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="page_6" >
|
<widget class="QWidget" name="page_6" >
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout" >
|
||||||
<property name="leftMargin" >
|
<item row="0" column="0" >
|
||||||
<number>9</number>
|
<widget class="QLabel" name="label_26" >
|
||||||
|
<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="2" column="0" >
|
|
||||||
<widget class="QCheckBox" name="checkBox_playSoundEffects" >
|
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Play sound effects</string>
|
<string>Sound</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" >
|
<item row="1" column="0" >
|
||||||
|
<widget class="Line" name="line_8" >
|
||||||
|
<property name="orientation" >
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0" >
|
||||||
|
<widget class="QGroupBox" name="groupBox_playSoundEffects" >
|
||||||
|
<property name="title" >
|
||||||
|
<string>Play sound effects</string>
|
||||||
|
</property>
|
||||||
|
<property name="checkable" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="checked" >
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<item row="0" column="0" >
|
||||||
<layout class="QHBoxLayout" >
|
<layout class="QHBoxLayout" >
|
||||||
<property name="spacing" >
|
<property name="spacing" >
|
||||||
<number>6</number>
|
<number>6</number>
|
||||||
@@ -360,36 +364,48 @@ p, li { white-space: pre-wrap; }
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" >
|
<item row="1" column="0" >
|
||||||
|
<widget class="QGroupBox" name="groupBox_10" >
|
||||||
|
<property name="title" >
|
||||||
|
<string>Sound Categories </string>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" >
|
||||||
|
<property name="topMargin" >
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0" >
|
||||||
|
<widget class="QCheckBox" name="checkBox_playGameActions" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Play game actions sounds like "check", "call", "raise"</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0" >
|
||||||
|
<widget class="QCheckBox" name="checkBox_playLobbyChatNotification" >
|
||||||
|
<property name="text" >
|
||||||
|
<string>Play notifications for lobby chat</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" >
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>400</width>
|
||||||
<height>281</height>
|
<height>321</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" >
|
|
||||||
<widget class="QLabel" name="label_26" >
|
|
||||||
<property name="styleSheet" >
|
|
||||||
<string>QLabel { font-weight: bold; }</string>
|
|
||||||
</property>
|
|
||||||
<property name="text" >
|
|
||||||
<string>Sound</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0" >
|
|
||||||
<widget class="Line" name="line_8" >
|
|
||||||
<property name="orientation" >
|
|
||||||
<enum>Qt::Horizontal</enum>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="page_2" >
|
<widget class="QWidget" name="page_2" >
|
||||||
@@ -639,40 +655,20 @@ p, li { white-space: pre-wrap; }
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0" >
|
<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" >
|
<widget class="QCheckBox" name="checkBox_pauseBetweenHands" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Pause between hands (press "start" button to go on)</string>
|
<string>Pause between hands (press "start" button to go on)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="0" >
|
<item row="8" column="0" >
|
||||||
<widget class="QCheckBox" name="checkBox_showGameSettingsDialogOnNewGame" >
|
<widget class="QCheckBox" name="checkBox_showGameSettingsDialogOnNewGame" >
|
||||||
<property name="text" >
|
<property name="text" >
|
||||||
<string>Show game settings dialog on every new game</string>
|
<string>Show game settings dialog on every new game</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" >
|
<item row="9" column="0" >
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@@ -680,7 +676,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>161</height>
|
<height>181</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
@@ -928,26 +924,6 @@ p, li { white-space: pre-wrap; }
|
|||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="7" column="0" >
|
<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>
|
|
||||||
<property name="text" >
|
|
||||||
<string>0.4 (current)</string>
|
|
||||||
</property>
|
|
||||||
</item>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item row="8" column="0" >
|
|
||||||
<layout class="QHBoxLayout" >
|
<layout class="QHBoxLayout" >
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_40" >
|
<widget class="QLabel" name="label_40" >
|
||||||
@@ -971,14 +947,14 @@ p, li { white-space: pre-wrap; }
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="9" column="0" >
|
<item row="8" column="0" >
|
||||||
<widget class="Line" name="line_7" >
|
<widget class="Line" name="line_7" >
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="10" column="0" >
|
<item row="9" 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>
|
||||||
@@ -1076,7 +1052,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="11" column="0" >
|
<item row="10" column="0" >
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation" >
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
@@ -1084,7 +1060,7 @@ p, li { white-space: pre-wrap; }
|
|||||||
<property name="sizeHint" >
|
<property name="sizeHint" >
|
||||||
<size>
|
<size>
|
||||||
<width>400</width>
|
<width>400</width>
|
||||||
<height>16</height>
|
<height>41</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
@@ -3022,14 +2998,12 @@ p, li { white-space: pre-wrap; }
|
|||||||
<tabstop>spinBox_startCash</tabstop>
|
<tabstop>spinBox_startCash</tabstop>
|
||||||
<tabstop>spinBox_firstSmallBlind</tabstop>
|
<tabstop>spinBox_firstSmallBlind</tabstop>
|
||||||
<tabstop>spinBox_gameSpeed</tabstop>
|
<tabstop>spinBox_gameSpeed</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_netFirstSmallBlind</tabstop>
|
<tabstop>spinBox_netFirstSmallBlind</tabstop>
|
||||||
<tabstop>spinBox_netGameSpeed</tabstop>
|
<tabstop>spinBox_netGameSpeed</tabstop>
|
||||||
<tabstop>comboBox_netEngineVersion</tabstop>
|
|
||||||
<tabstop>spinBox_netTimeOutPlayerAction</tabstop>
|
<tabstop>spinBox_netTimeOutPlayerAction</tabstop>
|
||||||
<tabstop>spinBox_serverPort</tabstop>
|
<tabstop>spinBox_serverPort</tabstop>
|
||||||
<tabstop>lineEdit_serverPassword</tabstop>
|
<tabstop>lineEdit_serverPassword</tabstop>
|
||||||
|
|||||||
@@ -72,8 +72,6 @@ settingsDialogImpl::settingsDialogImpl(QWidget *parent, ConfigFile *c, selectAva
|
|||||||
// label_36->hide();
|
// label_36->hide();
|
||||||
// spinBox_netGameSpeed->hide();
|
// spinBox_netGameSpeed->hide();
|
||||||
//
|
//
|
||||||
// label_18->hide();
|
|
||||||
// comboBox_netEngineVersion->hide();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void settingsDialogImpl::exec() {
|
void settingsDialogImpl::exec() {
|
||||||
@@ -123,7 +121,6 @@ void settingsDialogImpl::exec() {
|
|||||||
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"));
|
||||||
comboBox_engineVersion->setCurrentIndex(myConfig->readConfigInt("EngineVersion"));
|
|
||||||
|
|
||||||
//Network Game Settings
|
//Network Game Settings
|
||||||
spinBox_netQuantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
spinBox_netQuantityPlayers->setValue(myConfig->readConfigInt("NetNumberOfPlayers"));
|
||||||
@@ -136,7 +133,6 @@ void settingsDialogImpl::exec() {
|
|||||||
radioButton_netAlwaysDoubleBlinds->setChecked(myConfig->readConfigInt("NetAlwaysDoubleBlinds"));
|
radioButton_netAlwaysDoubleBlinds->setChecked(myConfig->readConfigInt("NetAlwaysDoubleBlinds"));
|
||||||
radioButton_netManualBlindsOrder->setChecked(myConfig->readConfigInt("NetManualBlindsOrder"));
|
radioButton_netManualBlindsOrder->setChecked(myConfig->readConfigInt("NetManualBlindsOrder"));
|
||||||
spinBox_netGameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
spinBox_netGameSpeed->setValue(myConfig->readConfigInt("NetGameSpeed"));
|
||||||
comboBox_netEngineVersion->setCurrentIndex(myConfig->readConfigInt("NetEngineVersion"));
|
|
||||||
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
spinBox_netTimeOutPlayerAction->setValue(myConfig->readConfigInt("NetTimeOutPlayerAction"));
|
||||||
spinBox_serverPort->setValue(myConfig->readConfigInt("ServerPort"));
|
spinBox_serverPort->setValue(myConfig->readConfigInt("ServerPort"));
|
||||||
lineEdit_serverPassword->setText(QString::fromUtf8(myConfig->readConfigString("ServerPassword").c_str()));
|
lineEdit_serverPassword->setText(QString::fromUtf8(myConfig->readConfigString("ServerPassword").c_str()));
|
||||||
@@ -168,8 +164,6 @@ void settingsDialogImpl::exec() {
|
|||||||
checkBox_showBlindButtons->setChecked(myConfig->readConfigInt("ShowBlindButtons"));
|
checkBox_showBlindButtons->setChecked(myConfig->readConfigInt("ShowBlindButtons"));
|
||||||
checkBox_antiPeekMode->setChecked(myConfig->readConfigInt("AntiPeekMode"));
|
checkBox_antiPeekMode->setChecked(myConfig->readConfigInt("AntiPeekMode"));
|
||||||
checkBox_alternateFKeysUserActionMode->setChecked(myConfig->readConfigInt("AlternateFKeysUserActionMode"));
|
checkBox_alternateFKeysUserActionMode->setChecked(myConfig->readConfigInt("AlternateFKeysUserActionMode"));
|
||||||
checkBox_playSoundEffects->setChecked(myConfig->readConfigInt("PlaySoundEffects"));
|
|
||||||
horizontalSlider_soundVolume->setValue(myConfig->readConfigInt("SoundVolume"));
|
|
||||||
radioButton_flipsideTux->setChecked(myConfig->readConfigInt("FlipsideTux"));
|
radioButton_flipsideTux->setChecked(myConfig->readConfigInt("FlipsideTux"));
|
||||||
radioButton_flipsideOwn->setChecked(myConfig->readConfigInt("FlipsideOwn"));
|
radioButton_flipsideOwn->setChecked(myConfig->readConfigInt("FlipsideOwn"));
|
||||||
if(radioButton_flipsideOwn->isChecked()) {
|
if(radioButton_flipsideOwn->isChecked()) {
|
||||||
@@ -178,6 +172,12 @@ void settingsDialogImpl::exec() {
|
|||||||
}
|
}
|
||||||
lineEdit_OwnFlipsideFilename->setText(QString::fromUtf8(myConfig->readConfigString("FlipsideOwnFile").c_str()));
|
lineEdit_OwnFlipsideFilename->setText(QString::fromUtf8(myConfig->readConfigString("FlipsideOwnFile").c_str()));
|
||||||
|
|
||||||
|
//Sound
|
||||||
|
groupBox_playSoundEffects->setChecked(myConfig->readConfigInt("PlaySoundEffects"));
|
||||||
|
horizontalSlider_soundVolume->setValue(myConfig->readConfigInt("SoundVolume"));
|
||||||
|
checkBox_playGameActions->setChecked(myConfig->readConfigInt("PlayGameActions"));
|
||||||
|
checkBox_playLobbyChatNotification->setChecked(myConfig->readConfigInt("PlayLobbyChatNotification"));
|
||||||
|
|
||||||
//Log
|
//Log
|
||||||
groupBox_logOnOff->setChecked(myConfig->readConfigInt("LogOnOff"));
|
groupBox_logOnOff->setChecked(myConfig->readConfigInt("LogOnOff"));
|
||||||
lineEdit_logDir->setText(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str()));
|
lineEdit_logDir->setText(QString::fromUtf8(myConfig->readConfigString("LogDir").c_str()));
|
||||||
@@ -244,7 +244,6 @@ void settingsDialogImpl::isAccepted() {
|
|||||||
myConfig->writeConfigInt("AlwaysDoubleBlinds", radioButton_alwaysDoubleBlinds->isChecked());
|
myConfig->writeConfigInt("AlwaysDoubleBlinds", radioButton_alwaysDoubleBlinds->isChecked());
|
||||||
myConfig->writeConfigInt("ManualBlindsOrder", radioButton_manualBlindsOrder->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("PauseBetweenHands", checkBox_pauseBetweenHands->isChecked());
|
myConfig->writeConfigInt("PauseBetweenHands", checkBox_pauseBetweenHands->isChecked());
|
||||||
myConfig->writeConfigInt("ShowGameSettingsDialogOnNewGame", checkBox_showGameSettingsDialogOnNewGame->isChecked());
|
myConfig->writeConfigInt("ShowGameSettingsDialogOnNewGame", checkBox_showGameSettingsDialogOnNewGame->isChecked());
|
||||||
|
|
||||||
@@ -259,7 +258,6 @@ void settingsDialogImpl::isAccepted() {
|
|||||||
myConfig->writeConfigInt("NetAlwaysDoubleBlinds", radioButton_netAlwaysDoubleBlinds->isChecked());
|
myConfig->writeConfigInt("NetAlwaysDoubleBlinds", radioButton_netAlwaysDoubleBlinds->isChecked());
|
||||||
myConfig->writeConfigInt("NetManualBlindsOrder", radioButton_netManualBlindsOrder->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("NetTimeOutPlayerAction", spinBox_netTimeOutPlayerAction->value());
|
myConfig->writeConfigInt("NetTimeOutPlayerAction", spinBox_netTimeOutPlayerAction->value());
|
||||||
myConfig->writeConfigInt("ServerPort", spinBox_serverPort->value());
|
myConfig->writeConfigInt("ServerPort", spinBox_serverPort->value());
|
||||||
myConfig->writeConfigString("ServerPassword", lineEdit_serverPassword->text().toUtf8().constData());
|
myConfig->writeConfigString("ServerPassword", lineEdit_serverPassword->text().toUtf8().constData());
|
||||||
@@ -289,8 +287,6 @@ void settingsDialogImpl::isAccepted() {
|
|||||||
myConfig->writeConfigInt("ShowBlindButtons", checkBox_showBlindButtons->isChecked());
|
myConfig->writeConfigInt("ShowBlindButtons", checkBox_showBlindButtons->isChecked());
|
||||||
myConfig->writeConfigInt("AntiPeekMode", checkBox_antiPeekMode->isChecked());
|
myConfig->writeConfigInt("AntiPeekMode", checkBox_antiPeekMode->isChecked());
|
||||||
myConfig->writeConfigInt("AlternateFKeysUserActionMode", checkBox_alternateFKeysUserActionMode->isChecked());
|
myConfig->writeConfigInt("AlternateFKeysUserActionMode", checkBox_alternateFKeysUserActionMode->isChecked());
|
||||||
myConfig->writeConfigInt("PlaySoundEffects", checkBox_playSoundEffects->isChecked());
|
|
||||||
myConfig->writeConfigInt("SoundVolume", horizontalSlider_soundVolume->value());
|
|
||||||
myConfig->writeConfigInt("FlipsideTux", radioButton_flipsideTux->isChecked());
|
myConfig->writeConfigInt("FlipsideTux", radioButton_flipsideTux->isChecked());
|
||||||
myConfig->writeConfigInt("FlipsideOwn", radioButton_flipsideOwn->isChecked());
|
myConfig->writeConfigInt("FlipsideOwn", radioButton_flipsideOwn->isChecked());
|
||||||
|
|
||||||
@@ -304,6 +300,12 @@ void settingsDialogImpl::isAccepted() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Sound
|
||||||
|
myConfig->writeConfigInt("PlaySoundEffects", groupBox_playSoundEffects->isChecked());
|
||||||
|
myConfig->writeConfigInt("SoundVolume", horizontalSlider_soundVolume->value());
|
||||||
|
myConfig->writeConfigInt("PlayGameActions", checkBox_playGameActions->isChecked());
|
||||||
|
myConfig->writeConfigInt("PlayLobbyChatNotification", checkBox_playLobbyChatNotification->isChecked());
|
||||||
|
|
||||||
// Log
|
// Log
|
||||||
myConfig->writeConfigInt("LogOnOff", groupBox_logOnOff->isChecked());
|
myConfig->writeConfigInt("LogOnOff", groupBox_logOnOff->isChecked());
|
||||||
if (myConfig->readConfigInt("LogOnOff")) {
|
if (myConfig->readConfigInt("LogOnOff")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user