feat(subtitles): add support for loading and displaying subtitles in the application feat(video): implement video capture and frame navigation functionality feat(ui): create main window UI for subtitle and video management test: add unit tests for utility functions related to subtitle processing chore: set up project structure with necessary files and directories for functionality feat(ui_hardsubripper.py): add UI implementation for HardSubRipper application to provide a graphical interface for subtitle extraction and translation functionalities
250 lines
6.9 KiB
XML
250 lines
6.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>HardSubRipper</class>
|
|
<widget class="QMainWindow" name="HardSubRipper">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>782</width>
|
|
<height>600</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>HardSubRipper</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<item row="0" column="0">
|
|
<layout class="QGridLayout" name="MainLayout">
|
|
<item row="0" column="1">
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
<item>
|
|
<widget class="QPushButton" name="opensub">
|
|
<property name="text">
|
|
<string>Ouvrir des sous titres</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="openvid">
|
|
<property name="text">
|
|
<string>Ouvir une video</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="selected_sub_label">
|
|
<property name="text">
|
|
<string>sous titres :</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="selected_video_label">
|
|
<property name="text">
|
|
<string>video :</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPushButton" name="translate">
|
|
<property name="text">
|
|
<string>Traduire</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="2" column="1">
|
|
<layout class="QVBoxLayout" name="verticalLayout_2">
|
|
<item>
|
|
<widget class="QLabel" name="frame_pixmap">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>640</width>
|
|
<height>360</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>TextLabel</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="xminmax">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>10</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>X min/max</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
|
<item>
|
|
<widget class="QSpinBox" name="xmin"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="xmax"/>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>10</height>
|
|
</size>
|
|
</property>
|
|
<property name="text">
|
|
<string>Y min/max</string>
|
|
</property>
|
|
<property name="alignment">
|
|
<set>Qt::AlignCenter</set>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
|
<item>
|
|
<widget class="QSpinBox" name="ymin"/>
|
|
</item>
|
|
<item>
|
|
<widget class="QSpinBox" name="ymax"/>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item>
|
|
<widget class="QPlainTextEdit" name="translated">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>16777215</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QPlainTextEdit" name="ia_translated">
|
|
<property name="maximumSize">
|
|
<size>
|
|
<width>560533</width>
|
|
<height>50</height>
|
|
</size>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<layout class="QGridLayout" name="gridLayout_3">
|
|
<item row="0" column="0">
|
|
<widget class="QSpinBox" name="subcounter"/>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QPushButton" name="next">
|
|
<property name="text">
|
|
<string>Next</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QPushButton" name="previous">
|
|
<property name="text">
|
|
<string>Previous</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QPushButton" name="gotoframe">
|
|
<property name="text">
|
|
<string>Go to frame</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QPushButton" name="savetofile">
|
|
<property name="text">
|
|
<string>Sauvegarder les sous titres</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<widget class="QMenuBar" name="menubar">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>782</width>
|
|
<height>22</height>
|
|
</rect>
|
|
</property>
|
|
<widget class="QMenu" name="menuFichier">
|
|
<property name="title">
|
|
<string>Fichier</string>
|
|
</property>
|
|
<addaction name="actionOuvrir_des_sous_titres"/>
|
|
<addaction name="actionOuvrir_une_video"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionEngeristrer_les_sous_titres"/>
|
|
<addaction name="separator"/>
|
|
<addaction name="actionFermer"/>
|
|
</widget>
|
|
<widget class="QMenu" name="menuA_propos">
|
|
<property name="title">
|
|
<string>A propos</string>
|
|
</property>
|
|
<addaction name="actionA_propos"/>
|
|
</widget>
|
|
<addaction name="menuFichier"/>
|
|
<addaction name="menuA_propos"/>
|
|
</widget>
|
|
<widget class="QStatusBar" name="statusbar"/>
|
|
<action name="actionOuvrir_des_sous_titres">
|
|
<property name="text">
|
|
<string>Ouvrir des sous titres</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionOuvrir_une_video">
|
|
<property name="text">
|
|
<string>Ouvrir une video</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionEngeristrer_les_sous_titres">
|
|
<property name="text">
|
|
<string>Engeristrer les sous titres</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionFermer">
|
|
<property name="text">
|
|
<string>Fermer</string>
|
|
</property>
|
|
</action>
|
|
<action name="actionA_propos">
|
|
<property name="text">
|
|
<string>A propos</string>
|
|
</property>
|
|
</action>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|