eliot/qt/ui/training_widget.ui
Olivier Teulière ed2a20a3e3 - Allow setting the coordinates of the played word by clicking on the board
- New PlayWordMediator class, to encapsulate the behaviour of the controls
   used to play a word
 - The Training mode now has input fields to play words directly, without
   choosing them in the search results
2009-02-19 18:25:17 +00:00

183 lines
4.9 KiB
XML

<ui version="4.0" >
<class>TrainingWidget</class>
<widget class="QWidget" name="TrainingWidget" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>511</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout" >
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QLabel" name="label" >
<property name="text" >
<string>_("Rack:")</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditRack" >
<property name="minimumSize" >
<size>
<width>60</width>
<height>0</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>_("Play a word:")</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditPlay" >
<property name="minimumSize" >
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="toolTip" >
<string>_("Enter the word to play (case-insensitive).
A joker from the rack must be written in parentheses.
E.g.: w(o)rd or W(O)RD")</string>
</property>
<property name="statusTip" >
<string>_("Enter the word to play (case-insensitive). A joker from the rack must be written in parentheses. E.g.: w(o)rd or W(O)RD")</string>
</property>
<property name="text" >
<string>dummy</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>_("Ref.:")</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEditCoords" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Fixed" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>45</width>
<height>16777215</height>
</size>
</property>
<property name="toolTip" >
<string>_("Enter the coordinates of the word.
Specify the row before the column for horizontal words,
and the column before the row for vertical words.
E.g.: H4 or 4H")</string>
</property>
<property name="statusTip" >
<string>_("Enter the coordinates of the word. Specify the row before the column for horizontal words, and the column before the row for vertical words. E.g.: H4 or 4H")</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonPlay" >
<property name="text" >
<string>_("Play")</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" >
<item>
<widget class="QPushButton" name="pushButtonRack" >
<property name="text" >
<string>_("New rack")</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonComplement" >
<property name="text" >
<string>_("Complement")</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonSearch" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>_("Search")</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="pushButtonPlaySelected" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>_("Play selected")</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>_("Search results")</string>
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="QTreeView" name="treeViewResults" >
<property name="editTriggers" >
<set>QAbstractItemView::NoEditTriggers</set>
</property>
<property name="sortingEnabled" >
<bool>true</bool>
</property>
</widget>
</item>
</layout>
<zorder>treeViewResults</zorder>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>lineEditRack</sender>
<signal>returnPressed()</signal>
<receiver>pushButtonSearch</receiver>
<slot>click()</slot>
<hints>
<hint type="sourcelabel" >
<x>283</x>
<y>31</y>
</hint>
<hint type="destinationlabel" >
<x>281</x>
<y>48</y>
</hint>
</hints>
</connection>
</connections>
</ui>