Audacity 3.2.0
Public Member Functions | List of all members
ClipActions::Handler Struct Reference
Inheritance diagram for ClipActions::Handler:
[legend]
Collaboration diagram for ClipActions::Handler:
[legend]

Public Member Functions

void OnSelectPrevClipBoundaryToCursor (const CommandContext &context)
 
void OnSelectCursorToNextClipBoundary (const CommandContext &context)
 
void OnSelectPrevClip (const CommandContext &context)
 
void OnSelectNextClip (const CommandContext &context)
 
void OnCursorPrevClipBoundary (const CommandContext &context)
 
void OnCursorNextClipBoundary (const CommandContext &context)
 
void OnClipLeft (const CommandContext &context)
 
void OnClipRight (const CommandContext &context)
 

Detailed Description

Definition at line 752 of file ClipMenus.cpp.

Member Function Documentation

◆ OnClipLeft()

void ClipActions::Handler::OnClipLeft ( const CommandContext context)
inline

Definition at line 796 of file ClipMenus.cpp.

797{
798 auto &project = context.project;
799 auto evt = context.pEvt;
800 if (evt)
801 DoClipLeftOrRight( project, false, evt->GetEventType() == wxEVT_KEY_UP );
802 else { // called from menu, so simulate keydown and keyup
803 DoClipLeftOrRight( project, false, false );
804 DoClipLeftOrRight( project, false, true );
805 }
806}
const wxEvent * pEvt
AudacityProject & project
void DoClipLeftOrRight(AudacityProject &project, bool right, bool keyUp)
Definition: ClipMenus.cpp:704

References anonymous_namespace{ClipMenus.cpp}::DoClipLeftOrRight(), CommandContext::pEvt, and CommandContext::project.

Here is the call graph for this function:

◆ OnClipRight()

void ClipActions::Handler::OnClipRight ( const CommandContext context)
inline

Definition at line 808 of file ClipMenus.cpp.

809{
810 auto &project = context.project;
811 auto evt = context.pEvt;
812 if (evt)
813 DoClipLeftOrRight( project, true, evt->GetEventType() == wxEVT_KEY_UP );
814 else { // called from menu, so simulate keydown and keyup
815 DoClipLeftOrRight( project, true, false );
816 DoClipLeftOrRight( project, true, true );
817 }
818}

References anonymous_namespace{ClipMenus.cpp}::DoClipLeftOrRight(), CommandContext::pEvt, and CommandContext::project.

Here is the call graph for this function:

◆ OnCursorNextClipBoundary()

void ClipActions::Handler::OnCursorNextClipBoundary ( const CommandContext context)
inline

Definition at line 787 of file ClipMenus.cpp.

788{
789 AudacityProject &project = context.project;
790
791 DoCursorClipBoundary(project, true);
792}
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:89
void DoCursorClipBoundary(AudacityProject &project, bool next)
Definition: ClipMenus.cpp:627

References anonymous_namespace{ClipMenus.cpp}::DoCursorClipBoundary(), and CommandContext::project.

Here is the call graph for this function:

◆ OnCursorPrevClipBoundary()

void ClipActions::Handler::OnCursorPrevClipBoundary ( const CommandContext context)
inline

Definition at line 780 of file ClipMenus.cpp.

781{
782 AudacityProject &project = context.project;
783
784 DoCursorClipBoundary(project, false);
785}

References anonymous_namespace{ClipMenus.cpp}::DoCursorClipBoundary(), and CommandContext::project.

Here is the call graph for this function:

◆ OnSelectCursorToNextClipBoundary()

void ClipActions::Handler::OnSelectCursorToNextClipBoundary ( const CommandContext context)
inline

Definition at line 761 of file ClipMenus.cpp.

763{
764 auto &project = context.project;
765 DoSelectClipBoundary(project, true);
766}
void DoSelectClipBoundary(AudacityProject &project, bool next)
Definition: ClipMenus.cpp:388

References anonymous_namespace{ClipMenus.cpp}::DoSelectClipBoundary(), and CommandContext::project.

Here is the call graph for this function:

◆ OnSelectNextClip()

void ClipActions::Handler::OnSelectNextClip ( const CommandContext context)
inline

Definition at line 774 of file ClipMenus.cpp.

775{
776 auto &project = context.project;
777 DoSelectClip(project, true);
778}
void DoSelectClip(AudacityProject &project, bool next)
Definition: ClipMenus.cpp:576

References anonymous_namespace{ClipMenus.cpp}::DoSelectClip(), and CommandContext::project.

Here is the call graph for this function:

◆ OnSelectPrevClip()

void ClipActions::Handler::OnSelectPrevClip ( const CommandContext context)
inline

Definition at line 768 of file ClipMenus.cpp.

769{
770 auto &project = context.project;
771 DoSelectClip(project, false);
772}

References anonymous_namespace{ClipMenus.cpp}::DoSelectClip(), and CommandContext::project.

Here is the call graph for this function:

◆ OnSelectPrevClipBoundaryToCursor()

void ClipActions::Handler::OnSelectPrevClipBoundaryToCursor ( const CommandContext context)
inline

Definition at line 754 of file ClipMenus.cpp.

756{
757 auto &project = context.project;
758 DoSelectClipBoundary(project, false);
759}

References anonymous_namespace{ClipMenus.cpp}::DoSelectClipBoundary(), and CommandContext::project.

Here is the call graph for this function:

The documentation for this struct was generated from the following file: