Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Area Class Reference

Waveform display area. More...

#include <Frame.h>

List of all members.

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

Frameframe
 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.


Detailed Description

Waveform display area.

A part of the main window which displays the zoomed-out waveform diagrams, cursor, etc.


Constructor & Destructor Documentation

Area::Area wxWindow *  parent,
Frame owner
 

Constructor.

Parameters:
parent Parent window.
owner Frame containing this area.

Area::~Area  ) 
 

Destructor.


Member Function Documentation

bool Area::get_track const int  acy,
track_t track
[private]
 

Get track under cursor.

void Area::OnCopy wxCommandEvent &  WXUNUSED(event)  ) 
 

'Copy' popup menu item event handler

void Area::OnCut wxCommandEvent &  WXUNUSED(event)  ) 
 

'Cut' popup menu item event handler

void Area::OnEmpty wxCommandEvent &  WXUNUSED(event)  ) 
 

'Empty selection' popup menu item event handler

void Area::OnLeftDown wxMouseEvent &  event  ) 
 

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).

Parameters:
event Event data.

void Area::OnLeftUp wxMouseEvent &  event  ) 
 

Left mouse button up event handler.

void Area::OnMotion wxMouseEvent &  event  ) 
 

Mouse motion event handler.

void Area::OnPaint wxPaintEvent &  event  ) 
 

Paint event handler.

Repaints the contents of the window.

void Area::OnPaste wxCommandEvent &  WXUNUSED(event)  ) 
 

'Paste' popup menu item event handler

void Area::OnRemove wxCommandEvent &  WXUNUSED(event)  ) 
 

'Remove track' popup menu item event handler

void Area::OnRightDown wxMouseEvent &  event  ) 
 

Right mouse button down event handler.

void Area::OnRightUp wxMouseEvent &  event  ) 
 

Right mouse button up event handler.

void Area::OnScroll wxScrollWinEvent &  event  ) 
 

Scroll event handler.

Manages the scroll event.

void Area::Redraw  ) 
 

Redraw non-constant elements.

Redraw that parts of the area which are affected by the current state of the project (cursor position, etc.).

void Area::Update  ) 
 

Update trigger.

Update the display and virtual scroll area in case of the change to the project (track add/remove).

void Area::update_sel const int  lastx,
const int  acx,
const int  lasty
[private]
 

Update selection.


Member Data Documentation

Frame* Area::frame [private]
 

Parent frame.

bool Area::left_down [private]
 

Left mouse button is down.

wxPoint Area::ll_down [private]
 

Coordinates of mouse left button down.

wxPoint Area::lr_down [private]
 

Coordinates of mouse right button down.

wxMenu* Area::menuEdit [private]
 

Edit menu.

bool Area::right_down [private]
 

Right mouse button is down.


The documentation for this class was generated from the following files:
Generated on Wed Jul 28 17:17:42 2004 for FinalMix by doxygen 1.3.5