/
waterstone
/
file_processor
Обзор
Документация
Войти
/
waterstone
/
file_processor
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/main_view.ui
500 строк
15 KB
Peter Sakhno
Initial commit
19 янв 2026, 11:08
19 янв 2026, 11:08
1ffa16c
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainView</class> <widget class="QWidget" name="MainView"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>705</width> <height>399</height> </rect> </property> <layout class="QVBoxLayout" name="mainViewLayout" stretch="0,1"> <item> <layout class="QHBoxLayout" name="topLayout" stretch="1,0,1"> <item> <widget class="QGroupBox" name="groupInputSettings"> <property name="title"> <string>Input settings</string> </property> <layout class="QVBoxLayout" name="groupInputSettingsLayout" stretch="0,0,0,1"> <property name="spacing"> <number>9</number> </property> <item> <layout class="QGridLayout" name="inputPathLayout"> <item row="1" column="0"> <widget class="QLineEdit" name="editInputPath"/> </item> <item row="0" column="0" colspan="2"> <widget class="QLabel" name="labelInputPath"> <property name="text"> <string>Input path:</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QToolButton" name="buttonSelectInputPath"> <property name="text"> <string>...</string> </property> </widget> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="inputFileMaskLayout"> <item> <widget class="QLabel" name="labelInputFileMask"> <property name="text"> <string>Input file mask (comma separated):</string> </property> </widget> </item> <item> <widget class="QLineEdit" name="editInputFileMask"/> </item> </layout> </item> <item> <widget class="QCheckBox" name="checkDeleteInputFiles"> <property name="text"> <string>Delete processed input files</string> </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>0</height> </size> </property> </spacer> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupProcessingSettings"> <property name="title"> <string>Processing settings</string> </property> <layout class="QVBoxLayout" name="groupProcessingSettingsLayout" stretch="0,0,1"> <property name="spacing"> <number>9</number> </property> <item> <layout class="QGridLayout" name="dataProcessingKeyLayout"> <item row="0" column="0"> <widget class="QLabel" name="labelDataProcessingKey"> <property name="text"> <string>Key:</string> </property> </widget> </item> <item row="1" column="0"> <widget class="QLineEdit" name="editDataProcessingKey"> <property name="inputMask"> <string>>HH HH HH HH HH HH HH HH;-</string> </property> </widget> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="processingModeLayout"> <item> <widget class="QComboBox" name="selectProcessingMode"> <item> <property name="text"> <string>Process files manualy</string> </property> </item> <item> <property name="text"> <string>Process files automaticaly</string> </property> </item> </widget> </item> <item> <widget class="QStackedWidget" name="stackProcessingMode"> <property name="currentIndex"> <number>1</number> </property> <widget class="QWidget" name="pageProcessManually"> <layout class="QVBoxLayout" name="verticalLayout"> <property name="topMargin"> <number>0</number> </property> <item> <widget class="QPushButton" name="buttonProcessFiles"> <property name="text"> <string>Process files</string> </property> </widget> </item> </layout> </widget> <widget class="QWidget" name="pageProcessAutomatically"> <layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,1"> <property name="topMargin"> <number>0</number> </property> <item> <widget class="QStackedWidget" name="stackedTimeButton"> <widget class="QWidget" name="pageStartTimerButton"> <layout class="QHBoxLayout" name="pageStartTimerButtonLayout"> <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="QPushButton" name="buttonProcessAndStartTimer"> <property name="text"> <string>Process && Start timer</string> </property> </widget> </item> </layout> </widget> <widget class="QWidget" name="pageStopTimer"> <layout class="QHBoxLayout" name="pageStopTimerLayout"> <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="QPushButton" name="buttonStopTimer"> <property name="text"> <string>Stop timer</string> </property> </widget> </item> </layout> </widget> </widget> </item> <item> <widget class="QSpinBox" name="editTimerPeriod"> <property name="buttonSymbols"> <enum>QAbstractSpinBox::ButtonSymbols::NoButtons</enum> </property> <property name="suffix"> <string> sec</string> </property> <property name="minimum"> <number>1</number> </property> <property name="maximum"> <number>9999</number> </property> </widget> </item> </layout> </widget> </widget> </item> </layout> </item> <item> <spacer name="verticalSpacer_2"> <property name="orientation"> <enum>Qt::Orientation::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>0</height> </size> </property> </spacer> </item> </layout> </widget> </item> <item> <widget class="QGroupBox" name="groupOutputSettings"> <property name="title"> <string>Output settings</string> </property> <layout class="QVBoxLayout" name="groupOutputSettingsLayout" stretch="0,0,0,1"> <property name="spacing"> <number>9</number> </property> <item> <layout class="QGridLayout" name="outputPathLayout"> <item row="1" column="0"> <widget class="QLineEdit" name="editOutputPath"/> </item> <item row="0" column="0" colspan="2"> <widget class="QLabel" name="labelOutputDataPath"> <property name="text"> <string>Output path:</string> </property> </widget> </item> <item row="1" column="1"> <widget class="QToolButton" name="buttonSelectOutputPath"> <property name="text"> <string>...</string> </property> </widget> </item> </layout> </item> <item> <layout class="QVBoxLayout" name="existingOutputFileNameLayout"> <item> <widget class="QLabel" name="labelExistingOutputFileName"> <property name="text"> <string>If output file with the same name exists:</string> </property> </widget> </item> <item> <widget class="QComboBox" name="selectExistinOutputMode"> <item> <property name="text"> <string>Overwrite</string> </property> </item> <item> <property name="text"> <string>Add counter to the name</string> </property> </item> <item> <property name="text"> <string>Abort file processing</string> </property> </item> <item> <property name="text"> <string>Ask</string> </property> </item> </widget> </item> </layout> </item> <item> <spacer name="verticalSpacer_4"> <property name="orientation"> <enum>Qt::Orientation::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>0</height> </size> </property> </spacer> </item> <item> <spacer name="verticalSpacer_3"> <property name="orientation"> <enum>Qt::Orientation::Vertical</enum> </property> <property name="sizeHint" stdset="0"> <size> <width>20</width> <height>0</height> </size> </property> </spacer> </item> </layout> </widget> </item> </layout> </item> <item> <widget class="QTableView" name="tableView"> <property name="editTriggers"> <set>QAbstractItemView::EditTrigger::NoEditTriggers</set> </property> <property name="selectionMode"> <enum>QAbstractItemView::SelectionMode::NoSelection</enum> </property> <property name="selectionBehavior"> <enum>QAbstractItemView::SelectionBehavior::SelectRows</enum> </property> <property name="textElideMode"> <enum>Qt::TextElideMode::ElideNone</enum> </property> <property name="verticalScrollMode"> <enum>QAbstractItemView::ScrollMode::ScrollPerPixel</enum> </property> <property name="horizontalScrollMode"> <enum>QAbstractItemView::ScrollMode::ScrollPerPixel</enum> </property> <attribute name="horizontalHeaderHighlightSections"> <bool>false</bool> </attribute> <attribute name="horizontalHeaderStretchLastSection"> <bool>true</bool> </attribute> <attribute name="verticalHeaderVisible"> <bool>false</bool> </attribute> <attribute name="verticalHeaderHighlightSections"> <bool>false</bool> </attribute> </widget> </item> </layout> </widget> <resources/> <connections> <connection> <sender>buttonSelectInputPath</sender> <signal>clicked()</signal> <receiver>MainView</receiver> <slot>OnSelectInputPath()</slot> <hints> <hint type="sourcelabel"> <x>244</x> <y>70</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonSelectOutputPath</sender> <signal>clicked()</signal> <receiver>MainView</receiver> <slot>OnSelectOutputPath()</slot> <hints> <hint type="sourcelabel"> <x>768</x> <y>70</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonProcessFiles</sender> <signal>clicked()</signal> <receiver>MainView</receiver> <slot>OnProcessFiles()</slot> <hints> <hint type="sourcelabel"> <x>399</x> <y>130</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonProcessAndStartTimer</sender> <signal>clicked()</signal> <receiver>MainView</receiver> <slot>OnProcessAndStartTimer()</slot> <hints> <hint type="sourcelabel"> <x>351</x> <y>139</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>buttonStopTimer</sender> <signal>clicked()</signal> <receiver>MainView</receiver> <slot>OnStopTimer()</slot> <hints> <hint type="sourcelabel"> <x>351</x> <y>130</y> </hint> <hint type="destinationlabel"> <x>399</x> <y>300</y> </hint> </hints> </connection> <connection> <sender>editTimerPeriod</sender> <signal>valueChanged(int)</signal> <receiver>MainView</receiver> <slot>OnTimerPeriodChanged()</slot> <hints> <hint type="sourcelabel"> <x>411</x> <y>130</y> </hint> <hint type="destinationlabel"> <x>352</x> <y>200</y> </hint> </hints> </connection> <connection> <sender>selectProcessingMode</sender> <signal>currentIndexChanged(int)</signal> <receiver>MainView</receiver> <slot>OnProcessingModeChanged()</slot> <hints> <hint type="sourcelabel"> <x>348</x> <y>102</y> </hint> <hint type="destinationlabel"> <x>352</x> <y>200</y> </hint> </hints> </connection> </connections> <slots> <slot>OnSelectInputPath()</slot> <slot>OnSelectOutputPath()</slot> <slot>OnProcessFiles()</slot> <slot>OnProcessAndStartTimer()</slot> <slot>OnStopTimer()</slot> <slot>OnTimerPeriodChanged()</slot> <slot>OnProcessingModeChanged()</slot> </slots> </ui>