mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-19 09:01:15 +02:00
Missing alias file tracking out of AudacityApp, into new files...
... which reduces the need for including AudacityApp.h
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "../Audacity.h" // for USE_* macros
|
||||
#include "../Experimental.h"
|
||||
|
||||
#include "../AudacityApp.h"
|
||||
#include "../BatchCommands.h"
|
||||
#include "../FileNames.h"
|
||||
#include "../LabelTrack.h"
|
||||
#include "../MissingAliasFileDialog.h"
|
||||
#include "../NoteTrack.h"
|
||||
#include "../Prefs.h"
|
||||
#include "../Printing.h"
|
||||
@@ -33,7 +33,7 @@ void DoExport
|
||||
|
||||
Exporter e;
|
||||
|
||||
wxGetApp().SetMissingAliasFilesWarningShouldShow(true);
|
||||
MissingAliasFilesDialog::SetShouldShow(true);
|
||||
double t0 = 0.0;
|
||||
double t1 = tracks->GetEndTime();
|
||||
|
||||
@@ -231,7 +231,7 @@ void OnExportSelection(const CommandContext &context)
|
||||
auto &selectedRegion = project.GetViewInfo().selectedRegion;
|
||||
Exporter e;
|
||||
|
||||
wxGetApp().SetMissingAliasFilesWarningShouldShow(true);
|
||||
MissingAliasFilesDialog::SetShouldShow(true);
|
||||
e.SetFileDialogTitle( _("Export Selected Audio") );
|
||||
e.Process(&project, true, selectedRegion.t0(),
|
||||
selectedRegion.t1());
|
||||
@@ -303,7 +303,7 @@ void OnExportMultiple(const CommandContext &context)
|
||||
auto &project = context.project;
|
||||
ExportMultiple em(&project);
|
||||
|
||||
wxGetApp().SetMissingAliasFilesWarningShouldShow(true);
|
||||
MissingAliasFilesDialog::SetShouldShow(true);
|
||||
em.ShowModal();
|
||||
}
|
||||
|
||||
@@ -396,7 +396,7 @@ void OnImport(const CommandContext &context)
|
||||
|
||||
// An import trigger for the alias missing dialog might not be intuitive, but
|
||||
// this serves to track the file if the users zooms in and such.
|
||||
wxGetApp().SetMissingAliasFilesWarningShouldShow(true);
|
||||
MissingAliasFilesDialog::SetShouldShow(true);
|
||||
|
||||
wxArrayString selectedFiles = project.ShowOpenDialog(wxT(""));
|
||||
if (selectedFiles.size() == 0) {
|
||||
|
@@ -1,12 +1,12 @@
|
||||
#include "../Audacity.h"
|
||||
#include "../Experimental.h"
|
||||
|
||||
#include "../AudacityApp.h"
|
||||
#include "../AudioIO.h"
|
||||
#include "../BatchProcessDialog.h"
|
||||
#include "../Benchmark.h"
|
||||
#include "../FreqWindow.h"
|
||||
#include "../Menus.h"
|
||||
#include "../MissingAliasFileDialog.h"
|
||||
#include "../PluginManager.h"
|
||||
#include "../Prefs.h"
|
||||
#include "../Project.h"
|
||||
@@ -412,7 +412,7 @@ bool DoEffect(
|
||||
project.SelectAllIfNone();
|
||||
}
|
||||
|
||||
wxGetApp().SetMissingAliasFilesWarningShouldShow(true);
|
||||
MissingAliasFilesDialog::SetShouldShow(true);
|
||||
|
||||
auto nTracksOriginally = project.GetTrackCount();
|
||||
wxWindow *focus = wxWindow::FindFocus();
|
||||
|
@@ -1,9 +1,9 @@
|
||||
#include "../Audacity.h"
|
||||
#include "../Experimental.h"
|
||||
|
||||
#include "../AudacityApp.h"
|
||||
#include "../LabelTrack.h"
|
||||
#include "../Menus.h"
|
||||
#include "../MissingAliasFileDialog.h"
|
||||
#include "../Mix.h"
|
||||
|
||||
#include "../Prefs.h"
|
||||
@@ -43,7 +43,7 @@ void DoMixAndRender
|
||||
auto defaultFormat = project.GetDefaultFormat();
|
||||
auto trackPanel = project.GetTrackPanel();
|
||||
|
||||
wxGetApp().SetMissingAliasFilesWarningShouldShow(true);
|
||||
MissingAliasFilesDialog::SetShouldShow(true);
|
||||
|
||||
WaveTrack::Holder uNewLeft, uNewRight;
|
||||
::MixAndRender(
|
||||
|
Reference in New Issue
Block a user