Audacity 3.2.0
Public Member Functions | Protected Attributes | List of all members
AdornedRulerPanel::CommonCell Class Reference
Inheritance diagram for AdornedRulerPanel::CommonCell:
[legend]
Collaboration diagram for AdornedRulerPanel::CommonCell:
[legend]

Public Member Functions

 CommonCell (AdornedRulerPanel *parent, MenuChoice menuChoice)
 
HitTestPreview DefaultPreview (const TrackPanelMouseState &, const AudacityProject *) override
 
unsigned DoContextMenu (const wxRect &, wxWindow *, const wxPoint *pPosition, AudacityProject *) final
 
- Public Member Functions inherited from TrackPanelCell
 TrackPanelCell ()=default
 
 TrackPanelCell (const TrackPanelCell &)=delete
 
TrackPanelCelloperator= (const TrackPanelCell &)=delete
 
virtual ~TrackPanelCell ()=0
 
virtual HitTestPreview DefaultPreview (const TrackPanelMouseState &state, const AudacityProject *pProject)
 
virtual std::vector< UIHandlePtrHitTest (const TrackPanelMouseState &state, const AudacityProject *pProject)=0
 
virtual unsigned HandleWheelRotation (const TrackPanelMouseEvent &event, AudacityProject *pProject)
 
virtual std::shared_ptr< TrackPanelCellContextMenuDelegate ()
 
virtual unsigned DoContextMenu (const wxRect &rect, wxWindow *pParent, const wxPoint *pPosition, AudacityProject *pProject)
 
virtual unsigned CaptureKey (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned KeyDown (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned KeyUp (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned Char (wxKeyEvent &event, ViewInfo &viewInfo, wxWindow *pParent, AudacityProject *project)
 
virtual unsigned LoseFocus (AudacityProject *project)
 
- Public Member Functions inherited from TrackPanelNode
 TrackPanelNode ()
 
virtual ~TrackPanelNode ()=0
 
- Public Member Functions inherited from TrackPanelDrawable
virtual ~TrackPanelDrawable ()=0
 
virtual void Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass)
 
virtual wxRect DrawingArea (TrackPanelDrawingContext &context, const wxRect &rect, const wxRect &panelRect, unsigned iPass)
 

Protected Attributes

AdornedRulerPanelmParent
 
const MenuChoice mMenuChoice
 

Additional Inherited Members

- Static Public Member Functions inherited from TrackPanelDrawable
static wxRect MaximizeWidth (const wxRect &rect, const wxRect &panelRect)
 
static wxRect MaximizeHeight (const wxRect &rect, const wxRect &panelRect)
 

Detailed Description

Definition at line 728 of file AdornedRulerPanel.cpp.

Constructor & Destructor Documentation

◆ CommonCell()

AdornedRulerPanel::CommonCell::CommonCell ( AdornedRulerPanel parent,
MenuChoice  menuChoice 
)
inlineexplicit

Definition at line 732 of file AdornedRulerPanel.cpp.

733 : mParent{ parent }
734 , mMenuChoice{ menuChoice }
735 {}

Member Function Documentation

◆ DefaultPreview()

HitTestPreview AdornedRulerPanel::CommonCell::DefaultPreview ( const TrackPanelMouseState ,
const AudacityProject  
)
inlineoverridevirtual

Reimplemented from TrackPanelCell.

Definition at line 737 of file AdornedRulerPanel.cpp.

740 {
741 // May come here when recording is in progress, so hit tests are turned
742 // off.
743 TranslatableString tooltip = XO("Timeline actions disabled during recording");
744
745 static wxCursor cursor{ wxCURSOR_DEFAULT };
746 return {
747 {},
748 &cursor,
749 tooltip,
750 };
751 }
XO("Cut/Copy/Paste")
Holds a msgid for the translation catalog; may also bind format arguments.

References XO().

Here is the call graph for this function:

◆ DoContextMenu()

unsigned AdornedRulerPanel::CommonCell::DoContextMenu ( const wxRect &  ,
wxWindow *  ,
const wxPoint *  pPosition,
AudacityProject  
)
inlinefinalvirtual

Reimplemented from TrackPanelCell.

Definition at line 753 of file AdornedRulerPanel.cpp.

756 {
758 return 0;
759 }
void ShowContextMenu(MenuChoice choice, const wxPoint *pPosition)

Member Data Documentation

◆ mMenuChoice

const MenuChoice AdornedRulerPanel::CommonCell::mMenuChoice
protected

Definition at line 763 of file AdornedRulerPanel.cpp.

◆ mParent

AdornedRulerPanel* AdornedRulerPanel::CommonCell::mParent
protected

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