Audacity  2.2.0
Dependencies.cpp File Reference
#include "Audacity.h"
#include "Dependencies.h"
#include <wx/button.h>
#include <wx/defs.h>
#include <wx/dialog.h>
#include <wx/filename.h>
#include <wx/hashmap.h>
#include <wx/progdlg.h>
#include <wx/choice.h>
#include "BlockFile.h"
#include "DirManager.h"
#include "Internat.h"
#include "Prefs.h"
#include "Project.h"
#include "Sequence.h"
#include "ShuttleGui.h"
#include "WaveTrack.h"
#include "WaveClip.h"

Classes

class  DependencyDialog
 

Enumerations

enum  { FileListID = 6000, CopySelectedFilesButtonID, FutureActionChoiceID }
 

Functions

 WX_DECLARE_HASH_MAP (wxString, AliasedFile *, wxStringHash, wxStringEqual, AliasedFileHash)
 
 WX_DECLARE_HASH_MAP (BlockFile *, BlockFilePtr, wxPointerHash, wxPointerEqual, ReplacedBlockFileHash)
 
 WX_DECLARE_HASH_MAP (BlockFile *, bool, wxPointerHash, wxPointerEqual, BoolBlockFileHash)
 
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
 
bool ShowDependencyDialogIfNeeded (AudacityProject *project, bool isSaving)
 

Variables

const wxString kStdMsg
 
const wxString kExtraMsgForMissingFiles
 

Enumeration Type Documentation

anonymous enum
Enumerator
FileListID 
CopySelectedFilesButtonID 
FutureActionChoiceID 

Function Documentation

EVT_BUTTON ( wxID_NO  ,
DependencyDialog::OnNo   
)
DependencyDialog::OnYes EVT_BUTTON ( wxID_CANCEL  ,
DependencyDialog::OnCancel   
)

References eIsCreating.

static void ReplaceBlockFiles ( BlockPtrArray blocks,
ReplacedBlockFileHash &  hash 
)
static

Referenced by RemoveDependencies().

bool ShowDependencyDialogIfNeeded ( AudacityProject project,
bool  isSaving 
)
WX_DECLARE_HASH_MAP ( wxString  ,
AliasedFile ,
wxStringHash  ,
wxStringEqual  ,
AliasedFileHash   
)
WX_DECLARE_HASH_MAP ( BlockFile ,
BlockFilePtr  ,
wxPointerHash  ,
wxPointerEqual  ,
ReplacedBlockFileHash   
)
WX_DECLARE_HASH_MAP ( BlockFile ,
bool  ,
wxPointerHash  ,
wxPointerEqual  ,
BoolBlockFileHash   
)

Variable Documentation

const wxString kExtraMsgForMissingFiles
Initial value:
=
_("\n\nFiles shown as MISSING have been moved or deleted and cannot be copied.\
\nRestore them to their original location to be able to copy into project.")
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom"))), OnMoveTrack) void TrackMenuTable::OnSetName(wxCommandEvent &)
Definition: TrackControls.cpp:137

Referenced by DependencyDialog::PopulateList().

const wxString kStdMsg
Initial value:
=
_("Copying these files into your project will remove this dependency.\
\nThis is safer, but needs more disk space.")
_("Move Track &Down")+wxT("\t")+(GetActiveProject() -> GetCommandManager() ->GetKeyFromName(wxT("TrackMoveDown"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveTopID, _("Move Track to &Top")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveTop"))), OnMoveTrack) POPUP_MENU_ITEM(OnMoveBottomID, _("Move Track to &Bottom")+wxT("\t")+(GetActiveProject() ->GetCommandManager() ->GetKeyFromName(wxT("TrackMoveBottom"))), OnMoveTrack) void TrackMenuTable::OnSetName(wxCommandEvent &)
Definition: TrackControls.cpp:137

Referenced by DependencyDialog::PopulateList(), and DependencyDialog::PopulateOrExchange().