mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-27 09:58:08 +01:00
76fefdf71d
When a master game is defined, the racks and moves played from the current game will be the same as in the master game. This can be practical to replay a game in a different mode, or to replay at home a duplicate game played in a club, for example.
316 lines
8.8 KiB
XML
316 lines
8.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>NewGameDialog</class>
|
|
<widget class="QDialog" name="NewGameDialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>600</width>
|
|
<height>471</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>_("New game")</string>
|
|
</property>
|
|
<property name="modal">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBox">
|
|
<property name="title">
|
|
<string>_("Game type")</string>
|
|
</property>
|
|
<layout class="QHBoxLayout">
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>4</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>_("Mode:")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout_3">
|
|
<property name="spacing">
|
|
<number>4</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonDuplicate">
|
|
<property name="text">
|
|
<string>_("Duplicate")</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonFreeGame">
|
|
<property name="text">
|
|
<string>_("Free game")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonTraining">
|
|
<property name="text">
|
|
<string>_("Training")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonArbitration">
|
|
<property name="text">
|
|
<string>_("Arbitration (duplicate)")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonTopping">
|
|
<property name="text">
|
|
<string>_("Topping")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<spacer>
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>16</width>
|
|
<height>26</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>_("Variant:")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<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="text">
|
|
<string>_("Joker game")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="checkBoxExplosive">
|
|
<property name="text">
|
|
<string>_("Explosive game")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="checkBox7Among8">
|
|
<property name="text">
|
|
<string>_("7 among 8")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBoxMaster">
|
|
<property name="title">
|
|
<string>_("Master game")</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_4">
|
|
<item>
|
|
<widget class="QCheckBox" name="checkBoxUseMaster">
|
|
<property name="text">
|
|
<string>_("Use a master game")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QWidget" name="widgetMasterControls" native="true">
|
|
<property name="enabled">
|
|
<bool>false</bool>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<property name="margin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string>_("Saved game to use:")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEditMaster"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="buttonBrowseMaster">
|
|
<property name="text">
|
|
<string>_("Browse...")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBoxPlayers">
|
|
<property name="title">
|
|
<string>_("Players")</string>
|
|
</property>
|
|
<layout class="QVBoxLayout">
|
|
<item>
|
|
<widget class="QTableWidget" name="tablePlayers"/>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout">
|
|
<item>
|
|
<widget class="QPushButton" name="pushButtonAdd">
|
|
<property name="text">
|
|
<string>_("Add &player")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="buttonAddFav">
|
|
<property name="text">
|
|
<string>_("Add &favorite players...")</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer>
|
|
<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>
|
|
<widget class="QPushButton" name="buttonUp">
|
|
<property name="toolTip">
|
|
<string>_("Move selection upwards")</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../eliot.qrc">
|
|
<normaloff>:/images/go-up.png</normaloff>:/images/go-up.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="buttonDown">
|
|
<property name="toolTip">
|
|
<string>_("Move selection downwards")</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../eliot.qrc">
|
|
<normaloff>:/images/go-down.png</normaloff>:/images/go-down.png</iconset>
|
|
</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">
|
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<tabstops>
|
|
<tabstop>radioButtonDuplicate</tabstop>
|
|
<tabstop>radioButtonFreeGame</tabstop>
|
|
<tabstop>radioButtonTraining</tabstop>
|
|
<tabstop>radioButtonArbitration</tabstop>
|
|
<tabstop>radioButtonTopping</tabstop>
|
|
<tabstop>checkBoxJoker</tabstop>
|
|
<tabstop>checkBoxExplosive</tabstop>
|
|
<tabstop>checkBox7Among8</tabstop>
|
|
<tabstop>checkBoxUseMaster</tabstop>
|
|
<tabstop>lineEditMaster</tabstop>
|
|
<tabstop>buttonBrowseMaster</tabstop>
|
|
<tabstop>pushButtonAdd</tabstop>
|
|
<tabstop>buttonAddFav</tabstop>
|
|
<tabstop>buttonUp</tabstop>
|
|
<tabstop>buttonDown</tabstop>
|
|
<tabstop>tablePlayers</tabstop>
|
|
<tabstop>buttonBox</tabstop>
|
|
</tabstops>
|
|
<resources>
|
|
<include location="../eliot.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>NewGameDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>203</x>
|
|
<y>461</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>110</x>
|
|
<y>461</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>75</x>
|
|
<y>275</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|