286 lines
8.6 KiB
XML
286 lines
8.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>TriggersDialog</class>
|
|
<widget class="QDialog" name="TriggersDialog">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>622</width>
|
|
<height>515</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Triggers</string>
|
|
</property>
|
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,1">
|
|
<item>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QListView" name="listView">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Ignored" vsizetype="Expanding">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>List of all defined triggers. Click on a trigger to change it</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="1" column="0">
|
|
<widget class="QPushButton" name="pushButtonLoad">
|
|
<property name="toolTip">
|
|
<string>Load the collection of triggers from a file.</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Load</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qtgameengine/icons/open.png</normaloff>:/qtgameengine/icons/open.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QPushButton" name="pushButtonDelete">
|
|
<property name="toolTip">
|
|
<string>Delete the selected trigger. Make sure no object uses it!</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Delete</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qtgameengine/icons/delete.png</normaloff>:/qtgameengine/icons/delete.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="0">
|
|
<widget class="QPushButton" name="pushButtonAdd">
|
|
<property name="toolTip">
|
|
<string>Add a trigger to the list</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Add</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qtgameengine/icons/add.png</normaloff>:/qtgameengine/icons/add.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QPushButton" name="pushButtonClear">
|
|
<property name="toolTip">
|
|
<string>Clear the complete list of triggers</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Clear</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qtgameengine/icons/new.png</normaloff>:/qtgameengine/icons/new.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QPushButton" name="pushButtonSave">
|
|
<property name="toolTip">
|
|
<string>Save the collection of triggers to a file</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Save</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="../resources.qrc">
|
|
<normaloff>:/qtgameengine/icons/save.png</normaloff>:/qtgameengine/icons/save.png</iconset>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QDialogButtonBox" name="buttonBox">
|
|
<property name="standardButtons">
|
|
<set>QDialogButtonBox::Ok</set>
|
|
</property>
|
|
<property name="centerButtons">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBox">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<widget class="QLabel" name="labelName">
|
|
<property name="text">
|
|
<string>Name:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>lineEditName</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEditName">
|
|
<property name="toolTip">
|
|
<string>Type here a name for the trigger</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelCondition">
|
|
<property name="text">
|
|
<string>Condition:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>plainTextEdit</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPlainTextEdit" name="plainTextEdit">
|
|
<property name="toolTip">
|
|
<string>Type here the condition for the trigger</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<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>
|
|
<widget class="QPushButton" name="pushButtonUseCodeEditor">
|
|
<property name="toolTip">
|
|
<string>Use the code editor to edit the condition</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>&Use code editor</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelMomentOfChecking">
|
|
<property name="text">
|
|
<string>Moment of checking:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonBegin">
|
|
<property name="toolTip">
|
|
<string>Event will be checked at the beginning of each step</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Begin of step</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonMiddle">
|
|
<property name="toolTip">
|
|
<string>Event will be checked in the middle of each step (just before the step event)</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Middle of step</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QRadioButton" name="radioButtonEnd">
|
|
<property name="toolTip">
|
|
<string>Event will be checked at the end of each step</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>End of step</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="labelConstantName">
|
|
<property name="text">
|
|
<string>Constant name:</string>
|
|
</property>
|
|
<property name="buddy">
|
|
<cstring>lineEditConstantName</cstring>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLineEdit" name="lineEditConstantName">
|
|
<property name="toolTip">
|
|
<string>When required you can provide a constant name that you can use in code to call the event</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<resources>
|
|
<include location="../resources.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>accepted()</signal>
|
|
<receiver>TriggersDialog</receiver>
|
|
<slot>accept()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>93</x>
|
|
<y>492</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>310</x>
|
|
<y>257</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
<connection>
|
|
<sender>buttonBox</sender>
|
|
<signal>rejected()</signal>
|
|
<receiver>TriggersDialog</receiver>
|
|
<slot>reject()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>93</x>
|
|
<y>492</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>310</x>
|
|
<y>257</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|