Initial commit (project based on widgets)

This commit is contained in:
Yury Shuvakin
2022-08-01 21:53:36 +03:00
parent d9396cdc2f
commit 14a7aa699f
411 changed files with 95119 additions and 0 deletions

930
mainwindownew.ui Normal file
View File

@@ -0,0 +1,930 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>MainWindowNew</class>
<widget class="QMainWindow" name="MainWindowNew">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1366</width>
<height>738</height>
</rect>
</property>
<property name="windowTitle">
<string>MainWindowNew</string>
</property>
<property name="styleSheet">
<string notr="true">QMainWindow#MainWindowNew
{
background-color: #f7f8fc
}
#tabAkbMonitor,
#tabCellsMonitor,
#tabConfiguration,
#tabVisualization,
#tabHistory,
#tabSeriveOfBms,
#tabSettingsExtra
{
background-color: #f7f8fc; /*ConfigurationPage*/
}
/*
QWidget#centralwidget
{
background-color: red;
}
*/
/*
QScrollArea#scrollArea_2
{
background-color: #f7f8fc
}
*/
QLabel#lbIconLogo
{
/*background-image: url(:/images/cubo-verde-logo.png);*/
border-image: url(:/res/cubo-verde-logo-white.png) 0 0 0 0 stretch stretch;
}
QLabel#lbHeaderLanguageIcon
{
/*background-image: url(:/images/cubo-verde-logo.png);*/
border-image: url(:/res/language-russ.png) 0 0 0 0 stretch stretch;
}
QLabel#mStatusLabel
{
font-size:11px;
}
QPushButton#pbMainMenuBarHideMenu,
#pbMainMenuBarAkbMonitor,
#pbMainMenuBarCellsMonitor,
#pbMainMenuBarConfiguration,
#pbMainMenuBarVisualization,
#pbMainMenuBarHistory,
#pbMainMenuBarSeriveOfBms,
#pbMainMenuBarSettingsExtra,
#pbMainMenuBarExit
{
color: #FFFFFF;
background-color: #009352;
border: 0px solid black;
background:#009352;
text-align: left;
padding-left: 85px;
font-size:17px;
}
QPushButton#pbMainMenuBarHideMenu
{
font-size:15px;
}
/*QPushButton:pressed {
background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(60, 186, 162, 255), stop:1 rgba(98, 211, 162, 255))
}
*/
QPushButton#pbMainMenuBarAkbMonitor:hover:checked,
#pbMainMenuBarCellsMonitor:hover:checked,
#pbMainMenuBarConfiguration:hover:checked,
#pbMainMenuBarVisualization:hover:checked,
#pbMainMenuBarHistory:hover:checked,
#pbMainMenuBarSeriveOfBms:hover:checked,
#pbMainMenuBarSettingsExtra:hover:checked
{
background-color: #01673a;
}
QPushButton#pbMainMenuBarAkbMonitor:!hover:checked,
#pbMainMenuBarAkbMonitor:!hover:checked,
#pbMainMenuBarCellsMonitor:!hover:checked,
#pbMainMenuBarConfiguration:!hover:checked,
#pbMainMenuBarVisualization:!hover:checked,
#pbMainMenuBarHistory:!hover:checked,
#pbMainMenuBarSeriveOfBms:!hover:checked,
#pbMainMenuBarSettingsExtra:!hover:checked
{
background-color: #01673a;
}
QPushButton#pbMainMenuBarHideMenu:hover:!checked,
#pbMainMenuBarAkbMonitor:hover:!checked,
#pbMainMenuBarCellsMonitor:hover:!checked,
#pbMainMenuBarConfiguration:hover:!checked,
#pbMainMenuBarVisualization:hover:!checked,
#pbMainMenuBarHistory:hover:!checked,
#pbMainMenuBarSeriveOfBms:hover:!checked,
#pbMainMenuBarSettingsExtra:hover:!checked,
#pbMainMenuBarExit:hover:!checked
{
/*background-color: #009352;*/
background-color: #028249;
}
/*QPushButton#pbMainMenuBarExit:hover:!pressed
{
background-color: #01673a;
}*/
QPushButton#pbMainMenuBarHideMenu:hover:pressed,
QPushButton#pbMainMenuBarExit:hover:pressed
{
background-color: #01673a;
}
/*------------------*/
QPushButton#pbConnect,
#pbWriteToNonVolatileBmsMemory,
#pbLoadCurrentSettingsFromBms,
#pbLoadSettingsFromFile,
QPushButton#pbConnect:hover:pressed,
#pbWriteToNonVolatileBmsMemory:hover:pressed,
#pbLoadCurrentSettingsFromBms:hover:pressed,
#pbLoadSettingsFromFile:hover:pressed
{
color:black;
background-color:white;
font-weight:bold;
font-size: 14px;
border-color: #009352;
border-style: solid;
border-width: 1px;
border-radius: 6px;
}
QPushButton#pbConnect:hover:!pressed,
#pbWriteToNonVolatileBmsMemory:hover:!pressed,
#pbLoadCurrentSettingsFromBms:hover:!pressed,
#pbLoadSettingsFromFile:hover:!pressed
{
background-color: #0FF73a;
}
QPushButton#pbWriteCurrentValuesToBms,
QPushButton#pbWriteCurrentValuesToBms:hover:pressed
{
background-color:#009352;
color:white;
font-weight:bold;
font-size: 14px;
border-color: #009352;
border-style: solid;
border-width: 1px;
border-radius: 6px;
}
QPushButton#pbWriteCurrentValuesToBms:hover:!pressed
{
background-color: #01673a;
}
QPushButton#pbLinkSerialNumber,
#pbLinkSoc,
#pbLinkRestrictions,
#pbLinkClaibrateZero,
#pbLinkCellsConfiguration,
#pbLinkOutputsSetting,
#pbLinkBalancingConfiguration,
#pbLinkConfiguration
{
color:#009352;
text-decoration: none;
background: transparent;
border-color:transparent;
text-align:left;
border-radius: 1px;
}
QPushButton#pbLinkSerialNumber:hover:!pressed,
#pbLinkSoc:hover:!pressed,
#pbLinkRestrictions:hover:!pressed,
#pbLinkClaibrateZero:hover:!pressed,
#pbLinkCellsConfiguration:hover:!pressed,
#pbLinkOutputsSetting:hover:!pressed,
#pbLinkBalancingConfiguration:hover:!pressed,
#pbLinkConfiguration:hover:!pressed
{
text-decoration: underline;
}
QPushButton#pbLinkSerialNumber:hover:pressed,
#pbLinkSoc:hover:pressed,
#pbLinkRestrictions:hover:pressed,
#pbLinkClaibrateZero:hover:pressed,
#pbLinkCellsConfiguration:hover:pressed,
#pbLinkOutputsSetting:hover:pressed,
#pbLinkBalancingConfiguration:hover:pressed,
#pbLinkConfiguration:hover:pressed
{
color:#0093FF;
}
/*------------------*/
/*
QGroupBox#gbSerialNumber,
#gbConfiguration,
#gbSoc
{
border-radius:10px;
border-color: grey;
border-style: solid;
border-width: 1px;
}
*/
/*-----------------------*/
QScrollBar {
border-radius: 10px;
background: #e8e9f1;
}
QScrollBar::vertical {
width: 10px;
margin: 0px 0px 0px 0px;
}
/*-----------------------------------*/
QScrollBar::sub-page:horizontal {
background: #e8e9f1;
border-top-left-radius: 9px;
border-bottom-left-radius: 9px;
}
QScrollBar::add-page:horizontal {
background: #e8e9f1;
border-top-right-radius: 9px;
border-bottom-right-radius: 9px;
}
QScrollBar::sub-page:vertical {
background: #e8e9f1;
border-top-left-radius: 9px;
border-top-right-radius: 9px;
}
QScrollBar::add-page:vertical {
background: #e8e9f1;
border-bottom-left-radius: 9px;
border-bottom-right-radius: 9px;
}
/*-----------------------------------*/
QScrollBar::up-arrow,
QScrollBar::sub-line,
QScrollBar::add-line {
width: 0px;
height: 0px;
}
QScrollBar::handle {
background: #009352;
border-radius: 5px;
}
/*---------------------*/
/* border: 1px solid black;*/
QTabWidget
{
background: red;
}
QTabBar::tab
{
height: 0px;
background: #f7f8fc;
}
QTabWidget::pane
{
background: #f7f8fc;
}
/*
QTabWidget
{
background: #f7f8fc;
}
QTabWidget::tab-bar
{
background: #f7f8fc;
}
QTabBar::tab
{
height: 0px;
background: #f7f8fc;
}
QTabBar::tab
{
background: #48555E;
color: white;
border-color: #48555E;
}
*/
</string>
</property>
<widget class="QWidget" name="centralwidget">
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarAkbMonitor">
<property name="geometry">
<rect>
<x>0</x>
<y>270</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Монитор АКБ</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarExit">
<property name="geometry">
<rect>
<x>0</x>
<y>620</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Выход</string>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarHideMenu">
<property name="geometry">
<rect>
<x>0</x>
<y>170</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>СКРЫТЬ МЕНЮ</string>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarVisualization">
<property name="geometry">
<rect>
<x>0</x>
<y>420</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Визуализация</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarSeriveOfBms">
<property name="geometry">
<rect>
<x>0</x>
<y>520</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Сервис BMS</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="labLeftTabListBackground">
<property name="geometry">
<rect>
<x>0</x>
<y>-10</y>
<width>281</width>
<height>753</height>
</rect>
</property>
<property name="font">
<font>
<pointsize>14</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgb(255, 255, 255);
background-color:#009352;
</string>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarHistory">
<property name="geometry">
<rect>
<x>0</x>
<y>470</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>История</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="lbIconLogo">
<property name="geometry">
<rect>
<x>80</x>
<y>40</y>
<width>111</width>
<height>111</height>
</rect>
</property>
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarCellsMonitor">
<property name="geometry">
<rect>
<x>0</x>
<y>320</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Монитор ячеек</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarConfiguration">
<property name="geometry">
<rect>
<x>0</x>
<y>370</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Конфигурация</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
</widget>
<widget class="QTabWidget" name="tabWidgetPagesContent">
<property name="geometry">
<rect>
<x>280</x>
<y>-10</y>
<width>1084</width>
<height>751</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true"/>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<widget class="ConnectAndEnterPage" name="tabConnect">
<property name="styleSheet">
<string notr="true"/>
</property>
<attribute name="title">
<string>Страница</string>
</attribute>
</widget>
<widget class="AkbMonitorPage" name="tabAkbMonitor">
<property name="styleSheet">
<string notr="true"/>
</property>
<attribute name="title">
<string>Tab 1</string>
</attribute>
</widget>
<widget class="CellsMonitorPage" name="tabCellsMonitor">
<attribute name="title">
<string>Tab 2</string>
</attribute>
</widget>
<widget class="ConfigurationPage" name="tabConfiguration">
<attribute name="title">
<string>Страница</string>
</attribute>
</widget>
<widget class="VisualizationPage" name="tabVisualization">
<attribute name="title">
<string>Страница</string>
</attribute>
</widget>
<widget class="DebugPrintPage" name="tabHistory">
<attribute name="title">
<string>Страница</string>
</attribute>
</widget>
<widget class="BmsServicePage" name="tabSeriveOfBms">
<attribute name="title">
<string>Страница</string>
</attribute>
</widget>
<widget class="SettingsExtraPage" name="tabSettingsExtra">
<attribute name="title">
<string>Страница</string>
</attribute>
</widget>
</widget>
<widget class="QLabel" name="lbHeaderSerialNumberValue">
<property name="geometry">
<rect>
<x>1130</x>
<y>50</y>
<width>121</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color:black;
font-weight:bold;</string>
</property>
<property name="text">
<string>0</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="lbHeaderConnectionName">
<property name="geometry">
<rect>
<x>990</x>
<y>20</y>
<width>131</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>12</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color:rgba(54, 70, 84, 0.6);</string>
</property>
<property name="text">
<string>Подключено</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="lbHeaderSerialNumberName">
<property name="geometry">
<rect>
<x>990</x>
<y>50</y>
<width>131</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>9</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color:rgba(54, 70, 84, 0.6);</string>
</property>
<property name="text">
<string>Серийный номер:</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="labHeaderSeparator">
<property name="geometry">
<rect>
<x>1250</x>
<y>10</y>
<width>16</width>
<height>61</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>38</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color: rgba(54, 70, 84, 0.4);</string>
</property>
<property name="text">
<string>|</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="lbHeaderLanguageIcon">
<property name="geometry">
<rect>
<x>1320</x>
<y>35</y>
<width>31</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color:#0A72BA;
font-weight:bold;</string>
</property>
<property name="text">
<string/>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="lbHeaderLanguageName">
<property name="geometry">
<rect>
<x>1270</x>
<y>20</y>
<width>41</width>
<height>51</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>12</pointsize>
<weight>75</weight>
<bold>true</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color:#0A72BA;
font-weight:bold;</string>
</property>
<property name="text">
<string>РУС</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="lbHeaderBmsVersion">
<property name="geometry">
<rect>
<x>1160</x>
<y>20</y>
<width>91</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>12</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true">color:rgba(54, 70, 84, 0.6);</string>
</property>
<property name="text">
<string>BMS v.2.1</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="lbHeaderConnectionIndicator">
<property name="geometry">
<rect>
<x>1130</x>
<y>20</y>
<width>21</width>
<height>21</height>
</rect>
</property>
<property name="font">
<font>
<family>Segoe WP SemiLight</family>
<pointsize>12</pointsize>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="styleSheet">
<string notr="true"> color: #009352;
background-color: #009352;
border-color:#009352;
border-width: 0px;
border-style: solid;
/* border-radius MUST BE width/2 and height/2 */
border-radius: 10px;
</string>
</property>
<property name="text">
<string>O</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
<widget class="QLabel" name="mStatusLabel">
<property name="geometry">
<rect>
<x>6</x>
<y>672</y>
<width>271</width>
<height>61</height>
</rect>
</property>
<property name="text">
<string>TEXT IN STATUS LABEL</string>
</property>
<property name="textFormat">
<enum>Qt::AutoText</enum>
</property>
<property name="scaledContents">
<bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
<widget class="CustomLeftTabBarButton" name="pbMainMenuBarSettingsExtra">
<property name="geometry">
<rect>
<x>0</x>
<y>570</y>
<width>281</width>
<height>51</height>
</rect>
</property>
<property name="text">
<string>Прочие настройки</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
<zorder>labLeftTabListBackground</zorder>
<zorder>pbMainMenuBarCellsMonitor</zorder>
<zorder>pbMainMenuBarExit</zorder>
<zorder>pbMainMenuBarSeriveOfBms</zorder>
<zorder>lbIconLogo</zorder>
<zorder>pbMainMenuBarVisualization</zorder>
<zorder>pbMainMenuBarHideMenu</zorder>
<zorder>pbMainMenuBarConfiguration</zorder>
<zorder>pbMainMenuBarHistory</zorder>
<zorder>pbMainMenuBarAkbMonitor</zorder>
<zorder>mStatusLabel</zorder>
<zorder>pbMainMenuBarSettingsExtra</zorder>
<zorder>tabWidgetPagesContent</zorder>
<zorder>lbHeaderLanguageIcon</zorder>
<zorder>labHeaderSeparator</zorder>
<zorder>lbHeaderConnectionIndicator</zorder>
<zorder>lbHeaderSerialNumberValue</zorder>
<zorder>lbHeaderSerialNumberName</zorder>
<zorder>lbHeaderLanguageName</zorder>
<zorder>lbHeaderBmsVersion</zorder>
<zorder>lbHeaderConnectionName</zorder>
</widget>
</widget>
<customwidgets>
<customwidget>
<class>CustomLeftTabBarButton</class>
<extends>QPushButton</extends>
<header location="global">customlefttabbarbutton.h</header>
</customwidget>
<customwidget>
<class>ConfigurationPage</class>
<extends>QWidget</extends>
<header location="global">configurationpage.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>CellsMonitorPage</class>
<extends>QWidget</extends>
<header location="global">cellsmonitorpage.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>AkbMonitorPage</class>
<extends>QWidget</extends>
<header location="global">akbmonitorpage.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>VisualizationPage</class>
<extends>QWidget</extends>
<header location="global">visualizationpage.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>BmsServicePage</class>
<extends>QWidget</extends>
<header location="global">bmsservicepage.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>ConnectAndEnterPage</class>
<extends>QWidget</extends>
<header location="global">connectandenterpage.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>DebugPrintPage</class>
<extends>QWidget</extends>
<header location="global">debugprintpage.h</header>
<container>1</container>
</customwidget>
<customwidget>
<class>SettingsExtraPage</class>
<extends>QWidget</extends>
<header location="global">settingsextrapage.h</header>
<container>1</container>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>