- Fenêtre « Chercher les paroles » (LyricsSearchForm) : artiste / titre remplis, candidats au fil de l'eau (SYNC / ≡, source, durée, aperçu), état de chaque source (« Claude cherche sur le web… »), Importer puis « Ouvrir dans l'éditeur » ; depuis l'éditeur : « Chercher sur internet… » remplit le texte (temps gardés). - Éditeur : paroles non synchronisées chargées en lignes simples, enregistrées par saveLyrics() (traductions gardées). - Barre des paroles et plein écran : traduction sous chaque ligne en bleu plus foncé (T, menu, Options), paroles non synchronisées en page à défiler (molette, glisser, défilement auto, badge, « Synchroniser dans l'éditeur »), « Traduire les paroles maintenant » avec l'avancement. - Plein écran : gros boutons Précédent / Lecture / Suivant à gauche ; Échap le ferme avant tout (vérifié aussi en multi-fenêtres natif : WINZIK_CHECK_KARAOKE=1 tools/native/check.sh). - Playlist : le point de chaque ligne montre l'état des paroles (aucune / synchro / non synchro / traduites, info-bulle) et un clic ouvre la recherche pour ce morceau ; « Seulement les morceaux avec paroles » dans le menu, PAROLES n/total au pied de la liste. - Options : traduire automatiquement, afficher la traduction, Claude pour les paroles (PC), langue. - Tests : tests/LyricsUiTest.php. Co-Authored-By: Claude Opus 5.5 <[email protected]>
68 lines
4 KiB
YAML
68 lines
4 KiB
YAML
# The lyrics editor: the lines typed or pasted, then stamped one by one while the song plays (the .LYR of WinZik).
|
|
# The two panels share the room left by the rest (grow): the list has a small height of its own (an auto height would be
|
|
# one row per line: long lyrics pushed the buttons out of the window), both scroll.
|
|
form:
|
|
title: 'Editeur de paroles'
|
|
theme: dark
|
|
accent: '#ff2020'
|
|
padding: 8
|
|
gap: 6
|
|
scroll: false
|
|
children:
|
|
- type: row
|
|
gap: 8
|
|
children:
|
|
- {type: label, text: 'EDITEUR DE PAROLES (.LYR)', bold: true, color: '#ff2020', wrap: false}
|
|
- {type: label, id: song, text: '', style: muted, grow: 1, wrap: false}
|
|
- {type: label, id: clock, text: '00:00.00', bold: true, color: '#00ff00', wrap: false}
|
|
- type: row
|
|
gap: 8
|
|
grow: 1
|
|
items: stretch
|
|
children:
|
|
- type: column
|
|
grow: 1
|
|
height: fill
|
|
gap: 4
|
|
children:
|
|
- {type: label, text: 'Les paroles, une ligne par ligne chantée :', style: muted}
|
|
- {type: textbox, id: text, multiline: true, rows: 3, height: fill, placeholder: 'Coller ou taper les paroles ici…'}
|
|
- type: column
|
|
grow: 1
|
|
height: fill
|
|
gap: 4
|
|
children:
|
|
- {type: label, text: 'Synchronisation :', style: muted}
|
|
- {type: listbox, id: synced, height: 90, grow: 1, events: {activate: onSyncedActivate}}
|
|
- {type: label, id: now, text: '', bold: true, color: '#ff2020', wrap: false}
|
|
- {type: label, id: hint, text: 'Syllabes de la ligne choisie : clic pour en choisir une, Espace en écoutant, flèches ±100 ms (Maj : ±10), Ctrl+Z annuler', style: muted, wrap: false}
|
|
- {class: App\Gui\SyllableStrip, id: strip, height: 66, events: {select: onStripSelect}}
|
|
- type: row
|
|
gap: 6
|
|
wrap: true # a narrow window: on two lines, never one button over the other
|
|
children:
|
|
- {type: button, id: sylStamp, text: 'Syllabe suivante (Espace)', events: {click: onSylStampClick}}
|
|
- {type: button, id: m100, text: '-100 ms', tooltip: 'Flèche gauche', events: {click: onNudgeClick}}
|
|
- {type: button, id: m10, text: '-10 ms', tooltip: 'Maj + flèche gauche', events: {click: onNudgeClick}}
|
|
- {type: button, id: p10, text: '+10 ms', tooltip: 'Maj + flèche droite', events: {click: onNudgeClick}}
|
|
- {type: button, id: p100, text: '+100 ms', tooltip: 'Flèche droite', events: {click: onNudgeClick}}
|
|
- {type: button, id: replay, text: 'Réécouter', events: {click: onReplayClick}}
|
|
- {type: spacer}
|
|
- {type: button, id: estimate, text: 'Syllabes estimées', style: flat, events: {click: onEstimateClick}}
|
|
- type: row
|
|
gap: 8
|
|
wrap: true
|
|
children:
|
|
- {type: button, id: start, text: 'Démarrer la synchro', events: {click: onStartClick}}
|
|
- {type: button, id: stamp, text: 'Ligne suivante (Entrée)', style: primary, default: true, events: {click: onStampClick}}
|
|
- {type: button, id: back, text: '-5 s', events: {click: onBackClick}}
|
|
- {type: button, id: pause, text: 'Pause / Play', events: {click: onPauseClick}}
|
|
- {type: spacer}
|
|
- {type: button, id: webSearch, text: 'Chercher sur internet…', tooltip: 'LRCLIB, la marketplace, l''ancien site, Claude', events: {click: onWebSearchClick}}
|
|
- {type: button, id: auto, text: 'Whisper + Claude', events: {click: onAutoClick}}
|
|
- {type: button, id: web, text: 'Internet (Claude)', events: {click: onWebClick}}
|
|
- {type: button, id: clear, text: 'Effacer les temps', tooltip: 'Ctrl+Z pour les retrouver', style: flat, events: {click: onClearClick}}
|
|
- {type: button, id: save, text: Enregistrer, tooltip: 'Ctrl+S', events: {click: onSaveClick}}
|
|
- {type: button, id: publish, text: 'Partager…', events: {click: onPublishClick}}
|
|
- {type: button, id: quit, text: Fermer, tooltip: 'Échap', cancel: true, events: {click: onQuitClick}}
|
|
- {type: label, id: status, text: '', style: small, wrap: false}
|