Audacity 3.2.0
|
#include <LabelDefaultClickHandle.h>
Classes | |
struct | LabelState |
Public Member Functions | |
LabelDefaultClickHandle () | |
virtual | ~LabelDefaultClickHandle () |
LabelDefaultClickHandle & | operator= (const LabelDefaultClickHandle &)=default |
Result | Click (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
Result | Drag (const TrackPanelMouseEvent &event, AudacityProject *pProject) override |
Result | Release (const TrackPanelMouseEvent &event, AudacityProject *pProject, wxWindow *pParent) override |
Result | Cancel (AudacityProject *pProject) 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) |
Private Member Functions | |
void | SaveState (AudacityProject *pProject) |
void | RestoreState (AudacityProject *pProject) |
Private Attributes | |
std::shared_ptr< LabelState > | mLabelState |
Additional Inherited Members | |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
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 Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Definition at line 21 of file LabelDefaultClickHandle.h.
LabelDefaultClickHandle::LabelDefaultClickHandle | ( | ) |
Definition at line 21 of file LabelDefaultClickHandle.cpp.
|
virtual |
Definition at line 25 of file LabelDefaultClickHandle.cpp.
|
overridevirtual |
Implements UIHandle.
Reimplemented in LabelGlyphHandle, and LabelTextHandle.
Definition at line 97 of file LabelDefaultClickHandle.cpp.
References RefreshCode::RefreshNone, and RestoreState().
Referenced by LabelGlyphHandle::Cancel(), and LabelTextHandle::Cancel().
|
overridevirtual |
Implements UIHandle.
Reimplemented in LabelGlyphHandle, and LabelTextHandle.
Definition at line 60 of file LabelDefaultClickHandle.cpp.
References TrackList::Any(), TrackPanelMouseEvent::event, TrackList::Get(), ChannelView::Get(), LabelTrackView::Get(), TrackPanelMouseEvent::pCell, RefreshCode::RefreshAll, and SaveState().
Referenced by LabelGlyphHandle::Click(), and LabelTextHandle::Click().
|
overridevirtual |
Implements UIHandle.
Reimplemented in LabelGlyphHandle, and LabelTextHandle.
Definition at line 83 of file LabelDefaultClickHandle.cpp.
References RefreshCode::RefreshNone.
Referenced by LabelGlyphHandle::Drag(), and LabelTextHandle::Drag().
|
default |
|
overridevirtual |
Implements UIHandle.
Reimplemented in LabelGlyphHandle, and LabelTextHandle.
Definition at line 89 of file LabelDefaultClickHandle.cpp.
References mLabelState, and RefreshCode::RefreshNone.
Referenced by LabelGlyphHandle::Release(), and LabelTextHandle::Release().
|
private |
Definition at line 48 of file LabelDefaultClickHandle.cpp.
References TrackList::Get(), LabelTrackView::Get(), TrackList::Lock(), and mLabelState.
Referenced by Cancel().
|
private |
Definition at line 35 of file LabelDefaultClickHandle.cpp.
References TrackList::Get(), LabelTrackView::Get(), mLabelState, and tracks.
Referenced by Click().
|
private |
Definition at line 46 of file LabelDefaultClickHandle.h.
Referenced by Release(), RestoreState(), and SaveState().