mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-09-27 16:56:19 +02:00
Label Import select all supported formats rather than just txt.
(cherry picked from commit c0689cca8d66722a03bfed25c12d028381f90c0d)
This commit is contained in:
committed by
Avery King
parent
1a05883add
commit
d1f2633f47
@@ -47,6 +47,7 @@ for drawing different aspects of the label and its text box.
|
|||||||
|
|
||||||
const FileNames::FileType LabelTrack::SubripFiles{ XO("SubRip text file"), { wxT("srt") }, true };
|
const FileNames::FileType LabelTrack::SubripFiles{ XO("SubRip text file"), { wxT("srt") }, true };
|
||||||
const FileNames::FileType LabelTrack::WebVTTFiles{ XO("WebVTT file"), { wxT("vtt") }, true };
|
const FileNames::FileType LabelTrack::WebVTTFiles{ XO("WebVTT file"), { wxT("vtt") }, true };
|
||||||
|
const FileNames::FileType LabelTrack::AllSupportedFiles{ XO("Supported label file"), { wxT("srt"), wxT("txt") }, true };
|
||||||
|
|
||||||
EnumSetting<bool> LabelStyleSetting {
|
EnumSetting<bool> LabelStyleSetting {
|
||||||
wxT("/FileFormats/LabelStyleChoice"),
|
wxT("/FileFormats/LabelStyleChoice"),
|
||||||
|
@@ -130,6 +130,7 @@ class LABEL_TRACK_API LabelTrack final
|
|||||||
|
|
||||||
static const FileNames::FileType SubripFiles;
|
static const FileNames::FileType SubripFiles;
|
||||||
static const FileNames::FileType WebVTTFiles;
|
static const FileNames::FileType WebVTTFiles;
|
||||||
|
static const FileNames::FileType AllSupportedFiles;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Track::Holder Clone(bool backup) const override;
|
Track::Holder Clone(bool backup) const override;
|
||||||
|
@@ -632,8 +632,8 @@ void LabelDialog::OnImport(wxCommandEvent & WXUNUSED(event))
|
|||||||
XO("Select a text file containing labels"),
|
XO("Select a text file containing labels"),
|
||||||
wxEmptyString, // Path
|
wxEmptyString, // Path
|
||||||
wxT(""), // Name
|
wxT(""), // Name
|
||||||
wxT("txt"), // Extension
|
wxT(""), // Extension
|
||||||
{ FileNames::TextFiles, LabelTrack::SubripFiles, FileNames::AllFiles },
|
{ LabelTrack::AllSupportedFiles, FileNames::TextFiles, LabelTrack::SubripFiles, FileNames::AllFiles },
|
||||||
wxRESIZE_BORDER, // Flags
|
wxRESIZE_BORDER, // Flags
|
||||||
this); // Parent
|
this); // Parent
|
||||||
|
|
||||||
|
@@ -385,8 +385,8 @@ void OnImportLabels(const CommandContext &context)
|
|||||||
XO("Select a text file containing labels"),
|
XO("Select a text file containing labels"),
|
||||||
wxEmptyString, // Path
|
wxEmptyString, // Path
|
||||||
wxT(""), // Name
|
wxT(""), // Name
|
||||||
wxT("txt"), // Extension
|
wxT(""), // Extension
|
||||||
{ FileNames::TextFiles, LabelTrack::SubripFiles, FileNames::AllFiles },
|
{ LabelTrack::AllSupportedFiles, FileNames::TextFiles, LabelTrack::SubripFiles, FileNames::AllFiles },
|
||||||
wxRESIZE_BORDER, // Flags
|
wxRESIZE_BORDER, // Flags
|
||||||
&window); // Parent
|
&window); // Parent
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user