734 lines
17 KiB
XML
734 lines
17 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<ui version="4.0">
|
||
<class>ConnectAndEnterPage</class>
|
||
<widget class="QWidget" name="ConnectAndEnterPage">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>0</y>
|
||
<width>1366</width>
|
||
<height>738</height>
|
||
</rect>
|
||
</property>
|
||
<property name="windowTitle">
|
||
<string>Form</string>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">/*#ConnectAndEnterPage
|
||
{
|
||
background-color:#F7F8FC;
|
||
}
|
||
*/
|
||
|
||
QLabel { font-family:"Artifakt Element"; }
|
||
QPushButton { font-family:"Artifakt Element"; }
|
||
QComboBox { font-family:"Artifakt Element"; }
|
||
|
||
QLabel#lbIconLogo
|
||
{
|
||
/*background-image: url(:/images/cubo-verde-logo.png);*/
|
||
border-image: url(:/res/cubo-verde-logo-green.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#lbChooseComPort
|
||
{
|
||
font-weight: bold;
|
||
/*font-family: "DejaVu Sans";*/
|
||
}
|
||
|
||
/*
|
||
QComboBox#cboxComConnections
|
||
{
|
||
background-color:white;
|
||
border-radius:10px;
|
||
border-color: lightgrey;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
}
|
||
*/
|
||
|
||
</string>
|
||
</property>
|
||
<widget class="QGroupBox" name="gbWindow">
|
||
<property name="geometry">
|
||
<rect>
|
||
<x>0</x>
|
||
<y>10</y>
|
||
<width>637</width>
|
||
<height>433</height>
|
||
</rect>
|
||
</property>
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>637</width>
|
||
<height>433</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>637</width>
|
||
<height>433</height>
|
||
</size>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">QGroupBox#gbWindow
|
||
{
|
||
background-color:white;
|
||
border-radius:10px;
|
||
border-color: lightgrey;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
}
|
||
</string>
|
||
</property>
|
||
<property name="title">
|
||
<string/>
|
||
</property>
|
||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||
<property name="spacing">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="leftMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="topMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="rightMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<item>
|
||
<widget class="QGroupBox" name="gbHeader">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>71</height>
|
||
</size>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">QGroupBox#gbHeader
|
||
{
|
||
background-color:white;
|
||
border-top-left-radius:10px;
|
||
border-top-right-radius:10px;
|
||
border-bottom-left-radius:0px;
|
||
border-bottom-right-radius:0px;
|
||
border-color: lightgrey;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
margin-left: -1px;
|
||
margin-right: -1px;
|
||
margin-top: -1px;
|
||
}
|
||
|
||
</string>
|
||
</property>
|
||
<property name="title">
|
||
<string/>
|
||
</property>
|
||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||
<item>
|
||
<spacer name="horizontalSpacer">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeType">
|
||
<enum>QSizePolicy::Fixed</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>140</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="lbIconLogo">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>50</width>
|
||
<height>50</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>50</width>
|
||
<height>50</height>
|
||
</size>
|
||
</property>
|
||
<property name="contextMenuPolicy">
|
||
<enum>Qt::NoContextMenu</enum>
|
||
</property>
|
||
<property name="frameShape">
|
||
<enum>QFrame::NoFrame</enum>
|
||
</property>
|
||
<property name="frameShadow">
|
||
<enum>QFrame::Plain</enum>
|
||
</property>
|
||
<property name="midLineWidth">
|
||
<number>0</number>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="pixmap">
|
||
<pixmap resource="res.qrc">:/res/cubo-verde-logo-green.png</pixmap>
|
||
</property>
|
||
<property name="scaledContents">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<spacer name="horizontalSpacer_2">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeType">
|
||
<enum>QSizePolicy::Fixed</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>215</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
<item>
|
||
<widget class="LanguageSelectorButton" name="pbLanguage">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>50</width>
|
||
<height>0</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Artifakt Element</family>
|
||
<pointsize>-1</pointsize>
|
||
<weight>75</weight>
|
||
<bold>true</bold>
|
||
</font>
|
||
</property>
|
||
<property name="layoutDirection">
|
||
<enum>Qt::RightToLeft</enum>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">
|
||
|
||
color:#0A72BA;
|
||
background-color:#ffffff;
|
||
border-color: #ffffff;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
border-radius: 7px;
|
||
font-weight:bold;
|
||
font-size: 16px;
|
||
/* font-family: "Times New Roman";*/
|
||
/*font-family: "Artifakt Element";*/
|
||
qproperty-icon: url(:/res/language-russ.png) 0 0 0 0 stretch stretch;
|
||
|
||
</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>Рус</string>
|
||
</property>
|
||
<property name="iconSize">
|
||
<size>
|
||
<width>32</width>
|
||
<height>27</height>
|
||
</size>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<spacer name="horizontalSpacer_3">
|
||
<property name="orientation">
|
||
<enum>Qt::Horizontal</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>40</width>
|
||
<height>20</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<layout class="QVBoxLayout" name="verticalLayout">
|
||
<property name="spacing">
|
||
<number>12</number>
|
||
</property>
|
||
<property name="leftMargin">
|
||
<number>150</number>
|
||
</property>
|
||
<property name="rightMargin">
|
||
<number>150</number>
|
||
</property>
|
||
<property name="bottomMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<item>
|
||
<widget class="QLabel" name="label">
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="lbChooseComPort">
|
||
<property name="font">
|
||
<font>
|
||
<family>Artifakt Element</family>
|
||
<pointsize>24</pointsize>
|
||
<weight>75</weight>
|
||
<bold>true</bold>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string>Выберите COM-порт</string>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||
<property name="topMargin">
|
||
<number>0</number>
|
||
</property>
|
||
<item>
|
||
<widget class="HoverableComboBox" name="cboxSerialPort">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>0</width>
|
||
<height>61</height>
|
||
</size>
|
||
</property>
|
||
<property name="font">
|
||
<font>
|
||
<family>Artifakt Element</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">
|
||
/*QComboBox QAbstractItemView::item
|
||
{
|
||
min-height: 50px;
|
||
}
|
||
*/
|
||
|
||
QListView::item
|
||
{
|
||
color:black;
|
||
height:50px;
|
||
padding-left:15px;
|
||
font-size:16px;
|
||
}
|
||
|
||
/*
|
||
QListView
|
||
{
|
||
color:black;
|
||
height:50px;
|
||
padding-left:15px;
|
||
font-size:16px;
|
||
}
|
||
*/
|
||
QComboBox {
|
||
color:black;
|
||
border: 1px solid lightgray;
|
||
border-radius: 7px;
|
||
padding-left:15px;
|
||
/*padding: 1px 18px 1px 3px;*/
|
||
}
|
||
/*
|
||
QComboBox {
|
||
color:gray;
|
||
border: 1px solid lightgray;
|
||
border-radius: 7px;
|
||
padding: 1px 18px 1px 3px;
|
||
min-width: 6em;
|
||
}
|
||
|
||
QComboBox:editable {
|
||
background: white;
|
||
}
|
||
*/
|
||
|
||
|
||
/*not opened*/
|
||
/*QComboBox:!editable, QComboBox::drop-down:editable {
|
||
background: white;
|
||
padding-left: 15px;
|
||
}
|
||
*/
|
||
|
||
/* QComboBox gets the "on" state when the popup is open */
|
||
/*QComboBox:!editable:on, QComboBox::drop-down:editable:on {
|
||
background: #CCE9DC;
|
||
padding-left: 15px;
|
||
}
|
||
*/
|
||
|
||
/* shift the text when the popup opens */
|
||
/*QComboBox:on {
|
||
padding-top: 3px;
|
||
padding-left: 15px;
|
||
}
|
||
*/
|
||
|
||
/* QComboBox gets the "on" state when the popup is open */
|
||
QComboBox:!editable:on, QComboBox::drop-down:editable:on {
|
||
background: #CCE9DC;
|
||
padding-left: 15px;
|
||
}
|
||
|
||
/* shift the text when the popup opens */
|
||
/*QComboBox:on {
|
||
padding-top: 3px;
|
||
padding-left: 15px;
|
||
}
|
||
*/
|
||
|
||
|
||
/*area around the /* V */
|
||
QComboBox::drop-down {
|
||
subcontrol-origin: padding;
|
||
subcontrol-position: top right;
|
||
width: 50px;
|
||
|
||
/*background: red;*/
|
||
|
||
/*border-left-width: 1px;
|
||
border-left-color: darkgray;
|
||
border-left-style: solid; /* just a single line */
|
||
border-top-right-radius: 3px; /* same radius as the QComboBox */
|
||
border-bottom-right-radius: 3px;
|
||
/*padding-right: 10px; /* V */
|
||
}
|
||
|
||
|
||
QComboBox QAbstractItemView {
|
||
/*no mouse over text*/
|
||
color: black;
|
||
/*no mouse over white*/
|
||
background-color: white;
|
||
/*mouse over text*/
|
||
selection-color: black;
|
||
/*mouse over blue*/
|
||
selection-background-color: #F0F1F4; /* blue */
|
||
/*selection-background-color: #FFF1F4; /* red */
|
||
|
||
}
|
||
|
||
QComboBox QAbstractItemView:pressed {
|
||
/*no mouse over text green*/
|
||
color: #CCE9DC;
|
||
}
|
||
|
||
|
||
QComboBox::item:pressed {
|
||
/*pressed element text green*/
|
||
color: #CCE9DC;
|
||
}
|
||
|
||
|
||
|
||
/*----------------------------------------*/
|
||
|
||
|
||
/*area around the /* V */
|
||
QComboBox::drop-down {
|
||
subcontrol-origin: padding;
|
||
subcontrol-position: top right;
|
||
width: 50px;
|
||
|
||
/*background: red;*/
|
||
|
||
/*border-left-width: 1px;
|
||
border-left-color: darkgray;
|
||
border-left-style: solid; /* just a single line */
|
||
border-top-right-radius: 3px; /* same radius as the QComboBox */
|
||
border-bottom-right-radius: 3px;
|
||
/*padding-right: 10px; /* V */
|
||
}
|
||
|
||
|
||
QComboBox::down-arrow {
|
||
image: url(:/res/cbox-arrow-down-black.png);
|
||
}
|
||
QComboBox::down-arrow:on { /*QComboBox::up-arrow {*/
|
||
image: url(:/res/cbox-arrow-up-green.png);
|
||
}
|
||
|
||
/* shift the arrow when popup is open */
|
||
/*QComboBox::down-arrow:on {
|
||
top: 1px;
|
||
left: 1px;
|
||
}
|
||
*/
|
||
|
||
/*
|
||
QComboBox QAbstractItemView {
|
||
/* color: black; /*rgb(85, 170, 255);*/
|
||
/* background-color: white; /* #373e4e;*/
|
||
/* padding: 10px;
|
||
selection-background-color: #CCE9DC; /*rgb(39, 44, 54);*/
|
||
|
||
/*selected green
|
||
background: #CCE9DC;
|
||
mouse over blue
|
||
background: #F0F1F4;
|
||
*/
|
||
/*}
|
||
|
||
/*
|
||
QGroupBox#gbSerialNumberLocal,
|
||
#gbBatteryModulesCellsAkbBmsParameters,
|
||
#gbCellMinMaxVoltageNumberAmperageParameters
|
||
{
|
||
background-color:white;
|
||
border-radius:10px;
|
||
border-color: lightgrey;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
}
|
||
*/
|
||
</string>
|
||
</property>
|
||
<property name="currentText">
|
||
<string/>
|
||
</property>
|
||
<property name="currentIndex">
|
||
<number>-1</number>
|
||
</property>
|
||
<property name="maxVisibleItems">
|
||
<number>4</number>
|
||
</property>
|
||
<property name="modelColumn">
|
||
<number>0</number>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="pbSerialRefresh">
|
||
<property name="sizePolicy">
|
||
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
|
||
<horstretch>0</horstretch>
|
||
<verstretch>0</verstretch>
|
||
</sizepolicy>
|
||
</property>
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>61</width>
|
||
<height>61</height>
|
||
</size>
|
||
</property>
|
||
<property name="maximumSize">
|
||
<size>
|
||
<width>61</width>
|
||
<height>61</height>
|
||
</size>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">
|
||
QPushButton#pbSerialRefresh
|
||
{
|
||
color:white;
|
||
background-color:#FFFFFF;
|
||
font-weight:bold;
|
||
font-size: 14px;
|
||
border-color: #009352;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
border-radius: 7px;
|
||
padding:15px;
|
||
image: url(:/res/icons/Restart-97-Black.png) 0 0 0 0 stretch stretch;
|
||
}
|
||
QPushButton#pbSerialRefresh:hover:pressed
|
||
{
|
||
background-color:#009352;
|
||
border-color: #009352;
|
||
image: url(:/res/icons/Restart-97-White.png) 0 0 0 0 stretch stretch;
|
||
}
|
||
|
||
/*
|
||
QPushButton#pbSerialRefresh:checked
|
||
{
|
||
background-color:#009352;
|
||
border-color: #009352;
|
||
image: url(:/res/icons/Restart-97-White.png) 0 0 0 0 stretch stretch;
|
||
}
|
||
*/
|
||
|
||
/*background-color:#01673a;*/
|
||
/*QPushButton#pbSerialRefresh:hover:pressed
|
||
{
|
||
background-color:lightgrey;
|
||
}
|
||
*/
|
||
|
||
</string>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="checkable">
|
||
<bool>true</bool>
|
||
</property>
|
||
<property name="checked">
|
||
<bool>false</bool>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="pbConnect">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>281</width>
|
||
<height>61</height>
|
||
</size>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">QPushButton#pbConnect
|
||
{
|
||
color:white;
|
||
background-color:#009352;
|
||
border-color: #009352;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
border-radius: 7px;
|
||
font-weight:bold;
|
||
font-size: 16px;
|
||
/* font-family: "Times New Roman";*/
|
||
font-family: "Artifakt Element";
|
||
}
|
||
|
||
QPushButton#pbConnect:hover:pressed
|
||
{
|
||
background-color:#01673a;
|
||
}
|
||
</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>Подключиться</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QPushButton" name="pbExit">
|
||
<property name="minimumSize">
|
||
<size>
|
||
<width>281</width>
|
||
<height>61</height>
|
||
</size>
|
||
</property>
|
||
<property name="styleSheet">
|
||
<string notr="true">QPushButton#pbExit
|
||
{
|
||
color:#000000;
|
||
background-color:#FFFFFF;
|
||
font-weight:bold;
|
||
font-size: 16px;
|
||
border-color: #009352;
|
||
border-style: solid;
|
||
border-width: 1px;
|
||
border-radius: 7px;
|
||
}
|
||
|
||
QPushButton#pbExit:hover:pressed
|
||
{
|
||
/*background-color:#01673a;*/
|
||
background-color:lightgrey;
|
||
}
|
||
|
||
</string>
|
||
</property>
|
||
<property name="text">
|
||
<string>Закрыть</string>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<widget class="QLabel" name="lbStatus">
|
||
<property name="font">
|
||
<font>
|
||
<family>Artifakt Element</family>
|
||
<pointsize>16</pointsize>
|
||
</font>
|
||
</property>
|
||
<property name="text">
|
||
<string/>
|
||
</property>
|
||
<property name="alignment">
|
||
<set>Qt::AlignCenter</set>
|
||
</property>
|
||
</widget>
|
||
</item>
|
||
<item>
|
||
<spacer name="verticalSpacer_2">
|
||
<property name="orientation">
|
||
<enum>Qt::Vertical</enum>
|
||
</property>
|
||
<property name="sizeHint" stdset="0">
|
||
<size>
|
||
<width>20</width>
|
||
<height>40</height>
|
||
</size>
|
||
</property>
|
||
</spacer>
|
||
</item>
|
||
</layout>
|
||
</item>
|
||
</layout>
|
||
</widget>
|
||
</widget>
|
||
<customwidgets>
|
||
<customwidget>
|
||
<class>HoverableComboBox</class>
|
||
<extends>QComboBox</extends>
|
||
<header location="global">hoverablecombobox.h</header>
|
||
</customwidget>
|
||
<customwidget>
|
||
<class>LanguageSelectorButton</class>
|
||
<extends>QPushButton</extends>
|
||
<header location="global">languageselectorbutton.h</header>
|
||
</customwidget>
|
||
</customwidgets>
|
||
<resources>
|
||
<include location="res.qrc"/>
|
||
</resources>
|
||
<connections/>
|
||
</ui>
|