2008-01-20 19:40:12 +01:00
|
|
|
<ui version="4.0" >
|
|
|
|
<class>NewGameDialog</class>
|
|
|
|
<widget class="QDialog" name="NewGameDialog" >
|
|
|
|
<property name="geometry" >
|
|
|
|
<rect>
|
|
|
|
<x>0</x>
|
|
|
|
<y>0</y>
|
2009-01-15 19:33:32 +01:00
|
|
|
<width>473</width>
|
|
|
|
<height>425</height>
|
2008-01-20 19:40:12 +01:00
|
|
|
</rect>
|
|
|
|
</property>
|
|
|
|
<property name="windowTitle" >
|
|
|
|
<string>_("New game")</string>
|
|
|
|
</property>
|
|
|
|
<property name="modal" >
|
|
|
|
<bool>true</bool>
|
|
|
|
</property>
|
|
|
|
<layout class="QVBoxLayout" >
|
|
|
|
<item>
|
|
|
|
<widget class="QGroupBox" name="groupBox" >
|
|
|
|
<property name="title" >
|
|
|
|
<string>_("Game type")</string>
|
|
|
|
</property>
|
|
|
|
<layout class="QHBoxLayout" >
|
2009-01-15 19:33:32 +01:00
|
|
|
<property name="topMargin" >
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<property name="bottomMargin" >
|
|
|
|
<number>4</number>
|
|
|
|
</property>
|
2008-01-20 19:40:12 +01:00
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_3" >
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Mode:")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QComboBox" name="comboBoxMode" >
|
|
|
|
<item>
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Duplicate")</string>
|
|
|
|
</property>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Free game")</string>
|
|
|
|
</property>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Training")</string>
|
|
|
|
</property>
|
|
|
|
</item>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<spacer>
|
|
|
|
<property name="orientation" >
|
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
2008-08-31 13:48:11 +02:00
|
|
|
<property name="sizeHint" stdset="0" >
|
2008-01-20 19:40:12 +01:00
|
|
|
<size>
|
|
|
|
<width>16</width>
|
|
|
|
<height>26</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
|
|
|
<item>
|
2009-01-15 19:33:32 +01:00
|
|
|
<widget class="QLabel" name="label_5" >
|
2008-01-20 19:40:12 +01:00
|
|
|
<property name="text" >
|
2009-01-15 19:33:32 +01:00
|
|
|
<string>_("Variant:")</string>
|
2008-01-20 19:40:12 +01:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2009-01-15 19:33:32 +01:00
|
|
|
<item>
|
|
|
|
<layout class="QVBoxLayout" name="verticalLayout" >
|
|
|
|
<property name="spacing" >
|
|
|
|
<number>2</number>
|
|
|
|
</property>
|
|
|
|
<property name="topMargin" >
|
|
|
|
<number>0</number>
|
|
|
|
</property>
|
|
|
|
<item>
|
|
|
|
<widget class="QCheckBox" name="checkBoxJoker" >
|
|
|
|
<property name="toolTip" >
|
|
|
|
<string>_("In a joker game, each rack contains a joker. When a word containing
|
|
|
|
the joker is played on the grid, the joker is then replaced by the
|
|
|
|
corresponding letter from the bag, and the joker stays in the rack.
|
|
|
|
When the corresponding letter is not present in the bag, the joker is
|
|
|
|
placed on the board.
|
|
|
|
This variant, particularly interesting in Duplicate mode, is good to train
|
|
|
|
using the joker.")</string>
|
|
|
|
</property>
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Joker game")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QCheckBox" name="checkBoxExplosive" >
|
|
|
|
<property name="toolTip" >
|
|
|
|
<string>_("An explosive game is a bit like a joker game, except than when the
|
|
|
|
computer chooses the rack (containing a joker), it performs a search and
|
|
|
|
finds the best word possible with the rack. Then, if possible, it replaces
|
|
|
|
the joker in the rack with the letter allowing to play this best word.
|
|
|
|
This variant, unlike the joker game, allows playing with a normal-looking
|
|
|
|
rack, but it usually gives much higher scores than in a normal game.")</string>
|
|
|
|
</property>
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Explosive game")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
2008-01-20 19:40:12 +01:00
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QGroupBox" name="groupBoxPlayers" >
|
|
|
|
<property name="title" >
|
|
|
|
<string>_("Players")</string>
|
|
|
|
</property>
|
|
|
|
<layout class="QVBoxLayout" >
|
|
|
|
<item>
|
|
|
|
<widget class="QTreeView" name="treeViewPlayers" >
|
|
|
|
<property name="editTriggers" >
|
2008-08-31 13:48:11 +02:00
|
|
|
<set>QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed</set>
|
2008-01-20 19:40:12 +01:00
|
|
|
</property>
|
|
|
|
<property name="rootIsDecorated" >
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<layout class="QHBoxLayout" >
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label" >
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Name:")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLineEdit" name="lineEditName" >
|
|
|
|
<property name="text" >
|
2008-09-03 19:28:27 +02:00
|
|
|
<string>Player 2</string>
|
2008-01-20 19:40:12 +01:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_2" >
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Type:")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QComboBox" name="comboBoxType" >
|
|
|
|
<item>
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Human")</string>
|
|
|
|
</property>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<property name="text" >
|
2008-08-31 13:48:11 +02:00
|
|
|
<string>_("Computer")</string>
|
2008-01-20 19:40:12 +01:00
|
|
|
</property>
|
|
|
|
</item>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2008-09-03 19:28:27 +02:00
|
|
|
<item>
|
|
|
|
<widget class="QLabel" name="label_4" >
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Level:")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QSpinBox" name="spinBoxLevel" >
|
|
|
|
<property name="enabled" >
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="maximum" >
|
|
|
|
<number>100</number>
|
|
|
|
</property>
|
|
|
|
<property name="value" >
|
|
|
|
<number>100</number>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
2008-01-20 19:40:12 +01:00
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<layout class="QHBoxLayout" >
|
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="pushButtonAdd" >
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Add player")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<spacer>
|
|
|
|
<property name="orientation" >
|
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
2008-08-31 13:48:11 +02:00
|
|
|
<property name="sizeHint" stdset="0" >
|
2008-01-20 19:40:12 +01:00
|
|
|
<size>
|
|
|
|
<width>40</width>
|
|
|
|
<height>20</height>
|
|
|
|
</size>
|
|
|
|
</property>
|
|
|
|
</spacer>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QPushButton" name="pushButtonRemove" >
|
|
|
|
<property name="enabled" >
|
|
|
|
<bool>false</bool>
|
|
|
|
</property>
|
|
|
|
<property name="text" >
|
|
|
|
<string>_("Remove player")</string>
|
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
<item>
|
|
|
|
<widget class="QDialogButtonBox" name="buttonBox" >
|
|
|
|
<property name="orientation" >
|
|
|
|
<enum>Qt::Horizontal</enum>
|
|
|
|
</property>
|
|
|
|
<property name="standardButtons" >
|
2008-08-31 13:48:11 +02:00
|
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
2008-01-20 19:40:12 +01:00
|
|
|
</property>
|
|
|
|
</widget>
|
|
|
|
</item>
|
|
|
|
</layout>
|
|
|
|
</widget>
|
|
|
|
<resources/>
|
|
|
|
<connections>
|
|
|
|
<connection>
|
|
|
|
<sender>buttonBox</sender>
|
|
|
|
<signal>accepted()</signal>
|
|
|
|
<receiver>NewGameDialog</receiver>
|
|
|
|
<slot>accept()</slot>
|
|
|
|
<hints>
|
|
|
|
<hint type="sourcelabel" >
|
|
|
|
<x>194</x>
|
|
|
|
<y>309</y>
|
|
|
|
</hint>
|
|
|
|
<hint type="destinationlabel" >
|
|
|
|
<x>173</x>
|
|
|
|
<y>274</y>
|
|
|
|
</hint>
|
|
|
|
</hints>
|
|
|
|
</connection>
|
|
|
|
<connection>
|
|
|
|
<sender>buttonBox</sender>
|
|
|
|
<signal>rejected()</signal>
|
|
|
|
<receiver>NewGameDialog</receiver>
|
|
|
|
<slot>reject()</slot>
|
|
|
|
<hints>
|
|
|
|
<hint type="sourcelabel" >
|
|
|
|
<x>101</x>
|
|
|
|
<y>298</y>
|
|
|
|
</hint>
|
|
|
|
<hint type="destinationlabel" >
|
|
|
|
<x>75</x>
|
|
|
|
<y>275</y>
|
|
|
|
</hint>
|
|
|
|
</hints>
|
|
|
|
</connection>
|
|
|
|
</connections>
|
|
|
|
</ui>
|