diff --git a/src/config/configfile.cpp b/src/config/configfile.cpp index 1bfdd345..1f7e83b2 100644 --- a/src/config/configfile.cpp +++ b/src/config/configfile.cpp @@ -48,7 +48,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly) myQtToolsInterface = CreateQtToolsWrapper(); // !!!! Revisionsnummer der Configdefaults !!!!! - configRev = 71; + configRev = 72; //standard defaults logOnOffDefault = "1"; @@ -209,12 +209,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly) configList.push_back(ConfigInfo("AvatarServerAddress", CONFIG_TYPE_STRING, "")); configList.push_back(ConfigInfo("UseInternetGamePassword", CONFIG_TYPE_INT, "0")); configList.push_back(ConfigInfo("InternetGamePassword", CONFIG_TYPE_STRING, "")); - configList.push_back(ConfigInfo("UseIRCLobbyChat", CONFIG_TYPE_INT, "1")); - configList.push_back(ConfigInfo("IRCServerAddress", CONFIG_TYPE_STRING, "chat.freenode.net")); - configList.push_back(ConfigInfo("IRCServerPort", CONFIG_TYPE_INT, "6667")); - configList.push_back(ConfigInfo("IRCChannel", CONFIG_TYPE_STRING, "#pokerth-lobby")); - configList.push_back(ConfigInfo("IRCChannelPassword", CONFIG_TYPE_STRING, "")); - configList.push_back(ConfigInfo("IRCServerUseIpv6", CONFIG_TYPE_INT, "0")); + configList.push_back(ConfigInfo("UseLobbyChat", CONFIG_TYPE_INT, "1")); configList.push_back(ConfigInfo("UseAdminIRC", CONFIG_TYPE_INT, "0")); configList.push_back(ConfigInfo("AdminIRCServerAddress", CONFIG_TYPE_STRING, "chat.freenode.net")); configList.push_back(ConfigInfo("AdminIRCServerPort", CONFIG_TYPE_INT, "6667")); diff --git a/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp b/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp index ad6b3956..9069de34 100644 --- a/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp +++ b/src/gui/qt/gamelobbydialog/gamelobbydialogimpl.cpp @@ -102,7 +102,7 @@ gameLobbyDialogImpl::gameLobbyDialogImpl(startWindowImpl *parent, ConfigFile *c) void gameLobbyDialogImpl::exec() { - if(myConfig->readConfigInt("UseIRCLobbyChat")) { + if(myConfig->readConfigInt("UseLobbyChat")) { groupBox_lobbyChat->show(); } else { diff --git a/src/gui/qt/settingsdialog.ui b/src/gui/qt/settingsdialog.ui index 91569ef6..7c243fb0 100644 --- a/src/gui/qt/settingsdialog.ui +++ b/src/gui/qt/settingsdialog.ui @@ -1494,24 +1494,18 @@ p, li { white-space: pre-wrap; } - + - - - 300 - 0 - - - - - 300 - 16777215 - - Internet Server + + 5 + + + 5 + @@ -1521,6 +1515,12 @@ p, li { white-space: pre-wrap; } true + + 4 + + + 6 + @@ -1552,6 +1552,12 @@ p, li { white-space: pre-wrap; } false + + 4 + + + 5 + @@ -1659,132 +1665,7 @@ p, li { white-space: pre-wrap; } - - - - Lobby Chat (IRC) - - - true - - - - - - Server Address: - - - lineEdit_IRCServerAddress - - - - - - - chat.freenode.net - - - 60 - - - - - - - Server Port: - - - spinBox_IRCServerPort - - - - - - - - 0 - 0 - - - - 80 - - - 65535 - - - 6667 - - - - - - - Channel: - - - lineEdit_IRCChannel - - - - - - - Password: - - - lineEdit_IRCChannelPassword - - - - - - - QLineEdit::Password - - - - - - - Use IPv6 - - - - - - - <a href="http://en.wikipedia.org/wiki/Ipv6">What is this?</a> - - - true - - - - - - - #pokerth - - - - - - - - - - Qt::Vertical - - - - 20 - 98 - - - - - + 0 @@ -1808,7 +1689,7 @@ p, li { white-space: pre-wrap; } - + Qt::Vertical @@ -1821,6 +1702,13 @@ p, li { white-space: pre-wrap; } + + + + Enable/Disable Lobby Chat + + + @@ -3501,12 +3389,6 @@ p, li { white-space: pre-wrap; } checkBox_InternetServerUseSctp checkBox_UseInternetGamePassword lineEdit_InternetGamePassword - groupBox_lobbyChat - lineEdit_IRCServerAddress - spinBox_IRCServerPort - lineEdit_IRCChannel - lineEdit_IRCChannelPassword - checkBox_IRCServerUseIpv6 pushButton_HumanPlayerAvatar lineEdit_HumanPlayerName pushButton_Opponent1Avatar diff --git a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp index 486b68d1..05cae0bb 100644 --- a/src/gui/qt/settingsdialog/settingsdialogimpl.cpp +++ b/src/gui/qt/settingsdialog/settingsdialogimpl.cpp @@ -209,12 +209,7 @@ void settingsDialogImpl::exec() { if(myConfig->readConfigInt("UseInternetGamePassword")) { lineEdit_InternetGamePassword->setText(QString::fromUtf8(myConfig->readConfigString("InternetGamePassword").c_str())); } - groupBox_lobbyChat->setChecked(myConfig->readConfigInt("UseIRCLobbyChat")); - lineEdit_IRCServerAddress->setText(QString::fromUtf8(myConfig->readConfigString("IRCServerAddress").c_str())); - spinBox_IRCServerPort->setValue(myConfig->readConfigInt("IRCServerPort")); - lineEdit_IRCChannel->setText(QString::fromUtf8(myConfig->readConfigString("IRCChannel").c_str())); - lineEdit_IRCChannelPassword->setText(QString::fromUtf8(myConfig->readConfigString("IRCChannelPassword").c_str())); - checkBox_IRCServerUseIpv6->setChecked(myConfig->readConfigInt("IRCServerUseIpv6")); + checkBox_UseLobbyChat->setChecked(myConfig->readConfigInt("UseLobbyChat")); //Interface comboBox_switchLanguage->setCurrentIndex(comboBox_switchLanguage->findData(QString::fromUtf8(myConfig->readConfigString("Language").c_str()).section('_', 0, 0))); @@ -405,7 +400,6 @@ void settingsDialogImpl::exec() { checkBox_useSctp->setEnabled(tmpHasSctp); checkBox_InternetServerUseIpv6->setEnabled(tmpHasIpv6); checkBox_InternetServerUseSctp->setEnabled(tmpHasSctp); - checkBox_IRCServerUseIpv6->setEnabled(tmpHasIpv6); //Manual Blinds Order Dialog (local) myManualBlindsList = myConfig->readConfigIntList("ManualBlindsList"); @@ -536,12 +530,7 @@ void settingsDialogImpl::isAccepted() { myConfig->writeConfigInt("InternetServerUseSctp", checkBox_InternetServerUseSctp->isChecked()); myConfig->writeConfigInt("UseInternetGamePassword", checkBox_UseInternetGamePassword->isChecked()); myConfig->writeConfigString("InternetGamePassword", lineEdit_InternetGamePassword->text().toUtf8().constData()); - myConfig->writeConfigInt("UseIRCLobbyChat", groupBox_lobbyChat->isChecked()); - myConfig->writeConfigString("IRCServerAddress", lineEdit_IRCServerAddress->text().toUtf8().constData()); - myConfig->writeConfigInt("IRCServerPort", spinBox_IRCServerPort->value()); - myConfig->writeConfigString("IRCChannel", lineEdit_IRCChannel->text().toUtf8().constData()); - myConfig->writeConfigString("IRCChannelPassword", lineEdit_IRCChannelPassword->text().toUtf8().constData()); - myConfig->writeConfigInt("IRCServerUseIpv6", checkBox_IRCServerUseIpv6->isChecked()); + myConfig->writeConfigInt("UseLobbyChat", checkBox_UseLobbyChat->isChecked()); // Interface myConfig->writeConfigString("Language", comboBox_switchLanguage->itemData(comboBox_switchLanguage->currentIndex()).toString().toUtf8().constData());