new UI is functional but may need some minor bugfixes

This commit is contained in:
2019-08-21 21:41:53 -04:00
parent 82928fe84b
commit a82ce2dd0d
10 changed files with 320 additions and 766 deletions

View File

@@ -2,6 +2,14 @@
<ui version="4.0">
<class>MainWindowClass</class>
<widget class="QMainWindow" name="MainWindowClass">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>481</width>
<height>798</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>481</width>
@@ -22,11 +30,159 @@
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="_2">
<property name="leftMargin">
<number>11</number>
</property>
<property name="topMargin">
<number>11</number>
</property>
<property name="rightMargin">
<number>11</number>
</property>
<property name="bottomMargin">
<number>11</number>
</property>
<item>
<widget class="QGroupBox" name="groupDeviceInfo">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QGroupBox {
border: 1px solid gray;
border-radius: 9px;
margin-top: 1em;
padding-top: 0.5em;
}
QGroupBox::title {
subcontrol-origin: margin;
left: 10px;
padding: 0 3px 0 3px;
}</string>
</property>
<property name="title">
<string>Step 1: Connect Device</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>4</number>
</property>
<item>
<layout class="QFormLayout" name="formDeviceStatus">
<property name="verticalSpacing">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>Status</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="lblDeviceConnected">
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 0, 0);</string>
</property>
<property name="text">
<string>Not Connected</string>
</property>
<property name="margin">
<number>3</number>
</property>
<property name="indent">
<number>15</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="lblDeviceStatusMsg">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>Device not detected. Please connect the dancepad interface's USB cable to this computer.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="groupBasic" native="true">
<layout class="QVBoxLayout" name="verticalLayout">
<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>0</number>
</property>
<item>
<widget class="QGroupBox" name="groupFirmwareFile">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
@@ -54,7 +210,7 @@ QGroupBox::title {
}</string>
</property>
<property name="title">
<string>Step 1: Select App FW File</string>
<string>Step 2: Select App FW File</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_3">
<property name="spacing">
@@ -97,6 +253,9 @@ QGroupBox::title {
</item>
<item>
<widget class="QGroupBox" name="groupFlashFirmware">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
@@ -124,14 +283,11 @@ QGroupBox::title {
}</string>
</property>
<property name="title">
<string>Step 2: Flash FW to Device</string>
<string>Step 3: Flash FW to Device</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QPushButton" name="btnFlashFirmware">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
@@ -158,7 +314,7 @@ QGroupBox::title {
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<widget class="QLabel" name="lblFlashStatus">
<property name="font">
<font>
<family>Segoe UI</family>
@@ -166,7 +322,7 @@ QGroupBox::title {
</font>
</property>
<property name="text">
<string>Flashing Progress</string>
<string>Not ready.</string>
</property>
</widget>
</item>
@@ -188,127 +344,6 @@ QGroupBox::title {
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupDeviceInfo">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>14</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">QGroupBox {
border: 1px solid gray;
border-radius: 9px;
margin-top: 1em;
padding-top: 0.5em;
}
QGroupBox::title {
subcontrol-origin: margin;
left: 10px;
padding: 0 3px 0 3px;
}</string>
</property>
<property name="title">
<string>Device Information</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2">
<property name="spacing">
<number>4</number>
</property>
<item>
<layout class="QFormLayout" name="formDeviceStatus">
<property name="verticalSpacing">
<number>0</number>
</property>
<item row="1" column="0">
<widget class="QLabel" name="label_7">
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>12</pointsize>
</font>
</property>
<property name="text">
<string>Status</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="lblDeviceConnected">
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 0, 0);</string>
</property>
<property name="text">
<string>Not Connected</string>
</property>
<property name="margin">
<number>3</number>
</property>
<property name="indent">
<number>15</number>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QLabel" name="lblDeviceStatusMsg">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<family>Segoe UI</family>
<pointsize>10</pointsize>
</font>
</property>
<property name="text">
<string>Device not detected. Please connect the dancepad interface's USB cable to this computer.</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>1</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_advmode">
<item>
@@ -378,9 +413,6 @@ QGroupBox::title {
<family>Segoe UI</family>
</font>
</property>
<property name="accessibleDescription">
<string>advmode</string>
</property>
<property name="styleSheet">
<string notr="true">QGroupBox,QGroupBox::title {
border: none;
@@ -405,7 +437,7 @@ QGroupBox::title {
<number>0</number>
</property>
<item>
<widget class="QWidget" name="widget" native="true">
<widget class="QWidget" name="formAdvancedVersions" native="true">
<property name="font">
<font>
<family>Segoe UI</family>
@@ -486,7 +518,7 @@ QGroupBox::title {
</widget>
</item>
<item>
<widget class="QWidget" name="widget" native="true">
<widget class="QWidget" name="formAdvancedButtons" native="true">
<property name="font">
<font>
<family>Segoe UI</family>
@@ -585,149 +617,6 @@ QGroupBox::title {
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>481</width>
<height>26</height>
</rect>
</property>
<widget class="QMenu" name="menuProgrammer">
<property name="enabled">
<bool>true</bool>
</property>
<property name="title">
<string>&amp;Program</string>
</property>
<addaction name="separator"/>
<addaction name="actionWrite_Device"/>
<addaction name="action_Verify_Device"/>
<addaction name="actionErase_Device"/>
<addaction name="actionBlank_Check"/>
<addaction name="actionReset_Device"/>
<addaction name="separator"/>
<addaction name="action_Settings"/>
</widget>
<widget class="QMenu" name="menu_Help">
<property name="title">
<string>&amp;Help</string>
</property>
<addaction name="action_About"/>
</widget>
<addaction name="menuProgrammer"/>
<addaction name="menu_Help"/>
</widget>
<widget class="QToolBar" name="mainToolBar">
<property name="windowTitle">
<string>Display Toolbar</string>
</property>
<property name="movable">
<bool>false</bool>
</property>
<property name="floatable">
<bool>false</bool>
</property>
<attribute name="toolBarArea">
<enum>TopToolBarArea</enum>
</attribute>
<attribute name="toolBarBreak">
<bool>false</bool>
</attribute>
<addaction name="separator"/>
<addaction name="actionWrite_Device"/>
<addaction name="action_Verify_Device"/>
<addaction name="actionErase_Device"/>
<addaction name="actionBlank_Check"/>
<addaction name="actionReset_Device"/>
</widget>
<action name="actionWrite_Device">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/MainWindow/img/writetqfp.png</normaloff>:/MainWindow/img/writetqfp.png</iconset>
</property>
<property name="text">
<string>Erase/Program/Verify Device</string>
</property>
</action>
<action name="actionErase_Device">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/MainWindow/img/erasetqfp.png</normaloff>:/MainWindow/img/erasetqfp.png</iconset>
</property>
<property name="text">
<string>Erase Device</string>
</property>
<property name="visible">
<bool>false</bool>
</property>
</action>
<action name="action_About">
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/MainWindow/img/help.png</normaloff>:/MainWindow/img/help.png</iconset>
</property>
<property name="text">
<string>&amp;About</string>
</property>
</action>
<action name="action_Verify_Device">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/MainWindow/img/verify.png</normaloff>:/MainWindow/img/verify.png</iconset>
</property>
<property name="text">
<string>&amp;Verify Device</string>
</property>
<property name="visible">
<bool>false</bool>
</property>
</action>
<action name="action_Settings">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>&amp;Settings...</string>
</property>
</action>
<action name="actionReset_Device">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/MainWindow/img/Reset.png</normaloff>:/MainWindow/img/Reset.png</iconset>
</property>
<property name="text">
<string>Reset Device</string>
</property>
</action>
<action name="actionBlank_Check">
<property name="enabled">
<bool>false</bool>
</property>
<property name="icon">
<iconset resource="resources.qrc">
<normaloff>:/MainWindow/img/BlankCheck.png</normaloff>:/MainWindow/img/BlankCheck.png</iconset>
</property>
<property name="text">
<string>Blank Check</string>
</property>
<property name="visible">
<bool>false</bool>
</property>
</action>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources>