mirror of https://github.com/odrling/Aegisub
Add override attributes to the subtitle formats
This commit is contained in:
parent
43d3fac178
commit
d5f36af87e
|
@ -38,12 +38,12 @@ class AssSubtitleFormat : public SubtitleFormat {
|
|||
public:
|
||||
AssSubtitleFormat();
|
||||
|
||||
wxArrayString GetReadWildcards() const;
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
wxArrayString GetReadWildcards() const override;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
|
||||
// Naturally the ASS subtitle format can save all Ass files
|
||||
bool CanSave(const AssFile*) const { return true; }
|
||||
bool CanSave(const AssFile*) const override { return true; }
|
||||
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||
};
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
class Ebu3264SubtitleFormat : public SubtitleFormat {
|
||||
public:
|
||||
Ebu3264SubtitleFormat();
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||
|
||||
DEFINE_SIMPLE_EXCEPTION(ConversionFailed, agi::InvalidInputException, "subtitle_io/ebu3264/conversion_error")
|
||||
};
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
class EncoreSubtitleFormat : public SubtitleFormat {
|
||||
public:
|
||||
EncoreSubtitleFormat();
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
bool CanWriteFile(wxString const& filename) const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const&) const;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
bool CanWriteFile(wxString const& filename) const override;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const&) const override;
|
||||
};
|
||||
|
|
|
@ -38,11 +38,11 @@ class MicroDVDSubtitleFormat : public SubtitleFormat {
|
|||
public:
|
||||
MicroDVDSubtitleFormat();
|
||||
|
||||
wxArrayString GetReadWildcards() const;
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
wxArrayString GetReadWildcards() const override;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
|
||||
bool CanReadFile(wxString const& filename) const;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
||||
bool CanReadFile(wxString const& filename) const override;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||
};
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
class MKVSubtitleFormat : public SubtitleFormat {
|
||||
public:
|
||||
MKVSubtitleFormat();
|
||||
wxArrayString GetReadWildcards() const;
|
||||
wxArrayString GetReadWildcards() const override;
|
||||
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||
};
|
||||
|
|
|
@ -40,11 +40,11 @@ class SRTSubtitleFormat : public SubtitleFormat {
|
|||
wxString ConvertTags(const AssDialogue *diag) const;
|
||||
public:
|
||||
SRTSubtitleFormat();
|
||||
wxArrayString GetReadWildcards() const;
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
wxArrayString GetReadWildcards() const override;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
|
||||
bool CanSave(const AssFile *file) const;
|
||||
bool CanSave(const AssFile *file) const override;
|
||||
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||
};
|
||||
|
|
|
@ -42,7 +42,7 @@ class TranStationSubtitleFormat : public SubtitleFormat {
|
|||
|
||||
public:
|
||||
TranStationSubtitleFormat();
|
||||
bool CanWriteFile(wxString const& filename) const;
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
||||
bool CanWriteFile(wxString const& filename) const override;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||
};
|
||||
|
|
|
@ -48,9 +48,9 @@ class TTXTSubtitleFormat : public SubtitleFormat {
|
|||
|
||||
public:
|
||||
TTXTSubtitleFormat();
|
||||
wxArrayString GetReadWildcards() const;
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
wxArrayString GetReadWildcards() const override;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||
};
|
||||
|
|
|
@ -37,13 +37,13 @@
|
|||
class TXTSubtitleFormat : public SubtitleFormat {
|
||||
public:
|
||||
TXTSubtitleFormat();
|
||||
wxArrayString GetReadWildcards() const;
|
||||
wxArrayString GetWriteWildcards() const;
|
||||
wxArrayString GetReadWildcards() const override;
|
||||
wxArrayString GetWriteWildcards() const override;
|
||||
|
||||
// TXT format supports so little that it should always require an export
|
||||
bool CanSave(const AssFile*) const { return false; }
|
||||
bool CanSave(const AssFile*) const override { return false; }
|
||||
|
||||
bool CanWriteFile(wxString const& filename) const;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const;
|
||||
bool CanWriteFile(wxString const& filename) const override;
|
||||
void ReadFile(AssFile *target, wxString const& filename, wxString const& forceEncoding) const override;
|
||||
void WriteFile(const AssFile *src, wxString const& filename, wxString const& encoding) const override;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue