Audacity  3.0.3
Classes | Namespaces | Macros | Enumerations | Functions | Variables
Tags.cpp File Reference
#include "Tags.h"
#include <wx/wxprec.h>
#include <wx/setup.h>
#include <wx/window.h>
#include "FileNames.h"
#include "Prefs.h"
#include "Project.h"
#include "ProjectFileIORegistry.h"
#include "ShuttleGui.h"
#include "widgets/Grid.h"
#include "widgets/AudacityMessageBox.h"
#include "widgets/HelpSystem.h"
#include "xml/XMLFileReader.h"
#include <wx/button.h>
#include <wx/choice.h>
#include <wx/filename.h>
#include <wx/intl.h>
#include <wx/listctrl.h>
#include <wx/notebook.h>
#include <wx/radiobut.h>
#include <wx/scrolbar.h>
#include <wx/sizer.h>
#include <wx/stattext.h>
#include <wx/string.h>
#include <wx/textctrl.h>
#include <wx/textfile.h>
#include <wx/combobox.h>
#include <wx/display.h>
Include dependency graph for Tags.cpp:

Go to the source code of this file.

Classes

class  ComboEditor
 

Namespaces

 anonymous_namespace{Tags.cpp}
 

Macros

#define LABEL_ARTIST   XO("Artist Name")
 
#define LABEL_TITLE   XO("Track Title")
 
#define LABEL_ALBUM   XO("Album Title")
 
#define LABEL_TRACK   XO("Track Number")
 
#define LABEL_YEAR   XO("Year")
 
#define LABEL_GENRE   XO("Genre")
 
#define LABEL_COMMENTS   XO("Comments")
 
#define STATICCNT   WXSIZEOF(labelmap)
 

Enumerations

enum  {
  ScrubHeight = 14, ProperRulerHeight = 29, ItemNumberColumn, ActionColumn,
  ParamsColumn, kJson, kLisp, kBrief,
  nFormats, FMT_WAV, FMT_OTHER, ID_ShowAll = 10000,
  ID_ShowEnabled, ID_ShowDisabled, ID_ShowNew, ID_List,
  ID_ClearAll, ID_SelectAll, ID_Enable, ID_Disable,
  ePreviewID = wxID_PREVIEW, eDebugID = wxID_LOWEST - 2, eSettingsID = wxID_LOWEST - 3, ePreviewDryID = wxID_LOWEST - 4,
  eCloseID = wxID_CANCEL, ClearID = 10000, EditID, ResetID,
  LoadID, SaveID, SaveDefaultsID, AddID,
  RemoveID, DontShowID, CONTROL_GROUP_SAVE, CONTROL_GROUP_EXPORT,
  ETBActTooltips = 1, ETBActEnableDisable = 2, kMidiCellWidth = ( ( kTrackInfoWidth + kLeftMargin ) / 4) - 2, kMidiCellHeight = kTrackInfoBtnSize,
  kTrackInfoBtnSize = 18, kTrackInfoSliderHeight = 25, kTrackInfoSliderWidth = 84, kTrackInfoSliderAllowance = 5,
  kTrackInfoSliderExtra = 5
}
 

Functions

bool anonymous_namespace{Tags.cpp}::EqualMaps (const TagMap &map1, const TagMap &map2)
 
bool operator== (const Tags &lhs, const Tags &rhs)
 

Variables

static const wxChar * DefaultGenres []
 
static ProjectFileIORegistry::Entry registerFactory
 
static const AudacityProject::AttachedObjects::RegisteredFactory key
 
static TranslatableStrings names
 
struct {
   OSType   componentManufacturer
 
   OSType   componentType
 
   OSType   componentSubType
 
   const TranslatableString   name
 
   EffectDistortion::Params   params
 
   bool   do_exhaustive_model_search
 
   bool   do_escape_coding
 
   bool   do_mid_side_stereo
 
   bool   loose_mid_side_stereo
 
   unsigned   qlp_coeff_precision
 
   unsigned   min_residual_partition_order
 
   unsigned   max_residual_partition_order
 
   unsigned   rice_parameter_search_dist
 
   unsigned   max_lpc_order
 
   int   format
 
   const wxChar *   name
 
   const TranslatableString   desc
 
   TranslatableString   label
 
   wxString   name
 
labelmap []
 

Macro Definition Documentation

◆ LABEL_ALBUM

#define LABEL_ALBUM   XO("Album Title")

Definition at line 737 of file Tags.cpp.

◆ LABEL_ARTIST

#define LABEL_ARTIST   XO("Artist Name")

Definition at line 735 of file Tags.cpp.

◆ LABEL_COMMENTS

#define LABEL_COMMENTS   XO("Comments")

Definition at line 741 of file Tags.cpp.

◆ LABEL_GENRE

#define LABEL_GENRE   XO("Genre")

Definition at line 740 of file Tags.cpp.

◆ LABEL_TITLE

#define LABEL_TITLE   XO("Track Title")

Definition at line 736 of file Tags.cpp.

◆ LABEL_TRACK

#define LABEL_TRACK   XO("Track Number")

Definition at line 738 of file Tags.cpp.

◆ LABEL_YEAR

#define LABEL_YEAR   XO("Year")

Definition at line 739 of file Tags.cpp.

◆ STATICCNT

#define STATICCNT   WXSIZEOF(labelmap)

Definition at line 769 of file Tags.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ScrubHeight 
ProperRulerHeight 
ItemNumberColumn 
ActionColumn 
ParamsColumn 
kJson 
kLisp 
kBrief 
nFormats 
FMT_WAV 
FMT_OTHER 
ID_ShowAll 
ID_ShowEnabled 
ID_ShowDisabled 
ID_ShowNew 
ID_List 
ID_ClearAll 
ID_SelectAll 
ID_Enable 
ID_Disable 
ePreviewID 
eDebugID 
eSettingsID 
ePreviewDryID 
eCloseID 
ClearID 
EditID 
ResetID 
LoadID 
SaveID 
SaveDefaultsID 
AddID 
RemoveID 
DontShowID 
CONTROL_GROUP_SAVE 
CONTROL_GROUP_EXPORT 
ETBActTooltips 
ETBActEnableDisable 
kMidiCellWidth 
kMidiCellHeight 
kTrackInfoBtnSize 
kTrackInfoSliderHeight 
kTrackInfoSliderWidth 
kTrackInfoSliderAllowance 
kTrackInfoSliderExtra 

Definition at line 771 of file Tags.cpp.

771  {
772  ClearID = 10000,
773  EditID,
774  ResetID,
775  LoadID,
776  SaveID,
778  AddID,
779  RemoveID,
780  DontShowID
781 };

Function Documentation

◆ operator==()

bool operator== ( const Tags lhs,
const Tags rhs 
)

Definition at line 360 of file Tags.cpp.

361 {
362  if (!EqualMaps(lhs.mXref, rhs.mXref))
363  return false;
364 
365  if (!EqualMaps(lhs.mMap, rhs.mMap))
366  return false;
367 
368  return
369  lhs.mGenres == rhs.mGenres
370  &&
371  lhs.mEditTitle == rhs.mEditTitle
372  &&
374  ;
375 }

References anonymous_namespace{Tags.cpp}::EqualMaps(), Tags::mEditTitle, Tags::mEditTrackNumber, Tags::mGenres, Tags::mMap, and Tags::mXref.

Here is the call graph for this function:

Variable Documentation

◆ DefaultGenres

const wxChar* DefaultGenres[]
static

Definition at line 72 of file Tags.cpp.

Referenced by Tags::GetGenre(), and Tags::LoadDefaultGenres().

◆ key

Initial value:
{
[](AudacityProject &){ return std::make_shared< Tags >(); }
}

Definition at line 232 of file Tags.cpp.

Referenced by Tags::Get(), Tags::GetTag(), Tags::HasTag(), TagsEditorDialog::OnChange(), Tags::Set(), and Tags::SetTag().

◆ label

Definition at line 755 of file Tags.cpp.

Referenced by EditToolBar::AddButton(), ScrubbingToolBar::AddButton(), TranscriptionToolBar::AddButton(), VampEffect::AddFeatures(), CommandManager::AddItem(), ExportFFmpeg::AskResample(), LV2Effect::BuildPlain(), NumericTextCtrl::ComputeSizing(), ContrastDialog::ContrastDialog(), ConvertLegacyProjectFile(), DoMakeInterval(), anonymous_namespace{TransportMenus.cpp}::DoMoveToLabel(), ScrubbingToolBar::DoRegenerateTooltips(), Ruler::Draw(), Ruler::DrawGrid(), ExportMixerDialog::ExportMixerDialog(), Ruler::FindZero(), CommandManager::FormatLabelForMenu(), CommandManager::FormatLabelWithDisabledAccel(), LV2Effect::GetFactoryPresets(), KeyView::GetFullLabel(), LWSlider::GetTip(), LabelTrackShifter::IntervalData::IntervalData(), anonymous_namespace{LabelMenus.cpp}::LabelsSelectedFlag(), MacroCommandsCatalog::MacroCommandsCatalog(), ControlToolBar::MakeButton(), PopupMenuTable::MakeLabel(), ToolsToolBar::MakeTool(), CommandManager::NewIdentifier(), KeyView::OnDrawItem(), KeyView::OnKeyDown(), EffectUIHost::OnMenu(), ExportMixerDialog::OnSlider(), DirectoriesPrefs::OnTempText(), NyquistEffect::ParseChoice(), NumericConverter::ParseFormatString(), LabelDialog::PopulateLabels(), EffectEqualization::PopulateOrExchange(), NumericConverter::PrintDebugInfo(), KeyView::RecalcExtents(), KeyView::RefreshBindings(), LabelTrack::Repeat(), GetInfoCommand::SendLabels(), TagsEditorDialog::SetEditors(), TipWindow::SetLabel(), wxPanelWrapper::SetLabel(), wxDialogWrapper::SetLabel(), ToolBar::SetLabel(), anonymous_namespace{EffectManager.cpp}::EffectPresetsDialog::SetPrefix(), LabelTrack::Silence(), TipWindow::TipWindow(), TagsEditorDialog::TransferDataToWindow(), Ruler::Updater::Update(), AdornedRulerPanel::UpdateButtonStates(), Ruler::Updater::UpdateLinear(), and anonymous_namespace{EffectManager.cpp}::EffectPresetsDialog::UpdateUI().

◆ labelmap

const { ... } labelmap[]

◆ name

wxString name

◆ names

TranslatableStrings names
static

◆ registerFactory

ProjectFileIORegistry::Entry registerFactory
static
Initial value:
{
wxT( "tags" ),
[]( AudacityProject &project ){ return &Tags::Get( project ); }
}

Definition at line 227 of file Tags.cpp.

Tags::mEditTrackNumber
bool mEditTrackNumber
Definition: Tags.h:137
TAG_TRACK
#define TAG_TRACK
Definition: Tags.h:63
LABEL_TRACK
#define LABEL_TRACK
Definition: Tags.cpp:738
Tags::mXref
TagMap mXref
Definition: Tags.h:131
RemoveID
@ RemoveID
Definition: Tags.cpp:779
LABEL_TITLE
#define LABEL_TITLE
Definition: Tags.cpp:736
ResetID
@ ResetID
Definition: Tags.cpp:774
DontShowID
@ DontShowID
Definition: Tags.cpp:780
Tags::Get
static Tags & Get(AudacityProject &project)
Definition: Tags.cpp:236
SaveDefaultsID
@ SaveDefaultsID
Definition: Tags.cpp:777
Tags::mEditTitle
bool mEditTitle
Definition: Tags.h:136
anonymous_namespace{Tags.cpp}::EqualMaps
bool EqualMaps(const TagMap &map1, const TagMap &map2)
Definition: Tags.cpp:343
Tags::mGenres
wxArrayString mGenres
Definition: Tags.h:134
Tags::mMap
TagMap mMap
Definition: Tags.h:132
LABEL_ALBUM
#define LABEL_ALBUM
Definition: Tags.cpp:737
EditID
@ EditID
Definition: Tags.cpp:773
TAG_GENRE
#define TAG_GENRE
Definition: Tags.h:65
TAG_YEAR
#define TAG_YEAR
Definition: Tags.h:64
ClearID
@ ClearID
Definition: Tags.cpp:772
SaveID
@ SaveID
Definition: Tags.cpp:776
LABEL_COMMENTS
#define LABEL_COMMENTS
Definition: Tags.cpp:741
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:112
LABEL_YEAR
#define LABEL_YEAR
Definition: Tags.cpp:739
TAG_COMMENTS
#define TAG_COMMENTS
Definition: Tags.h:66
TAG_ARTIST
#define TAG_ARTIST
Definition: Tags.h:61
LABEL_GENRE
#define LABEL_GENRE
Definition: Tags.cpp:740
LoadID
@ LoadID
Definition: Tags.cpp:775
TAG_TITLE
#define TAG_TITLE
Definition: Tags.h:60
LABEL_ARTIST
#define LABEL_ARTIST
Definition: Tags.cpp:735
TAG_ALBUM
#define TAG_ALBUM
Definition: Tags.h:62
AddID
@ AddID
Definition: Tags.cpp:778