eliot/qt/ui/prefs_dialog.ui
Olivier Teulière 2c95f890ef Check for new versions, about once a week.
This can be deactivated in the preferences.
2013-01-19 00:36:08 +01:00

773 lines
27 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PrefsDialog</class>
<widget class="QDialog" name="PrefsDialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>474</width>
<height>737</height>
</rect>
</property>
<property name="windowTitle">
<string>_(&quot;Preferences&quot;)</string>
</property>
<layout class="QVBoxLayout">
<item>
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="tabWidgetPage1">
<attribute name="title">
<string>_(&quot;Interface&quot;)</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>_(&quot;Timer&quot;)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="1">
<widget class="QSpinBox" name="spinBoxTimerTotal">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>180</number>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="spinBoxTimerAlert">
<property name="minimum">
<number>-1</number>
</property>
<property name="maximum">
<number>999</number>
</property>
<property name="value">
<number>30</number>
</property>
</widget>
</item>
<item row="1" column="2">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_8">
<property name="text">
<string>_(&quot;Alert level (in seconds):&quot;)</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>_(&quot;Timer total duration (in seconds):&quot;)</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="3">
<widget class="QCheckBox" name="checkBoxTimerBeeps">
<property name="text">
<string>_(&quot;Timer beeps&quot;)</string>
</property>
</widget>
</item>
<item row="4" column="0" colspan="3">
<widget class="QCheckBox" name="checkBoxTimerAutoStart">
<property name="text">
<string>_(&quot;Start timer automatically when the rack changes&quot;)</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="title">
<string>_(&quot;Miscellaneous&quot;)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>_(&quot;Definitions site:&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditDefSite"/>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="_2">
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>_(&quot;Dictionary path:&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditIntfDicPath">
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
<property name="toolTip">
<string>_(&quot;Enter the dictionary path (mandatory to start a game)&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonIntfDicBrowse">
<property name="toolTip">
<string>_(&quot;Open a browser window to choose the dictionary&quot;)</string>
</property>
<property name="text">
<string>_(&quot;Browse...&quot;)</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="checkBoxIntfShowPoints">
<property name="toolTip">
<string>_(&quot;Show/hide the tiles points on the board.&quot;)</string>
</property>
<property name="text">
<string>_(&quot;Display tiles points&quot;)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxIntfAlignHistory">
<property name="toolTip">
<string>_(&quot;If checked, the game and player histories will display the rack and the corresponding solution on the same line&quot;)</string>
</property>
<property name="text">
<string>_(&quot;Align the rack and the solution in history&quot;)</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxIntfCheckUpdates">
<property name="text">
<string>_(&quot;Check periodially for new versions&quot;)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabWidgetPage2">
<attribute name="title">
<string>_(&quot;Game modes&quot;)</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QGroupBox" name="groupBoxDuplicate">
<property name="title">
<string>_(&quot;Duplicate mode&quot;)</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="3">
<widget class="QCheckBox" name="checkBoxDuplRefuseInvalid">
<property name="toolTip">
<string>_(&quot;If checked, playing an invalid or misplaced word will not be possible. If unchecked, you will get 0 point and lose your turn&quot;)</string>
</property>
<property name="text">
<string>_(&quot;Refuse to play invalid moves&quot;)</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>_(&quot;Min. players for a solo:&quot;)</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>_(&quot;Solo value:&quot;)</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="spinBoxDuplSoloValue">
<property name="toolTip">
<string>_(&quot;Value of the solo bonus. Set it to 0 if you don't want solo bonus&quot;)</string>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="2" column="2">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="spinBoxDuplSoloPlayers">
<property name="toolTip">
<string>_(&quot;Minimum number of players needed to take into account the solo bonus&quot;)</string>
</property>
<property name="value">
<number>16</number>
</property>
</widget>
</item>
</layout>
<zorder>checkBoxDuplRefuseInvalid</zorder>
<zorder>label_2</zorder>
<zorder>label_3</zorder>
<zorder>spinBoxDuplSoloValue</zorder>
<zorder>horizontalSpacer</zorder>
<zorder>spinBoxDuplSoloPlayers</zorder>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBoxFreeGame">
<property name="title">
<string>_(&quot;Free game mode&quot;)</string>
</property>
<layout class="QVBoxLayout" name="_3">
<item>
<widget class="QCheckBox" name="checkBoxFreeRefuseInvalid">
<property name="toolTip">
<string>_(&quot;If checked, playing an invalid or misplaced word will not be possible. If unchecked, you will get 0 point and lose your turn&quot;)</string>
</property>
<property name="text">
<string>_(&quot;Refuse to play invalid moves&quot;)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBoxTraining">
<property name="title">
<string>_(&quot;Training mode&quot;)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>_(&quot;Search results limit:&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinBoxTrainSearchLimit">
<property name="maximum">
<number>100000</number>
</property>
<property name="value">
<number>100</number>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>_(&quot;Arbitration mode&quot;)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QCheckBox" name="checkBoxArbitAutoMaster">
<property name="text">
<string>_(&quot;Choose a master move automatically&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxArbitFillRack">
<property name="text">
<string>_(&quot;Propose a new rack automatically&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxArbitLink7P1">
<property name="toolTip">
<string>_(&quot;If checked, any change to the player rack in training mode will update the 'Plus 1' tab of the 'Dictionary tools' window&quot;)</string>
</property>
<property name="text">
<string>_(&quot;Copy rack to the 'Plus 1' dictionary tool&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxArbitSoloAuto">
<property name="text">
<string>_(&quot;Handle solos automatically&quot;)</string>
</property>
</widget>
</item>
<item>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="1">
<widget class="QSpinBox" name="spinBoxArbitSoloPlayers">
<property name="enabled">
<bool>false</bool>
</property>
<property name="toolTip">
<string>_(&quot;Minimum number of players needed to take into account the solo bonus&quot;)</string>
</property>
<property name="value">
<number>16</number>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QSpinBox" name="spinBoxArbitWarnLimit">
<property name="value">
<number>3</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="label_10">
<property name="text">
<string>_(&quot;Penalty value:&quot;)</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>_(&quot;Warnings limit:&quot;)</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="spinBoxArbitPenaltyValue">
<property name="toolTip">
<string>_(&quot;Default number of points for a penalty&quot;)</string>
</property>
<property name="maximum">
<number>100000</number>
</property>
<property name="value">
<number>5</number>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>_(&quot;Solo value:&quot;)</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="spinBoxArbitSoloValue">
<property name="toolTip">
<string>_(&quot;Value of the solo bonus. Set it to 0 if you don't want solo bonus&quot;)</string>
</property>
<property name="value">
<number>10</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="labelArbitSoloPlayers">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>_(&quot;Min. players for a solo:&quot;)</string>
</property>
</widget>
</item>
<item row="1" column="2">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label_9">
<property name="text">
<string>_(&quot;Search results limit:&quot;)</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QSpinBox" name="spinBoxArbitSearchLimit">
<property name="maximum">
<number>100000</number>
</property>
<property name="value">
<number>100</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_6">
<property name="title">
<string>_(&quot;Topping mode&quot;)</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="2" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>_(&quot;Additional penalty given when the timer expires:&quot;)</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="spinBoxToppingExpPenalty">
<property name="maximum">
<number>9999</number>
</property>
<property name="value">
<number>60</number>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="checkBoxToppingElapsedPenalty">
<property name="text">
<string>_(&quot;Give a 1 point penalty for each elapsed second&quot;)</string>
</property>
</widget>
</item>
<item row="2" column="2">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab">
<attribute name="title">
<string>_(&quot;Confirmations&quot;)</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item>
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>_(&quot;When a game is on going, ask for a confirmation:&quot;)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_7">
<item>
<widget class="QCheckBox" name="checkBoxConfoStartGame">
<property name="text">
<string>_(&quot;Before starting a new game&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoLoadGame">
<property name="text">
<string>_(&quot;Before loading a game&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoLoadDic">
<property name="text">
<string>_(&quot;Before loading a dictionary&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoReplayTurn">
<property name="text">
<string>_(&quot;Before replaying a turn&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoQuitGame">
<property name="text">
<string>_(&quot;Before quitting Eliot&quot;)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3">
<property name="title">
<string>_(&quot;In arbitration mode, ask for a confirmation:&quot;)</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QCheckBox" name="checkBoxConfoArbitReplaceMaster">
<property name="text">
<string>_(&quot;Before replacing the selected master move&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoArbitLowMaster">
<property name="text">
<string>_(&quot;When selecting a non optimal master move&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoArbitMasterJokers">
<property name="text">
<string>_(&quot;When selecting a master move using jokers uselessly&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoArbitSupprMove">
<property name="text">
<string>_(&quot;Before suppressing a player move&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoArbitReplaceMove">
<property name="text">
<string>_(&quot;Before replacing a player move&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoArbitRack">
<property name="text">
<string>_(&quot;Before losing a player move (with a rack change)&quot;)</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="checkBoxConfoArbitEndTurn">
<property name="text">
<string>_(&quot;When ending an incomplete turn&quot;)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<tabstops>
<tabstop>tabWidget</tabstop>
<tabstop>spinBoxTimerTotal</tabstop>
<tabstop>spinBoxTimerAlert</tabstop>
<tabstop>checkBoxTimerBeeps</tabstop>
<tabstop>checkBoxTimerAutoStart</tabstop>
<tabstop>lineEditDefSite</tabstop>
<tabstop>lineEditIntfDicPath</tabstop>
<tabstop>pushButtonIntfDicBrowse</tabstop>
<tabstop>checkBoxIntfShowPoints</tabstop>
<tabstop>checkBoxIntfAlignHistory</tabstop>
<tabstop>checkBoxIntfCheckUpdates</tabstop>
<tabstop>checkBoxDuplRefuseInvalid</tabstop>
<tabstop>spinBoxDuplSoloPlayers</tabstop>
<tabstop>spinBoxDuplSoloValue</tabstop>
<tabstop>checkBoxFreeRefuseInvalid</tabstop>
<tabstop>spinBoxTrainSearchLimit</tabstop>
<tabstop>checkBoxArbitAutoMaster</tabstop>
<tabstop>checkBoxArbitFillRack</tabstop>
<tabstop>checkBoxArbitLink7P1</tabstop>
<tabstop>checkBoxArbitSoloAuto</tabstop>
<tabstop>spinBoxArbitSoloPlayers</tabstop>
<tabstop>spinBoxArbitSoloValue</tabstop>
<tabstop>spinBoxArbitPenaltyValue</tabstop>
<tabstop>spinBoxArbitWarnLimit</tabstop>
<tabstop>spinBoxArbitSearchLimit</tabstop>
<tabstop>checkBoxToppingElapsedPenalty</tabstop>
<tabstop>spinBoxToppingExpPenalty</tabstop>
<tabstop>checkBoxConfoStartGame</tabstop>
<tabstop>checkBoxConfoLoadGame</tabstop>
<tabstop>checkBoxConfoLoadDic</tabstop>
<tabstop>checkBoxConfoReplayTurn</tabstop>
<tabstop>checkBoxConfoQuitGame</tabstop>
<tabstop>checkBoxConfoArbitReplaceMaster</tabstop>
<tabstop>checkBoxConfoArbitLowMaster</tabstop>
<tabstop>checkBoxConfoArbitMasterJokers</tabstop>
<tabstop>checkBoxConfoArbitSupprMove</tabstop>
<tabstop>checkBoxConfoArbitReplaceMove</tabstop>
<tabstop>checkBoxConfoArbitRack</tabstop>
<tabstop>checkBoxConfoArbitEndTurn</tabstop>
<tabstop>buttonBox</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>PrefsDialog</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>275</x>
<y>546</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>PrefsDialog</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>343</x>
<y>546</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
</ui>