Audacity 3.2.0
Classes | Namespaces | Macros | Enumerations | Functions | Variables
SelectMenus.cpp File Reference
#include "../AdornedRulerPanel.h"
#include "AudioIO.h"
#include "BasicUI.h"
#include "../CommonCommandFlags.h"
#include "Prefs.h"
#include "Project.h"
#include "ProjectAudioIO.h"
#include "../ProjectAudioManager.h"
#include "ProjectHistory.h"
#include "ProjectRate.h"
#include "ProjectSnap.h"
#include "../ProjectWindows.h"
#include "../SelectUtilities.h"
#include "SyncLock.h"
#include "../TrackPanel.h"
#include "Viewport.h"
#include "WaveClip.h"
#include "WaveTrack.h"
#include "../LabelTrack.h"
#include "CommandContext.h"
#include "MenuRegistry.h"
#include "../toolbars/ControlToolBar.h"
#include "../tracks/ui/SelectHandle.h"
#include "../tracks/labeltrack/ui/LabelTrackView.h"
#include "../tracks/playabletrack/wavetrack/ui/WaveChannelView.h"
Include dependency graph for SelectMenus.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{SelectMenus.cpp}::SeekInfo
 
struct  SelectActions::Handler
 

Namespaces

namespace  anonymous_namespace{SelectMenus.cpp}
 
namespace  SelectActions
 

Macros

#define FN(X)   (& SelectActions::Handler :: X)
 

Enumerations

enum  anonymous_namespace{SelectMenus.cpp}::CursorDirection { anonymous_namespace{SelectMenus.cpp}::DIRECTION_LEFT = -1 , anonymous_namespace{SelectMenus.cpp}::DIRECTION_RIGHT = +1 }
 
enum  anonymous_namespace{SelectMenus.cpp}::SelectionOperation { anonymous_namespace{SelectMenus.cpp}::SELECTION_EXTEND , anonymous_namespace{SelectMenus.cpp}::SELECTION_CONTRACT , anonymous_namespace{SelectMenus.cpp}::CURSOR_MOVE }
 
enum  anonymous_namespace{SelectMenus.cpp}::TimeUnit { anonymous_namespace{SelectMenus.cpp}::TIME_UNIT_SECONDS , anonymous_namespace{SelectMenus.cpp}::TIME_UNIT_PIXELS }
 

Functions

constexpr auto anonymous_namespace{SelectMenus.cpp}::GetWindowSize (double projectRate)
 
double anonymous_namespace{SelectMenus.cpp}::NearestZeroCrossing (AudacityProject &project, double t0)
 
bool anonymous_namespace{SelectMenus.cpp}::OnlyHandleKeyUp (const CommandContext &context)
 
void anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioActive (double seekStep, wxLongLong &lastSelectionAdjustment)
 
double anonymous_namespace{SelectMenus.cpp}::GridMove (AudacityProject &project, double t, int minPix)
 
double anonymous_namespace{SelectMenus.cpp}::OffsetTime (AudacityProject &project, double t, double offset, TimeUnit timeUnit, SnapMode snapMode)
 
void anonymous_namespace{SelectMenus.cpp}::MoveWhenAudioInactive (AudacityProject &project, double seekStep, TimeUnit timeUnit)
 
void anonymous_namespace{SelectMenus.cpp}::SeekWhenAudioInactive (AudacityProject &project, double seekStep, TimeUnit timeUnit, SelectionOperation operation)
 
void anonymous_namespace{SelectMenus.cpp}::SeekLeftOrRight (AudacityProject &project, double direction, SelectionOperation operation, SeekInfo &info)
 
void anonymous_namespace{SelectMenus.cpp}::DoCursorMove (AudacityProject &project, double seekStep, wxLongLong &lastSelectionAdjustment)
 
void anonymous_namespace{SelectMenus.cpp}::DoBoundaryMove (AudacityProject &project, int step, SeekInfo &info)
 
static CommandHandlerObjectfindCommandHandler (AudacityProject &project)
 
auto anonymous_namespace{SelectMenus.cpp}::SelectMenu ()
 
auto anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu ()
 
auto anonymous_namespace{SelectMenus.cpp}::CursorMenu ()
 
auto anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu ()
 
auto anonymous_namespace{SelectMenus.cpp}::ExtraSeekMenu ()
 

Variables

static const AudacityProject::AttachedObjects::RegisteredFactory key
 
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment1 { Indirect(SelectMenu()) }
 
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment2
 
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment0
 
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment4
 
AttachedItem anonymous_namespace{SelectMenus.cpp}::sAttachment5
 

Macro Definition Documentation

◆ FN

#define FN (   X)    (& SelectActions::Handler :: X)

Definition at line 951 of file SelectMenus.cpp.

Function Documentation

◆ findCommandHandler()

static CommandHandlerObject & findCommandHandler ( AudacityProject project)
static

Definition at line 945 of file SelectMenus.cpp.

945 {
946 return project.AttachedObjects::Get< SelectActions::Handler >( key );
947};
static const AudacityProject::AttachedObjects::RegisteredFactory key
const auto project

References key, and project.

Referenced by anonymous_namespace{SelectMenus.cpp}::CursorMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraCursorMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraSeekMenu(), anonymous_namespace{SelectMenus.cpp}::ExtraSelectionMenu(), and anonymous_namespace{SelectMenus.cpp}::SelectMenu().

Here is the caller graph for this function:

Variable Documentation

◆ key

Initial value:
{
return std::make_unique< SelectActions::Handler >(); } }
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90

Definition at line 941 of file SelectMenus.cpp.

Referenced by findCommandHandler().