#include <Frame.h>
Public Member Functions | |
Area (wxWindow *parent, Frame *owner) | |
Constructor. | |
~Area () | |
Destructor. | |
void | OnPaint (wxPaintEvent &event) |
Paint event handler. | |
void | OnScroll (wxScrollWinEvent &event) |
Scroll event handler. | |
void | OnLeftDown (wxMouseEvent &event) |
Left mouse button down event handler. | |
void | OnRightDown (wxMouseEvent &event) |
Right mouse button down event handler. | |
void | OnMotion (wxMouseEvent &event) |
Mouse motion event handler. | |
void | OnLeftUp (wxMouseEvent &event) |
Left mouse button up event handler. | |
void | OnRightUp (wxMouseEvent &event) |
Right mouse button up event handler. | |
void | OnRemove (wxCommandEvent &WXUNUSED(event)) |
'Remove track' popup menu item event handler | |
void | OnCut (wxCommandEvent &WXUNUSED(event)) |
'Cut' popup menu item event handler | |
void | OnCopy (wxCommandEvent &WXUNUSED(event)) |
'Copy' popup menu item event handler | |
void | OnPaste (wxCommandEvent &WXUNUSED(event)) |
'Paste' popup menu item event handler | |
void | OnEmpty (wxCommandEvent &WXUNUSED(event)) |
'Empty selection' popup menu item event handler | |
void | Redraw () |
Redraw non-constant elements. | |
void | Update () |
Update trigger. | |
Private Member Functions | |
void | update_sel (const int lastx, const int acx, const int lasty) |
Update selection. | |
bool | get_track (const int acy, track_t *track) |
Get track under cursor. | |
Private Attributes | |
Frame * | frame |
Parent frame. | |
wxPoint | ll_down |
Coordinates of mouse left button down. | |
bool | left_down |
Left mouse button is down. | |
wxPoint | lr_down |
Coordinates of mouse right button down. | |
bool | right_down |
Right mouse button is down. | |
wxMenu * | menuEdit |
Edit menu. |
A part of the main window which displays the zoomed-out waveform diagrams, cursor, etc.
|
Constructor.
|
|
Destructor.
|
|
Get track under cursor.
|
|
'Copy' popup menu item event handler
|
|
'Cut' popup menu item event handler
|
|
'Empty selection' popup menu item event handler
|
|
Left mouse button down event handler. Handle left mouse button down event. This can be either a single click (cursor position change) or a drag (selection change).
|
|
Left mouse button up event handler.
|
|
Mouse motion event handler.
|
|
Paint event handler. Repaints the contents of the window. |
|
'Paste' popup menu item event handler
|
|
'Remove track' popup menu item event handler
|
|
Right mouse button down event handler.
|
|
Right mouse button up event handler.
|
|
Scroll event handler. Manages the scroll event. |
|
Redraw non-constant elements. Redraw that parts of the area which are affected by the current state of the project (cursor position, etc.). |
|
Update trigger. Update the display and virtual scroll area in case of the change to the project (track add/remove). |
|
Update selection.
|
|
Parent frame.
|
|
Left mouse button is down.
|
|
Coordinates of mouse left button down.
|
|
Coordinates of mouse right button down.
|
|
Edit menu.
|
|
Right mouse button is down.
|