/
grigorovich
/
blank_reader
Обзор
Документация
Войти
/
grigorovich
/
blank_reader
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
cropper_ui.ui
551 строка
17 KB
grigorovich
пробую поиск контуров
20 фев 2025, 10:55
20 фев 2025, 10:55
f594be5
Код
Авторство
О чём код?
<?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>MainWindow</class> <widget class="QMainWindow" name="MainWindow"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>1110</width> <height>857</height> </rect> </property> <property name="windowTitle"> <string>Обработка изображений</string> </property> <property name="windowIcon"> <iconset> <normaloff>images/character.svg</normaloff>images/character.svg</iconset> </property> <widget class="QWidget" name="centralwidget"> <layout class="QVBoxLayout" name="verticalLayout"> <item> <layout class="QHBoxLayout" name="horizontalLayout"> <item> <widget class="QPushButton" name="new_project_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Новый проект</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/newfile.svg</normaloff>images/newfile.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="open_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Открыть проект</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/open.svg</normaloff>:/images/images/open.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="save_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Сохранить проект</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/save.svg</normaloff>:/images/images/save.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="check_all_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Пометить все</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/checklist.svg</normaloff>images/checklist.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="flip_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Поворот на 180 градусов</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/flip_thumb.png</normaloff>images/flip_thumb.png</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="rotate_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Поворот изображения</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/angle.svg</normaloff>:/images/images/angle.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="add_grid_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Добавить сетку</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/add_grid.svg</normaloff>:/images/images/add_grid.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="contour_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Найти контуры</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/border.svg</normaloff>:/images/images/border.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="confirm_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Подвердить </string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/yes_black.svg</normaloff>:/images/images/yes_black.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="add_vertical_cut_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Добавить вертикальный разрез</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/vertical_cut.svg</normaloff>images/vertical_cut.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="add_horizontal_cut_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Добавить горизонтальный разрез</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/horizontal_cut.svg</normaloff>images/horizontal_cut.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="delete_cut_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Удалить добавленные разрезы</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/delete_cuts.svg</normaloff>images/delete_cuts.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="sciss_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Разрезать</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/scis.svg</normaloff>:/images/images/scis.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="previous_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Перейти на предыдущий этап</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/previous.svg</normaloff>images/previous.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> <item> <widget class="QPushButton" name="next_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Перейти на следующий этап</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset> <normaloff>images/next.svg</normaloff>images/next.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </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> <item> <widget class="QPushButton" name="theme_btn"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="toolTip"> <string>Переключение темы</string> </property> <property name="text"> <string/> </property> <property name="icon"> <iconset resource="icons.qrc"> <normaloff>:/images/images/night.svg</normaloff>:/images/images/night.svg</iconset> </property> <property name="iconSize"> <size> <width>32</width> <height>32</height> </size> </property> </widget> </item> </layout> </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_2"> <item> <widget class="QTabWidget" name="source_tw"> <property name="currentIndex"> <number>0</number> </property> <widget class="QWidget" name="tab"> <attribute name="title"> <string>Исходник</string> </attribute> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item> <widget class="QScrollArea" name="thumbnails_sa"> <property name="sizePolicy"> <sizepolicy hsizetype="Fixed" vsizetype="Expanding"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="minimumSize"> <size> <width>300</width> <height>0</height> </size> </property> <property name="widgetResizable"> <bool>true</bool> </property> <widget class="QWidget" name="scrollAreaWidgetContents"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>298</width> <height>723</height> </rect> </property> </widget> </widget> </item> <item> <widget class="QGroupBox" name="groupBox"> <property name="title"> <string>Просмотр</string> </property> <layout class="QVBoxLayout" name="verticalLayout_2"> <item> <widget class="QScrollArea" name="image_sa"> <property name="widgetResizable"> <bool>true</bool> </property> <widget class="QWidget" name="scrollAreaWidgetContents_2"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>738</width> <height>690</height> </rect> </property> <layout class="QVBoxLayout" name="verticalLayout_3"> <item> <widget class="QLabel" name="source_lb"> <property name="sizePolicy"> <sizepolicy hsizetype="Maximum" vsizetype="Maximum"> <horstretch>0</horstretch> <verstretch>0</verstretch> </sizepolicy> </property> <property name="text"> <string>TextLabel</string> </property> </widget> </item> </layout> </widget> </widget> </item> </layout> </widget> </item> </layout> </widget> </widget> </item> </layout> </item> </layout> </widget> <widget class="QStatusBar" name="statusbar"/> </widget> <resources> <include location="icons.qrc"/> </resources> <connections/> </ui>