Audacity 3.2.0
|
#include "Audacity.h"
#include "Dependencies.h"
#include <wx/defs.h>
#include <wx/filename.h>
#include <wx/listctrl.h>
#include <wx/menu.h>
#include <wx/choice.h>
#include <wx/clipbrd.h>
#include <wx/dataobj.h>
#include <wx/frame.h>
#include <wx/stattext.h>
#include "blockfile/SimpleBlockFile.h"
#include "DirManager.h"
#include "FileFormats.h"
#include "Prefs.h"
#include "Project.h"
#include "Sequence.h"
#include "ShuttleGui.h"
#include "WaveTrack.h"
#include "WaveClip.h"
#include "prefs/QualityPrefs.h"
#include "widgets/AudacityMessageBox.h"
#include "widgets/ProgressDialog.h"
#include <unordered_map>
Go to the source code of this file.
Classes | |
class | DependencyDialog |
DependencyDialog shows dependencies of an AudacityProject on AliasedFile s. More... | |
Typedefs | |
using | AliasedFileHash = std::unordered_map< wxString, AliasedFile * > |
using | ReplacedBlockFileHash = std::unordered_map< BlockFile *, BlockFilePtr > |
using | BoolBlockFileHash = std::unordered_map< BlockFile *, bool > |
Enumerations | |
enum | { FileListID = 6000 , CopySelectedFilesButtonID , CopyNamesToClipboardID , FutureActionChoiceID } |
Functions | |
static void | GetAllSeqBlocks (AudacityProject *project, BlockPtrArray *outBlocks) |
static void | ReplaceBlockFiles (BlockPtrArray &blocks, ReplacedBlockFileHash &hash) |
void | FindDependencies (AudacityProject *project, AliasedFileArray &outAliasedFiles) |
static void | RemoveDependencies (AudacityProject *project, AliasedFileArray &aliasedFiles) |
EVT_BUTTON (wxID_NO, DependencyDialog::OnNo) EVT_BUTTON(wxID_YES | |
DependencyDialog::OnYes | EVT_BUTTON (wxID_CANCEL, DependencyDialog::OnCancel) DependencyDialog |
static const TranslatableString | kStdMsg () |
static const TranslatableString | kExtraMsgForMissingFiles () |
bool | ShowDependencyDialogIfNeeded (AudacityProject *project, bool isSaving) |
using AliasedFileHash = std::unordered_map<wxString, AliasedFile*> |
Definition at line 65 of file Dependencies.cpp.
using BoolBlockFileHash = std::unordered_map<BlockFile *, bool> |
Definition at line 70 of file Dependencies.cpp.
using ReplacedBlockFileHash = std::unordered_map<BlockFile *, BlockFilePtr> |
Definition at line 69 of file Dependencies.cpp.
anonymous enum |
Enumerator | |
---|---|
FileListID | |
CopySelectedFilesButtonID | |
CopyNamesToClipboardID | |
FutureActionChoiceID |
Definition at line 285 of file Dependencies.cpp.
DependencyDialog::OnYes EVT_BUTTON | ( | wxID_CANCEL | , |
DependencyDialog::OnCancel | |||
) |
Definition at line 300 of file Dependencies.cpp.
References eIsCreating, and S.
EVT_BUTTON | ( | wxID_NO | , |
DependencyDialog::OnNo | |||
) |
void FindDependencies | ( | AudacityProject * | project, |
AliasedFileArray & | outAliasedFiles | ||
) |
Definition at line 107 of file Dependencies.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, GetAllSeqBlocks(), project, SAMPLE_SIZE, and QualitySettings::SampleFormatChoice().
Referenced by ShowDependencyDialogIfNeeded().
|
static |
Definition at line 75 of file Dependencies.cpp.
References TrackList::Any(), TrackList::Get(), and Sequence::GetBlockArray().
Referenced by FindDependencies(), and RemoveDependencies().
|
static |
Definition at line 338 of file Dependencies.cpp.
References XO().
Referenced by DependencyDialog::PopulateList().
|
static |
Definition at line 331 of file Dependencies.cpp.
References XO().
Referenced by DependencyDialog::PopulateList(), and DependencyDialog::PopulateOrExchange().
|
static |
Definition at line 162 of file Dependencies.cpp.
References anonymous_namespace{ExportPCM.cpp}::format, BasicUI::Get(), GetAllSeqBlocks(), project, SampleBuffer::ptr(), ReplaceBlockFiles(), SAMPLE_SIZE, QualitySettings::SampleFormatChoice(), BasicUI::Success, ProgressDialog::Update(), and XO().
Referenced by DependencyDialog::OnCopySelectedFiles(), and ShowDependencyDialogIfNeeded().
|
static |
Definition at line 93 of file Dependencies.cpp.
Referenced by RemoveDependencies().
bool ShowDependencyDialogIfNeeded | ( | AudacityProject * | project, |
bool | isSaving | ||
) |
Definition at line 600 of file Dependencies.cpp.
References AudacityMessageBox(), FindDependencies(), FindProjectFrame(), project, RemoveDependencies(), and XO().