Audacity  2.2.0
AudacityProject Class Referencefinal

AudacityProject provides the main window, with tools and tracks contained within it. More...

#include <Project.h>

Inheritance diagram for AudacityProject:
TrackPanelListener SelectionBarListener SpectralSelectionBarListener XMLTagHandler AudioIOListener

Classes

struct  FoundClip
 
struct  FoundClipBoundary
 
class  OnEffectFlags
 
class  PlaybackScroller
 

Public Types

enum  MoveChoice { OnMoveUpID, OnMoveDownID, OnMoveTopID, OnMoveBottomID }
 
typedef struct
AudacityProject::FoundClip 
FoundClip
 
typedef struct
AudacityProject::FoundClipBoundary 
FoundClipBoundary
 
typedef void(WaveTrack::* EditFunction )(double, double)
 
typedef std::unique_ptr< Track >
(WaveTrack::* 
EditDestFunction )(double, double)
 

Public Member Functions

 AudacityProject (wxWindow *parent, wxWindowID id, const wxPoint &pos, const wxSize &size)
 
virtual ~AudacityProject ()
 
virtual void ApplyUpdatedTheme ()
 
AudioIOStartStreamOptions GetDefaultPlayOptions ()
 
TrackListGetTracks ()
 
const TrackListGetTracks () const
 
UndoManagerGetUndoManager ()
 
sampleFormat GetDefaultFormat ()
 
double GetRate () const
 
bool ZoomInAvailable () const
 
bool ZoomOutAvailable () const
 
const SelectedRegionGetSelection () const
 
SelectedRegionGetSelection ()
 
double GetSel0 () const
 
double GetSel1 () const
 
const ZoomInfoGetZoomInfo () const
 
const ViewInfoGetViewInfo () const
 
ViewInfoGetViewInfo ()
 
std::shared_ptr< TrackGetFirstVisible ()
 
void GetPlayRegion (double *playRegionStart, double *playRegionEnd)
 
bool IsPlayRegionLocked ()
 
void SetSel0 (double)
 
void SetSel1 (double)
 
bool Clipboard ()
 
wxString GetName ()
 
const std::shared_ptr
< DirManager > & 
GetDirManager ()
 
TrackFactoryGetTrackFactory ()
 
AdornedRulerPanelGetRulerPanel ()
 
const TagsGetTags ()
 
int GetAudioIOToken () const
 
bool IsAudioActive () const
 
void SetAudioIOToken (int token)
 
bool IsActive ()
 
void OpenFile (const wxString &fileName, bool addtohistory=true)
 
bool WarnOfLegacyFile ()
 
bool Import (const wxString &fileName, WaveTrackArray *pTrackArray=NULL)
 
void ZoomAfterImport (Track *pTrack)
 
void AddImportedTracks (const wxString &fileName, TrackHolders &&newTracks)
 
bool Save (bool overwrite=true, bool fromSaveAs=false, bool bWantSaveCompressed=false)
 
bool SaveAs (bool bWantSaveCompressed=false)
 
bool SaveAs (const wxString &newFileName, bool bWantSaveCompressed=false, bool addToHistory=true)
 
void Clear ()
 
const wxString & GetFileName ()
 
bool GetDirty ()
 
void SetProjectTitle (int number=-1)
 
wxPanel * GetTopPanel ()
 
TrackPanelGetTrackPanel ()
 
const TrackPanelGetTrackPanel () const
 
SelectionStateGetSelectionState ()
 
bool GetIsEmpty ()
 
bool GetTracksFitVerticallyZoomed ()
 
void SetTracksFitVerticallyZoomed (bool flag)
 
bool GetShowId3Dialog ()
 
void SetShowId3Dialog (bool flag)
 
bool GetNormalizeOnLoad ()
 
void SetNormalizeOnLoad (bool flag)
 
void SetMissingAliasFileDialog (wxDialog *dialog)
 Sets the wxDialog that is being displayed Used by the custom dialog warning constructor and destructor. More...
 
wxDialog * GetMissingAliasFileDialog ()
 returns a pointer to the wxDialog if it is displayed, NULL otherwise. More...
 
bool SaveFromTimerRecording (wxFileName fnFile)
 
bool ExportFromTimerRecording (wxFileName fnFile, int iFormat, int iSubFormat, int iFilterIndex)
 
int GetOpenProjectCount ()
 
bool IsProjectSaved ()
 
bool ProjectHasTracks ()
 
int GetEstimatedRecordingMinsLeftOnDisk (long lCaptureChannels=0)
 
wxString GetHoursMinsString (int iMinutes)
 
CommandFlag GetUpdateFlags (bool checkActive=false)
 
int DoAddLabel (const SelectedRegion &region, bool preserveFocus=false)
 
void OnStop ()
 
void OnPause ()
 
void OnRecord ()
 
void OnRecord2ndChoice ()
 
void OnStopSelect ()
 
void OnSkipStart ()
 
void OnSkipEnd ()
 
void OnSeekLeftShort ()
 
void OnSeekRightShort ()
 
void OnSeekLeftLong ()
 
void OnSeekRightLong ()
 
bool MakeReadyToPlay (bool loop=false, bool cutpreview=false)
 
void OnPlayStop ()
 
bool DoPlayStopSelect (bool click, bool shift)
 
void OnPlayStopSelect ()
 
void OnPlayOneSecond ()
 
void OnPlayToSelection ()
 
void OnPlayBeforeSelectionStart ()
 
void OnPlayAfterSelectionStart ()
 
void OnPlayBeforeSelectionEnd ()
 
void OnPlayAfterSelectionEnd ()
 
void OnPlayBeforeAndAfterSelectionStart ()
 
void OnPlayBeforeAndAfterSelectionEnd ()
 
void OnPlayLooped ()
 
void OnPlayCutPreview ()
 
void OnTrackPan ()
 
void OnTrackPanLeft ()
 
void OnTrackPanRight ()
 
void OnTrackGain ()
 
void OnTrackGainInc ()
 
void OnTrackGainDec ()
 
void OnTrackMenu ()
 
void OnTrackMute ()
 
void OnTrackSolo ()
 
void OnTrackClose ()
 
void OnTrackMoveUp ()
 
void OnTrackMoveDown ()
 
void OnTrackMoveTop ()
 
void OnTrackMoveBottom ()
 
void MoveTrack (Track *target, MoveChoice choice)
 Move a track up, down, to top or to bottom. More...
 
void OnInputDevice ()
 
void OnOutputDevice ()
 
void OnAudioHost ()
 
void OnInputChannels ()
 
void OnOutputGain ()
 
void OnInputGain ()
 
void OnOutputGainInc ()
 
void OnOutputGainDec ()
 
void OnInputGainInc ()
 
void OnInputGainDec ()
 
void OnPlayAtSpeed ()
 
void OnPlayAtSpeedLooped ()
 
void OnPlayAtSpeedCutPreview ()
 
void OnSetPlaySpeed ()
 
void OnPlaySpeedInc ()
 
void OnPlaySpeedDec ()
 
void OnPrevTrack (bool shift)
 
void OnNextTrack (bool shift)
 
void OnCursorUp ()
 
void OnCursorDown ()
 
void OnFirstTrack ()
 
void OnLastTrack ()
 
void OnShiftUp ()
 
void OnShiftDown ()
 
void OnToggle ()
 
void HandleListSelection (Track *t, bool shift, bool ctrl, bool modifyState)
 
void OnCursorLeft (const wxEvent *evt)
 
void OnCursorRight (const wxEvent *evt)
 
void OnSelExtendLeft (const wxEvent *evt)
 
void OnSelExtendRight (const wxEvent *evt)
 
void OnSelContractLeft (const wxEvent *evt)
 
void OnSelContractRight (const wxEvent *evt)
 
void DoClipLeftOrRight (bool right, bool keyUp)
 
void OnClipLeft (const wxEvent *evt)
 
void OnClipRight (const wxEvent *evt)
 
void OnCursorShortJumpLeft ()
 
void OnCursorShortJumpRight ()
 
void OnCursorLongJumpLeft ()
 
void OnCursorLongJumpRight ()
 
void OnSelSetExtendLeft ()
 
void OnSelSetExtendRight ()
 
void OnSetLeftSelection ()
 
void OnSetRightSelection ()
 
void OnSelToStart ()
 
void OnSelToEnd ()
 
void OnMoveToNextLabel ()
 
void OnMoveToPrevLabel ()
 
void OnMoveToLabel (bool next)
 
void OnZeroCrossing ()
 
void OnLockPlayRegion ()
 
void OnUnlockPlayRegion ()
 
double GetTime (const Track *t)
 
void OnSortTime ()
 
void OnSortName ()
 
void OnSnapToOff ()
 
void OnSnapToNearest ()
 
void OnSnapToPrior ()
 
void OnFullScreen ()
 
void OnMacMinimize ()
 
void OnMacMinimizeAll ()
 
void OnMacZoom ()
 
void OnMacBringAllToFront ()
 
void OnNew ()
 
void OnOpen ()
 
void OnClose ()
 
void OnSave ()
 
void OnSaveAs ()
 
void OnCheckDependencies ()
 
void OnExport (const wxString &Format)
 
void OnExportAudio ()
 
void OnExportMp3 ()
 
void OnExportWav ()
 
void OnExportOgg ()
 
void OnExportSelection ()
 
void OnExportMultiple ()
 
void OnExportLabels ()
 
void OnExportMIDI ()
 
void OnPreferences ()
 
void OnPageSetup ()
 
void OnPrint ()
 
void OnExit ()
 
void OnUndo ()
 
void OnRedo ()
 
void OnCut ()
 
void OnSplitCut ()
 
void OnCopy ()
 
void OnPaste ()
 
void OnPasteNewLabel ()
 
void OnPasteOver ()
 
void OnTrim ()
 
void OnDelete ()
 
void OnSplitDelete ()
 
void OnSilence ()
 
void OnSplit ()
 
void OnSplitNew ()
 
void OnJoin ()
 
void OnDisjoin ()
 
void OnDuplicate ()
 
void OnCutLabels ()
 
void OnSplitCutLabels ()
 
void OnCopyLabels ()
 
void OnDeleteLabels ()
 
void OnSplitDeleteLabels ()
 
void OnSilenceLabels ()
 
void OnSplitLabels ()
 
void OnJoinLabels ()
 
void OnDisjoinLabels ()
 
void OnSelectTimeAndTracks (bool bAllTime, bool bAllTracks)
 
void OnSelectAllTime ()
 
void OnSelectAllTracks ()
 
void OnSelectAll ()
 
void OnSelectSomething ()
 
void OnSelectNone ()
 
void OnToggleSpectralSelection ()
 
void DoNextPeakFrequency (bool up)
 
void OnNextHigherPeakFrequency ()
 
void OnNextLowerPeakFrequency ()
 
void OnSelectCursorEnd ()
 
void OnSelectStartCursor ()
 
void OnSelectPrevClipBoundaryToCursor ()
 
void OnSelectCursorToNextClipBoundary ()
 
void OnSelectClipBoundary (bool next)
 
FoundClip FindNextClip (const WaveTrack *wt, double t0, double t1)
 
FoundClip FindPrevClip (const WaveTrack *wt, double t0, double t1)
 
int FindClips (double t0, double t1, bool next, std::vector< FoundClip > &results)
 
bool ChannelsHaveSameClipBoundaries (const WaveTrack *wt)
 
void OnSelectPrevClip ()
 
void OnSelectNextClip ()
 
void OnSelectClip (bool next)
 
void OnSelectCursorStoredCursor ()
 
void OnSelectSyncLockSel ()
 
void OnZoomIn ()
 
void OnZoomOut ()
 
void OnZoomNormal ()
 
void OnZoomFit ()
 
void OnZoomFitV ()
 
void DoZoomFitV ()
 
void OnZoomSel ()
 
void OnGoSelStart ()
 
void OnGoSelEnd ()
 
void OnExpandAllTracks ()
 
void OnCollapseAllTracks ()
 
void OnPanTracks (float PanValue)
 
void OnPanLeft ()
 
void OnPanRight ()
 
void OnPanCenter ()
 
void OnMuteAllTracks ()
 
void OnUnMuteAllTracks ()
 
void OnShowClipping ()
 
void OnShowExtraMenus ()
 
void OnHistory ()
 
void OnKaraoke ()
 
void OnMixerBoard ()
 
void OnPlotSpectrum ()
 
void OnContrast ()
 
void OnShowTransportToolBar ()
 
void OnShowDeviceToolBar ()
 
void OnShowEditToolBar ()
 
void OnShowMeterToolBar ()
 
void OnShowRecordMeterToolBar ()
 
void OnShowPlayMeterToolBar ()
 
void OnShowMixerToolBar ()
 
void OnShowSelectionToolBar ()
 
void OnShowSpectralSelectionToolBar ()
 
void OnShowScrubbingToolBar ()
 
void OnShowToolsToolBar ()
 
void OnShowTranscriptionToolBar ()
 
void OnResetToolBars ()
 
void OnSoundActivated ()
 
void OnToggleSoundActivated ()
 
void OnTogglePinnedHead ()
 
void OnTogglePlayRecording ()
 
void OnToggleSWPlaythrough ()
 
void OnRescanDevices ()
 
void OnImport ()
 
void OnImportLabels ()
 
void OnImportMIDI ()
 
void OnImportRaw ()
 
void OnEditMetadata ()
 
bool DoEditMetadata (const wxString &title, const wxString &shortUndoDescription, bool force)
 
void OnMixAndRender ()
 
void OnMixAndRenderToNewTrack ()
 
void HandleMixAndRender (bool toNewTrack)
 
void OnSelectionSave ()
 
void OnSelectionRestore ()
 
void OnCursorPositionStore ()
 
void OnCursorTrackStart ()
 
void OnCursorTrackEnd ()
 
void OnCursorSelStart ()
 
void OnCursorSelEnd ()
 
FoundClipBoundary FindNextClipBoundary (const WaveTrack *wt, double time)
 
FoundClipBoundary FindPrevClipBoundary (const WaveTrack *wt, double time)
 
double AdjustForFindingStartTimes (const std::vector< const WaveClip * > &clips, double time)
 
double AdjustForFindingEndTimes (const std::vector< const WaveClip * > &clips, double time)
 
int FindClipBoundaries (double time, bool next, std::vector< FoundClipBoundary > &results)
 
void OnCursorNextClipBoundary ()
 
void OnCursorPrevClipBoundary ()
 
void OnCursorClipBoundary (bool next)
 
wxString ClipBoundaryMessage (const std::vector< FoundClipBoundary > &results)
 
void OnAlignNoSync (int index)
 
void OnAlign (int index)
 
void HandleAlign (int index, bool moveSel)
 
void OnNewWaveTrack ()
 
void OnNewStereoTrack ()
 
void OnNewLabelTrack ()
 
void OnNewTimeTrack ()
 
void OnTimerRecord ()
 
void OnRemoveTracks ()
 
void OnMoveSelectionWithTracks ()
 
void OnSyncLock ()
 
void OnAddLabel ()
 
void OnAddLabelPlaying ()
 
void DoEditLabels (LabelTrack *lt=nullptr, int index=-1)
 
void OnEditLabels ()
 
void OnToggleTypeToCreateLabel ()
 
bool OnEffect (const PluginID &ID, int flags=OnEffectFlags::kNone)
 
void OnRepeatLastEffect (int index)
 
void OnApplyChain ()
 
void OnEditChains ()
 
void OnStereoToMono (int index)
 
void OnManagePluginsMenu (EffectType Type)
 
void RebuildAllMenuBars ()
 
void OnManageGenerators ()
 
void OnManageEffects ()
 
void OnManageAnalyzers ()
 
void OnAbout ()
 
void OnQuickHelp ()
 
void OnManual ()
 
void OnCheckForUpdates ()
 
void MayCheckForUpdates ()
 
void OnShowLog ()
 
void OnHelpWelcome ()
 
void OnBenchmark ()
 
void OnScreenshot ()
 
void OnAudioDeviceInfo ()
 
void OnSeparator ()
 
void NextOrPrevFrame (bool next)
 
void PrevFrame ()
 
void NextFrame ()
 
void PrevWindow ()
 
void NextWindow ()
 
void OnResample ()
 
CommandManagerGetCommandManager ()
 
const CommandManagerGetCommandManager () const
 
void RebuildMenuBar ()
 
void RebuildOtherMenus ()
 
void MayStartMonitoring ()
 
void OnMenu (wxCommandEvent &event)
 
void OnUpdateUI (wxUpdateUIEvent &event)
 
void MacShowUndockedToolbars (bool show)
 
void OnActivate (wxActivateEvent &event)
 
void OnMouseEvent (wxMouseEvent &event)
 
void OnIconize (wxIconizeEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void OnShow (wxShowEvent &event)
 
void OnMove (wxMoveEvent &event)
 
void DoScroll ()
 
void OnScroll (wxScrollEvent &event)
 
void OnCloseWindow (wxCloseEvent &event)
 
void OnTimer (wxTimerEvent &event)
 
void OnToolBarUpdate (wxCommandEvent &event)
 
void OnOpenAudioFile (wxCommandEvent &event)
 
void OnODTaskUpdate (wxCommandEvent &event)
 Handles the redrawing necessary for tasks as they partially update in the background. More...
 
void OnODTaskComplete (wxCommandEvent &event)
 
void HandleResize ()
 
void UpdateLayout ()
 
double GetScreenEndTime () const
 
void ZoomInByFactor (double ZoomFactor)
 
void ZoomOutByFactor (double ZoomFactor)
 
int GetProjectNumber ()
 
void UpdateMenus (bool checkActive=true)
 
void UpdatePrefs ()
 
void UpdatePrefsVariables ()
 
void RedrawProject (const bool bForceWaveTracks=false)
 
void RefreshCursor ()
 
void SelectNone ()
 
void SelectAllIfNone ()
 
void StopIfPaused ()
 
void Zoom (double level)
 
void ZoomBy (double multiplier)
 
void Rewind (bool shift)
 
void SkipEnd (bool shift)
 
void EditByLabel (EditFunction action, bool bSyncLockedTracks)
 
void EditClipboardByLabel (EditDestFunction action)
 
bool IsSyncLocked ()
 
void SetSyncLock (bool flag)
 
void DoTrackMute (Track *pTrack, bool exclusive)
 
void DoTrackSolo (Track *pTrack, bool exclusive)
 
void SetTrackGain (WaveTrack *track, LWSlider *slider)
 
void SetTrackPan (WaveTrack *track, LWSlider *slider)
 
void RemoveTrack (Track *toRemove)
 Removes the specified track. Called from HandleClosing. More...
 
void HandleTrackMute (Track *t, const bool exclusive)
 
void HandleTrackSolo (Track *t, const bool alternate)
 
void SetSnapTo (int snap)
 
int GetSnapTo () const
 
void SetSelectionFormat (const wxString &format)
 
const wxString & GetSelectionFormat () const
 
void SetFrequencySelectionFormatName (const wxString &format)
 
const wxString & GetFrequencySelectionFormatName () const
 
void SetBandwidthSelectionFormatName (const wxString &format)
 
const wxString & GetBandwidthSelectionFormatName () const
 
void OnScrollLeft ()
 
void OnScrollRight ()
 
void OnScrollLeftButton (wxScrollEvent &event)
 
void OnScrollRightButton (wxScrollEvent &event)
 
void FinishAutoScroll ()
 
void FixScrollbars ()
 
void SafeDisplayStatusMessage (const wxChar *msg)
 
bool MayScrollBeyondZero () const
 
double ScrollingLowerBoundTime () const
 
double PixelWidthBeforeTime (double scrollto) const
 
void SetHorizontalThumb (double scrollto)
 
wxSize GetTPTracksUsableArea ()
 
void RefreshTPTrack (Track *pTrk, bool refreshbacking=true)
 
void TP_DisplaySelection () override
 
void TP_DisplayStatusMessage (const wxString &msg) override
 
ToolsToolBarTP_GetToolsToolBar () override
 
void TP_PushState (const wxString &longDesc, const wxString &shortDesc, UndoPush flags) override
 
void TP_ModifyState (bool bWantsAutoSave) override
 
void TP_RedrawScrollbars () override
 
void TP_ScrollLeft () override
 
void TP_ScrollRight () override
 
void TP_ScrollWindow (double scrollto) override
 
bool TP_ScrollUpDown (int delta) override
 
void TP_HandleResize () override
 
ControlToolBarGetControlToolBar ()
 
DeviceToolBarGetDeviceToolBar ()
 
EditToolBarGetEditToolBar ()
 
MixerToolBarGetMixerToolBar ()
 
ScrubbingToolBarGetScrubbingToolBar ()
 
SelectionBarGetSelectionBar ()
 
SpectralSelectionBarGetSpectralSelectionBar ()
 
ToolsToolBarGetToolsToolBar ()
 
const ToolsToolBarGetToolsToolBar () const
 
TranscriptionToolBarGetTranscriptionToolBar ()
 
MeterGetPlaybackMeter ()
 
void SetPlaybackMeter (Meter *playback)
 
MeterGetCaptureMeter ()
 
void SetCaptureMeter (Meter *capture)
 
LyricsWindowGetLyricsWindow ()
 
MixerBoardGetMixerBoard ()
 
wxStatusBar * GetStatusBar ()
 
double AS_GetRate () override
 
void AS_SetRate (double rate) override
 
int AS_GetSnapTo () override
 
void AS_SetSnapTo (int snap) override
 
const wxString & AS_GetSelectionFormat () override
 
void AS_SetSelectionFormat (const wxString &format) override
 
void AS_ModifySelection (double &start, double &end, bool done) override
 
double SSBL_GetRate () const override
 
const wxString & SSBL_GetFrequencySelectionFormatName () override
 
void SSBL_SetFrequencySelectionFormatName (const wxString &formatName) override
 
const wxString & SSBL_GetBandwidthSelectionFormatName () override
 
void SSBL_SetBandwidthSelectionFormatName (const wxString &formatName) override
 
void SSBL_ModifySpectralSelection (double &bottom, double &top, bool done) override
 
void SetStateTo (unsigned int n)
 
bool HandleXMLTag (const wxChar *tag, const wxChar **attrs) override
 
XMLTagHandlerHandleXMLChild (const wxChar *tag) override
 
void WriteXML (XMLWriter &xmlFile, bool bWantSaveCompressed)
 
void WriteXMLHeader (XMLWriter &xmlFile) const
 
void OnAudioIORate (int rate) override
 
void OnAudioIOStartRecording () override
 
void OnAudioIOStopRecording () override
 
void OnAudioIONewBlockFiles (const AutoSaveFile &blockFileLog) override
 
bool ReportIfActionNotAllowed (const wxString &Name, CommandFlag &flags, CommandFlag flagsRqd, CommandFlag mask)
 
bool TryToMakeActionAllowed (CommandFlag &flags, CommandFlag flagsRqd, CommandFlag mask)
 
void PushState (const wxString &desc, const wxString &shortDesc)
 
void PushState (const wxString &desc, const wxString &shortDesc, UndoPush flags)
 
void RollbackState ()
 
void ModifyState (bool bWantsAutoSave)
 
void RecreateMixerBoard ()
 
bool IsSoloSimple () const
 
bool IsSoloNone () const
 
ToolManagerGetToolManager ()
 
void SetNormalizedWindowState (wxRect pSizeAndLocation)
 
wxRect GetNormalizedWindowState () const
 
bool IsTimerRecordCancelled ()
 
void ResetTimerRecordFlag ()
 
ScrubberGetScrubber ()
 
const ScrubberGetScrubber () const
 
PlaybackScrollerGetPlaybackScroller ()
 
std::shared_ptr< BackgroundCellGetBackgroundCell () const
 
- Public Member Functions inherited from TrackPanelListener
 TrackPanelListener ()
 
virtual ~TrackPanelListener ()
 
- Public Member Functions inherited from SelectionBarListener
 SelectionBarListener ()
 
virtual ~SelectionBarListener ()
 
- Public Member Functions inherited from SpectralSelectionBarListener
 SpectralSelectionBarListener ()
 
virtual ~SpectralSelectionBarListener ()
 
- Public Member Functions inherited from XMLTagHandler
 XMLTagHandler ()
 
virtual ~XMLTagHandler ()
 
virtual void HandleXMLEndTag (const wxChar *WXUNUSED(tag))
 
virtual void HandleXMLContent (const wxString &WXUNUSED(content))
 
bool ReadXMLTag (const char *tag, const char **attrs)
 
void ReadXMLEndTag (const char *tag)
 
void ReadXMLContent (const char *s, int len)
 
XMLTagHandlerReadXMLChild (const char *tag)
 
- Public Member Functions inherited from AudioIOListener
 AudioIOListener ()
 
virtual ~AudioIOListener ()
 

Static Public Member Functions

static wxArrayString ShowOpenDialog (const wxString &extraformat=wxEmptyString, const wxString &extrafilter=wxEmptyString)
 Show an open dialogue for opening audio files, and possibly other sorts of files. More...
 
static bool IsAlreadyOpen (const wxString &projPathName)
 
static void OpenFiles (AudacityProject *proj)
 
static AudacityProjectOpenProject (AudacityProject *pProject, const wxString &fileNameArg, bool addtohistory=true)
 
static double OnClipMove (ViewInfo &viewInfo, Track *track, TrackList &trackList, bool syncLocked, bool right)
 
static void DoMacMinimize (AudacityProject *project)
 
static AudacityProjectDoImportMIDI (AudacityProject *pProject, const wxString &fileName)
 
static bool HasKeyboardCapture (const wxWindow *handler)
 
static wxWindow * GetKeyboardCaptureHandler ()
 
static void CaptureKeyboard (wxWindow *handler)
 
static void ReleaseKeyboard (wxWindow *handler)
 
static TrackListGetClipboardTracks ()
 
static void ClearClipboard ()
 
static void DeleteClipboard ()
 
static int CountUnnamed ()
 
static void RefreshAllTitles (bool bShowProjectNumbers)
 
static ODLockAllProjectDeleteMutex ()
 Prevents DELETE from external thread - for e.g. use of GetActiveProject. More...
 

Public Attributes

double mLastF0
 
double mLastF1
 
size_t mAlignLabelsCount
 
PlayMode mLastPlayMode { PlayMode::normalPlay }
 
ViewInfo mViewInfo
 
bool mShowSplashScreen
 
wxString mHelpPref
 
wxString mSoloPref
 
bool mbBusyImporting { false }
 
std::unique_ptr< PlaybackScrollermPlaybackScroller
 

Private Member Functions

void EnqueueODTasks ()
 
void CreateMenusAndCommands ()
 
void PopulateEffectsMenu (CommandManager *c, EffectType type, CommandFlag batchflags, CommandFlag realflags)
 
void AddEffectMenuItems (CommandManager *c, EffectPlugs &plugs, CommandFlag batchflags, CommandFlag realflags, bool isDefault)
 
void AddEffectMenuItemGroup (CommandManager *c, const wxArrayString &names, const PluginIDList &plugs, const std::vector< CommandFlag > &flags, bool isDefault)
 
void CreateRecentFilesMenu (CommandManager *c)
 
void ModifyUndoMenuItems ()
 
void ModifyToolbarMenus ()
 
void ModifyAllProjectToolbarMenus ()
 
CommandFlag GetFocusedFrame ()
 
double NearestZeroCrossing (double t0)
 
void SetTool (int tool)
 
void OnSelectTool ()
 
void OnZoomTool ()
 
void OnEnvelopeTool ()
 
void OnTimeShiftTool ()
 
void OnDrawTool ()
 
void OnMultiTool ()
 
void OnNextTool ()
 
void OnPrevTool ()
 
bool HandlePasteText ()
 
bool HandlePasteNothingSelected ()
 
int CountSelectedWaveTracks ()
 
int CountSelectedTracks ()
 
void OnCursorLeft (bool shift, bool ctrl, bool keyup=false)
 
void OnCursorRight (bool shift, bool ctrl, bool keyup=false)
 
void OnCursorMove (bool forward, bool jump, bool longjump)
 
void OnBoundaryMove (bool left, bool boundaryContract)
 
void SeekLeftOrRight (bool left, bool shift, bool ctrl, bool keyup, int snapToTime, bool mayAccelerateQuiet, bool mayAccelerateAudio, double quietSeekStepPositive, bool quietStepIsPixels, double audioSeekStepPositive, bool audioStepIsPixels)
 
double GridMove (double t, int minPix)
 
bool SnapSelection ()
 
void OnCapture (wxCommandEvent &evt)
 
void InitialState ()
 
void PopState (const UndoState &state)
 
void UpdateLyrics ()
 
void UpdateMixerBoard ()
 
void GetRegionsByLabel (Regions &regions)
 
void AutoSave ()
 
void DeleteCurrentAutoSaveFile ()
 
void SortTracks (int flags)
 

Static Private Member Functions

static void FinishCopy (const Track *n, Track *dest)
 
static void FinishCopy (const Track *n, Track::Holder &&dest, TrackList &list)
 

Private Attributes

SelectedRegion mRegionSave {}
 
bool mCursorPositionHasBeenStored {false}
 
double mCursorPositionStored
 
wxString mFileName
 
bool mbLoadedFromAup
 
std::shared_ptr< DirManagermDirManager
 
int mProjectNo
 
double mRate
 
sampleFormat mDefaultFormat
 
wxMenu * mRecentFilesMenu
 
std::shared_ptr< TagsmTags
 
std::shared_ptr< TrackListmTracks
 
int mSnapTo
 
wxString mSelectionFormat
 
wxString mFrequencySelectionFormatName
 
wxString mBandwidthSelectionFormatName
 
std::shared_ptr< TrackListmLastSavedTracks
 
std::unique_ptr< UndoManagermUndoManager
 
bool mDirty { false }
 
CommandManager mCommandManager
 
CommandFlag mLastFlags
 
std::unique_ptr< wxTimer > mTimer
 
long mLastStatusUpdateTime
 
wxStatusBar * mStatusBar
 
AdornedRulerPanelmRuler {}
 
wxPanel * mTopPanel {}
 
TrackPanelmTrackPanel {}
 
SelectionState mSelectionState {}
 
bool mCircularTrackNavigation {}
 
std::unique_ptr< TrackFactorymTrackFactory {}
 
wxPanel * mMainPanel
 
wxScrollBar * mHsbar
 
wxScrollBar * mVsbar
 
bool mAutoScrolling { false }
 
bool mActive { true }
 
bool mIconized
 
HistoryWindowmHistoryWindow {}
 
LyricsWindowmLyricsWindow {}
 
MixerBoardFramemMixerBoardFrame {}
 
MixerBoardmMixerBoard {}
 
Destroy_ptr< FreqWindowmFreqWindow
 
Destroy_ptr< ContrastDialogmContrastDialog
 
wxDialog * mAliasMissingWarningDialog {}
 
bool mShownOnce { false }
 
MetermPlaybackMeter {}
 
MetermCaptureMeter {}
 
std::unique_ptr< ToolManagermToolManager
 
int mAudioIOToken { -1 }
 
bool mIsDeleting { false }
 
bool mTracksFitVerticallyZoomed { false }
 
bool mNormalizeOnLoad
 
bool mShowId3Dialog { true }
 
bool mEmptyCanBeDirty
 
int mWhatIfNoSelection
 
bool mStopIfWasPaused
 
bool mIsSyncLocked
 
bool mLockPlayRegion
 
std::unique_ptr
< ImportXMLTagHandler
mImportXMLTagHandler
 
wxString mAutoSaveFileName
 
bool mAutoSaving { false }
 
bool mIsRecovered { false }
 
wxString mRecoveryAutoSaveDataDir
 
std::unique_ptr
< RecordingRecoveryHandler
mRecordingRecoveryHandler
 
bool mImportedDependencies { false }
 
wxArrayString mStrOtherNamesArray
 
PluginID mLastEffect {}
 
wxRect mNormalizedWindowState
 
bool mTimerRecordCanceled { false }
 
bool mMenuClose { false }
 
bool mbInitializingScrollbar { false }
 
bool mIsCapturing { false }
 
wxWindow * mKeyboardCaptureHandler {}
 
double mSeekShort
 
double mSeekLong
 
wxLongLong mLastSelectionAdjustment
 
bool mIsBeingDeleted { false }
 
std::unique_ptr< OverlaymIndicatorOverlay
 
std::unique_ptr< OverlaymCursorOverlay
 
std::shared_ptr< BackgroundCellmBackgroundCell
 
std::unique_ptr< OverlaymScrubOverlay
 
std::unique_ptr< ScrubbermScrubber
 

Static Private Attributes

static int mProjectCounter =0
 
static std::shared_ptr< TrackListmsClipboard { TrackList::Create() }
 
static AudacityProjectmsClipProject = NULL
 
static double msClipT0 = 0.0
 
static double msClipT1 = 0.0
 

Friends

class CommandManager
 

Detailed Description

AudacityProject provides the main window, with tools and tracks contained within it.

In Audacity, the main window you work in is called a project. AudacityProjects can contain an arbitrary number of tracks of many different types, but if a project contains just one or two tracks then it can be saved in standard formats like WAV or AIFF. This window is the one that contains the menu bar (except on the Mac).

Attention
The menu functions for AudacityProject, those for creating the menu bars and acting on clicks, are found in file Menus.cpp

Member Typedef Documentation

typedef std::unique_ptr<Track>(WaveTrack::* AudacityProject::EditDestFunction)(double, double)
typedef void(WaveTrack::* AudacityProject::EditFunction)(double, double)

Member Enumeration Documentation

Enumerator
OnMoveUpID 
OnMoveDownID 
OnMoveTopID 
OnMoveBottomID 

Constructor & Destructor Documentation

Member Function Documentation

void AudacityProject::AddEffectMenuItemGroup ( CommandManager c,
const wxArrayString &  names,
const PluginIDList plugs,
const std::vector< CommandFlag > &  flags,
bool  isDefault 
)
private
double AudacityProject::AdjustForFindingEndTimes ( const std::vector< const WaveClip * > &  clips,
double  time 
)
double AudacityProject::AdjustForFindingStartTimes ( const std::vector< const WaveClip * > &  clips,
double  time 
)
ODLock & AudacityProject::AllProjectDeleteMutex ( )
static

Prevents DELETE from external thread - for e.g. use of GetActiveProject.

Referenced by ODTask::DoSome(), OnCloseWindow(), and ODManager::Start().

void AudacityProject::ApplyUpdatedTheme ( )
virtual
double AudacityProject::AS_GetRate ( )
overridevirtual

Implements SelectionBarListener.

References mRate.

const wxString & AudacityProject::AS_GetSelectionFormat ( )
overridevirtual

Implements SelectionBarListener.

References GetSelectionFormat().

int AudacityProject::AS_GetSnapTo ( )
overridevirtual

Implements SelectionBarListener.

References GetSnapTo().

void AudacityProject::AS_ModifySelection ( double &  start,
double &  end,
bool  done 
)
overridevirtual
void AudacityProject::AS_SetRate ( double  rate)
overridevirtual

Implements SelectionBarListener.

References mRate.

void AudacityProject::AS_SetSelectionFormat ( const wxString &  format)
overridevirtual
void AudacityProject::AS_SetSnapTo ( int  snap)
overridevirtual

Implements SelectionBarListener.

References gPrefs, mSnapTo, RedrawProject(), and SnapSelection().

Referenced by SetSnapTo().

bool AudacityProject::ChannelsHaveSameClipBoundaries ( const WaveTrack wt)
void AudacityProject::ClearClipboard ( )
static
bool AudacityProject::Clipboard ( )
inline
wxString AudacityProject::ClipBoundaryMessage ( const std::vector< FoundClipBoundary > &  results)

References _().

Referenced by OnCursorClipBoundary(), and OnSelectClipBoundary().

int AudacityProject::CountSelectedTracks ( )
private
int AudacityProject::CountSelectedWaveTracks ( )
private
int AudacityProject::CountUnnamed ( )
static
void AudacityProject::CreateMenusAndCommands ( )
private

CreateMenusAndCommands builds the menus, and also rebuilds them after changes in configured preferences - for example changes in key-bindings affect the short-cut key legend that appears beside each command,

References _(), CommandManager::AddCheck(), CommandManager::AddGlobalCommand(), CommandManager::AddItem(), CommandManager::AddItemList(), CommandManager::AddMenuBar(), Scrubber::AddMenuItems(), CommandManager::AddSeparator(), AlwaysEnabledFlag, AudioIOBusyFlag, AudioIONotBusyFlag, AudioTracksSelectedFlag, CommandManager::BeginMenu(), CommandManager::BeginSubMenu(), CanStopAudioStreamFlag, CaptureNotBusyFlag, CreateRecentFilesMenu(), CutCopyAvailableFlag, CommandManager::EndMenu(), CommandManager::EndSubMenu(), FN, EffectManager::Get(), PluginManager::Get(), EffectManager::GetEffectByIdentifier(), PluginManager::GetPlugin(), GetScrubber(), gPrefs, HasLastEffectFlag, PluginDescriptor::IsEnabled(), IsNotSyncLockedFlag, IsRealtimeNotActiveFlag, IsSyncLockedFlag, LabelsSelectedFlag, LabelTracksExistFlag, mAlignLabelsCount, mCommandManager, mLastEffect, mLastFlags, ModifyUndoMenuItems(), mRecentFilesMenu, names, NextFrame(), NextWindow(), NoAutoSelect, NoteTracksExistFlag, NoteTracksSelectedFlag, NotMinimizedFlag, OnAbout(), OnAddLabel(), OnAddLabelPlaying(), OnAlign(), OnAlignNoSync(), OnApplyChain(), OnAudioDeviceInfo(), OnAudioHost(), OnBenchmark(), OnCheckDependencies(), OnCheckForUpdates(), OnClipLeft(), OnClipRight(), OnClose(), OnCollapseAllTracks(), OnContrast(), OnCopy(), OnCopyLabels(), OnCursorDown(), OnCursorLeft(), OnCursorLongJumpLeft(), OnCursorLongJumpRight(), OnCursorNextClipBoundary(), OnCursorPositionStore(), OnCursorPrevClipBoundary(), OnCursorRight(), OnCursorSelEnd(), OnCursorSelStart(), OnCursorShortJumpLeft(), OnCursorShortJumpRight(), OnCursorTrackEnd(), OnCursorTrackStart(), OnCursorUp(), OnCut(), OnCutLabels(), OnDelete(), OnDeleteLabels(), OnDisjoin(), OnDisjoinLabels(), OnDrawTool(), OnDuplicate(), OnEditChains(), OnEditLabels(), OnEditMetadata(), OnEnvelopeTool(), OnExit(), OnExpandAllTracks(), OnExportAudio(), OnExportLabels(), OnExportMIDI(), OnExportMp3(), OnExportMultiple(), OnExportOgg(), OnExportSelection(), OnExportWav(), OnFirstTrack(), OnFullScreen(), OnGoSelEnd(), OnGoSelStart(), OnHistory(), OnImport(), OnImportLabels(), OnImportMIDI(), OnImportRaw(), OnInputChannels(), OnInputDevice(), OnInputGain(), OnInputGainDec(), OnInputGainInc(), OnJoin(), OnJoinLabels(), OnKaraoke(), OnLastTrack(), OnLockPlayRegion(), OnMacBringAllToFront(), OnMacMinimize(), OnMacMinimizeAll(), OnMacZoom(), OnManageAnalyzers(), OnManageEffects(), OnManageGenerators(), OnManual(), OnMixAndRender(), OnMixAndRenderToNewTrack(), OnMixerBoard(), OnMoveSelectionWithTracks(), OnMoveToNextLabel(), OnMoveToPrevLabel(), OnMultiTool(), OnMuteAllTracks(), OnNew(), OnNewLabelTrack(), OnNewStereoTrack(), OnNewTimeTrack(), OnNewWaveTrack(), OnNextHigherPeakFrequency(), OnNextLowerPeakFrequency(), OnNextTool(), OnOpen(), OnOutputDevice(), OnOutputGain(), OnOutputGainDec(), OnOutputGainInc(), OnPageSetup(), OnPanCenter(), OnPanLeft(), OnPanRight(), OnPaste(), OnPasteNewLabel(), OnPause(), OnPlayAfterSelectionEnd(), OnPlayAfterSelectionStart(), OnPlayAtSpeed(), OnPlayAtSpeedCutPreview(), OnPlayAtSpeedLooped(), OnPlayBeforeAndAfterSelectionEnd(), OnPlayBeforeAndAfterSelectionStart(), OnPlayBeforeSelectionEnd(), OnPlayBeforeSelectionStart(), OnPlayCutPreview(), OnPlayLooped(), OnPlayOneSecond(), OnPlaySpeedDec(), OnPlaySpeedInc(), OnPlayStop(), OnPlayStopSelect(), OnPlayToSelection(), OnPlotSpectrum(), OnPreferences(), OnPrevTool(), OnPrint(), OnQuickHelp(), OnRecord(), OnRecord2ndChoice(), OnRedo(), OnRemoveTracks(), OnRepeatLastEffect(), OnResample(), OnRescanDevices(), OnResetToolBars(), OnSave(), OnSaveAs(), OnScreenshot(), OnSeekLeftLong(), OnSeekLeftShort(), OnSeekRightLong(), OnSeekRightShort(), OnSelContractLeft(), OnSelContractRight(), OnSelectAll(), OnSelectAllTracks(), OnSelectCursorEnd(), OnSelectCursorStoredCursor(), OnSelectCursorToNextClipBoundary(), OnSelectionRestore(), OnSelectionSave(), OnSelectNextClip(), OnSelectNone(), OnSelectPrevClip(), OnSelectPrevClipBoundaryToCursor(), OnSelectStartCursor(), OnSelectSyncLockSel(), OnSelectTool(), OnSelExtendLeft(), OnSelExtendRight(), OnSelSetExtendLeft(), OnSelSetExtendRight(), OnSelToEnd(), OnSelToStart(), OnSetLeftSelection(), OnSetPlaySpeed(), OnSetRightSelection(), OnShiftDown(), OnShiftUp(), OnShowClipping(), OnShowDeviceToolBar(), OnShowEditToolBar(), OnShowExtraMenus(), OnShowLog(), OnShowMixerToolBar(), OnShowPlayMeterToolBar(), OnShowRecordMeterToolBar(), OnShowScrubbingToolBar(), OnShowSelectionToolBar(), OnShowSpectralSelectionToolBar(), OnShowToolsToolBar(), OnShowTranscriptionToolBar(), OnShowTransportToolBar(), OnSilence(), OnSilenceLabels(), OnSkipEnd(), OnSkipStart(), OnSnapToNearest(), OnSnapToOff(), OnSnapToPrior(), OnSortName(), OnSortTime(), OnSoundActivated(), OnSplit(), OnSplitCut(), OnSplitCutLabels(), OnSplitDelete(), OnSplitDeleteLabels(), OnSplitLabels(), OnSplitNew(), OnStereoToMono(), OnStop(), OnSyncLock(), OnTimerRecord(), OnTimeShiftTool(), OnToggle(), OnTogglePinnedHead(), OnTogglePlayRecording(), OnToggleSoundActivated(), OnToggleSpectralSelection(), OnToggleSWPlaythrough(), OnToggleTypeToCreateLabel(), OnTrackClose(), OnTrackGain(), OnTrackGainDec(), OnTrackGainInc(), OnTrackMenu(), OnTrackMoveBottom(), OnTrackMoveDown(), OnTrackMoveTop(), OnTrackMoveUp(), OnTrackMute(), OnTrackPan(), OnTrackPanLeft(), OnTrackPanRight(), OnTrackSolo(), OnTrim(), OnUndo(), OnUnlockPlayRegion(), OnUnMuteAllTracks(), OnZeroCrossing(), OnZoomFit(), OnZoomFitV(), OnZoomIn(), OnZoomNormal(), OnZoomOut(), OnZoomSel(), OnZoomTool(), PlayableTracksExistFlag, PlayRegionLockedFlag, PlayRegionNotLockedFlag, PopulateEffectsMenu(), PrevFrame(), PrevWindow(), RedoAvailableFlag, CommandManager::SetCommandFlags(), CommandManager::SetDefaultFlags(), CommandManager::SetMaxList(), CommandManager::SetOccultCommands(), StereoRequiredFlag, TimeSelectedFlag, TrackPanelHasFocus, TracksExistFlag, TracksSelectedFlag, UndoAvailableFlag, UnsavedChangesFlag, WaveTracksExistFlag, WaveTracksSelectedFlag, wxGetApp(), ZoomInAvailableFlag, and ZoomOutAvailableFlag.

Referenced by RebuildMenuBar().

void AudacityProject::DeleteClipboard ( )
static

References msClipboard.

Referenced by OnCloseWindow(), and QuitAudacity().

void AudacityProject::DeleteCurrentAutoSaveFile ( )
private

References _(), and mAutoSaveFileName.

Referenced by AutoSave(), OnCloseWindow(), and Save().

void AudacityProject::DoEditLabels ( LabelTrack lt = nullptr,
int  index = -1 
)
bool AudacityProject::DoEditMetadata ( const wxString &  title,
const wxString &  shortUndoDescription,
bool  force 
)
static AudacityProject* AudacityProject::DoImportMIDI ( AudacityProject pProject,
const wxString &  fileName 
)
static
void AudacityProject::DoMacMinimize ( AudacityProject project)
static

References UpdateMenus().

Referenced by OnMacMinimize(), and OnMacMinimizeAll().

bool AudacityProject::ExportFromTimerRecording ( wxFileName  fnFile,
int  iFormat,
int  iSubFormat,
int  iFilterIndex 
)
AudacityProject::FoundClip AudacityProject::FindNextClip ( const WaveTrack wt,
double  t0,
double  t1 
)
AudacityProject::FoundClip AudacityProject::FindPrevClip ( const WaveTrack wt,
double  t0,
double  t1 
)
void AudacityProject::FinishAutoScroll ( )

References DoScroll(), and mAutoScrolling.

Referenced by OnResample(), OnScrollLeft(), and OnScrollRight().

void AudacityProject::FinishCopy ( const Track n,
Track::Holder &&  dest,
TrackList list 
)
staticprivate

References TrackList::Add(), and FinishCopy().

std::shared_ptr<BackgroundCell> AudacityProject::GetBackgroundCell ( ) const
inline

Referenced by Track::HitTest().

const wxString & AudacityProject::GetBandwidthSelectionFormatName ( ) const
TrackList * AudacityProject::GetClipboardTracks ( )
static
const CommandManager* AudacityProject::GetCommandManager ( ) const
inline
sampleFormat AudacityProject::GetDefaultFormat ( )
inline
DeviceToolBar * AudacityProject::GetDeviceToolBar ( )
bool AudacityProject::GetDirty ( )
inline

Referenced by AudacityApp::MRUOpen().

EditToolBar * AudacityProject::GetEditToolBar ( )

References EditBarID, and mToolManager.

int AudacityProject::GetEstimatedRecordingMinsLeftOnDisk ( long  lCaptureChannels = 0)
std::shared_ptr< Track > AudacityProject::GetFirstVisible ( )
const wxString & AudacityProject::GetFrequencySelectionFormatName ( ) const
wxString AudacityProject::GetHoursMinsString ( int  iMinutes)

References _(), and wxPLURAL.

Referenced by TimerRecordDialog::OnOK(), and OnTimer().

bool AudacityProject::GetIsEmpty ( )
wxWindow * AudacityProject::GetKeyboardCaptureHandler ( )
static
LyricsWindow* AudacityProject::GetLyricsWindow ( )
inline
wxDialog * AudacityProject::GetMissingAliasFileDialog ( )

returns a pointer to the wxDialog if it is displayed, NULL otherwise.

References mAliasMissingWarningDialog.

MixerToolBar * AudacityProject::GetMixerToolBar ( )
wxRect AudacityProject::GetNormalizedWindowState ( ) const
inline

Referenced by SaveWindowSize().

bool AudacityProject::GetNormalizeOnLoad ( )
inline
int AudacityProject::GetOpenProjectCount ( )

References gAudacityProjects.

Referenced by OnTimerRecord().

PlaybackScroller& AudacityProject::GetPlaybackScroller ( )
inline
void AudacityProject::GetPlayRegion ( double *  playRegionStart,
double *  playRegionEnd 
)
int AudacityProject::GetProjectNumber ( )
inline
const Scrubber& AudacityProject::GetScrubber ( ) const
inline
ScrubbingToolBar * AudacityProject::GetScrubbingToolBar ( )

References mToolManager, and ScrubbingBarID.

Referenced by Scrubber::OnScrubOrSeek().

const SelectedRegion& AudacityProject::GetSelection ( ) const
inline
SelectedRegion& AudacityProject::GetSelection ( )
inline
SelectionBar * AudacityProject::GetSelectionBar ( )
int AudacityProject::GetSnapTo ( ) const
wxStatusBar* AudacityProject::GetStatusBar ( )
inline
const ToolsToolBar * AudacityProject::GetToolsToolBar ( ) const

References mToolManager, and ToolsBarID.

wxPanel* AudacityProject::GetTopPanel ( )
inline

Referenced by NextOrPrevFrame().

wxSize AudacityProject::GetTPTracksUsableArea ( )
const TrackPanel* AudacityProject::GetTrackPanel ( ) const
inline
TrackList* AudacityProject::GetTracks ( )
inline

Referenced by SelectHandle::AdjustSelection(), SelectCommand::Apply(), GetTrackInfoCommand::Apply(), SetTrackInfoCommand::Apply(), GetProjectInfoCommand::Apply(), SetProjectInfoCommand::Apply(), ExportCommand::Apply(), ScreenshotCommand::Apply(), TrackSelectHandle::CalculateRearrangingThresholds(), TrackPanelResizeHandle::Cancel(), Exporter::CheckMix(), Clear(), LabelDefaultClickHandle::Click(), BackgroundHandle::Click(), LabelTextHandle::Click(), ButtonHandle::Click(), SelectHandle::Click(), TimeShiftHandle::Click(), CountNumTracks(), CountSelectedTracks(), CountSelectedWaveTracks(), DoAddLabel(), DoClipLeftOrRight(), LOFImportFileHandle::doDurationAndScrollOffset(), DoEditLabels(), DoNextPeakFrequency(), WaveTrackVZoomHandle::DoZoom(), DoZoomFitV(), TrackSelectHandle::Drag(), TrackPanelResizeHandle::Drag(), LabelTextHandle::Drag(), NoteTrackVZoomHandle::Drag(), WaveTrackVZoomHandle::Drag(), ButtonHandle::Drag(), SelectHandle::Drag(), TimeShiftHandle::Drag(), EditByLabel(), EditClipboardByLabel(), TranscriptionToolBar::EnableDisableButtons(), ControlToolBar::EnableDisableButtons(), EnqueueODTasks(), Exporter::ExamineTracks(), ExportCL::Export(), ExportPCM::Export(), ExportMP3::Export(), FindClipBoundaries(), FindClips(), RecordingRecoveryHandler::FindTrack(), FixScrollbars(), GetAllSeqBlocks(), FreqWindow::GetAudio(), ContrastDialog::GetDB(), GetDefaultPlayOptions(), BatchCommands::GetEndTime(), GetFirstVisible(), GetRegionsByLabel(), CompareAudioCommand::GetSelection(), SliderHandle::GetSlider(), GetUpdateFlags(), HandleAlign(), HandleListSelection(), HandleMixAndRender(), HandlePasteNothingSelected(), HandlePasteText(), HandleTrackMute(), HandleTrackSolo(), CommonTrackPanelCell::HandleWheelRotation(), RecordingRecoveryHandler::HandleXMLEndTag(), RecordingRecoveryHandler::HandleXMLTag(), SelectHandle::HitTest(), NyquistEffect::Init(), InitialState(), TrackMenuTable::InitMenu(), WaveTrackMenuTable::InitMenu(), BatchCommands::IsMono(), ODTask::IsTaskAssociatedWithProject(), LOFImportFileHandle::lofOpenFiles(), Scrubber::MaybeStartScrubbing(), ModifyState(), NearestZeroCrossing(), OnCollapseAllTracks(), OnCopy(), OnCursorTrackEnd(), OnCursorTrackStart(), OnCut(), OnDisjoin(), OnDuplicate(), OnEffect(), OnExpandAllTracks(), OnExportLabels(), OnFirstTrack(), FormatMenuTable::OnFormatChange(), ContrastDialog::OnGetBackground(), ContrastDialog::OnGetForeground(), OnJoin(), OnLastTrack(), OnMuteAllTracks(), OnNextTrack(), OnPanTracks(), OnPaste(), OnPasteNewLabel(), OnPrevTrack(), OnPrint(), ControlToolBar::OnRecord(), OnRemoveTracks(), OnResample(), OnSelectCursorEnd(), OnSelectStartCursor(), OnSelectSyncLockSel(), OnSelectTimeAndTracks(), ScreenFrame::OnShortTracks(), OnSilence(), OnSplit(), OnSplitCut(), OnSplitDelete(), OnSplitNew(), WaveTrackMenuTable::OnSwapChannels(), OnTrim(), OnUnMuteAllTracks(), OpenFile(), ControlToolBar::PlayPlayRegion(), NyquistEffect::Process(), ProjectHasTracks(), PushState(), RedrawProject(), WaveTrackVZoomHandle::Release(), NoteTrackVZoomHandle::Release(), LabelTextHandle::Release(), NoteTrackButtonHandle::Release(), ButtonHandle::Release(), LabelDefaultClickHandle::RestoreState(), Save(), LabelDefaultClickHandle::SaveState(), SelectNone(), GetProjectInfoCommand::SendFocusedTrackIndex(), GetProjectInfoCommand::SendNumberOfTracks(), RateMenuTable::SetRate(), ControlToolBar::SetupCutPreviewTracks(), ScreenFrame::SizeTracks(), AudioIO::StopStream(), UpdateLyrics(), and WriteXML().

const TrackList* AudacityProject::GetTracks ( ) const
inline
bool AudacityProject::GetTracksFitVerticallyZoomed ( )
inline

Referenced by PushState().

CommandFlag AudacityProject::GetUpdateFlags ( bool  checkActive = false)

References AlwaysEnabledFlag, AudioIOBusyFlag, AudioIONotBusyFlag, AudioTracksSelectedFlag, CanStopAudioStreamFlag, CaptureNotBusyFlag, ClipboardFlag, CutCopyAvailableFlag, TrackListIterator::First(), gAudioIO, EffectManager::Get(), GetAudioIOToken(), GetControlToolBar(), Track::GetEndTime(), GetFocusedFrame(), Track::GetKind(), LabelTrack::GetLabel(), Track::GetLinked(), LabelTrack::GetNumLabels(), GetPlayRegion(), Track::GetSelected(), Track::GetStartTime(), LabelStruct::getT0(), LabelStruct::getT1(), GetTracks(), GetUndoManager(), HasLastEffectFlag, HasWaveDataFlag, HaveRecentFiles, IsActive(), AudioIO::IsAudioTokenActive(), IsNotSyncLockedFlag, AudioIO::IsPaused(), IsPlayRegionLocked(), SelectedRegion::isPoint(), IsRealtimeNotActiveFlag, IsSyncLocked(), IsSyncLockedFlag, LabelTrack::IsTextSelected(), Track::Label, LabelsSelectedFlag, LabelTracksExistFlag, mIsCapturing, mLastEffect, msClipT0, msClipT1, mViewInfo, TrackListIterator::Next(), NoteTracksExistFlag, NoteTracksSelectedFlag, NotMinimizedFlag, NotPausedFlag, PausedFlag, PlayableTracksExistFlag, PlayRegionLockedFlag, PlayRegionNotLockedFlag, UndoManager::RedoAvailable(), RedoAvailableFlag, ViewInfo::selectedRegion, StereoRequiredFlag, SelectedRegion::t0(), SelectedRegion::t1(), TimeSelectedFlag, TracksExistFlag, TracksSelectedFlag, UndoManager::UndoAvailable(), UndoAvailableFlag, UnsavedChangesFlag, Track::Wave, WaveTracksExistFlag, WaveTracksSelectedFlag, wxGetApp(), ZoomInAvailable(), ZoomInAvailableFlag, ZoomOutAvailable(), and ZoomOutAvailableFlag.

Referenced by CommandManager::FilterKeyEvent(), EditToolBar::OnButton(), OnMenu(), SelectAllIfNone(), StopIfPaused(), and UpdateMenus().

ViewInfo& AudacityProject::GetViewInfo ( )
inline
const ZoomInfo& AudacityProject::GetZoomInfo ( ) const
inline
void AudacityProject::HandleTrackSolo ( Track t,
const bool  alternate 
)
XMLTagHandler * AudacityProject::HandleXMLChild ( const wxChar *  tag)
overridevirtual
bool AudacityProject::HasKeyboardCapture ( const wxWindow *  handler)
static
bool AudacityProject::IsActive ( )

References mActive.

Referenced by GetUpdateFlags().

bool AudacityProject::IsAlreadyOpen ( const wxString &  projPathName)
static
bool AudacityProject::IsProjectSaved ( )

References mDirManager.

Referenced by OnTimerRecord(), and SaveFromTimerRecording().

bool AudacityProject::IsTimerRecordCancelled ( )
inline

Referenced by OnAudioIOStopRecording().

void AudacityProject::MacShowUndockedToolbars ( bool  show)

Referenced by OnActivate().

bool AudacityProject::MakeReadyToPlay ( bool  loop = false,
bool  cutpreview = false 
)
void AudacityProject::MayCheckForUpdates ( )

References OnCheckForUpdates().

void AudacityProject::MayStartMonitoring ( )
void AudacityProject::ModifyAllProjectToolbarMenus ( )
private
void AudacityProject::ModifyState ( bool  bWantsAutoSave)

References AutoSave(), GetTrackPanel(), GetTracks(), GetUndoManager(), TrackPanel::HandleCursorForPresentMouseState(), UndoManager::ModifyState(), mTags, mViewInfo, and ViewInfo::selectedRegion.

Referenced by AS_ModifySelection(), LabelTextHandle::Click(), SelectHandle::Click(), MinimizeButtonHandle::CommitChanges(), DoNextPeakFrequency(), DoPlayStopSelect(), WaveTrackVZoomHandle::DoZoom(), HandleListSelection(), HandleTrackMute(), HandleTrackSolo(), WaveTrackVRulerControls::HandleWheelRotation(), OnBoundaryMove(), OnCollapseAllTracks(), OnCursorClipBoundary(), OnCursorMove(), OnCursorSelEnd(), OnCursorSelStart(), OnCursorTrackEnd(), OnCursorTrackStart(), OnExpandAllTracks(), OnFirstTrack(), OnLastTrack(), OnMuteAllTracks(), OnNextTrack(), OnPanTracks(), OnPrevTrack(), OnSelectClip(), OnSelectClipBoundary(), OnSelectCursorEnd(), OnSelectCursorStoredCursor(), OnSelectionRestore(), OnSelectNone(), OnSelectStartCursor(), OnSelectSyncLockSel(), OnSelectTimeAndTracks(), OnSelToEnd(), OnSelToStart(), OnSetLeftSelection(), OnSetRightSelection(), OnSkipEnd(), OnSkipStart(), WaveTrackMenuTable::OnSpectrogramSettings(), SpectrumVRulerMenuTable::OnSpectrumScaleType(), OnStopSelect(), OnToggle(), OnToggleSpectralSelection(), OnUnMuteAllTracks(), WaveformVRulerMenuTable::OnWaveformScaleType(), OnZeroCrossing(), OnZoomFitV(), POPUP_MENU_RADIO_ITEM(), TrackPanelResizeHandle::Release(), NoteTrackVZoomHandle::Release(), NoteTrackButtonHandle::Release(), SelectHandle::Release(), SSBL_ModifySpectralSelection(), SelectHandle::StartSelection(), and TP_ModifyState().

void AudacityProject::NextFrame ( )

References NextOrPrevFrame().

Referenced by CreateMenusAndCommands().

void AudacityProject::NextWindow ( )

Referenced by CreateMenusAndCommands().

void AudacityProject::OnAbout ( )
void AudacityProject::OnActivate ( wxActivateEvent &  event)
void AudacityProject::OnAddLabel ( )
void AudacityProject::OnAddLabelPlaying ( )
void AudacityProject::OnAlign ( int  index)

References gPrefs, and HandleAlign().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnAlignNoSync ( int  index)

References HandleAlign(), and mAlignLabelsCount.

Referenced by CreateMenusAndCommands().

void AudacityProject::OnApplyChain ( )

References ModifyUndoMenuItems().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnAudioHost ( )
void AudacityProject::OnAudioIONewBlockFiles ( const AutoSaveFile blockFileLog)
overridevirtual
void AudacityProject::OnAudioIORate ( int  rate)
overridevirtual
void AudacityProject::OnAudioIOStartRecording ( )
overridevirtual

Implements AudioIOListener.

References AutoSave().

void AudacityProject::OnAudioIOStopRecording ( )
overridevirtual
void AudacityProject::OnBenchmark ( )

References RunBenchmark().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnCapture ( wxCommandEvent &  evt)
private

References mIsCapturing.

Referenced by AudacityProject(), and ~AudacityProject().

void AudacityProject::OnCheckDependencies ( )
void AudacityProject::OnCheckForUpdates ( )
void AudacityProject::OnClipLeft ( const wxEvent *  evt)

References DoClipLeftOrRight().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnClipRight ( const wxEvent *  evt)

References DoClipLeftOrRight().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnClose ( )

References mMenuClose.

Referenced by CreateMenusAndCommands(), and OpenFile().

void AudacityProject::OnCollapseAllTracks ( )
void AudacityProject::OnContrast ( )
void AudacityProject::OnCursorDown ( )

References OnNextTrack().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnCursorLeft ( const wxEvent *  evt)
void AudacityProject::OnCursorLeft ( bool  shift,
bool  ctrl,
bool  keyup = false 
)
private
void AudacityProject::OnCursorLongJumpLeft ( )

References OnCursorMove().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnCursorLongJumpRight ( )

References OnCursorMove().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnCursorMove ( bool  forward,
bool  jump,
bool  longjump 
)
private
void AudacityProject::OnCursorNextClipBoundary ( )
void AudacityProject::OnCursorPrevClipBoundary ( )
void AudacityProject::OnCursorRight ( const wxEvent *  evt)
void AudacityProject::OnCursorRight ( bool  shift,
bool  ctrl,
bool  keyup = false 
)
private
void AudacityProject::OnCursorShortJumpLeft ( )

References OnCursorMove().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnCursorShortJumpRight ( )

References OnCursorMove().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnCursorUp ( )

References OnPrevTrack().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnDelete ( )

References Clear().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnDrawTool ( )
private

References drawTool, and SetTool().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnEditChains ( )

Referenced by CreateMenusAndCommands().

void AudacityProject::OnEditLabels ( )

References DoEditLabels().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnEditMetadata ( )

References _(), and DoEditMetadata().

Referenced by CreateMenusAndCommands().

bool AudacityProject::OnEffect ( const PluginID ID,
int  flags = OnEffectFlags::kNone 
)
void AudacityProject::OnEnvelopeTool ( )
private

References envelopeTool, and SetTool().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnExit ( void  )

References QuitAudacity().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnExportAudio ( )

References OnExport().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnExportMIDI ( )

Referenced by CreateMenusAndCommands().

void AudacityProject::OnExportMp3 ( )

References OnExport().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnExportMultiple ( )
void AudacityProject::OnExportOgg ( )

References OnExport().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnExportWav ( )

References OnExport().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnFullScreen ( )
void AudacityProject::OnHelpWelcome ( )

References SplashDialog::Show2().

Referenced by AudacityApp::OnInit().

void AudacityProject::OnHistory ( )
void AudacityProject::OnIconize ( wxIconizeEvent &  event)

References gAudacityProjects, and mIconized.

void AudacityProject::OnImportMIDI ( )

Referenced by CreateMenusAndCommands().

void AudacityProject::OnImportRaw ( )
void AudacityProject::OnInputChannels ( )
void AudacityProject::OnInputDevice ( )
void AudacityProject::OnInputGain ( )
void AudacityProject::OnInputGainDec ( )
void AudacityProject::OnInputGainInc ( )
void AudacityProject::OnKaraoke ( )
void AudacityProject::OnMacBringAllToFront ( )

References gAudacityProjects.

Referenced by CreateMenusAndCommands().

void AudacityProject::OnMacMinimize ( )

References DoMacMinimize().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnMacMinimizeAll ( )
void AudacityProject::OnMacZoom ( )

Referenced by CreateMenusAndCommands().

void AudacityProject::OnManageAnalyzers ( )

References OnManagePluginsMenu().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnManageEffects ( )

References OnManagePluginsMenu().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnManageGenerators ( )

References OnManagePluginsMenu().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnManagePluginsMenu ( EffectType  Type)
void AudacityProject::OnManual ( )
void AudacityProject::OnMenu ( wxCommandEvent &  event)
void AudacityProject::OnMixAndRender ( )

References HandleMixAndRender().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnMixAndRenderToNewTrack ( )

References HandleMixAndRender().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnMixerBoard ( )
void AudacityProject::OnMouseEvent ( wxMouseEvent &  event)

References SetActiveProject().

void AudacityProject::OnMove ( wxMoveEvent &  event)
void AudacityProject::OnMoveSelectionWithTracks ( )

References gPrefs.

Referenced by CreateMenusAndCommands().

void AudacityProject::OnMoveToNextLabel ( )

References OnMoveToLabel().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnMoveToPrevLabel ( )

References OnMoveToLabel().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnMultiTool ( )
private

References multiTool, and SetTool().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnNew ( )
void AudacityProject::OnNextHigherPeakFrequency ( )

References DoNextPeakFrequency().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnNextLowerPeakFrequency ( )

References DoNextPeakFrequency().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnNextTrack ( bool  shift)
void AudacityProject::OnODTaskComplete ( wxCommandEvent &  event)
void AudacityProject::OnODTaskUpdate ( wxCommandEvent &  event)

Handles the redrawing necessary for tasks as they partially update in the background.

References mTrackPanel, and TrackPanel::Refresh().

void AudacityProject::OnOpen ( )
void AudacityProject::OnOpenAudioFile ( wxCommandEvent &  event)

References OpenFile().

void AudacityProject::OnOutputDevice ( )
void AudacityProject::OnOutputGain ( )
void AudacityProject::OnOutputGainDec ( )
void AudacityProject::OnOutputGainInc ( )
void AudacityProject::OnPageSetup ( )

References HandlePageSetup().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnPanCenter ( )

References OnPanTracks().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnPanLeft ( )

References OnPanTracks().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnPanRight ( )

References OnPanTracks().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnPasteOver ( )
void AudacityProject::OnPause ( )
void AudacityProject::OnPlayAtSpeed ( )
void AudacityProject::OnPlayAtSpeedCutPreview ( )
void AudacityProject::OnPlayAtSpeedLooped ( )
void AudacityProject::OnPlayCutPreview ( )
void AudacityProject::OnPlayLooped ( )
void AudacityProject::OnPlaySpeedDec ( )
void AudacityProject::OnPlaySpeedInc ( )
void AudacityProject::OnPlayToSelection ( )

The idea for this function (and first implementation) was from Juhana Sadeharju. The function plays the sound between the current mouse position and the nearest selection boundary. This gives four possible play regions depending on where the current mouse position is relative to the left and right boundaries of the selection region.

References GetControlToolBar(), GetDefaultPlayOptions(), TrackPanel::GetMostRecentXPos(), MakeReadyToPlay(), mTrackPanel, mViewInfo, oneSecondPlay, ControlToolBar::PlayPlayRegion(), ViewInfo::selectedRegion, SelectedRegion::t0(), and SelectedRegion::t1().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnPlotSpectrum ( )
void AudacityProject::OnPrevTrack ( bool  shift)

The following method moves to the previous track selecting and unselecting depending if you are on the start of a block or not.

Todo:
Merge related methods, OnPrevTrack and OnNextTrack.

References TrackPanel::EnsureVisible(), TrackListIterator::First(), TrackPanel::GetFocusedTrack(), GetMixerBoard(), Track::GetSelected(), GetSelectionState(), GetTracks(), TrackListIterator::Last(), mCircularTrackNavigation, ModifyState(), mTrackPanel, mTracks, TrackListIterator::Next(), SelectionState::SelectTrack(), and TrackPanel::SetFocusedTrack().

Referenced by OnCursorUp(), and OnShiftUp().

void AudacityProject::OnPrint ( )

References GetName(), GetTracks(), and HandlePrint().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnQuickHelp ( )
void AudacityProject::OnRecord ( )
void AudacityProject::OnRecord2ndChoice ( )
void AudacityProject::OnRepeatLastEffect ( int  index)
void AudacityProject::OnRescanDevices ( )
void AudacityProject::OnResetToolBars ( )
void AudacityProject::OnSave ( )

References Save().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSaveAs ( )

References SaveAs().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnScreenshot ( )

References OpenScreenshotTools().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnScroll ( wxScrollEvent &  event)
void AudacityProject::OnScrollLeft ( )

This method handles general left-scrolling, either for drag-scrolling or when the scrollbar is clicked to the left of the thumb

References FinishAutoScroll(), mHsbar, mViewInfo, PixelWidthBeforeTime(), ViewInfo::sbarH, sbarHjump, and ViewInfo::sbarScale.

Referenced by TP_ScrollLeft().

void AudacityProject::OnScrollLeftButton ( wxScrollEvent &  event)

This handles the event when the left direction button on the scrollbar is depresssed

References DoScroll(), mHsbar, mViewInfo, PixelWidthBeforeTime(), ViewInfo::sbarH, sbarHjump, and ViewInfo::sbarScale.

void AudacityProject::OnScrollRight ( )

This method handles general right-scrolling, either for drag-scrolling or when the scrollbar is clicked to the right of the thumb

References FinishAutoScroll(), mHsbar, min(), mViewInfo, PixelWidthBeforeTime(), ViewInfo::sbarH, sbarHjump, ViewInfo::sbarScale, ViewInfo::sbarScreen, and ViewInfo::sbarTotal.

Referenced by TP_ScrollRight().

void AudacityProject::OnScrollRightButton ( wxScrollEvent &  event)

This handles the event when the right direction button on the scrollbar is depresssed

References DoScroll(), mHsbar, min(), mViewInfo, PixelWidthBeforeTime(), ViewInfo::sbarH, sbarHjump, ViewInfo::sbarScale, ViewInfo::sbarScreen, and ViewInfo::sbarTotal.

void AudacityProject::OnSeekLeftLong ( )

References OnCursorLeft().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSeekLeftShort ( )

References OnCursorLeft().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSeekRightLong ( )

References OnCursorRight().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSeekRightShort ( )

References OnCursorRight().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelContractLeft ( const wxEvent *  evt)

References OnCursorRight().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelContractRight ( const wxEvent *  evt)

References OnCursorLeft().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelectAll ( )
void AudacityProject::OnSelectAllTime ( )
void AudacityProject::OnSelectAllTracks ( )
void AudacityProject::OnSelectCursorToNextClipBoundary ( )
void AudacityProject::OnSelectionSave ( )
void AudacityProject::OnSelectNextClip ( )

References OnSelectClip().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelectPrevClip ( )

References OnSelectClip().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelectPrevClipBoundaryToCursor ( )
void AudacityProject::OnSelectSomething ( )
void AudacityProject::OnSelectTool ( )
private

References selectTool, and SetTool().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelExtendLeft ( const wxEvent *  evt)

References OnCursorLeft().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelExtendRight ( const wxEvent *  evt)

References OnCursorRight().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelSetExtendLeft ( )

References OnBoundaryMove().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelSetExtendRight ( )

References OnBoundaryMove().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelToEnd ( )

References ModifyState(), and SkipEnd().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSelToStart ( )

References ModifyState(), and Rewind().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSeparator ( )
void AudacityProject::OnSetPlaySpeed ( )
void AudacityProject::OnShiftDown ( )

References OnNextTrack().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnShiftUp ( )

References OnPrevTrack().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnShow ( wxShowEvent &  event)

References mShownOnce, and safenew.

void AudacityProject::OnShowClipping ( )
void AudacityProject::OnShowDeviceToolBar ( )
void AudacityProject::OnShowEditToolBar ( )
void AudacityProject::OnShowExtraMenus ( )
void AudacityProject::OnShowLog ( )
void AudacityProject::OnShowMeterToolBar ( )
void AudacityProject::OnShowMixerToolBar ( )
void AudacityProject::OnShowPlayMeterToolBar ( )
void AudacityProject::OnShowRecordMeterToolBar ( )
void AudacityProject::OnShowScrubbingToolBar ( )
void AudacityProject::OnShowSelectionToolBar ( )
void AudacityProject::OnShowSpectralSelectionToolBar ( )
void AudacityProject::OnShowToolsToolBar ( )
void AudacityProject::OnShowTranscriptionToolBar ( )
void AudacityProject::OnShowTransportToolBar ( )
void AudacityProject::OnSize ( wxSizeEvent &  event)
void AudacityProject::OnSkipEnd ( )
void AudacityProject::OnSkipStart ( )
void AudacityProject::OnSnapToNearest ( )

References SetSnapTo(), and SNAP_NEAREST.

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSnapToOff ( )

References SetSnapTo(), and SNAP_OFF.

Referenced by CreateMenusAndCommands(), and ZoomInfo::SetZoom().

void AudacityProject::OnSnapToPrior ( )

References SetSnapTo(), and SNAP_PRIOR.

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSortName ( )
void AudacityProject::OnSortTime ( )
void AudacityProject::OnSoundActivated ( )

Referenced by CreateMenusAndCommands().

void AudacityProject::OnSplitLabels ( )
void AudacityProject::OnStereoToMono ( int  index)
void AudacityProject::OnSyncLock ( )
void AudacityProject::OnTimeShiftTool ( )
private

References SetTool(), and slideTool.

Referenced by CreateMenusAndCommands().

void AudacityProject::OnTogglePlayRecording ( )
void AudacityProject::OnToggleSoundActivated ( )
void AudacityProject::OnToggleSWPlaythrough ( )
void AudacityProject::OnToggleTypeToCreateLabel ( )
void AudacityProject::OnToolBarUpdate ( wxCommandEvent &  event)

A toolbar has been updated, so handle it like a sizing event.

References HandleResize().

void AudacityProject::OnTrackGain ( )

This will pop up the track gain dialog for specified track

References TrackPanel::GainSlider(), TrackPanel::GetFocusedTrack(), Track::GetKind(), mTrackPanel, SetTrackGain(), LWSlider::ShowDialog(), and Track::Wave.

Referenced by CreateMenusAndCommands().

void AudacityProject::OnTrackMenu ( )
void AudacityProject::OnTrackMoveBottom ( )
void AudacityProject::OnTrackMoveDown ( )
void AudacityProject::OnTrackMoveTop ( )
void AudacityProject::OnTrackMoveUp ( )
void AudacityProject::OnTrackMute ( )
void AudacityProject::OnTrackSolo ( )
void AudacityProject::OnUnlockPlayRegion ( )
void AudacityProject::OnUpdateUI ( wxUpdateUIEvent &  event)

References UpdateMenus().

void AudacityProject::OnZoomFitV ( )
void AudacityProject::OnZoomIn ( )

References ZoomInByFactor().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnZoomNormal ( )
void AudacityProject::OnZoomOut ( )

References ZoomOutByFactor().

Referenced by CreateMenusAndCommands().

void AudacityProject::OnZoomTool ( )
private

References SetTool(), and zoomTool.

Referenced by CreateMenusAndCommands().

AudacityProject * AudacityProject::OpenProject ( AudacityProject pProject,
const wxString &  fileNameArg,
bool  addtohistory = true 
)
static
double AudacityProject::PixelWidthBeforeTime ( double  scrollto) const
void AudacityProject::PrevFrame ( )

References NextOrPrevFrame().

Referenced by CreateMenusAndCommands().

void AudacityProject::PrevWindow ( )

Referenced by CreateMenusAndCommands().

bool AudacityProject::ProjectHasTracks ( )
void AudacityProject::PushState ( const wxString &  desc,
const wxString &  shortDesc 
)

References AUTOSAVE.

Referenced by _(), AddImportedTracks(), BatchCommands::ApplyChain(), LabelTrack::Char(), Clear(), GainSliderHandle::CommitChanges(), PanSliderHandle::CommitChanges(), DoAddLabel(), DoClipLeftOrRight(), DoEditLabels(), HandleAlign(), HandleMixAndRender(), HandlePasteNothingSelected(), HandlePasteText(), LabelTrack::KeyDown(), MoveTrack(), OnAudioIOStopRecording(), WaveTrackMenuTable::OnChannelChange(), LabelTrack::OnChar(), LabelTrack::OnContextMenu(), OnCopyLabels(), OnCut(), OnCutLabels(), OnDeleteLabels(), OnDisjoin(), OnDisjoinLabels(), OnDuplicate(), OnEffect(), FormatMenuTable::OnFormatChange(), OnImportLabels(), OnJoin(), OnJoinLabels(), WaveTrackMenuTable::OnMergeStereo(), OnNewLabelTrack(), OnNewStereoTrack(), OnNewTimeTrack(), OnNewWaveTrack(), OnPaste(), OnPasteNewLabel(), OnRemoveTracks(), OnResample(), TimeTrackMenuTable::OnSetTimeTrackRange(), OnSilence(), OnSilenceLabels(), OnSortName(), OnSortTime(), OnSplit(), OnSplitCut(), OnSplitCutLabels(), OnSplitDelete(), OnSplitDeleteLabels(), OnSplitLabels(), OnSplitNew(), WaveTrackMenuTable::OnSplitStereo(), WaveTrackMenuTable::OnSplitStereoMono(), WaveTrackMenuTable::OnSwapChannels(), TimeTrackMenuTable::OnTimeTrackLin(), TimeTrackMenuTable::OnTimeTrackLog(), TimeTrackMenuTable::OnTimeTrackLogInt(), OnTrim(), OpenFile(), TrackSelectHandle::Release(), CutlineHandle::Release(), SampleHandle::Release(), LabelGlyphHandle::Release(), EnvelopeHandle::Release(), TimeShiftHandle::Release(), RemoveTrack(), RateMenuTable::SetRate(), SetTrackGain(), SetTrackPan(), and TP_PushState().

void AudacityProject::RebuildAllMenuBars ( )
void AudacityProject::RebuildOtherMenus ( )

Referenced by OnPreferences().

void AudacityProject::RecreateMixerBoard ( )
void AudacityProject::RefreshAllTitles ( bool  bShowProjectNumbers)
static
void AudacityProject::RefreshCursor ( )
void AudacityProject::RefreshTPTrack ( Track pTrk,
bool  refreshbacking = true 
)
bool AudacityProject::ReportIfActionNotAllowed ( const wxString &  Name,
CommandFlag flags,
CommandFlag  flagsRqd,
CommandFlag  mask 
)
void AudacityProject::ResetTimerRecordFlag ( )
inline

Referenced by OnAudioIOStopRecording().

void AudacityProject::Rewind ( bool  shift)
bool AudacityProject::SaveAs ( const wxString &  newFileName,
bool  bWantSaveCompressed = false,
bool  addToHistory = true 
)
bool AudacityProject::SaveFromTimerRecording ( wxFileName  fnFile)
double AudacityProject::ScrollingLowerBoundTime ( ) const
void AudacityProject::SeekLeftOrRight ( bool  left,
bool  shift,
bool  ctrl,
bool  keyup,
int  snapToTime,
bool  mayAccelerateQuiet,
bool  mayAccelerateAudio,
double  quietSeekStepPositive,
bool  quietStepIsPixels,
double  audioSeekStepPositive,
bool  audioStepIsPixels 
)
private