mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-03 17:19:43 +02:00
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
/**********************************************************************
|
|
|
|
Audacity: A Digital Audio Editor
|
|
Audacity(R) is copyright (c) 1999-2008 Audacity Team.
|
|
License: GPL v2. See License.txt.
|
|
|
|
Dependencies.h
|
|
|
|
Dominic Mazzoni
|
|
Vaughan Johnson
|
|
|
|
**********************************************************************/
|
|
|
|
#ifndef __AUDACITY_DEPENDENCIES__
|
|
#define __AUDACITY_DEPENDENCIES__
|
|
|
|
#include <wx/dynarray.h>
|
|
|
|
class AudacityProject;
|
|
|
|
class AliasedFile
|
|
{
|
|
public:
|
|
AliasedFile(wxFileName fileName, wxLongLong byteCount, bool bOriginalExists)
|
|
{
|
|
mFileName = fileName;
|
|
mByteCount = byteCount;
|
|
mbOriginalExists = bOriginalExists;
|
|
};
|
|
wxFileName mFileName;
|
|
wxLongLong mByteCount; // if stored as current default sample format
|
|
bool mbOriginalExists;
|
|
};
|
|
|
|
WX_DECLARE_OBJARRAY(AliasedFile, AliasedFileArray);
|
|
|
|
|
|
// Checks for alias block files, modifies the project if the
|
|
// user requests it, and returns True if the user continues.
|
|
// Returns false if the user clicks Cancel, meaning that they do
|
|
// not want to go ahead with the Save/Save As operation.
|
|
bool ShowDependencyDialogIfNeeded(AudacityProject *project,
|
|
bool isSaving);
|
|
|
|
// Returns a list of aliased files associated with a project.
|
|
void FindDependencies(AudacityProject *project,
|
|
AliasedFileArray *outAliasedFiles);
|
|
|
|
#endif
|