![]() |
Audacity 3.2.0
|
#include <MovableControl.h>
Public Member Functions | |
| MovableControl ()=default | |
| MovableControl (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr) | |
| void | Create (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxString &name=wxPanelNameStr) |
| void | ProcessDragEvent (wxWindow *target, wxEventType eventType) |
| int | FindIndexInParent () const |
Private Member Functions | |
| void | OnKeyDown (wxKeyEvent &evt) |
| void | OnMouseCaptureLost (wxMouseCaptureLostEvent &event) |
| void | DragFinished () |
| void | OnMouseDown (wxMouseEvent &evt) |
| void | OnMouseUp (wxMouseEvent &evt) |
| void | OnMove (wxMouseEvent &evt) |
Private Attributes | |
| bool | mDragging { false } |
| wxPoint | mInitialPosition |
| int | mTargetIndex { -1 } |
| int | mSourceIndex { -1 } |
Definition at line 43 of file MovableControl.h.
|
default |
| MovableControl::MovableControl | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| long | style = 0, |
||
| const wxString & | name = wxPanelNameStr |
||
| ) |
Definition at line 48 of file MovableControl.cpp.
References Create(), name, size, and anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style.
| void MovableControl::Create | ( | wxWindow * | parent, |
| wxWindowID | id, | ||
| const wxPoint & | pos = wxDefaultPosition, |
||
| const wxSize & | size = wxDefaultSize, |
||
| long | style = 0, |
||
| const wxString & | name = wxPanelNameStr |
||
| ) |
Definition at line 58 of file MovableControl.cpp.
References name, OnKeyDown(), OnMouseCaptureLost(), OnMouseDown(), OnMouseUp(), OnMove(), size, and anonymous_namespace{AudacityDontAskAgainMessageDialog.cpp}::style.
Referenced by anonymous_namespace{RealtimeEffectPanel.cpp}::RealtimeEffectControl::Create(), and MovableControl().
|
private |
Definition at line 141 of file MovableControl.cpp.
References mDragging, and ProcessDragEvent().
Referenced by OnMouseCaptureLost(), OnMouseDown(), and OnMouseUp().
| int MovableControl::FindIndexInParent | ( | ) | const |
Definition at line 82 of file MovableControl.cpp.
Referenced by OnKeyDown(), and OnMouseDown().
|
private |
Definition at line 99 of file MovableControl.cpp.
References FindIndexInParent(), mSourceIndex, mTargetIndex, and ProcessDragEvent().
Referenced by Create().
|
private |
Definition at line 135 of file MovableControl.cpp.
References DragFinished(), and mDragging.
Referenced by Create().
|
private |
Definition at line 151 of file MovableControl.cpp.
References DragFinished(), FindIndexInParent(), mDragging, mInitialPosition, mSourceIndex, mTargetIndex, and ProcessDragEvent().
Referenced by Create().
|
private |
Definition at line 170 of file MovableControl.cpp.
References DragFinished(), and mDragging.
Referenced by Create().
|
private |
Definition at line 180 of file MovableControl.cpp.
References mDragging, mInitialPosition, mSourceIndex, mTargetIndex, and ProcessDragEvent().
Referenced by Create().
| void MovableControl::ProcessDragEvent | ( | wxWindow * | target, |
| wxEventType | eventType | ||
| ) |
Definition at line 73 of file MovableControl.cpp.
References mSourceIndex, and mTargetIndex.
Referenced by DragFinished(), OnKeyDown(), OnMouseDown(), and OnMove().
|
private |
Definition at line 45 of file MovableControl.h.
Referenced by DragFinished(), OnMouseCaptureLost(), OnMouseDown(), OnMouseUp(), and OnMove().
|
private |
Definition at line 46 of file MovableControl.h.
Referenced by OnMouseDown(), and OnMove().
|
private |
Definition at line 49 of file MovableControl.h.
Referenced by OnKeyDown(), OnMouseDown(), OnMove(), and ProcessDragEvent().
|
private |
Definition at line 48 of file MovableControl.h.
Referenced by OnKeyDown(), OnMouseDown(), OnMove(), and ProcessDragEvent().