summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/mainwindow.ui
diff options
context:
space:
mode:
Diffstat (limited to 'examples/serialbus/can/mainwindow.ui')
-rw-r--r--examples/serialbus/can/mainwindow.ui125
1 files changed, 11 insertions, 114 deletions
diff --git a/examples/serialbus/can/mainwindow.ui b/examples/serialbus/can/mainwindow.ui
index 04f8c93..1d5a657 100644
--- a/examples/serialbus/can/mainwindow.ui
+++ b/examples/serialbus/can/mainwindow.ui
@@ -14,123 +14,12 @@
<string>CAN Example</string>
</property>
<widget class="QWidget" name="centralWidget">
- <layout class="QVBoxLayout" name="verticalLayout_3">
+ <layout class="QVBoxLayout" name="verticalLayout">
<item>
- <widget class="QGroupBox" name="sendMessagesBox">
+ <widget class="SendFrameBox" name="sendFrameBox">
<property name="title">
- <string>Send CAN message</string>
+ <string>Send CAN frame</string>
</property>
- <layout class="QVBoxLayout" name="verticalLayout_2">
- <item>
- <layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0">
- <widget class="QLabel" name="label">
- <property name="text">
- <string>&amp;ID (hex)</string>
- </property>
- <property name="buddy">
- <cstring>idEdit</cstring>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLineEdit" name="idEdit">
- <property name="placeholderText">
- <string>123</string>
- </property>
- </widget>
- </item>
- <item row="0" column="2" rowspan="4">
- <widget class="QGroupBox" name="groupBox">
- <property name="title">
- <string>Frame Type</string>
- </property>
- <property name="checkable">
- <bool>false</bool>
- </property>
- <layout class="QVBoxLayout" name="verticalLayout">
- <item>
- <widget class="QRadioButton" name="dataFrame">
- <property name="text">
- <string>D&amp;ata</string>
- </property>
- <property name="checked">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="remoteFrame">
- <property name="text">
- <string>Re&amp;mote Request</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="errorFrame">
- <property name="text">
- <string>&amp;Error</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item row="0" column="3">
- <widget class="QCheckBox" name="fdBox">
- <property name="text">
- <string>&amp;Flexible Data-Rate
-(64 byte payload)</string>
- </property>
- </widget>
- </item>
- <item row="2" column="3">
- <widget class="QCheckBox" name="effBox">
- <property name="toolTip">
- <string>Allow extended frames with 29 bit identifier.
-Otherwise, the standard format with 11 bit idenfier is used.</string>
- </property>
- <property name="text">
- <string>E&amp;xtended Frame
-(29 bit identifier)</string>
- </property>
- </widget>
- </item>
- <item row="3" column="3">
- <widget class="QPushButton" name="sendButton">
- <property name="text">
- <string>&amp;Send</string>
- </property>
- </widget>
- </item>
- <item row="2" column="1">
- <widget class="QLineEdit" name="lineEdit">
- <property name="placeholderText">
- <string>12 34 AB CE</string>
- </property>
- </widget>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>&amp;Data (hex)</string>
- </property>
- <property name="buddy">
- <cstring>lineEdit</cstring>
- </property>
- </widget>
- </item>
- <item row="1" column="3">
- <widget class="QCheckBox" name="bitrateSwitchBox">
- <property name="text">
- <string>&amp;Bitrate Switch
-(Higher data rate)</string>
- </property>
- </widget>
- </item>
- </layout>
- </item>
- </layout>
</widget>
</item>
<item>
@@ -276,6 +165,14 @@ Otherwise, the standard format with 11 bit idenfier is used.</string>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
+ <customwidgets>
+ <customwidget>
+ <class>SendFrameBox</class>
+ <extends>QGroupBox</extends>
+ <header location="global">sendframebox.h</header>
+ <container>1</container>
+ </customwidget>
+ </customwidgets>
<resources>
<include location="can.qrc"/>
</resources>