Audacity 3.2.0
|
Public Member Functions | |
CommonRulerHandle (AdornedRulerPanel *pParent, wxCoord xx, MenuChoice menuChoice) | |
std::shared_ptr< const Track > | FindTrack () const override |
bool | Clicked () const |
Public Member Functions inherited from UIHandle | |
virtual | ~UIHandle ()=0 |
virtual void | Enter (bool forward, AudacityProject *pProject) |
virtual bool | HasRotation () const |
virtual bool | Rotate (bool forward) |
virtual bool | HasEscape (AudacityProject *pProject) const |
virtual bool | Escape (AudacityProject *pProject) |
virtual bool | HandlesRightClick () |
Whether the handle has any special right-button handling. More... | |
virtual Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject)=0 |
virtual Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject)=0 |
virtual HitTestPreview | Preview (const TrackPanelMouseState &state, AudacityProject *pProject)=0 |
virtual Result | Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent)=0 |
virtual Result | Cancel (AudacityProject *pProject)=0 |
virtual bool | StopsOnKeystroke () |
virtual void | OnProjectChange (AudacityProject *pProject) |
virtual std::shared_ptr< const Track > | FindTrack () const =0 |
virtual bool | IsDragging () const |
Result | GetChangeHighlight () const |
void | SetChangeHighlight (Result val) |
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) |
Static Public Member Functions | |
static UIHandle::Result | NeedChangeHighlight (const CommonRulerHandle &oldState, const CommonRulerHandle &newState) |
Static Public Member Functions inherited from UIHandle | |
static UIHandle::Result | NeedChangeHighlight (const UIHandle &, const UIHandle &) |
static std::shared_ptr< const Track > | TrackFromChannel (const std::shared_ptr< const Channel > &pChannel) |
A frequent convenience in the definition of UIHandles. More... | |
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) |
Protected Types | |
enum class | Button { None , Left , Right } |
Protected Member Functions | |
bool | HandlesRightClick () override |
Whether the handle has any special right-button handling. More... | |
Result | Click (const TrackPanelMouseEvent &event, AudacityProject *) override |
Result | Drag (const TrackPanelMouseEvent &, AudacityProject *) override |
Result | Release (const TrackPanelMouseEvent &event, AudacityProject *, wxWindow *) override |
double | Time (AudacityProject &project) const |
void | StartPlay (AudacityProject &project, const wxMouseEvent &event) |
Result | Cancel (AudacityProject *) override |
void | Enter (bool, AudacityProject *) override |
Protected Attributes | |
wxWeakRef< AdornedRulerPanel > | mParent |
wxCoord | mX |
wxCoord | mClickedX |
MenuChoice | mChoice |
Button | mClicked { Button::None } |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Additional Inherited Members | |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
Definition at line 122 of file AdornedRulerPanel.cpp.
|
strongprotected |
Enumerator | |
---|---|
None | |
Left | |
Right |
Definition at line 212 of file AdornedRulerPanel.cpp.
|
inline |
Definition at line 125 of file AdornedRulerPanel.cpp.
|
inlineoverrideprotectedvirtual |
Implements UIHandle.
Reimplemented in AdornedRulerPanel::PlayRegionAdjustingHandle, and AdornedRulerPanel::ScrubbingHandle.
Definition at line 195 of file AdornedRulerPanel.cpp.
References RefreshCode::DrawOverlays.
Referenced by AdornedRulerPanel::PlayRegionAdjustingHandle::Cancel(), and AdornedRulerPanel::ScrubbingHandle::Cancel().
|
inlineoverrideprotectedvirtual |
Implements UIHandle.
Reimplemented in AdornedRulerPanel::ScrubbingHandle.
Definition at line 149 of file AdornedRulerPanel.cpp.
References RefreshCode::DrawOverlays, Left, mClicked, mClickedX, and Right.
Referenced by AdornedRulerPanel::ScrubbingHandle::Click().
|
inline |
Definition at line 136 of file AdornedRulerPanel.cpp.
References mClicked, and None.
Referenced by AdornedRulerPanel::TrackPanelGuidelineOverlay::Draw(), and AdornedRulerPanel::PlayRegionAdjustingHandle::Unsnap().
|
inlineoverrideprotectedvirtual |
Implements UIHandle.
Reimplemented in AdornedRulerPanel::PlayRegionAdjustingHandle, and AdornedRulerPanel::ScrubbingHandle.
Definition at line 157 of file AdornedRulerPanel.cpp.
References RefreshCode::DrawOverlays.
Referenced by AdornedRulerPanel::PlayRegionAdjustingHandle::Drag(), and AdornedRulerPanel::ScrubbingHandle::Drag().
|
inlineoverrideprotectedvirtual |
Reimplemented from UIHandle.
Definition at line 200 of file AdornedRulerPanel.cpp.
References RefreshCode::DrawOverlays, and UIHandle::mChangeHighlight.
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 133 of file AdornedRulerPanel.cpp.
|
inlineoverrideprotectedvirtual |
Whether the handle has any special right-button handling.
If not, then Click() will not be called for right click. Default is always false
Reimplemented from UIHandle.
Definition at line 147 of file AdornedRulerPanel.cpp.
|
inlinestatic |
Definition at line 138 of file AdornedRulerPanel.cpp.
References RefreshCode::DrawOverlays, and mX.
|
inlineoverrideprotectedvirtual |
Implements UIHandle.
Reimplemented in AdornedRulerPanel::PlayRegionAdjustingHandle, and AdornedRulerPanel::ScrubbingHandle.
Definition at line 163 of file AdornedRulerPanel.cpp.
References RefreshCode::DrawOverlays, mChoice, mClicked, mParent, and Right.
Referenced by AdornedRulerPanel::PlayRegionAdjustingHandle::Release(), and AdornedRulerPanel::ScrubbingHandle::Release().
|
inlineprotected |
Definition at line 181 of file AdornedRulerPanel.cpp.
References AdornedRulerPanel::Get(), project, anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), and Time().
Referenced by AdornedRulerPanel::PlayRegionAdjustingHandle::Release().
|
inlineprotected |
Definition at line 174 of file AdornedRulerPanel.cpp.
References ViewInfo::Get(), mX, and project.
Referenced by AdornedRulerPanel::MovePlayRegionHandle::DoStartAdjust(), and StartPlay().
|
protected |
Definition at line 210 of file AdornedRulerPanel.cpp.
Referenced by Release().
|
protected |
Definition at line 213 of file AdornedRulerPanel.cpp.
Referenced by AdornedRulerPanel::ScrubbingHandle::Cancel(), Click(), AdornedRulerPanel::ScrubbingHandle::Click(), Clicked(), AdornedRulerPanel::PlayRegionAdjustingHandle::Drag(), Release(), and AdornedRulerPanel::PlayRegionAdjustingHandle::Release().
|
protected |
Definition at line 208 of file AdornedRulerPanel.cpp.
Referenced by Click(), and AdornedRulerPanel::PlayRegionAdjustingHandle::Drag().
|
protected |
Definition at line 205 of file AdornedRulerPanel.cpp.
Referenced by AdornedRulerPanel::ScrubbingHandle::Click(), AdornedRulerPanel::MovePlayRegionHandle::DoStartAdjust(), AdornedRulerPanel::PlayRegionAdjustingHandle::Preview(), Release(), AdornedRulerPanel::PlayRegionAdjustingHandle::Release(), and AdornedRulerPanel::MovePlayRegionHandle::~MovePlayRegionHandle().
|
protected |
Definition at line 207 of file AdornedRulerPanel.cpp.
Referenced by AdornedRulerPanel::PlayRegionAdjustingHandle::Drag(), NeedChangeHighlight(), and Time().