479 lines
14 KiB
XML
479 lines
14 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>MainWindow</class>
|
|
<widget class="QMainWindow" name="MainWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>600</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>MainWindow</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<layout class="QVBoxLayout" name="centralLayout">
|
|
<property name="spacing">
|
|
<number>8</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>8</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QWidget" name="deviceWidget" native="true">
|
|
<layout class="QGridLayout" name="deviceLayout">
|
|
<property name="leftMargin">
|
|
<number>8</number>
|
|
</property>
|
|
<property name="topMargin">
|
|
<number>8</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>8</number>
|
|
</property>
|
|
<property name="bottomMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="spacing">
|
|
<number>8</number>
|
|
</property>
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="portLabel">
|
|
<property name="text">
|
|
<string>Port:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QLineEdit" name="portEdit"/>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="baudLabel">
|
|
<property name="text">
|
|
<string>Baude rate:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QComboBox" name="baudComboBox">
|
|
<property name="currentIndex">
|
|
<number>4</number>
|
|
</property>
|
|
<item>
|
|
<property name="text">
|
|
<string>921600</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>576000</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>460800</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>230400</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>115200</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>57600</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>38400</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>19200</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>9600</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>4800</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="dataBitsLabel">
|
|
<property name="text">
|
|
<string>Data bits:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QComboBox" name="dataBitsComboBox">
|
|
<item>
|
|
<property name="text">
|
|
<string>8</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>7</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>6</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>5</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="stopBitsLabel">
|
|
<property name="text">
|
|
<string>Stop bits:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QComboBox" name="stopBitsComboBox">
|
|
<item>
|
|
<property name="text">
|
|
<string>1</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>2</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="parityLabel">
|
|
<property name="text">
|
|
<string>Parity:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QComboBox" name="parityComboBox">
|
|
<item>
|
|
<property name="text">
|
|
<string>None</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Odd</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Even</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Mark</string>
|
|
</property>
|
|
</item>
|
|
<item>
|
|
<property name="text">
|
|
<string>Space</string>
|
|
</property>
|
|
</item>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<widget class="QLabel" name="handshakeLabel">
|
|
<property name="text">
|
|
<string>Handshake:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="3">
|
|
<widget class="QCheckBox" name="softwareCheckBox">
|
|
<property name="text">
|
|
<string>Software</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="3">
|
|
<widget class="QCheckBox" name="hardwareCheckBox">
|
|
<property name="text">
|
|
<string>Hardware</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="2">
|
|
<widget class="QLabel" name="openModeLabel">
|
|
<property name="text">
|
|
<string>Open mode:</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="3">
|
|
<widget class="QCheckBox" name="readingCheckBox">
|
|
<property name="text">
|
|
<string>Reading</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="3">
|
|
<widget class="QCheckBox" name="writingCheckBox">
|
|
<property name="text">
|
|
<string>Writing</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="4" rowspan="5">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<property name="spacing">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="leftMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="rightMargin">
|
|
<number>0</number>
|
|
</property>
|
|
<item>
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>40</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout" stretch="0,0">
|
|
<item>
|
|
<widget class="QPushButton" name="openButton">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="text">
|
|
<string>Open</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset resource="images/simpleterm.qrc">
|
|
<normaloff>:/toolbar/network-connect.png</normaloff>:/toolbar/network-connect.png</iconset>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>22</width>
|
|
<height>22</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="horizontalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Horizontal</enum>
|
|
</property>
|
|
<property name="sizeType">
|
|
<enum>QSizePolicy::Expanding</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>100</width>
|
|
<height>20</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QTextBrowser" name="outputBrowser">
|
|
<property name="cursor" stdset="0">
|
|
<cursorShape>IBeamCursor</cursorShape>
|
|
</property>
|
|
<property name="html">
|
|
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
|
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
|
p, li { white-space: pre-wrap; }
|
|
</style></head><body style=" font-family:'Ubuntu'; font-size:10pt; font-weight:400; font-style:normal;">
|
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; background-color:#000066;"><span style=" font-size:9pt; color:#ffffff; background-color:#000066;">[D] this is debug</span></p>
|
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:9pt; color:#00ffff;">[B] this is other logging</span></p></body></html></string>
|
|
</property>
|
|
<property name="textInteractionFlags">
|
|
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set>
|
|
</property>
|
|
<property name="openLinks">
|
|
<bool>false</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="sendLayout">
|
|
<property name="spacing">
|
|
<number>8</number>
|
|
</property>
|
|
<item>
|
|
<widget class="QComboBox" name="sendComboBox">
|
|
<property name="editable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="sendButton">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>100</width>
|
|
<height>16777215</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>Send</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusbar"/>
|
|
<widget class="QToolBar" name="toolBar">
|
|
<property name="windowTitle">
|
|
<string>toolBar</string>
|
|
</property>
|
|
<property name="movable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="toolButtonStyle">
|
|
<enum>Qt::ToolButtonTextBesideIcon</enum>
|
|
</property>
|
|
<property name="floatable">
|
|
<bool>false</bool>
|
|
</property>
|
|
<attribute name="toolBarArea">
|
|
<enum>TopToolBarArea</enum>
|
|
</attribute>
|
|
<attribute name="toolBarBreak">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<addaction name="openAction"/>
|
|
<addaction name="closeAction"/>
|
|
<addaction name="configureAction"/>
|
|
<addaction name="exitAction"/>
|
|
</widget>
|
|
<action name="openAction">
|
|
<property name="icon">
|
|
<iconset resource="images/simpleterm.qrc">
|
|
<normaloff>:/toolbar/network-connect.png</normaloff>:/toolbar/network-connect.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Open...</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Open...</string>
|
|
</property>
|
|
</action>
|
|
<action name="closeAction">
|
|
<property name="icon">
|
|
<iconset resource="images/simpleterm.qrc">
|
|
<normaloff>:/toolbar/network-disconnect.png</normaloff>:/toolbar/network-disconnect.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Close</string>
|
|
</property>
|
|
</action>
|
|
<action name="configureAction">
|
|
<property name="icon">
|
|
<iconset resource="images/simpleterm.qrc">
|
|
<normaloff>:/toolbar/configure.png</normaloff>:/toolbar/configure.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Configure...</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Configure...</string>
|
|
</property>
|
|
</action>
|
|
<action name="exitAction">
|
|
<property name="icon">
|
|
<iconset resource="images/simpleterm.qrc">
|
|
<normaloff>:/toolbar/application-exit.png</normaloff>:/toolbar/application-exit.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Exit</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<resources>
|
|
<include location="images/simpleterm.qrc"/>
|
|
</resources>
|
|
<connections>
|
|
<connection>
|
|
<sender>exitAction</sender>
|
|
<signal>triggered()</signal>
|
|
<receiver>MainWindow</receiver>
|
|
<slot>close()</slot>
|
|
<hints>
|
|
<hint type="sourcelabel">
|
|
<x>-1</x>
|
|
<y>-1</y>
|
|
</hint>
|
|
<hint type="destinationlabel">
|
|
<x>399</x>
|
|
<y>299</y>
|
|
</hint>
|
|
</hints>
|
|
</connection>
|
|
</connections>
|
|
</ui>
|