/
MaximU
/
application
Обзор
Документация
Войти
/
MaximU
/
application
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
mainwindow.ui
986 строк
28 KB
user
Рефакторинг отображения прогресса задачи.
23 дек 2025, 19:29
23 дек 2025, 19:29
01db4ac
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindowClass</class> <widget class="QMainWindow" name="MainWindowClass"> <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> <property name="windowIcon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/radar.png</normaloff>:/MainWindow/resources/radar.png</iconset> </property> <widget class="QWidget" name="centralWidget"> <layout class="QVBoxLayout" name="verticalLayout_2"> <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="QFrame" name="frameClock"> <property name="frameShape"> <enum>QFrame::StyledPanel</enum> </property> <property name="frameShadow"> <enum>QFrame::Raised</enum> </property> <layout class="QHBoxLayout" name="_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> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QLabel" name="labelDate"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>255</green> <blue>255</blue> </color> </brush> </colorrole> <colorrole role="Window"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>0</red> <green>0</green> <blue>0</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>255</green> <blue>255</blue> </color> </brush> </colorrole> <colorrole role="Window"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>0</red> <green>0</green> <blue>0</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>255</green> <blue>255</blue> </color> </brush> </colorrole> <colorrole role="Window"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>0</red> <green>0</green> <blue>0</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <pointsize>7</pointsize> </font> </property> <property name="autoFillBackground"> <bool>true</bool> </property> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> <property name="text"> <string>Дата</string> </property> <property name="alignment"> <set>Qt::AlignRight|Qt::AlignTop|Qt::AlignTrailing</set> </property> <property name="margin"> <number>2</number> </property> </widget> </item> <item> <widget class="QLabel" name="labelTime"> <property name="palette"> <palette> <active> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>255</green> <blue>255</blue> </color> </brush> </colorrole> <colorrole role="Window"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>0</red> <green>0</green> <blue>0</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>255</green> <blue>255</blue> </color> </brush> </colorrole> <colorrole role="Window"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>0</red> <green>0</green> <blue>0</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="WindowText"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>255</red> <green>255</green> <blue>255</blue> </color> </brush> </colorrole> <colorrole role="Window"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>0</red> <green>0</green> <blue>0</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="font"> <font> <weight>75</weight> <bold>true</bold> </font> </property> <property name="layoutDirection"> <enum>Qt::LeftToRight</enum> </property> <property name="autoFillBackground"> <bool>true</bool> </property> <property name="frameShape"> <enum>QFrame::NoFrame</enum> </property> <property name="text"> <string>Время</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> <property name="margin"> <number>2</number> </property> </widget> </item> </layout> </widget> </item> <item> <widget class="QLabel" name="labelWork"> <property name="text"> <string/> </property> <property name="pixmap"> <pixmap resource="mainwindow.qrc">:/MainWindow/resources/gear.png</pixmap> </property> </widget> </item> <item> <widget class="QToolButton" name="toolbuttonToggleEmbedded"> <property name="toolTip"> <string>Встроить/Вынести окно</string> </property> <property name="text"> <string>...</string> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/toggleEmbedded.png</normaloff>:/MainWindow/resources/toggleEmbedded.png</iconset> </property> <property name="autoRaise"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QTabWidget" name="tabWidget"> <property name="currentIndex"> <number>-1</number> </property> </widget> </item> </layout> </widget> <widget class="QToolBar" name="mainToolBar"> <property name="contextMenuPolicy"> <enum>Qt::PreventContextMenu</enum> </property> <property name="movable"> <bool>false</bool> </property> <property name="allowedAreas"> <set>Qt::TopToolBarArea</set> </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="actionSettings"/> <addaction name="actionHistory"/> <addaction name="actionConnections"/> </widget> <widget class="QToolBar" name="toolbarReplay"> <property name="movable"> <bool>false</bool> </property> <property name="toolButtonStyle"> <enum>Qt::ToolButtonTextBesideIcon</enum> </property> <attribute name="toolBarArea"> <enum>TopToolBarArea</enum> </attribute> <attribute name="toolBarBreak"> <bool>false</bool> </attribute> </widget> <widget class="QStatusBar" name="statusBar"/> <widget class="QDockWidget" name="dockwidgetHistory"> <property name="features"> <set>QDockWidget::DockWidgetFeatureMask</set> </property> <property name="allowedAreas"> <set>Qt::BottomDockWidgetArea|Qt::TopDockWidgetArea</set> </property> <property name="windowTitle"> <string>История</string> </property> <attribute name="dockWidgetArea"> <number>8</number> </attribute> <widget class="QWidget" name="dockWidgetContents_2"> <layout class="QHBoxLayout" name="horizontalLayout_2"> <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="QTextEdit" name="texteditLog"> <property name="font"> <font> <family>Courier New</family> <pointsize>8</pointsize> <weight>50</weight> <italic>false</italic> <bold>false</bold> <underline>false</underline> <strikeout>false</strikeout> </font> </property> <property name="lineWrapMode"> <enum>QTextEdit::NoWrap</enum> </property> <property name="readOnly"> <bool>true</bool> </property> <property name="tabStopDistance"> <double>25.000000000000000</double> </property> </widget> </item> </layout> </widget> </widget> <widget class="QDockWidget" name="dockwidgetConnections"> <property name="features"> <set>QDockWidget::DockWidgetFeatureMask</set> </property> <property name="allowedAreas"> <set>Qt::BottomDockWidgetArea|Qt::TopDockWidgetArea</set> </property> <property name="windowTitle"> <string>Соединения</string> </property> <attribute name="dockWidgetArea"> <number>8</number> </attribute> <widget class="QWidget" name="dockWidgetContents_3"> <layout class="QHBoxLayout" name="horizontalLayout"> <property name="spacing"> <number>6</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>0</number> </property> <item> <widget class="QTableWidget" name="tablewidgetConnections"> <property name="editTriggers"> <set>QAbstractItemView::NoEditTriggers</set> </property> <attribute name="verticalHeaderDefaultSectionSize"> <number>29</number> </attribute> <column> <property name="text"> <string>Имя</string> </property> </column> <column> <property name="text"> <string>Состояние</string> </property> </column> <column> <property name="text"> <string>Порт</string> </property> </column> <column> <property name="text"> <string>Адрес</string> </property> </column> <column> <property name="text"> <string>Соединение</string> </property> </column> <column> <property name="text"> <string>Разрыв</string> </property> </column> <column> <property name="text"> <string>Прием</string> </property> </column> <column> <property name="text"> <string>Выдача</string> </property> </column> </widget> </item> </layout> </widget> </widget> <widget class="QDockWidget" name="dockwidgetSettings"> <property name="allowedAreas"> <set>Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea</set> </property> <property name="windowTitle"> <string>Настройки</string> </property> <attribute name="dockWidgetArea"> <number>1</number> </attribute> <widget class="QWidget" name="dockWidgetContents_1"> <layout class="QVBoxLayout" name="verticalLayout"> <property name="spacing"> <number>2</number> </property> <property name="leftMargin"> <number>2</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>2</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <layout class="QHBoxLayout" name="horizontalLayout_3"> <property name="spacing"> <number>0</number> </property> <item> <widget class="QToolButton" name="toolbuttonApplyChange"> <property name="enabled"> <bool>false</bool> </property> <property name="toolTip"> <string>Применить изменения</string> </property> <property name="text"> <string>...</string> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/applyChange.png</normaloff>:/MainWindow/resources/applyChange.png</iconset> </property> </widget> </item> <item> <widget class="QToolButton" name="toolbuttonCancelChange"> <property name="enabled"> <bool>false</bool> </property> <property name="toolTip"> <string>Отменить изменения</string> </property> <property name="text"> <string>...</string> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/cancelChange.png</normaloff>:/MainWindow/resources/cancelChange.png</iconset> </property> </widget> </item> <item> <widget class="QToolButton" name="toolbuttonOptions"> <property name="maximumSize"> <size> <width>12</width> <height>16777215</height> </size> </property> <property name="text"> <string/> </property> <property name="popupMode"> <enum>QToolButton::InstantPopup</enum> </property> <property name="arrowType"> <enum>Qt::NoArrow</enum> </property> </widget> </item> <item> <widget class="Line" name="line"> <property name="orientation"> <enum>Qt::Vertical</enum> </property> </widget> </item> <item> <widget class="QToolButton" name="toolbuttonWork"> <property name="toolTip"> <string>Выполнять обработку</string> </property> <property name="text"> <string>...</string> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/gear.png</normaloff>:/MainWindow/resources/gear.png</iconset> </property> <property name="checkable"> <bool>true</bool> </property> </widget> </item> <item> <widget class="QToolButton" name="toolbuttonDelete"> <property name="toolTip"> <string>Удалить данные</string> </property> <property name="text"> <string>...</string> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/clear.png</normaloff>:/MainWindow/resources/clear.png</iconset> </property> </widget> </item> <item> <spacer name="horizontalSpacer"> <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> </item> <item> <widget class="QtTreePropertyBrowser" name="treePropertyBrowser" native="true"/> </item> <item> <widget class="QTextEdit" name="texteditPropertyDescription"> <property name="minimumSize"> <size> <width>0</width> <height>75</height> </size> </property> <property name="maximumSize"> <size> <width>16777215</width> <height>75</height> </size> </property> <property name="palette"> <palette> <active> <colorrole role="Base"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>236</red> <green>233</green> <blue>216</blue> </color> </brush> </colorrole> </active> <inactive> <colorrole role="Base"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>236</red> <green>233</green> <blue>216</blue> </color> </brush> </colorrole> </inactive> <disabled> <colorrole role="Base"> <brush brushstyle="SolidPattern"> <color alpha="255"> <red>236</red> <green>233</green> <blue>216</blue> </color> </brush> </colorrole> </disabled> </palette> </property> <property name="readOnly"> <bool>true</bool> </property> </widget> </item> </layout> </widget> </widget> <widget class="QDockWidget" name="dockwidgetProfiler"> <property name="allowedAreas"> <set>Qt::LeftDockWidgetArea|Qt::RightDockWidgetArea</set> </property> <property name="windowTitle"> <string>Профайлер</string> </property> <attribute name="dockWidgetArea"> <number>2</number> </attribute> <widget class="QWidget" name="dockWidgetContents"> <layout class="QVBoxLayout" name="verticalLayout_3"> <property name="spacing"> <number>2</number> </property> <property name="leftMargin"> <number>2</number> </property> <property name="topMargin"> <number>0</number> </property> <property name="rightMargin"> <number>2</number> </property> <property name="bottomMargin"> <number>0</number> </property> <item> <widget class="QTableWidget" name="tablewidgetProfiler"> <property name="editTriggers"> <set>QAbstractItemView::NoEditTriggers</set> </property> <attribute name="horizontalHeaderDefaultSectionSize"> <number>120</number> </attribute> <attribute name="verticalHeaderDefaultSectionSize"> <number>29</number> </attribute> <column> <property name="text"> <string>Поле</string> </property> </column> <column> <property name="text"> <string>Значение</string> </property> </column> </widget> </item> </layout> </widget> </widget> <action name="actionHistory"> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>true</bool> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/history.png</normaloff>:/MainWindow/resources/history.png</iconset> </property> <property name="text"> <string>История</string> </property> <property name="font"> <font> <family>Tahoma</family> </font> </property> <property name="autoRepeat"> <bool>false</bool> </property> </action> <action name="actionConnections"> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>true</bool> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/connections.png</normaloff>:/MainWindow/resources/connections.png</iconset> </property> <property name="text"> <string>Соединения</string> </property> <property name="font"> <font> <family>Tahoma</family> </font> </property> <property name="autoRepeat"> <bool>false</bool> </property> </action> <action name="actionSettings"> <property name="checkable"> <bool>true</bool> </property> <property name="checked"> <bool>true</bool> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/settings.png</normaloff>:/MainWindow/resources/settings.png</iconset> </property> <property name="text"> <string>Настройки</string> </property> <property name="font"> <font> <family>Tahoma</family> </font> </property> <property name="autoRepeat"> <bool>false</bool> </property> </action> <action name="actionReplay"> <property name="checkable"> <bool>true</bool> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/disk_blue.png</normaloff>:/MainWindow/resources/disk_blue.png</iconset> </property> <property name="text"> <string>Запись/Воспроизведение</string> </property> <property name="toolTip"> <string>Запись/Воспроизведение</string> </property> <property name="shortcut"> <string>Ctrl+R</string> </property> <property name="shortcutContext"> <enum>Qt::ApplicationShortcut</enum> </property> <property name="autoRepeat"> <bool>false</bool> </property> </action> <action name="actionProfiler"> <property name="text"> <string>Профайлер</string> </property> <property name="shortcut"> <string>Ctrl+P</string> </property> <property name="shortcutContext"> <enum>Qt::ApplicationShortcut</enum> </property> </action> <action name="actionRestoreDefaults"> <property name="text"> <string>Сброс к исходным значениям</string> </property> </action> <action name="actionSavePropertiesValues"> <property name="text"> <string>Сохранить значения</string> </property> <property name="toolTip"> <string>Cохранить текущие значения настроек</string> </property> </action> <action name="actionDelete"> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/clear.png</normaloff>:/MainWindow/resources/clear.png</iconset> </property> <property name="text"> <string>Удалить данные</string> </property> <property name="toolTip"> <string>Удалить данные</string> </property> <property name="shortcut"> <string>Ctrl+D</string> </property> <property name="shortcutContext"> <enum>Qt::ApplicationShortcut</enum> </property> </action> <action name="actionWork"> <property name="checkable"> <bool>true</bool> </property> <property name="icon"> <iconset resource="mainwindow.qrc"> <normaloff>:/MainWindow/resources/gear.png</normaloff>:/MainWindow/resources/gear.png</iconset> </property> <property name="text"> <string>Выполнять обработку</string> </property> <property name="toolTip"> <string>Выполнять обработку</string> </property> <property name="shortcut"> <string>Ctrl+W</string> </property> <property name="shortcutContext"> <enum>Qt::ApplicationShortcut</enum> </property> </action> <action name="actionVersion"> <property name="text"> <string>Версия программы</string> </property> <property name="toolTip"> <string>Версия программы</string> </property> <property name="shortcut"> <string>Ctrl+V</string> </property> </action> </widget> <layoutdefault spacing="6" margin="11"/> <customwidgets> <customwidget> <class>QtTreePropertyBrowser</class> <extends>QWidget</extends> <header>qttreepropertybrowser.h</header> <container>1</container> </customwidget> </customwidgets> <resources> <include location="mainwindow.qrc"/> </resources> <connections> <connection> <sender>actionSettings</sender> <signal>triggered(bool)</signal> <receiver>dockwidgetSettings</receiver> <slot>setVisible(bool)</slot> <hints> <hint type="sourcelabel"> <x>-1</x> <y>-1</y> </hint> <hint type="destinationlabel"> <x>127</x> <y>228</y> </hint> </hints> </connection> <connection> <sender>actionHistory</sender> <signal>triggered(bool)</signal> <receiver>dockwidgetHistory</receiver> <slot>setVisible(bool)</slot> <hints> <hint type="sourcelabel"> <x>-1</x> <y>-1</y> </hint> <hint type="destinationlabel"> <x>198</x> <y>484</y> </hint> </hints> </connection> <connection> <sender>actionConnections</sender> <signal>triggered(bool)</signal> <receiver>dockwidgetConnections</receiver> <slot>setVisible(bool)</slot> <hints> <hint type="sourcelabel"> <x>-1</x> <y>-1</y> </hint> <hint type="destinationlabel"> <x>600</x> <y>484</y> </hint> </hints> </connection> <connection> <sender>dockwidgetSettings</sender> <signal>visibilityChanged(bool)</signal> <receiver>actionSettings</receiver> <slot>setChecked(bool)</slot> <hints> <hint type="sourcelabel"> <x>127</x> <y>228</y> </hint> <hint type="destinationlabel"> <x>-1</x> <y>-1</y> </hint> </hints> </connection> <connection> <sender>dockwidgetHistory</sender> <signal>visibilityChanged(bool)</signal> <receiver>actionHistory</receiver> <slot>setChecked(bool)</slot> <hints> <hint type="sourcelabel"> <x>198</x> <y>484</y> </hint> <hint type="destinationlabel"> <x>-1</x> <y>-1</y> </hint> </hints> </connection> <connection> <sender>dockwidgetConnections</sender> <signal>visibilityChanged(bool)</signal> <receiver>actionConnections</receiver> <slot>setChecked(bool)</slot> <hints> <hint type="sourcelabel"> <x>600</x> <y>484</y> </hint> <hint type="destinationlabel"> <x>-1</x> <y>-1</y> </hint> </hints> </connection> </connections> </ui>