Version 3.2.3: editor layout with aligned controls and full-width button bars; docs on recordings shared between languages

This commit is contained in:
2026-10-11 01:17:35 +02:00
parent b6b96307ca
commit e3040b8e6e
13 changed files with 119 additions and 57 deletions

View File

@@ -143,12 +143,16 @@ class SubtitleBox(QWidget):
super().__init__(parent)
self.win = win
self.keys = []
self.lay = QFormLayout(self)
outer = QVBoxLayout(self)
outer.setContentsMargins(0, 0, 0, 0)
outer.setSpacing(6)
self.lay = QFormLayout() # one line edit per subtitle line
self.lay.setContentsMargins(0, 0, 0, 0)
self.edits = []
self.lbl = QLabel()
self.lbl.setObjectName("Muted")
row = QHBoxLayout()
row.setSpacing(6)
self.b_apply = QPushButton(icons.icon("apply"), "Apply")
self.b_revert = QPushButton(icons.icon("revert"), "Revert")
self.b_open = QPushButton(icons.icon("search"), "Show in list")
@@ -158,16 +162,14 @@ class SubtitleBox(QWidget):
self.b_apply.clicked.connect(self.apply)
self.b_revert.clicked.connect(self.revert)
self.b_open.clicked.connect(lambda: self.keys and self.open_in_list.emit(self.keys[0]))
for b in (self.b_apply, self.b_revert):
row.addWidget(b)
row.addStretch(1)
row2 = QHBoxLayout()
row2.addWidget(self.b_open)
row2.addStretch(1)
for b in (self.b_apply, self.b_revert): # two halves of the column, like the sound's action bar
row.addWidget(b, 1)
self.lbl.setWordWrap(True)
self.lay.addRow(self.lbl)
self.lay.addRow(row)
self.lay.addRow(row2)
outer.addLayout(self.lay)
outer.addWidget(self.lbl) # room counter
outer.addWidget(self.b_open) # the way to the Subtitles tab, across the column
outer.addStretch(1) # actions at the bottom, level with the sound's
outer.addLayout(row)
def set_sound(self, s):
for e in self.edits: