Audacity 3.2.0
|
Public Member Functions | |
PlayRegionAdjustingHandle (AdornedRulerPanel *pParent, wxCoord xx, MenuChoice menuChoice, wxCursor *cursor, size_t numGuides=1) | |
PlayRegionAdjustingHandle (AdornedRulerPanel *pParent, wxCoord xx, MenuChoice menuChoice, wxCursor cursor, size_t numGuides=1) | |
void | SetCursor (wxCursor cursor) |
HitTestPreview | Preview (const TrackPanelMouseState &state, 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 |
bool | HasEscape (AudacityProject *pProject) const override |
bool | Escape (AudacityProject *pProject) override |
Public Member Functions inherited from AdornedRulerPanel::CommonRulerHandle | |
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) |
Protected Member Functions | |
double | SnappedTime (AudacityProject &project, size_t ii) |
std::pair< double, double > | SnappedTimes (AudacityProject &project) |
void | Unsnap (bool use, AudacityProject *pProject) |
virtual void | DoStartAdjust (AudacityProject &, double)=0 |
virtual void | DoAdjust (AudacityProject &)=0 |
void | SavePlayRegion (AudacityProject &project) |
Protected Member Functions inherited from AdornedRulerPanel::CommonRulerHandle | |
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 |
Private Attributes | |
wxCursor | mCursor |
size_t | mNumGuides |
SelectedRegion | mOldSelectedRegion |
double | mOldStart = 0.0 |
double | mOldEnd = 0.0 |
bool | mWasActive = false |
bool | mSaved = false |
bool | mDragged = false |
Additional Inherited Members | |
Public Types inherited from UIHandle | |
using | Result = unsigned |
using | Cell = TrackPanelCell |
Static Public Member Functions inherited from AdornedRulerPanel::CommonRulerHandle | |
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 inherited from AdornedRulerPanel::CommonRulerHandle | |
enum class | Button { None , Left , Right } |
Protected Attributes inherited from AdornedRulerPanel::CommonRulerHandle | |
wxWeakRef< AdornedRulerPanel > | mParent |
wxCoord | mX |
wxCoord | mClickedX |
MenuChoice | mChoice |
Button | mClicked { Button::None } |
Protected Attributes inherited from UIHandle | |
Result | mChangeHighlight { 0 } |
Definition at line 216 of file AdornedRulerPanel.cpp.
|
inline |
Definition at line 218 of file AdornedRulerPanel.cpp.
References mCursor.
|
inline |
Definition at line 230 of file AdornedRulerPanel.cpp.
|
inlineoverridevirtual |
Restore state as before SavePlayRegion()
Reimplemented from AdornedRulerPanel::CommonRulerHandle.
Definition at line 309 of file AdornedRulerPanel.cpp.
References AdornedRulerPanel::CommonRulerHandle::Cancel(), ViewInfo::Get(), mOldEnd, mOldSelectedRegion, mOldStart, mSaved, mWasActive, and RefreshCode::RefreshAll.
|
protectedpure virtual |
Implemented in AdornedRulerPanel::MovePlayRegionHandle, AdornedRulerPanel::ResizePlayRegionHandle, and AdornedRulerPanel::NewPlayRegionHandle.
Referenced by Drag(), and Unsnap().
|
protectedpure virtual |
Implemented in AdornedRulerPanel::ResizePlayRegionHandle, AdornedRulerPanel::NewPlayRegionHandle, and AdornedRulerPanel::MovePlayRegionHandle.
Referenced by Drag().
|
inlineoverridevirtual |
Reimplemented from AdornedRulerPanel::CommonRulerHandle.
Definition at line 257 of file AdornedRulerPanel.cpp.
References Cancelled, DoAdjust(), DoStartAdjust(), AdornedRulerPanel::CommonRulerHandle::Drag(), AdornedRulerPanel::DragSelection(), TrackPanelMouseEvent::event, AdornedRulerPanel::Get(), AdornedRulerPanel::CommonRulerHandle::Left, AdornedRulerPanel::CommonRulerHandle::mClicked, AdornedRulerPanel::CommonRulerHandle::mClickedX, mDragged, AdornedRulerPanel::mPlayRegionDragsSelection, AdornedRulerPanel::CommonRulerHandle::mX, RefreshCode::RefreshAll, RefreshCode::RefreshNone, anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), SavePlayRegion(), SELECT_TOLERANCE_PIXEL, and SnappedTime().
|
inlineoverridevirtual |
Reimplemented from UIHandle.
Definition at line 337 of file AdornedRulerPanel.cpp.
References HasEscape(), and Unsnap().
|
inlineoverridevirtual |
Reimplemented from UIHandle.
Definition at line 329 of file AdornedRulerPanel.cpp.
References AdornedRulerPanel::Get(), anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler(), and values.
Referenced by Escape().
|
inlineoverridevirtual |
Implements UIHandle.
Definition at line 244 of file AdornedRulerPanel.cpp.
References mCursor, mNumGuides, AdornedRulerPanel::CommonRulerHandle::mParent, and XO().
|
inlineoverridevirtual |
Reimplemented from AdornedRulerPanel::CommonRulerHandle.
Definition at line 287 of file AdornedRulerPanel.cpp.
References Cancelled, TrackPanelMouseEvent::event, ViewInfo::Get(), AdornedRulerPanel::CommonRulerHandle::Left, AdornedRulerPanel::CommonRulerHandle::mClicked, mDragged, AdornedRulerPanel::CommonRulerHandle::mParent, AdornedRulerPanel::CommonRulerHandle::Release(), and AdornedRulerPanel::CommonRulerHandle::StartPlay().
|
inlineprotected |
Definition at line 387 of file AdornedRulerPanel.cpp.
References ViewInfo::Get(), mOldEnd, mOldSelectedRegion, mOldStart, mSaved, mWasActive, and project.
Referenced by Drag().
|
inline |
Definition at line 239 of file AdornedRulerPanel.cpp.
References mCursor.
Referenced by AdornedRulerPanel::MovePlayRegionHandle::MovePlayRegionHandle().
|
inlineprotected |
Definition at line 348 of file AdornedRulerPanel.cpp.
References AdornedRulerPanel::Get(), project, and anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler().
Referenced by AdornedRulerPanel::ResizePlayRegionHandle::DoAdjust(), AdornedRulerPanel::NewPlayRegionHandle::DoAdjust(), and Drag().
|
inlineprotected |
Definition at line 357 of file AdornedRulerPanel.cpp.
References AdornedRulerPanel::Get(), project, and anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler().
Referenced by AdornedRulerPanel::MovePlayRegionHandle::DoAdjust().
|
inlineprotected |
Definition at line 374 of file AdornedRulerPanel.cpp.
References AdornedRulerPanel::CommonRulerHandle::Clicked(), DoAdjust(), AdornedRulerPanel::Get(), UIHandle::mChangeHighlight, RefreshCode::RefreshAll, and anonymous_namespace{TimeTrackVRulerControls.cpp}::ruler().
Referenced by Escape().
|
private |
Definition at line 402 of file AdornedRulerPanel.cpp.
Referenced by PlayRegionAdjustingHandle(), Preview(), and SetCursor().
|
private |
Definition at line 409 of file AdornedRulerPanel.cpp.
|
private |
Definition at line 403 of file AdornedRulerPanel.cpp.
Referenced by Preview().
|
private |
Definition at line 406 of file AdornedRulerPanel.cpp.
Referenced by Cancel(), and SavePlayRegion().
|
private |
Definition at line 405 of file AdornedRulerPanel.cpp.
Referenced by Cancel(), and SavePlayRegion().
|
private |
Definition at line 406 of file AdornedRulerPanel.cpp.
Referenced by Cancel(), and SavePlayRegion().
|
private |
Definition at line 408 of file AdornedRulerPanel.cpp.
Referenced by Cancel(), and SavePlayRegion().
|
private |
Definition at line 407 of file AdornedRulerPanel.cpp.
Referenced by Cancel(), and SavePlayRegion().