add gui config for new avatar-server - turkish translation update

This commit is contained in:
doitux
2009-02-28 12:43:32 +00:00
parent ab046cc1fb
commit 4423fe798c
5 changed files with 232 additions and 209 deletions
Binary file not shown.
+3 -1
View File
@@ -48,7 +48,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
myQtToolsInterface = CreateQtToolsWrapper(); myQtToolsInterface = CreateQtToolsWrapper();
// !!!! Revisionsnummer der Configdefaults !!!!! // !!!! Revisionsnummer der Configdefaults !!!!!
configRev = 56; configRev = 57;
//standard defaults //standard defaults
logOnOffDefault = "1"; logOnOffDefault = "1";
@@ -196,6 +196,8 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
configList.push_back(ConfigInfo("InternetServerPassword", CONFIG_TYPE_STRING, "")); configList.push_back(ConfigInfo("InternetServerPassword", CONFIG_TYPE_STRING, ""));
configList.push_back(ConfigInfo("InternetServerUseIpv6", CONFIG_TYPE_INT, "0")); configList.push_back(ConfigInfo("InternetServerUseIpv6", CONFIG_TYPE_INT, "0"));
configList.push_back(ConfigInfo("InternetServerUseSctp", CONFIG_TYPE_INT, "0")); configList.push_back(ConfigInfo("InternetServerUseSctp", CONFIG_TYPE_INT, "0"));
configList.push_back(ConfigInfo("UseAvatarServer", CONFIG_TYPE_INT, "0"));
configList.push_back(ConfigInfo("AvatarServerAddress", CONFIG_TYPE_STRING, ""));
configList.push_back(ConfigInfo("UseInternetGamePassword", CONFIG_TYPE_INT, "0")); configList.push_back(ConfigInfo("UseInternetGamePassword", CONFIG_TYPE_INT, "0"));
configList.push_back(ConfigInfo("InternetGamePassword", CONFIG_TYPE_STRING, "")); configList.push_back(ConfigInfo("InternetGamePassword", CONFIG_TYPE_STRING, ""));
configList.push_back(ConfigInfo("UseIRCLobbyChat", CONFIG_TYPE_INT, "1")); configList.push_back(ConfigInfo("UseIRCLobbyChat", CONFIG_TYPE_INT, "1"));
+85 -29
View File
@@ -905,13 +905,28 @@ p, li { white-space: pre-wrap; }
<layout class="QHBoxLayout" > <layout class="QHBoxLayout" >
<item> <item>
<widget class="QGroupBox" name="groupBox_8" > <widget class="QGroupBox" name="groupBox_8" >
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>105</height>
</size>
</property>
<property name="title" > <property name="title" >
<string>Raise blinds:</string> <string>Raise blinds:</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="leftMargin" >
<number>6</number>
</property>
<property name="topMargin" > <property name="topMargin" >
<number>0</number> <number>0</number>
</property> </property>
<property name="rightMargin" >
<number>6</number>
</property>
<property name="bottomMargin" >
<number>6</number>
</property>
<item row="0" column="0" > <item row="0" column="0" >
<widget class="QRadioButton" name="radioButton_netRaiseBlindsAtHands" > <widget class="QRadioButton" name="radioButton_netRaiseBlindsAtHands" >
<property name="text" > <property name="text" >
@@ -993,13 +1008,28 @@ p, li { white-space: pre-wrap; }
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<property name="maximumSize" >
<size>
<width>16777215</width>
<height>105</height>
</size>
</property>
<property name="title" > <property name="title" >
<string>Raise mode:</string> <string>Raise mode:</string>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="leftMargin" >
<number>6</number>
</property>
<property name="topMargin" > <property name="topMargin" >
<number>0</number> <number>0</number>
</property> </property>
<property name="rightMargin" >
<number>6</number>
</property>
<property name="bottomMargin" >
<number>6</number>
</property>
<item row="0" column="0" > <item row="0" column="0" >
<widget class="QRadioButton" name="radioButton_netAlwaysDoubleBlinds" > <widget class="QRadioButton" name="radioButton_netAlwaysDoubleBlinds" >
<property name="text" > <property name="text" >
@@ -1096,16 +1126,16 @@ p, li { white-space: pre-wrap; }
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
<property name="leftMargin" > <property name="leftMargin" >
<number>9</number> <number>6</number>
</property> </property>
<property name="topMargin" > <property name="topMargin" >
<number>0</number> <number>0</number>
</property> </property>
<property name="rightMargin" > <property name="rightMargin" >
<number>9</number> <number>6</number>
</property> </property>
<property name="bottomMargin" > <property name="bottomMargin" >
<number>9</number> <number>6</number>
</property> </property>
<property name="spacing" > <property name="spacing" >
<number>6</number> <number>6</number>
@@ -1352,6 +1382,16 @@ p, li { white-space: pre-wrap; }
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" >
<widget class="QCheckBox" name="checkBox_useAvatarServer" >
<property name="text" >
<string>Avatar Server:</string>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QLineEdit" name="lineEdit_avatarServerAddress" />
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@@ -2880,12 +2920,12 @@ p, li { white-space: pre-wrap; }
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>362</x> <x>360</x>
<y>426</y> <y>373</y>
</hint> </hint>
<hint type="destinationlabel" > <hint type="destinationlabel" >
<x>609</x> <x>723</x>
<y>426</y> <y>374</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@@ -2896,12 +2936,12 @@ p, li { white-space: pre-wrap; }
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>362</x> <x>360</x>
<y>426</y> <y>373</y>
</hint> </hint>
<hint type="destinationlabel" > <hint type="destinationlabel" >
<x>638</x> <x>752</x>
<y>426</y> <y>375</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@@ -2912,8 +2952,8 @@ p, li { white-space: pre-wrap; }
<slot>reject()</slot> <slot>reject()</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>586</x> <x>595</x>
<y>678</y> <y>520</y>
</hint> </hint>
<hint type="destinationlabel" > <hint type="destinationlabel" >
<x>599</x> <x>599</x>
@@ -2928,12 +2968,12 @@ p, li { white-space: pre-wrap; }
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>305</x> <x>411</x>
<y>39</y> <y>443</y>
</hint> </hint>
<hint type="destinationlabel" > <hint type="destinationlabel" >
<x>305</x> <x>717</x>
<y>39</y> <y>444</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@@ -2944,12 +2984,12 @@ p, li { white-space: pre-wrap; }
<slot>setNum(int)</slot> <slot>setNum(int)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>305</x> <x>648</x>
<y>39</y> <y>98</y>
</hint> </hint>
<hint type="destinationlabel" > <hint type="destinationlabel" >
<x>305</x> <x>336</x>
<y>39</y> <y>99</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@@ -2960,12 +3000,12 @@ p, li { white-space: pre-wrap; }
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>305</x> <x>753</x>
<y>39</y> <y>220</y>
</hint> </hint>
<hint type="destinationlabel" > <hint type="destinationlabel" >
<x>305</x> <x>753</x>
<y>39</y> <y>256</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@@ -2976,12 +3016,28 @@ p, li { white-space: pre-wrap; }
<slot>setEnabled(bool)</slot> <slot>setEnabled(bool)</slot>
<hints> <hints>
<hint type="sourcelabel" > <hint type="sourcelabel" >
<x>305</x> <x>756</x>
<y>39</y> <y>218</y>
</hint> </hint>
<hint type="destinationlabel" > <hint type="destinationlabel" >
<x>305</x> <x>756</x>
<y>39</y> <y>245</y>
</hint>
</hints>
</connection>
<connection>
<sender>checkBox_useAvatarServer</sender>
<signal>toggled(bool)</signal>
<receiver>lineEdit_avatarServerAddress</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel" >
<x>314</x>
<y>318</y>
</hint>
<hint type="destinationlabel" >
<x>366</x>
<y>320</y>
</hint> </hint>
</hints> </hints>
</connection> </connection>
@@ -177,6 +177,10 @@ void settingsDialogImpl::exec() {
lineEdit_InternetServerPassword->setText(QString::fromUtf8(myConfig->readConfigString("InternetServerPassword").c_str())); lineEdit_InternetServerPassword->setText(QString::fromUtf8(myConfig->readConfigString("InternetServerPassword").c_str()));
checkBox_InternetServerUseIpv6->setChecked(myConfig->readConfigInt("InternetServerUseIpv6")); checkBox_InternetServerUseIpv6->setChecked(myConfig->readConfigInt("InternetServerUseIpv6"));
checkBox_InternetServerUseSctp->setChecked(myConfig->readConfigInt("InternetServerUseSctp")); checkBox_InternetServerUseSctp->setChecked(myConfig->readConfigInt("InternetServerUseSctp"));
checkBox_useAvatarServer->setChecked(myConfig->readConfigInt("UseAvatarServer"));
if(myConfig->readConfigInt("UseAvatarServer")) {
lineEdit_avatarServerAddress->setText(QString::fromUtf8(myConfig->readConfigString("AvatarServerAddress").c_str()));
}
checkBox_UseInternetGamePassword->setChecked(myConfig->readConfigInt("UseInternetGamePassword")); checkBox_UseInternetGamePassword->setChecked(myConfig->readConfigInt("UseInternetGamePassword"));
if(myConfig->readConfigInt("UseInternetGamePassword")) { if(myConfig->readConfigInt("UseInternetGamePassword")) {
lineEdit_InternetGamePassword->setText(QString::fromUtf8(myConfig->readConfigString("InternetGamePassword").c_str())); lineEdit_InternetGamePassword->setText(QString::fromUtf8(myConfig->readConfigString("InternetGamePassword").c_str()));
@@ -339,6 +343,13 @@ void settingsDialogImpl::isAccepted() {
myConfig->writeConfigInt("InternetServerPort", spinBox_InternetServerPort->value()); myConfig->writeConfigInt("InternetServerPort", spinBox_InternetServerPort->value());
myConfig->writeConfigString("InternetServerPassword", lineEdit_InternetServerPassword->text().toUtf8().constData()); myConfig->writeConfigString("InternetServerPassword", lineEdit_InternetServerPassword->text().toUtf8().constData());
} }
if(checkBox_useAvatarServer->isChecked()) {
myConfig->writeConfigInt("UseAvatarServer", 1);
myConfig->writeConfigString("AvatarServerAddress", lineEdit_avatarServerAddress->text().toUtf8().constData());
}
else {
myConfig->writeConfigInt("UseAvatarServer", 0);
}
myConfig->writeConfigInt("InternetServerUseIpv6", checkBox_InternetServerUseIpv6->isChecked()); myConfig->writeConfigInt("InternetServerUseIpv6", checkBox_InternetServerUseIpv6->isChecked());
myConfig->writeConfigInt("InternetServerUseSctp", checkBox_InternetServerUseSctp->isChecked()); myConfig->writeConfigInt("InternetServerUseSctp", checkBox_InternetServerUseSctp->isChecked());
+133 -179
View File
File diff suppressed because it is too large Load Diff