![]() |
Audacity 3.2.0
|
Public Types | |
| enum | { HotZoneWidth = 3 * kTrackInfoBtnSize / 2 } |
| enum | DragChoice_t { Upward , Downward , Neutral } |
Public Types inherited from UIHandle | |
| using | Result = unsigned |
| using | Cell = TrackPanelCell |
Public Member Functions | |
| SubViewRearrangeHandle (SubViewAdjuster &&adjuster, size_t subViewIndex, wxCoord viewHeight) | |
| std::shared_ptr< const Track > | FindTrack () const override |
| Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
| bool | Clicked () const |
| DragChoice_t | DragChoice (const TrackPanelMouseEvent &event) const |
| Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *) override |
| HitTestPreview | Preview (const TrackPanelMouseState &state, AudacityProject *) override |
| Result | Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override |
| Result | Cancel (AudacityProject *) override |
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 UIHandlePtr | HitTest (std::weak_ptr< SubViewRearrangeHandle > &holder, WaveChannelView &view, WaveChannelSubView &subView, const TrackPanelMouseState &state) |
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) |
Private Attributes | |
| SubViewAdjuster | mAdjuster |
| std::vector< wxCoord > | mHeights |
| wxCoord | mTopY |
| size_t | mMySubView {} |
| wxCoord | mViewHeight {} |
Additional Inherited Members | |
Protected Attributes inherited from UIHandle | |
| Result | mChangeHighlight { 0 } |
Definition at line 486 of file WaveChannelView.cpp.
| anonymous enum |
|
inline |
Definition at line 533 of file WaveChannelView.cpp.
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 665 of file WaveChannelView.cpp.
References mAdjuster, RefreshCode::RefreshAll, and SubViewAdjuster::UpdateViews().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 550 of file WaveChannelView.cpp.
References Cancelled, SubViewAdjuster::ComputeHeights(), mAdjuster, SubViewAdjuster::mFirstSubView, mHeights, mMySubView, SubViewAdjuster::mPermutation, mTopY, mViewHeight, RefreshCode::RefreshNone, and size.
|
inline |
Definition at line 571 of file WaveChannelView.cpp.
References mHeights.
Referenced by Preview().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 606 of file WaveChannelView.cpp.
References Cancelled, Downward, DragChoice(), mAdjuster, mHeights, mMySubView, SubViewAdjuster::mNewPlacements, SubViewAdjuster::mwView, RefreshCode::RefreshAll, RefreshCode::RefreshNone, anonymous_namespace{NoteTrack.cpp}::swap(), SubViewAdjuster::UpdateViews(), and Upward.
|
inline |
Definition at line 575 of file WaveChannelView.cpp.
References Downward, mAdjuster, SubViewAdjuster::mFirstSubView, mHeights, mMySubView, mTopY, Neutral, and Upward.
Referenced by Drag().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 542 of file WaveChannelView.cpp.
References mAdjuster, SubViewAdjuster::mwView, and UIHandle::TrackFromChannel().
|
inlinestatic |
Definition at line 492 of file WaveChannelView.cpp.
References AssignUIHandlePtr(), WaveChannelView::GetLastHeight(), WaveChannelView::GetMultiView(), HotZoneWidth, TrackPanelMouseState::rect, and TrackPanelMouseState::state.
Referenced by WaveChannelSubView::DoDetailedHitTest().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 643 of file WaveChannelView.cpp.
References Clicked(), MakeCursor(), and XO().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 657 of file WaveChannelView.cpp.
References ProjectHistory::Get(), ProjectHistory::ModifyState(), and RefreshCode::RefreshNone.
|
private |
Definition at line 673 of file WaveChannelView.cpp.
Referenced by Cancel(), Click(), Drag(), DragChoice(), and FindTrack().
|
private |
Definition at line 674 of file WaveChannelView.cpp.
Referenced by Click(), Clicked(), Drag(), and DragChoice().
|
private |
Definition at line 678 of file WaveChannelView.cpp.
Referenced by Click(), Drag(), and DragChoice().
|
private |
Definition at line 675 of file WaveChannelView.cpp.
Referenced by Click(), and DragChoice().
|
private |
Definition at line 680 of file WaveChannelView.cpp.
Referenced by Click().