406 lines
12 KiB
XML
406 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>BCMainWindow</class>
|
|
<widget class="QMainWindow" name="BCMainWindow">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>800</width>
|
|
<height>600</height>
|
|
</rect>
|
|
</property>
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string/>
|
|
</property>
|
|
<widget class="QWidget" name="_centralwidget">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QLabel" name="_headerLabel">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>0</width>
|
|
<height>45</height>
|
|
</size>
|
|
</property>
|
|
<property name="font">
|
|
<font>
|
|
<pointsize>14</pointsize>
|
|
<bold>true</bold>
|
|
</font>
|
|
</property>
|
|
<property name="lineWidth">
|
|
<number>-2</number>
|
|
</property>
|
|
<property name="text">
|
|
<string> Bionx Control</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="_horizontalLayout">
|
|
<item>
|
|
<widget class="QWidget" name="_buttonWidget" native="true">
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="_verticalLayout">
|
|
<item alignment="Qt::AlignmentFlag::AlignHCenter">
|
|
<widget class="QToolButton" name="_motorButton">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>64</width>
|
|
<height>64</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>64</width>
|
|
<height>64</height>
|
|
</size>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item alignment="Qt::AlignmentFlag::AlignHCenter">
|
|
<widget class="QToolButton" name="_batteryButton">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>64</width>
|
|
<height>64</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>64</width>
|
|
<height>64</height>
|
|
</size>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item alignment="Qt::AlignmentFlag::AlignHCenter">
|
|
<widget class="QToolButton" name="_consoleButton">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>64</width>
|
|
<height>64</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>64</width>
|
|
<height>64</height>
|
|
</size>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item alignment="Qt::AlignmentFlag::AlignHCenter">
|
|
<widget class="QToolButton" name="_pimpButton">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>64</width>
|
|
<height>64</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>...</string>
|
|
</property>
|
|
<property name="iconSize">
|
|
<size>
|
|
<width>48</width>
|
|
<height>48</height>
|
|
</size>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<spacer name="verticalSpacer">
|
|
<property name="orientation">
|
|
<enum>Qt::Orientation::Vertical</enum>
|
|
</property>
|
|
<property name="sizeHint" stdset="0">
|
|
<size>
|
|
<width>20</width>
|
|
<height>239</height>
|
|
</size>
|
|
</property>
|
|
</spacer>
|
|
</item>
|
|
<item alignment="Qt::AlignmentFlag::AlignHCenter">
|
|
<widget class="QToolButton" name="_syncButton">
|
|
<property name="text">
|
|
<string>Sync</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QToolButton" name="_connectButton">
|
|
<property name="text">
|
|
<string>Connect</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QStackedWidget" name="_stackedWidget">
|
|
<property name="minimumSize">
|
|
<size>
|
|
<width>200</width>
|
|
<height>0</height>
|
|
</size>
|
|
</property>
|
|
<property name="styleSheet">
|
|
<string notr="true"/>
|
|
</property>
|
|
<property name="lineWidth">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="currentIndex">
|
|
<number>3</number>
|
|
</property>
|
|
<widget class="BCDeviceView" name="_consolePanel">
|
|
<property name="frameShape">
|
|
<enum>QFrame::Shape::NoFrame</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Shadow::Plain</enum>
|
|
</property>
|
|
<property name="lineWidth">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="gridStyle">
|
|
<enum>Qt::PenStyle::NoPen</enum>
|
|
</property>
|
|
<property name="BCHeaderLabel" stdset="0">
|
|
<string>Console Settings</string>
|
|
</property>
|
|
<attribute name="horizontalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderStretchLastSection">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
</widget>
|
|
<widget class="BCDeviceView" name="_motorPanel">
|
|
<property name="frameShape">
|
|
<enum>QFrame::Shape::NoFrame</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Shadow::Plain</enum>
|
|
</property>
|
|
<property name="lineWidth">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="gridStyle">
|
|
<enum>Qt::PenStyle::NoPen</enum>
|
|
</property>
|
|
<property name="BCHeaderLabel" stdset="0">
|
|
<string>Motor Settings</string>
|
|
</property>
|
|
<attribute name="horizontalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderStretchLastSection">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
</widget>
|
|
<widget class="BCDeviceView" name="_batteryPanel">
|
|
<property name="frameShape">
|
|
<enum>QFrame::Shape::NoFrame</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Shadow::Plain</enum>
|
|
</property>
|
|
<property name="lineWidth">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="gridStyle">
|
|
<enum>Qt::PenStyle::NoPen</enum>
|
|
</property>
|
|
<property name="BCHeaderLabel" stdset="0">
|
|
<string>Battery Settings</string>
|
|
</property>
|
|
<attribute name="horizontalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderStretchLastSection">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
</widget>
|
|
<widget class="BCDeviceView" name="_pimpPanel">
|
|
<property name="frameShape">
|
|
<enum>QFrame::Shape::NoFrame</enum>
|
|
</property>
|
|
<property name="frameShadow">
|
|
<enum>QFrame::Shadow::Plain</enum>
|
|
</property>
|
|
<property name="lineWidth">
|
|
<number>0</number>
|
|
</property>
|
|
<property name="showGrid">
|
|
<bool>false</bool>
|
|
</property>
|
|
<property name="gridStyle">
|
|
<enum>Qt::PenStyle::NoPen</enum>
|
|
</property>
|
|
<property name="BCHeaderLabel" stdset="0">
|
|
<string>Pimp my Ride ...</string>
|
|
</property>
|
|
<attribute name="horizontalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
<attribute name="horizontalHeaderStretchLastSection">
|
|
<bool>true</bool>
|
|
</attribute>
|
|
<attribute name="verticalHeaderVisible">
|
|
<bool>false</bool>
|
|
</attribute>
|
|
</widget>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QStatusBar" name="_statusbar"/>
|
|
<action name="_pimpAction">
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:restart.png</normaloff>:restart.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>pimp</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Pimp my Ride</string>
|
|
</property>
|
|
</action>
|
|
<action name="_motorAction">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:bionx_motor.png</normaloff>:bionx_motor.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>motor</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Show motor settings</string>
|
|
</property>
|
|
</action>
|
|
<action name="_batteryAction">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:bionx_akku.png</normaloff>:bionx_akku.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>battery</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Show battery settings</string>
|
|
</property>
|
|
</action>
|
|
<action name="_consoleAction">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:bionx_console.png</normaloff>:bionx_console.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>console</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Show console settings</string>
|
|
</property>
|
|
</action>
|
|
<action name="_exitAction">
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:exit.png</normaloff>:exit.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>Exit</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>Exit</string>
|
|
</property>
|
|
</action>
|
|
<action name="_connectAction">
|
|
<property name="icon">
|
|
<iconset resource="bionxcontrol.qrc">
|
|
<normaloff>:/connected.png</normaloff>:/connected.png</iconset>
|
|
</property>
|
|
<property name="text">
|
|
<string>connect</string>
|
|
</property>
|
|
<property name="toolTip">
|
|
<string>connect to bike</string>
|
|
</property>
|
|
<property name="menuRole">
|
|
<enum>QAction::MenuRole::TextHeuristicRole</enum>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>BCDeviceView</class>
|
|
<extends>QTableView</extends>
|
|
<header location="global">bcdeviceview.h</header>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<resources>
|
|
<include location="bionxcontrol.qrc"/>
|
|
</resources>
|
|
<connections/>
|
|
</ui>
|