![]() |
Audacity 3.2.0
|
Derived from ExpandingToolBar, this dialog allows editing of Tags. More...
#include <TagsEditor.h>
Public Member Functions | |
TagsEditorDialog (wxWindow *parent, const TranslatableString &title, Tags *tags, bool editTitle, bool editTrack) | |
virtual | ~TagsEditorDialog () |
void | PopulateOrExchange (ShuttleGui &S) |
void | OnDontShow (wxCommandEvent &Evt) |
void | OnHelp (wxCommandEvent &Evt) |
bool | TransferDataToWindow () override |
bool | TransferDataFromWindow () override |
![]() | |
wxDialogWrapper () | |
wxDialogWrapper (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) | |
bool | Create (wxWindow *parent, wxWindowID id, const TranslatableString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE, const TranslatableString &name=XO("Dialog")) |
void | SetTitle (const TranslatableString &title) |
void | SetLabel (const TranslatableString &title) |
void | SetName (const TranslatableString &title) |
void | SetName () |
![]() | |
wxTabTraversalWrapper (Args &&... args) | |
wxTabTraversalWrapper (const wxTabTraversalWrapper &)=delete | |
wxTabTraversalWrapper (wxTabTraversalWrapper &&)=delete | |
wxTabTraversalWrapper & | operator= (const wxTabTraversalWrapper &)=delete |
wxTabTraversalWrapper & | operator= (wxTabTraversalWrapper &&)=delete |
Static Public Member Functions | |
static AUDACITY_DLL_API bool | ShowEditDialog (Tags &tags, wxWindow *parent, const TranslatableString &title, bool force=false) |
static AUDACITY_DLL_API bool | DoEditMetadata (AudacityProject &project, const TranslatableString &title, const TranslatableString &shortUndoDescription, bool force) |
Private Member Functions | |
void | PopulateGenres () |
void | SetEditors () |
void | OnChange (wxGridEvent &event) |
void | OnEdit (wxCommandEvent &event) |
void | OnReset (wxCommandEvent &event) |
void | OnClear (wxCommandEvent &event) |
void | OnLoad (wxCommandEvent &event) |
void | OnSave (wxCommandEvent &event) |
void | OnSaveDefaults (wxCommandEvent &event) |
void | OnAdd (wxCommandEvent &event) |
void | OnRemove (wxCommandEvent &event) |
void | OnOk (wxCommandEvent &event) |
void | DoCancel (bool escKey) |
void | OnCancel (wxCommandEvent &event) |
void | OnKeyDown (wxKeyEvent &event) |
bool | IsWindowRectValid (const wxRect *windowRect) const |
Private Attributes | |
Tags * | mTags |
bool | mEditTitle |
bool | mEditTrack |
Tags | mLocal |
Grid * | mGrid |
ComboEditor * | mComboEditor |
wxGridCellStringRenderer * | mStringRenderer |
Derived from ExpandingToolBar, this dialog allows editing of Tags.
Definition at line 19 of file TagsEditor.h.
TagsEditorDialog::TagsEditorDialog | ( | wxWindow * | parent, |
const TranslatableString & | title, | ||
Tags * | tags, | ||
bool | editTitle, | ||
bool | editTrack | ||
) |
Definition at line 209 of file TagsEditor.cpp.
References eIsCreating, gPrefs, min(), S, and wxT().
|
virtual |
Definition at line 272 of file TagsEditor.cpp.
|
private |
Definition at line 861 of file TagsEditor.cpp.
References mGrid.
Referenced by OnCancel(), and OnKeyDown().
|
static |
Invoke ShowEditDialog on project's tags; commit change in undo history, return true if not cancelled
Definition at line 952 of file TagsEditor.cpp.
References ProjectHistory::Get(), Tags::Get(), ProjectSettings::Get(), GetProjectFrame(), gPrefs, ProjectHistory::PushState(), Tags::Set(), settings(), ShowEditDialog(), title, and wxT().
Referenced by anonymous_namespace{TagsEditor.cpp}::OnEditMetadata(), Exporter::Process(), and Exporter::SetAutoExportOptions().
|
private |
Definition at line 929 of file TagsEditor.cpp.
|
private |
|
private |
Definition at line 856 of file TagsEditor.cpp.
References DoCancel().
|
private |
Definition at line 504 of file TagsEditor.cpp.
References key, anonymous_namespace{TracksPrefs.cpp}::key0, and mGrid.
|
private |
Definition at line 639 of file TagsEditor.cpp.
References Tags::Clear(), mLocal, and TransferDataToWindow().
void TagsEditorDialog::OnDontShow | ( | wxCommandEvent & | Evt | ) |
Definition at line 376 of file TagsEditor.cpp.
References FileConfig::Flush(), gPrefs, and wxT().
|
private |
Definition at line 541 of file TagsEditor.cpp.
References AudacityMessageBox(), FileNames::DataDir(), eIsCreating, fn, Tags::GetNumUserGenres(), Tags::GetUserGenre(), Tags::LoadGenres(), mGrid, mLocal, PopulateGenres(), S, wxDialogWrapper::SetName(), wxT(), and XO().
void TagsEditorDialog::OnHelp | ( | wxCommandEvent & | Evt | ) |
Definition at line 383 of file TagsEditor.cpp.
References HelpSystem::ShowHelp().
|
private |
Definition at line 882 of file TagsEditor.cpp.
References DoCancel().
|
private |
Definition at line 646 of file TagsEditor.cpp.
References AudacityMessageBox(), FileNames::DataDir(), fn, XMLFileReader::GetErrorStr(), Tags::GetTag(), mEditTitle, mEditTrack, mLocal, XMLFileReader::Parse(), SelectFile(), Tags::SetTag(), TAG_TITLE, TAG_TRACK, title, TransferDataToWindow(), wxT(), FileNames::XMLFiles, and XO().
|
private |
Definition at line 827 of file TagsEditor.cpp.
References FileConfig::Flush(), gPrefs, mGrid, mLocal, mTags, TransferDataFromWindow(), and wxT().
|
private |
Definition at line 806 of file TagsEditor.cpp.
References LABEL_TITLE, LABEL_TRACK, mEditTitle, mEditTrack, mGrid, and STATICCNT.
|
private |
Definition at line 594 of file TagsEditor.cpp.
References AudacityMessageBox(), FileNames::DataDir(), fn, Tags::GetNumUserGenres(), Tags::GetUserGenre(), Tags::LoadDefaultGenres(), Tags::LoadGenres(), mLocal, PopulateGenres(), wxT(), and XO().
|
private |
Definition at line 701 of file TagsEditor.cpp.
References FileNames::DataDir(), fn, Tags::GetTag(), GuardedCall(), mEditTitle, mEditTrack, mLocal, SelectFile(), Tags::SetTag(), TAG_TITLE, TAG_TRACK, title, TransferDataFromWindow(), Tags::WriteXML(), wxT(), FileNames::XMLFiles, and XO().
|
private |
Definition at line 760 of file TagsEditor.cpp.
References FileConfig::DeleteGroup(), FileConfig::Flush(), Tags::GetRange(), Tags::GetTag(), gPrefs, mEditTitle, mEditTrack, mLocal, Tags::SetTag(), TAG_TITLE, TAG_TRACK, title, TransferDataFromWindow(), and wxT().
|
private |
Definition at line 906 of file TagsEditor.cpp.
References Tags::GetNumUserGenres(), Tags::GetUserGenre(), mGrid, mLocal, and wxT().
Referenced by OnEdit(), and OnReset().
void TagsEditorDialog::PopulateOrExchange | ( | ShuttleGui & | S | ) |
Definition at line 285 of file TagsEditor.cpp.
References _, AddID, ClearID, DontShowID, eCancelButton, EditID, eHelpButton, eOkButton, gPrefs, LoadID, mComboEditor, mGrid, mStringRenderer, names, RemoveID, ResetID, S, safenew, SaveDefaultsID, SaveID, TranslatableString::Translation(), wxT(), XO(), and XXO().
|
private |
Definition at line 890 of file TagsEditor.cpp.
References label, LABEL_GENRE, mGrid, and wxT().
Referenced by TransferDataToWindow().
|
static |
Definition at line 24 of file TagsEditor.cpp.
References title.
Referenced by DoEditMetadata(), ExportMultipleDialog::ExportMultipleByLabel(), and ExportMultipleDialog::ExportMultipleByTrack().
|
override |
Definition at line 388 of file TagsEditor.cpp.
References Tags::Clear(), LABEL_ALBUM, LABEL_ARTIST, LABEL_COMMENTS, LABEL_GENRE, LABEL_TITLE, LABEL_TRACK, LABEL_YEAR, mGrid, mLocal, Tags::SetTag(), TAG_ALBUM, TAG_ARTIST, TAG_COMMENTS, TAG_GENRE, TAG_TITLE, TAG_TRACK, and TAG_YEAR.
Referenced by OnOk(), OnSave(), and OnSaveDefaults().
|
override |
Definition at line 442 of file TagsEditor.cpp.
References Tags::GetRange(), Tags::GetTag(), label, LABEL_TITLE, LABEL_TRACK, labelmap, mEditTitle, mEditTrack, mGrid, mLocal, SetEditors(), STATICCNT, and TranslatableString::Translation().
Referenced by OnClear(), and OnLoad().
|
private |
Definition at line 85 of file TagsEditor.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 79 of file TagsEditor.h.
Referenced by OnLoad(), OnRemove(), OnSave(), OnSaveDefaults(), and TransferDataToWindow().
|
private |
Definition at line 80 of file TagsEditor.h.
Referenced by OnLoad(), OnRemove(), OnSave(), OnSaveDefaults(), and TransferDataToWindow().
|
private |
Definition at line 84 of file TagsEditor.h.
Referenced by DoCancel(), OnAdd(), OnChange(), OnEdit(), OnOk(), OnRemove(), PopulateGenres(), PopulateOrExchange(), SetEditors(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 82 of file TagsEditor.h.
Referenced by OnClear(), OnEdit(), OnLoad(), OnOk(), OnReset(), OnSave(), OnSaveDefaults(), PopulateGenres(), TransferDataFromWindow(), and TransferDataToWindow().
|
private |
Definition at line 86 of file TagsEditor.h.
Referenced by PopulateOrExchange().
|
private |
Definition at line 78 of file TagsEditor.h.
Referenced by OnOk().