Audacity 3.2.0
|
Public Types | |
enum | { MinHeight = SubViewAdjuster::HotZoneSize } |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
Public Member Functions | |
SubViewAdjustHandle (SubViewAdjuster &&adjuster, size_t subViewIndex, wxCoord viewHeight, bool top) | |
std::shared_ptr< const Track > | FindTrack () const override |
Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
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< SubViewAdjustHandle > &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 > | mOrigHeights |
size_t | mMySubView {} |
wxCoord | mYMin {} |
wxCoord | mYMax {} |
wxCoord | mViewHeight {} |
wxCoord | mTotalHeight {} |
wxCoord | mOrigHeight {} |
wxCoord | mOrigY {} |
bool | mTop {} |
Additional Inherited Members | |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Definition at line 267 of file WaveChannelView.cpp.
anonymous enum |
|
inline |
Definition at line 296 of file WaveChannelView.cpp.
References mAdjuster, mMySubView, and SubViewAdjuster::ModifyPermutation().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 462 of file WaveChannelView.cpp.
References mAdjuster, RefreshCode::RefreshAll, and SubViewAdjuster::UpdateViews().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 316 of file WaveChannelView.cpp.
References Cancelled, SubViewAdjuster::ComputeHeights(), details::end(), TrackPanelMouseEvent::event, ProjectHistory::Get(), mAdjuster, SubViewAdjuster::mFirstSubView, mMySubView, SubViewAdjuster::mNewPlacements, ProjectHistory::ModifyState(), mOrigHeight, mOrigHeights, mOrigY, SubViewAdjuster::mPermutation, mTop, mTotalHeight, mViewHeight, mYMax, mYMin, RefreshCode::RefreshAll, RefreshCode::RefreshNone, size, and SubViewAdjuster::UpdateViews().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 369 of file WaveChannelView.cpp.
References Cancelled, TrackPanelMouseEvent::event, mAdjuster, min(), MinHeight, mMySubView, SubViewAdjuster::mNewPlacements, mOrigHeight, mOrigHeights, mOrigY, SubViewAdjuster::mPermutation, mTop, mTotalHeight, SubViewAdjuster::mwView, mYMax, mYMin, RefreshCode::RefreshAll, size, and SubViewAdjuster::UpdateViews().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 308 of file WaveChannelView.cpp.
References mAdjuster, SubViewAdjuster::mwView, and UIHandle::TrackFromChannel().
|
inlinestatic |
Definition at line 272 of file WaveChannelView.cpp.
References AssignUIHandlePtr(), WaveChannelView::GetLastHeight(), WaveChannelView::GetMultiView(), WaveChannelView::HitTest(), TrackPanelMouseState::rect, and TrackPanelMouseState::state.
Referenced by WaveChannelSubView::DoDetailedHitTest().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 442 of file WaveChannelView.cpp.
References MakeCursor(), and XO().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 454 of file WaveChannelView.cpp.
References ProjectHistory::Get(), ProjectHistory::ModifyState(), and RefreshCode::RefreshNone.
|
private |
Definition at line 470 of file WaveChannelView.cpp.
Referenced by Cancel(), Click(), Drag(), FindTrack(), and SubViewAdjustHandle().
|
private |
Definition at line 474 of file WaveChannelView.cpp.
Referenced by Click(), Drag(), and SubViewAdjustHandle().
|
private |
Definition at line 479 of file WaveChannelView.cpp.
|
private |
Definition at line 471 of file WaveChannelView.cpp.
|
private |
Definition at line 480 of file WaveChannelView.cpp.
|
private |
Definition at line 483 of file WaveChannelView.cpp.
|
private |
Definition at line 478 of file WaveChannelView.cpp.
|
private |
Definition at line 477 of file WaveChannelView.cpp.
Referenced by Click().
|
private |
Definition at line 476 of file WaveChannelView.cpp.
|
private |
Definition at line 476 of file WaveChannelView.cpp.