summaryrefslogtreecommitdiffstats
path: root/examples/serialbus/can/connectdialog.ui
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2016-04-28 09:02:51 +0200
committerAndré Hartmann <aha_1980@gmx.de>2016-05-03 10:25:21 +0000
commit9e3af4a3a828a0c632ef07969005f46fd30bee63 (patch)
treed4882451dc676f6a3cb50f611fce53b1e6a5ba83 /examples/serialbus/can/connectdialog.ui
parentf183c72e5bd0bd253073783992d9bf860e0087ad (diff)
CAN-Example: Change SettingsDialog to ConnectDialog
This simplifies the handling and makes it more like how other CAN monitors behave. * After startup, the connect dialog is shown * If the dialog is accepted, the selected device is connected instantly * To interrupt a connection, the disconnect action can be used * To connect again, the action connect can be used Change-Id: I47db596658e90cc0393981fba135cd6d89191f1a Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/serialbus/can/connectdialog.ui')
-rw-r--r--examples/serialbus/can/connectdialog.ui175
1 files changed, 175 insertions, 0 deletions
diff --git a/examples/serialbus/can/connectdialog.ui b/examples/serialbus/can/connectdialog.ui
new file mode 100644
index 0000000..5f35b14
--- /dev/null
+++ b/examples/serialbus/can/connectdialog.ui
@@ -0,0 +1,175 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ConnectDialog</class>
+ <widget class="QDialog" name="ConnectDialog">
+ <property name="geometry">
+ <rect>
+ <x>0</x>
+ <y>0</y>
+ <width>441</width>
+ <height>281</height>
+ </rect>
+ </property>
+ <property name="windowTitle">
+ <string>Connect</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_2">
+ <item row="4" column="0" colspan="2">
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <spacer name="horizontalSpacer">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>96</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QPushButton" name="cancelButton">
+ <property name="text">
+ <string>Cancel</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="okButton">
+ <property name="text">
+ <string>OK</string>
+ </property>
+ <property name="autoDefault">
+ <bool>false</bool>
+ </property>
+ <property name="default">
+ <bool>true</bool>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
+ <item row="0" column="0">
+ <widget class="QGroupBox" name="selectBackendBox">
+ <property name="title">
+ <string>Select CAN backend</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout">
+ <item row="0" column="0">
+ <widget class="QComboBox" name="backendListBox"/>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="0" column="1" rowspan="4">
+ <widget class="QGroupBox" name="configurationBox">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="title">
+ <string>Specify Configuration</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_4">
+ <item row="0" column="0">
+ <widget class="QLabel" name="rawFilterLabel">
+ <property name="text">
+ <string>RAW Filter</string>
+ </property>
+ </widget>
+ </item>
+ <item row="0" column="1">
+ <widget class="QLineEdit" name="rawFilterEdit">
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QLabel" name="errorFilterLabel">
+ <property name="text">
+ <string>Error Filter</string>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="1">
+ <widget class="QLineEdit" name="errorFilterEdit">
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="placeholderText">
+ <string>FrameError bits</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="0">
+ <widget class="QLabel" name="loopbackLabel">
+ <property name="text">
+ <string>Loopback</string>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="1">
+ <widget class="QComboBox" name="loopbackBox"/>
+ </item>
+ <item row="3" column="0">
+ <widget class="QLabel" name="receiveOwnLabel">
+ <property name="text">
+ <string>Receive Own</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="1">
+ <widget class="QComboBox" name="receiveOwnBox"/>
+ </item>
+ <item row="4" column="0">
+ <widget class="QLabel" name="speedLabel">
+ <property name="text">
+ <string>Speed</string>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="1">
+ <widget class="QComboBox" name="speedBox"/>
+ </item>
+ <item row="5" column="0">
+ <widget class="QLabel" name="canFdLabel">
+ <property name="text">
+ <string>CAN FD</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="1">
+ <widget class="QComboBox" name="canFdBox"/>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="1" column="0">
+ <widget class="QGroupBox" name="specifyInterfaceNameBox">
+ <property name="title">
+ <string>Specify CAN interface name</string>
+ </property>
+ <layout class="QGridLayout" name="gridLayout_3">
+ <item row="0" column="0">
+ <widget class="QLineEdit" name="interfaceNameEdit"/>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="3" column="0">
+ <widget class="QCheckBox" name="useConfigurationBox">
+ <property name="text">
+ <string>Custom configuration</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>