Audacity 3.2.0
|
Public Member Functions | |
SubViewCloseHandle (SubViewAdjuster &&adjuster, size_t index, const std::shared_ptr< Channel > &pChannel, const wxRect &rect) | |
Result | CommitChanges (const wxMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override |
TranslatableString | Tip (const wxMouseState &state, AudacityProject &project) const override |
void | Draw (TrackPanelDrawingContext &context, const wxRect &rect, unsigned iPass) override |
Public Member Functions inherited from ButtonHandle | |
std::shared_ptr< Track > | GetTrack () const |
bool | IsDragging () const 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< SubViewCloseHandle > &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) |
Static Private Member Functions | |
static wxRect | GetButtonRect (const wxRect &rect) |
Private Attributes | |
std::weak_ptr< Channel > | mpChannel |
SubViewAdjuster | mAdjuster |
size_t | mMySubView {} |
Additional Inherited Members | |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
Protected Member Functions inherited from ButtonHandle | |
ButtonHandle (const std::shared_ptr< Track > &pTrack, const wxRect &rect) | |
ButtonHandle & | operator= (const ButtonHandle &)=default |
virtual | ~ButtonHandle () |
std::shared_ptr< const Track > | FindTrack () const override |
virtual Result | CommitChanges (const wxMouseEvent &event, AudacityProject *pProject, wxWindow *pParent)=0 |
virtual TranslatableString | Tip (const wxMouseState &state, AudacityProject &project) const =0 |
void | Enter (bool forward, AudacityProject *) final override |
Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) final override |
Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) final override |
HitTestPreview | Preview (const TrackPanelMouseState &state, AudacityProject *pProject) final override |
Result | Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) final override |
Result | Cancel (AudacityProject *pProject) final override |
Protected Attributes inherited from ButtonHandle | |
std::weak_ptr< Track > | mpTrack |
wxRect | mRect |
bool | mWasIn { true } |
bool | mIsDragging {} |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Definition at line 683 of file WaveChannelView.cpp.
|
inline |
Definition at line 714 of file WaveChannelView.cpp.
|
inlineoverridevirtual |
Implements ButtonHandle.
Definition at line 726 of file WaveChannelView.cpp.
References ProjectHistory::Get(), mAdjuster, mMySubView, SubViewAdjuster::mNewPlacements, ProjectHistory::ModifyState(), SubViewAdjuster::mPermutation, RefreshCode::RefreshAll, and SubViewAdjuster::UpdateViews().
|
inlineoverridevirtual |
Reimplemented from TrackPanelDrawable.
Definition at line 745 of file WaveChannelView.cpp.
References CommonTrackInfo::DrawCloseButton(), GetButtonRect(), mpChannel, and TrackArtist::PassMargins.
|
inlinestaticprivate |
Definition at line 685 of file WaveChannelView.cpp.
References kTrackInfoBtnSize.
Referenced by Draw(), and HitTest().
|
inlinestatic |
Definition at line 696 of file WaveChannelView.cpp.
References AssignUIHandlePtr(), CommonChannelCell::FindChannel(), GetButtonRect(), TrackPanelMouseState::rect, and TrackPanelMouseState::state.
Referenced by WaveChannelSubView::DoDetailedHitTest().
|
inlineoverridevirtual |
Implements ButtonHandle.
Definition at line 738 of file WaveChannelView.cpp.
References XO().
|
private |
Definition at line 757 of file WaveChannelView.cpp.
Referenced by CommitChanges().
|
private |
Definition at line 758 of file WaveChannelView.cpp.
Referenced by CommitChanges().
|
private |
Definition at line 756 of file WaveChannelView.cpp.
Referenced by Draw().