#include <AudacityMirProject.h>
Definition at line 17 of file AudacityMirProject.h.
◆ ModificationType
◆ AudacityMirProject()
Definition at line 33 of file AudacityMirProject.cpp.
37 .empty() }
39{
40}
AudacityProject & mProject
const double mProjectTempo
const bool mImportedOnEmptyProject
static ProjectTimeSignature & Get(AudacityProject &project)
auto Any() -> TrackIterRange< TrackType >
static TrackList & Get(AudacityProject &project)
A Track that contains audio waveform data.
◆ ~AudacityMirProject()
AudacityMirProject::~AudacityMirProject |
( |
| ) |
|
|
override |
◆ GetTempo()
double AudacityMirProject::GetTempo |
( |
| ) |
const |
|
overridevirtual |
◆ OnClipsSynchronized()
void AudacityMirProject::OnClipsSynchronized |
( |
| ) |
|
|
overridevirtual |
◆ ReconfigureMusicGrid()
void AudacityMirProject::ReconfigureMusicGrid |
( |
double |
newTempo, |
|
|
std::optional< MIR::TimeSignature > |
timeSignature |
|
) |
| |
|
override |
◆ ShouldBeReconfigured()
bool AudacityMirProject::ShouldBeReconfigured |
( |
double |
newTempo, |
|
|
bool |
isSingleFileImport |
|
) |
| |
|
overridevirtual |
Implements MIR::ProjectInterface.
Definition at line 84 of file AudacityMirProject.cpp.
86{
88 if (policy == wxString("Ask"))
89 {
91 const auto message =
92 isSingleFileImport ?
93 XO(
"Audacity detected this file to be %s bpm.\nWould you like to enable music view and set the project tempo to %s?")
94 .Format(displayedTempo, displayedTempo) :
95 XO(
"Audacity detected one or more files to be %s bpm.\nWould you like to enable music view and set the project tempo to %s?")
96 .Format(displayedTempo, displayedTempo);
99 const auto yes = m.ShowDialog();
100 if (m.IsChecked())
102 yes ? wxString("Yes") : wxString("No"));
103 if (yes)
105 return yes;
106 }
107 const auto yes = policy == wxString("Yes");
108 if (yes)
110 return yes;
111}
AUDACITY_DLL_API wxWindow & GetProjectPanel(AudacityProject &project)
Get the main sub-window of the project frame that displays track data.
bool Write(const wxString &value)
static EnumSetting< bool > MusicFileImportSetting
auto FormatTempo(double value)
References Automatic, anonymous_namespace{AudacityMirProject.cpp}::FormatTempo(), GetProjectPanel(), AudacityDontAskAgainMessageDialog::IsChecked(), Manual, mMostSignificantModification, mProject, ImportExportPrefs::MusicFileImportSetting, ChoiceSetting::Read(), AudacityDontAskAgainMessageDialog::ShowDialog(), ChoiceSetting::Write(), and XO().
◆ ViewIsBeatsAndMeasures()
bool AudacityMirProject::ViewIsBeatsAndMeasures |
( |
| ) |
const |
|
overridevirtual |
◆ mImportedOnEmptyProject
const bool AudacityMirProject::mImportedOnEmptyProject |
|
private |
◆ mMostSignificantModification
std::optional<ModificationType> AudacityMirProject::mMostSignificantModification |
|
private |
◆ mProject
◆ mProjectTempo
const double AudacityMirProject::mProjectTempo |
|
private |
◆ mProjectWasModified
bool AudacityMirProject::mProjectWasModified = false |
|
private |
The documentation for this class was generated from the following files: