Audacity  2.2.0
Menus.cpp File Reference

All AudacityProject functions that provide the menus. Implements AudacityProjectCommandFunctor. More...

#include "Audacity.h"
#include "Project.h"
#include <cfloat>
#include <iterator>
#include <algorithm>
#include <limits>
#include <math.h>
#include <wx/defs.h>
#include <wx/docview.h>
#include <wx/msgdlg.h>
#include <wx/filedlg.h>
#include <wx/textfile.h>
#include <wx/textdlg.h>
#include <wx/progdlg.h>
#include <wx/scrolbar.h>
#include <wx/ffile.h>
#include <wx/statusbr.h>
#include <wx/utils.h>
#include "FreqWindow.h"
#include "effects/Contrast.h"
#include "TrackPanel.h"
#include "effects/EffectManager.h"
#include "AudacityApp.h"
#include "AudacityLogger.h"
#include "AudioIO.h"
#include "Dependencies.h"
#include "float_cast.h"
#include "LabelTrack.h"
#include "import/ImportRaw.h"
#include "export/Export.h"
#include "export/ExportMultiple.h"
#include "prefs/PrefsDialog.h"
#include "prefs/PlaybackPrefs.h"
#include "ShuttleGui.h"
#include "HistoryWindow.h"
#include "LyricsWindow.h"
#include "MixerBoard.h"
#include "Internat.h"
#include "FileFormats.h"
#include "ModuleManager.h"
#include "PluginManager.h"
#include "Prefs.h"
#include "Printing.h"
#include "Tags.h"
#include "TimeTrack.h"
#include "Mix.h"
#include "AboutDialog.h"
#include "Benchmark.h"
#include "Screenshot.h"
#include "ondemand/ODManager.h"
#include "BatchProcessDialog.h"
#include "BatchCommands.h"
#include "prefs/BatchPrefs.h"
#include "toolbars/ToolManager.h"
#include "toolbars/ControlToolBar.h"
#include "toolbars/ToolsToolBar.h"
#include "toolbars/EditToolBar.h"
#include "toolbars/DeviceToolBar.h"
#include "toolbars/MixerToolBar.h"
#include "toolbars/TranscriptionToolBar.h"
#include "tracks/ui/SelectHandle.h"
#include "widgets/LinkingHtmlWindow.h"
#include "Experimental.h"
#include "PlatformCompatibility.h"
#include "FileNames.h"
#include "TimeDialog.h"
#include "TimerRecordDialog.h"
#include "SoundActivatedRecord.h"
#include "LabelDialog.h"
#include "SplashDialog.h"
#include "widgets/HelpSystem.h"
#include "DeviceManager.h"
#include "UndoManager.h"
#include "WaveTrack.h"
#include "tracks/ui/Scrubbing.h"
#include "prefs/TracksPrefs.h"
#include "widgets/Meter.h"
#include "commands/CommandFunctors.h"
#include "commands/ScreenshotCommand.h"
#include "TrackPanelAx.h"
#include "tracks/ui/TimeShiftHandle.h"

Enumerations

enum  {
  kAlignStartZero = 0, kAlignStartSelStart, kAlignStartSelEnd, kAlignEndSelStart,
  kAlignEndSelEnd, kAlignEndToEnd, kAlignTogether
}
 
enum  {
  POST_TIMER_RECORD_STOPPED = -3, POST_TIMER_RECORD_CANCEL_WAIT, POST_TIMER_RECORD_CANCEL, POST_TIMER_RECORD_NOTHING,
  POST_TIMER_RECORD_CLOSE, POST_TIMER_RECORD_RESTART, POST_TIMER_RECORD_SHUTDOWN
}
 

Functions

 WX_DEFINE_ARRAY_PTR (const PluginDescriptor *, EffectPlugs)
 
static int SortEffectsByName (const PluginDescriptor **a, const PluginDescriptor **b)
 
static int SortEffectsByPublisher (const PluginDescriptor **a, const PluginDescriptor **b)
 
static int SortEffectsByPublisherAndName (const PluginDescriptor **a, const PluginDescriptor **b)
 
static int SortEffectsByTypeAndName (const PluginDescriptor **a, const PluginDescriptor **b)
 
static int SortEffectsByType (const PluginDescriptor **a, const PluginDescriptor **b)
 

Detailed Description

All AudacityProject functions that provide the menus. Implements AudacityProjectCommandFunctor.

This file implements the method that creates the menu bar, plus all of the methods that get called when you select an item from a menu.

All of the menu bar handling is part of the class AudacityProject, but the event handlers for all of the menu items have been moved to Menus.h and Menus.cpp for clarity.

Enumeration Type Documentation

anonymous enum
Enumerator
kAlignStartZero 
kAlignStartSelStart 
kAlignStartSelEnd 
kAlignEndSelStart 
kAlignEndSelEnd 
kAlignEndToEnd 
kAlignTogether 
anonymous enum
Enumerator
POST_TIMER_RECORD_STOPPED 
POST_TIMER_RECORD_CANCEL_WAIT 
POST_TIMER_RECORD_CANCEL 
POST_TIMER_RECORD_NOTHING 
POST_TIMER_RECORD_CLOSE 
POST_TIMER_RECORD_RESTART 
POST_TIMER_RECORD_SHUTDOWN 

Function Documentation

static int SortEffectsByName ( const PluginDescriptor **  a,
const PluginDescriptor **  b 
)
static
static int SortEffectsByPublisher ( const PluginDescriptor **  a,
const PluginDescriptor **  b 
)
static

References _().

Referenced by AudacityProject::PopulateEffectsMenu().

static int SortEffectsByPublisherAndName ( const PluginDescriptor **  a,
const PluginDescriptor **  b 
)
static
static int SortEffectsByType ( const PluginDescriptor **  a,
const PluginDescriptor **  b 
)
static

References _().

Referenced by AudacityProject::PopulateEffectsMenu().

static int SortEffectsByTypeAndName ( const PluginDescriptor **  a,
const PluginDescriptor **  b 
)
static

References _().

Referenced by AudacityProject::PopulateEffectsMenu().

WX_DEFINE_ARRAY_PTR ( const PluginDescriptor ,
EffectPlugs   
)