Audacity  2.2.0
Menus.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  Audacity: A Digital Audio Editor
4 
5  Menus.h
6 
7  Dominic Mazzoni
8 
9 **********************************************************************/
10 #ifndef __AUDACITY_MENUS__
11 #define __AUDACITY_MENUS__
12 
13 #include "Experimental.h"
14 
15 
16 // These are all member functions of class AudacityProject.
17 // Vaughan, 2010-08-05:
18 // Note that this file is included in a "public" section of Project.h.
19 // Most of these methods do not need to be public, and because
20 // we do not subclass AudacityProject, they should be "private."
21 // Because the ones that need to be public are intermixed,
22 // I've added "private" in just a few cases.
23 
24 private:
26 
27 void PopulateEffectsMenu(CommandManager *c, EffectType type,
28  CommandFlag batchflags, CommandFlag realflags);
29 void AddEffectMenuItems(CommandManager *c, EffectPlugs & plugs,
30  CommandFlag batchflags, CommandFlag realflags, bool isDefault);
31 void AddEffectMenuItemGroup(CommandManager *c, const wxArrayString & names,
32  const PluginIDList & plugs,
33  const std::vector<CommandFlag> & flags, bool isDefault);
35 void ModifyUndoMenuItems();
36 void ModifyToolbarMenus();
37 // Calls ModifyToolbarMenus() on all projects
39 
41 
42 public:
43 // If checkActive, do not do complete flags testing on an
44 // inactive project as it is needlessly expensive.
45 CommandFlag GetUpdateFlags(bool checkActive = false);
46 
47 //Adds label and returns index of label in labeltrack.
48 int DoAddLabel(const SelectedRegion& region, bool preserveFocus = false);
49 
50 private:
51 double NearestZeroCrossing(double t0);
52 
53  // Selecting a tool from the keyboard
54 
55 void SetTool(int tool);
56 void OnSelectTool();
57 void OnZoomTool();
58 void OnEnvelopeTool();
59 void OnTimeShiftTool();
60 void OnDrawTool();
61 void OnMultiTool();
62 
63 void OnNextTool();
64 void OnPrevTool();
65 
66 public:
67  // Audio I/O Commands
68 
69 void OnStop();
70 void OnPause();
71 void OnRecord();
72 void OnRecord2ndChoice();
73 void OnStopSelect();
74 void OnSkipStart();
75 void OnSkipEnd();
76 void OnSeekLeftShort();
77 void OnSeekRightShort();
78 void OnSeekLeftLong();
79 void OnSeekRightLong();
80 
81  // Different posibilities for playing sound
82 
83 bool MakeReadyToPlay(bool loop = false, bool cutpreview = false); // Helper function that sets button states etc.
84 void OnPlayStop();
85 bool DoPlayStopSelect(bool click, bool shift);
86 void OnPlayStopSelect();
87 void OnPlayOneSecond();
88 void OnPlayToSelection();
95 void OnPlayLooped();
96 void OnPlayCutPreview();
97 
98  // Wave track control
99 
100 void OnTrackPan();
101 void OnTrackPanLeft();
102 void OnTrackPanRight();
103 void OnTrackGain();
104 void OnTrackGainInc();
105 void OnTrackGainDec();
106 void OnTrackMenu();
107 void OnTrackMute();
108 void OnTrackSolo();
109 void OnTrackClose();
110 void OnTrackMoveUp();
111 void OnTrackMoveDown();
112 void OnTrackMoveTop();
113 void OnTrackMoveBottom();
114 
116 void MoveTrack(Track* target, MoveChoice choice);
117 
118  // Device control
119 void OnInputDevice();
120 void OnOutputDevice();
121 void OnAudioHost();
122 void OnInputChannels();
123 
124  // Mixer control
125 
126 void OnOutputGain();
127 void OnInputGain();
128 void OnOutputGainInc();
129 void OnOutputGainDec();
130 void OnInputGainInc();
131 void OnInputGainDec();
132 
133  // Transcription control
134 
135 void OnPlayAtSpeed();
136 void OnPlayAtSpeedLooped();
138 void OnSetPlaySpeed();
139 void OnPlaySpeedInc();
140 void OnPlaySpeedDec();
141 
142  // Moving track focus commands
143 
144 void OnPrevTrack( bool shift );
145 void OnNextTrack( bool shift );
146 void OnCursorUp();
147 void OnCursorDown();
148 void OnFirstTrack();
149 void OnLastTrack();
150 
151  // Selection-Editing Commands
152 
153 void OnShiftUp();
154 void OnShiftDown();
155 void OnToggle();
156 
157 void HandleListSelection(Track *t, bool shift, bool ctrl, bool modifyState);
158 
159 void OnCursorLeft(const wxEvent * evt);
160 void OnCursorRight(const wxEvent * evt);
161 void OnSelExtendLeft(const wxEvent * evt);
162 void OnSelExtendRight(const wxEvent * evt);
163 void OnSelContractLeft(const wxEvent * evt);
164 void OnSelContractRight(const wxEvent * evt);
165 
166 public:
167 static double OnClipMove
168  (ViewInfo &viewInfo, Track *track,
169  TrackList &trackList, bool syncLocked, bool right);
170 
171 void DoClipLeftOrRight(bool right, bool keyUp );
172 void OnClipLeft(const wxEvent* evt);
173 void OnClipRight(const wxEvent* evt);
174 
175 void OnCursorShortJumpLeft();
177 void OnCursorLongJumpLeft();
178 void OnCursorLongJumpRight();
179 void OnSelSetExtendLeft();
180 void OnSelSetExtendRight();
181 
182 void OnSetLeftSelection();
183 void OnSetRightSelection();
184 
185 void OnSelToStart();
186 void OnSelToEnd();
187 
188 void OnMoveToNextLabel();
189 void OnMoveToPrevLabel();
190 void OnMoveToLabel(bool next);
191 
192 void OnZeroCrossing();
193 
194 void OnLockPlayRegion();
195 void OnUnlockPlayRegion();
196 
197 double GetTime(const Track *t);
198 void OnSortTime();
199 void OnSortName();
200 
201 void OnSnapToOff();
202 void OnSnapToNearest();
203 void OnSnapToPrior();
204 void OnFullScreen();
205 
206 static void DoMacMinimize(AudacityProject *project);
207 void OnMacMinimize();
208 void OnMacMinimizeAll();
209 void OnMacZoom();
210 void OnMacBringAllToFront();
211 
212  // File Menu
213 
214 void OnNew();
215 void OnOpen();
216 void OnClose();
217 void OnSave();
218 void OnSaveAs();
219 #ifdef USE_LIBVORBIS
220  void OnSaveCompressed();
221 #endif
222 
223 void OnCheckDependencies();
224 
225 void OnExport(const wxString & Format);
226 void OnExportAudio();
227 void OnExportMp3();
228 void OnExportWav();
229 void OnExportOgg();
230 void OnExportSelection();
231 void OnExportMultiple();
232 void OnExportLabels();
233 void OnExportMIDI();
234 
235 void OnPreferences();
236 
237 void OnPageSetup();
238 void OnPrint();
239 
240 void OnExit();
241 
242  // Edit Menu
243 
244 public:
245 void OnUndo();
246 void OnRedo();
247 
248 private:
249 static void FinishCopy(const Track *n, Track *dest);
250 static void FinishCopy(const Track *n, Track::Holder &&dest, TrackList &list);
251 
252 public:
253 void OnCut();
254 void OnSplitCut();
255 void OnCopy();
256 
257 void OnPaste();
258 private:
259 bool HandlePasteText(); // Handle text paste (into active label), if any. Return true if pasted.
260 bool HandlePasteNothingSelected(); // Return true if nothing selected, regardless of paste result.
261 public:
262 
263 void OnPasteNewLabel();
264 void OnPasteOver();
265 void OnTrim();
266 
267 void OnDelete();
268 void OnSplitDelete();
269 void OnSilence();
270 
271 void OnSplit();
272 void OnSplitNew();
273 void OnJoin();
274 void OnDisjoin();
275 void OnDuplicate();
276 
277 void OnCutLabels();
278 void OnSplitCutLabels();
279 void OnCopyLabels();
280 void OnDeleteLabels();
281 void OnSplitDeleteLabels();
282 void OnSilenceLabels();
283 void OnSplitLabels();
284 void OnJoinLabels();
285 void OnDisjoinLabels();
286 
287 void OnSelectTimeAndTracks(bool bAllTime, bool bAllTracks);
288 void OnSelectAllTime();
289 void OnSelectAllTracks();
290 void OnSelectAll();
291 void OnSelectSomething();
292 void OnSelectNone();
293 private:
295 int CountSelectedTracks();
296 public:
297 #ifdef EXPERIMENTAL_SPECTRAL_EDITING
298 // For toggling of spectral seletion
299 double mLastF0;
300 double mLastF1;
302 void DoNextPeakFrequency(bool up);
305 #endif
306 void OnSelectCursorEnd();
307 void OnSelectStartCursor();
310 void OnSelectClipBoundary(bool next);
311 typedef struct FoundClip {
314  bool channel;
315  bool found;
316  double startTime;
317  double endTime;
318  int index;
319 } FoundClip;
320 FoundClip FindNextClip(const WaveTrack* wt, double t0, double t1);
321 FoundClip FindPrevClip(const WaveTrack* wt, double t0, double t1);
322 int FindClips(double t0, double t1, bool next, std::vector<FoundClip>& results);
324 void OnSelectPrevClip();
325 void OnSelectNextClip();
326 void OnSelectClip(bool next);
328 void OnSelectSyncLockSel();
329 
330  // View Menu
331 
332 void OnZoomIn();
333 void OnZoomOut();
334 // void OnZoomToggle();
335 void OnZoomNormal();
336 void OnZoomFit();
337 void OnZoomFitV();
338 void DoZoomFitV();
339 void OnZoomSel();
340 void OnGoSelStart();
341 void OnGoSelEnd();
342 
343 void OnExpandAllTracks();
344 void OnCollapseAllTracks();
345 
346 void OnPanTracks(float PanValue);
347 void OnPanLeft();
348 void OnPanRight();
349 void OnPanCenter();
350 
351 void OnMuteAllTracks();
352 void OnUnMuteAllTracks();
353 
354 void OnShowClipping();
355 void OnShowExtraMenus();
356 
357 void OnHistory();
358 
359 void OnKaraoke();
360 void OnMixerBoard();
361 
362 void OnPlotSpectrum();
363 void OnContrast();
364 
366 void OnShowDeviceToolBar();
367 void OnShowEditToolBar();
368 void OnShowMeterToolBar();
371 void OnShowMixerToolBar();
373 #ifdef EXPERIMENTAL_SPECTRAL_EDITING
375 #endif
377 void OnShowToolsToolBar();
379 void OnResetToolBars();
380 
381  // Transport Menu
382 
383 void OnSoundActivated();
385 void OnTogglePinnedHead();
386 void OnTogglePlayRecording();
387 void OnToggleSWPlaythrough();
388 #ifdef EXPERIMENTAL_AUTOMATED_INPUT_LEVEL_ADJUSTMENT
389  void OnToggleAutomatedInputLevelAdjustment();
390 #endif
391 void OnRescanDevices();
392 
393 // Import Submenu
394 void OnImport();
395 void OnImportLabels();
396 void OnImportMIDI();
397 
398 // return null on failure; if success, return the given project, or a NEW
399 // one, if the given was null; create no NEW project if failure
401  AudacityProject *pProject, const wxString &fileName);
402 
403 void OnImportRaw();
404 
405 void OnEditMetadata();
406 bool DoEditMetadata(const wxString &title, const wxString &shortUndoDescription, bool force);
407 
408 void OnMixAndRender();
410 void HandleMixAndRender(bool toNewTrack);
411 
412 private:
416 public:
417 void OnSelectionSave();
418 void OnSelectionRestore();
419 void OnCursorPositionStore();
420 
421 void OnCursorTrackStart();
422 void OnCursorTrackEnd();
423 void OnCursorSelStart();
424 void OnCursorSelEnd();
425 typedef struct FoundClipBoundary {
428  bool channel;
429  int nFound; // 0, 1, or 2
430  double time;
431  int index1;
433  int index2;
436 FoundClipBoundary FindNextClipBoundary(const WaveTrack* wt, double time);
437 FoundClipBoundary FindPrevClipBoundary(const WaveTrack* wt, double time);
438 double AdjustForFindingStartTimes(const std::vector<const WaveClip*>& clips, double time);
439 double AdjustForFindingEndTimes(const std::vector<const WaveClip*>& clips, double time);
440 int FindClipBoundaries(double time, bool next, std::vector<FoundClipBoundary>& results);
443 void OnCursorClipBoundary(bool next);
444 wxString ClipBoundaryMessage(const std::vector<FoundClipBoundary>& results);
445 
446 void OnAlignNoSync(int index);
447 void OnAlign(int index);
448 //void OnAlignMoveSel(int index);
449 void HandleAlign(int index, bool moveSel);
451 
452 #ifdef EXPERIMENTAL_SCOREALIGN
453 void OnScoreAlign();
454 #endif // EXPERIMENTAL_SCOREALIGN
455 
456 // Tracks menu
457 void OnNewWaveTrack();
458 void OnNewStereoTrack();
459 void OnNewLabelTrack();
460 void OnNewTimeTrack();
461 void OnTimerRecord();
462 void OnRemoveTracks();
464 void OnSyncLock();
465 void OnAddLabel();
466 void OnAddLabelPlaying();
467 void DoEditLabels(LabelTrack *lt = nullptr, int index = -1);
468 void OnEditLabels();
470 
471  // Effect Menu
472 
474 {
475 public:
476  // No flags specified
477  static const int kNone = 0x00;
478  // Flag used to disable prompting for configuration parameteres.
479  static const int kConfigured = 0x01;
480  // Flag used to disable saving the state after processing.
481  static const int kSkipState = 0x02;
482  // Flag used to disable "Repeat Last Effect"
483  static const int kDontRepeatLast = 0x04;
484 };
485 
486 bool OnEffect(const PluginID & ID, int flags = OnEffectFlags::kNone);
487 void OnRepeatLastEffect(int index);
488 void OnApplyChain();
489 void OnEditChains();
490 void OnStereoToMono(int index);
491 void OnManagePluginsMenu(EffectType Type);
492 void RebuildAllMenuBars();
493 void OnManageGenerators();
494 void OnManageEffects();
495 void OnManageAnalyzers();
496 
497 
498 
499  // Help Menu
500 
501 void OnAbout();
502 void OnQuickHelp();
503 void OnManual();
504 void OnCheckForUpdates();
505 void MayCheckForUpdates();
506 void OnShowLog();
507 void OnHelpWelcome();
508 void OnBenchmark();
509 #if defined(EXPERIMENTAL_CRASH_REPORT)
510 void OnCrashReport();
511 #endif
512 void OnScreenshot();
513 void OnAudioDeviceInfo();
514 #ifdef EXPERIMENTAL_MIDI_OUT
515 void OnMidiDeviceInfo();
516 #endif
517 
518  //
519 
520 void OnSeparator();
521 
522  // Keyboard navigation
523 
524 void NextOrPrevFrame(bool next);
525 void PrevFrame();
526 void NextFrame();
527 
528 void PrevWindow();
529 void NextWindow();
530 
531 void OnResample();
532 
533 private:
534 void OnCursorLeft(bool shift, bool ctrl, bool keyup = false);
535 void OnCursorRight(bool shift, bool ctrl, bool keyup = false);
536 void OnCursorMove(bool forward, bool jump, bool longjump);
537 void OnBoundaryMove(bool left, bool boundaryContract);
538 
539 // Handle small cursor and play head movements
540 void SeekLeftOrRight
541 (bool left, bool shift, bool ctrl, bool keyup,
542  int snapToTime, bool mayAccelerateQuiet, bool mayAccelerateAudio,
543  double quietSeekStepPositive, bool quietStepIsPixels,
544  double audioSeekStepPositive, bool audioStepIsPixels);
545 
546 // Helper for moving by keyboard with snap-to-grid enabled
547 double GridMove(double t, int minPix);
548 
549 // Make sure we return to "public" for subsequent declarations in Project.h.
550 public:
551 
552 #endif
553 
554 
555 
void OnCursorDown()
void OnPlayLooped()
const WaveTrack * waveTrack
Definition: Menus.h:426
void OnSilence()
void OnSelExtendRight(const wxEvent *evt)
void OnExport(const wxString &Format)
void OnSelectSyncLockSel()
void OnHistory()
void OnAddLabel()
Definition: Menus.h:115
static wxArrayString names()
Definition: Tags.cpp:698
void OnTrackPan()
void OnManageAnalyzers()
A list of TrackListNode items.
Definition: Track.h:550
void OnSelectCursorToNextClipBoundary()
void OnToggleSoundActivated()
void OnPlayAtSpeed()
void OnShiftUp()
void OnRescanDevices()
void OnSnapToOff()
void OnBenchmark()
void HandleListSelection(Track *t, bool shift, bool ctrl, bool modifyState)
void OnPageSetup()
void OnExportMp3()
void OnMacZoom()
void OnSetLeftSelection()
ViewInfo is used mainly to hold the zooming, selection and scroll information. It also has some statu...
Definition: ViewInfo.h:138
void PopulateEffectsMenu(CommandManager *c, EffectType type, CommandFlag batchflags, CommandFlag realflags)
bool DoPlayStopSelect(bool click, bool shift)
static const int kConfigured
Definition: Menus.h:479
void OnTrackPanRight()
void OnSplitNew()
Abstract base class used in importing a file.
Definition: Import.h:32
void DoClipLeftOrRight(bool right, bool keyUp)
void OnTrackClose()
void OnShowMixerToolBar()
static AudacityProject * DoImportMIDI(AudacityProject *pProject, const wxString &fileName)
int index
Definition: Menus.h:318
void OnSetPlaySpeed()
void OnPlayAtSpeedLooped()
void OnAlign(int index)
void OnNewWaveTrack()
void OnRecord()
void OnMixAndRender()
void OnSelExtendLeft(const wxEvent *evt)
wxString PluginID
Definition: CommandFunctors.h:16
static const int kSkipState
Definition: Menus.h:481
void OnCursorRight(const wxEvent *evt)
void OnPrint()
void OnNewTimeTrack()
void OnZoomIn()
void OnSelectNone()
bool OnEffect(const PluginID &ID, int flags=OnEffectFlags::kNone)
void OnExportAudio()
void OnCursorClipBoundary(bool next)
void OnInputGain()
void OnSelectClip(bool next)
struct FoundClip FoundClip
void OnCheckForUpdates()
void OnResetToolBars()
void OnToggleTypeToCreateLabel()
void OnCursorLongJumpRight()
void OnExportLabels()
void OnPreferences()
static void FinishCopy(const Track *n, Track *dest)
void OnEnvelopeTool()
void OnNextHigherPeakFrequency()
void OnShowExtraMenus()
void OnSelectClipBoundary(bool next)
void OnStereoToMono(int index)
Definition: Menus.h:425
void OnCut()
void OnHelpWelcome()
void OnRepeatLastEffect(int index)
int index2
Definition: Menus.h:433
void OnOutputGainDec()
void OnShowSelectionToolBar()
void SeekLeftOrRight(bool left, bool shift, bool ctrl, bool keyup, int snapToTime, bool mayAccelerateQuiet, bool mayAccelerateAudio, double quietSeekStepPositive, bool quietStepIsPixels, double audioSeekStepPositive, bool audioStepIsPixels)
void OnCursorLeft(const wxEvent *evt)
void AddEffectMenuItemGroup(CommandManager *c, const wxArrayString &names, const PluginIDList &plugs, const std::vector< CommandFlag > &flags, bool isDefault)
static const int kDontRepeatLast
Definition: Menus.h:483
void OnPlayCutPreview()
void OnCursorTrackStart()
void OnSplitCut()
void OnTrackMenu()
void OnNewStereoTrack()
void NextOrPrevFrame(bool next)
int trackNumber
Definition: Menus.h:313
void OnSortName()
void OnDisjoinLabels()
void OnTimerRecord()
void OnExpandAllTracks()
Definition: Menus.h:115
void AddEffectMenuItems(CommandManager *c, EffectPlugs &plugs, CommandFlag batchflags, CommandFlag realflags, bool isDefault)
void OnExit()
void OnTrackMoveDown()
wxString ClipBoundaryMessage(const std::vector< FoundClipBoundary > &results)
void OnMacBringAllToFront()
void OnTrackMoveUp()
void OnMacMinimize()
FoundClip FindNextClip(const WaveTrack *wt, double t0, double t1)
void OnCopy()
void OnAudioHost()
void OnToggle()
void OnNextLowerPeakFrequency()
void OnClipLeft(const wxEvent *evt)
void OnShowPlayMeterToolBar()
void OnManual()
FoundClipBoundary FindNextClipBoundary(const WaveTrack *wt, double time)
void OnInputGainDec()
int FindClips(double t0, double t1, bool next, std::vector< FoundClip > &results)
void OnShiftDown()
void OnCursorPrevClipBoundary()
void OnOutputDevice()
void OnSplitDelete()
bool clipStart2
Definition: Menus.h:434
int nFound
Definition: Menus.h:429
void DoEditLabels(LabelTrack *lt=nullptr, int index=-1)
void OnSilenceLabels()
void OnPanCenter()
void OnAbout()
void OnPlayBeforeAndAfterSelectionEnd()
void ModifyUndoMenuItems()
void OnLastTrack()
void OnSoundActivated()
void OnOpen()
wxArrayString PluginIDList
Definition: PluginManager.h:168
void OnPanTracks(float PanValue)
bool clipStart1
Definition: Menus.h:432
void OnPrevTool()
void OnTrackMoveTop()
Definition: Menus.h:311
void OnRemoveTracks()
void OnSelToStart()
void OnSelectSomething()
void OnCursorSelStart()
void OnZoomOut()
void OnSelToEnd()
void OnPlayBeforeSelectionEnd()
void OnSelectCursorStoredCursor()
void OnJoinLabels()
FoundClip FindPrevClip(const WaveTrack *wt, double t0, double t1)
void OnPasteOver()
A LabelTrack is a Track that holds labels (LabelStruct).
Definition: LabelTrack.h:114
void OnSelContractRight(const wxEvent *evt)
void OnShowDeviceToolBar()
void OnImportRaw()
void OnRecord2ndChoice()
void OnEditMetadata()
void OnStop()
void OnPlayBeforeSelectionStart()
void OnShowScrubbingToolBar()
void ModifyAllProjectToolbarMenus()
void OnKaraoke()
void OnPlotSpectrum()
void OnSelSetExtendLeft()
void OnAddLabelPlaying()
void MayCheckForUpdates()
AudacityProject provides the main window, with tools and tracks contained within it.
Definition: Project.h:161
void OnShowRecordMeterToolBar()
void OnSeekLeftLong()
void OnZeroCrossing()
SelectedRegion mRegionSave
Definition: Menus.h:413
void OnInputDevice()
int DoAddLabel(const SelectedRegion &region, bool preserveFocus=false)
void OnSplitLabels()
void OnManageGenerators()
struct FoundClipBoundary FoundClipBoundary
bool ChannelsHaveSameClipBoundaries(const WaveTrack *wt)
void OnSeekLeftShort()
void OnSelectTool()
void OnShowLog()
void OnSelectionRestore()
void OnTrackMute()
void OnCollapseAllTracks()
Defines a selected portion of a project.
Definition: SelectedRegion.h:37
void OnImportMIDI()
void OnMoveToLabel(bool next)
void OnTrackGain()
void OnPlaySpeedInc()
void OnEditChains()
void OnSelectTimeAndTracks(bool bAllTime, bool bAllTracks)
void OnCursorMove(bool forward, bool jump, bool longjump)
int CountSelectedTracks()
void OnSelContractLeft(const wxEvent *evt)
void OnMultiTool()
void OnSortTime()
void OnPause()
int FindClipBoundaries(double time, bool next, std::vector< FoundClipBoundary > &results)
void OnJoin()
void DoNextPeakFrequency(bool up)
void OnUndo()
void OnPasteNewLabel()
double GridMove(double t, int minPix)
void OnTrackPanLeft()
void OnMixerBoard()
A Track that contains audio waveform data.
Definition: WaveTrack.h:76
void OnMuteAllTracks()
void OnNew()
CommandFlag GetUpdateFlags(bool checkActive=false)
FoundClipBoundary FindPrevClipBoundary(const WaveTrack *wt, double time)
int index1
Definition: Menus.h:431
Fundamental data object of Audacity, placed in the TrackPanel. Classes derived form it include the Wa...
Definition: Track.h:85
void OnPanLeft()
void OnClipRight(const wxEvent *evt)
void OnShowMeterToolBar()
bool DoEditMetadata(const wxString &title, const wxString &shortUndoDescription, bool force)
void OnTrackMoveBottom()
void OnZoomNormal()
CommandManager implements a system for organizing all user-callable commands.
Definition: CommandManager.h:94
void OnFirstTrack()
void CreateRecentFilesMenu(CommandManager *c)
void OnSplitDeleteLabels()
void OnPlayToSelection()
void OnSyncLock()
void OnDrawTool()
void OnUnlockPlayRegion()
void OnMoveToNextLabel()
void OnEditLabels()
void OnAlignNoSync(int index)
size_t mAlignLabelsCount
Definition: Menus.h:450
bool HandlePasteNothingSelected()
void OnImport()
void OnSelectionSave()
void OnPlayAtSpeedCutPreview()
void OnFullScreen()
double GetTime(const Track *t)
void OnExportOgg()
void OnZoomFit()
void OnCopyLabels()
void OnInputChannels()
void OnTrackGainInc()
Definition: Menus.h:115
void DoZoomFitV()
void OnExportMultiple()
void OnSaveAs()
void OnTogglePlayRecording()
void OnShowTransportToolBar()
void OnDuplicate()
void OnMoveToPrevLabel()
static void DoMacMinimize(AudacityProject *project)
static const int kNone
Definition: Menus.h:477
void OnOutputGainInc()
double startTime
Definition: Menus.h:316
void ModifyToolbarMenus()
void OnPlayStopSelect()
void OnCursorNextClipBoundary()
void OnSelectNextClip()
void OnSkipEnd()
double NearestZeroCrossing(double t0)
CommandFlag GetFocusedFrame()
void OnClose()
void OnSelectPrevClip()
bool HandlePasteText()
void OnShowClipping()
void OnSkipStart()
void OnCursorShortJumpLeft()
void OnToggleSWPlaythrough()
void OnMoveSelectionWithTracks()
void HandleAlign(int index, bool moveSel)
double AdjustForFindingEndTimes(const std::vector< const WaveClip * > &clips, double time)
CommandFlag
Definition: CommandFlag.h:16
void OnDeleteLabels()
void OnPaste()
double mCursorPositionStored
Definition: Menus.h:415
void OnDisjoin()
void OnDelete()
bool MakeReadyToPlay(bool loop=false, bool cutpreview=false)
void OnCutLabels()
int trackNumber
Definition: Menus.h:427
void OnCursorPositionStore()
void OnSplitCutLabels()
const WaveTrack * waveTrack
Definition: Menus.h:312
void OnBoundaryMove(bool left, bool boundaryContract)
void OnScreenshot()
void RebuildAllMenuBars()
void OnExportWav()
int CountSelectedWaveTracks()
void OnImportLabels()
void OnSelectCursorEnd()
void OnInputGainInc()
void OnSetRightSelection()
void OnSplit()
void OnCursorShortJumpRight()
void OnApplyChain()
void OnSelectPrevClipBoundaryToCursor()
void OnZoomTool()
void OnSeekRightShort()
void OnSelectStartCursor()
void SetTool(int tool)
void OnMixAndRenderToNewTrack()
void OnTimeShiftTool()
void OnSelectAllTime()
void OnExportMIDI()
void OnManageEffects()
void OnMacMinimizeAll()
double mLastF1
Definition: Menus.h:300
void OnSnapToNearest()
bool channel
Definition: Menus.h:314
void OnTogglePinnedHead()
void OnCursorLongJumpLeft()
void OnShowEditToolBar()
void OnSave()
void OnToggleSpectralSelection()
void OnCursorUp()
void OnOutputGain()
void OnCheckDependencies()
MoveChoice
Definition: Menus.h:115
void OnZoomFitV()
void OnZoomSel()
void OnPlayOneSecond()
void OnStopSelect()
void OnSeekRightLong()
void OnPlaySpeedDec()
void CreateMenusAndCommands()
void MoveTrack(Track *target, MoveChoice choice)
void OnShowTranscriptionToolBar()
void NextFrame()
void OnCursorSelEnd()
std::unique_ptr< Track > Holder
Definition: Track.h:245
static double OnClipMove(ViewInfo &viewInfo, Track *track, TrackList &trackList, bool syncLocked, bool right)
double mLastF0
Definition: Menus.h:299
bool mCursorPositionHasBeenStored
Definition: Menus.h:414
void OnNextTrack(bool shift)
void OnAudioDeviceInfo()
void OnGoSelStart()
bool found
Definition: Menus.h:315
void OnPlayAfterSelectionEnd()
void OnQuickHelp()
void OnShowSpectralSelectionToolBar()
void OnSelectAllTracks()
void OnSelectAll()
void OnTrackSolo()
void OnNextTool()
void OnPanRight()
void OnExportSelection()
void OnPlayBeforeAndAfterSelectionStart()
double endTime
Definition: Menus.h:317
void OnCursorTrackEnd()
void OnGoSelEnd()
void OnLockPlayRegion()
Definition: Menus.h:473
void OnUnMuteAllTracks()
Definition: Menus.h:115
void OnResample()
bool channel
Definition: Menus.h:428
void OnPlayAfterSelectionStart()
void OnSeparator()
void OnShowToolsToolBar()
double time
Definition: Menus.h:430
void OnContrast()
void PrevWindow()
void PrevFrame()
void OnManagePluginsMenu(EffectType Type)
void OnPlayStop()
double AdjustForFindingStartTimes(const std::vector< const WaveClip * > &clips, double time)
void OnRedo()
void OnNewLabelTrack()
void NextWindow()
void OnPrevTrack(bool shift)
void OnTrim()
void OnSelSetExtendRight()
void OnSnapToPrior()
void OnTrackGainDec()
void HandleMixAndRender(bool toNewTrack)