Package aldrin :: Module sequencer :: Class SequencerView
[show private | hide private]
[frames | no frames]

Type SequencerView

        CanvasBase --+    
                     |    
object --+           |    
         |           |    
    Object --+       |    
             |       |    
    EvtHandler --+   |    
                 |   |    
            Window --+    
                     |    
                Canvas --+
                         |
                        SequencerView


Sequence viewer class.
Method Summary
  __init__(self, rootwindow, *args, **kwds)
Initialization.
  delete_at_cursor(self)
Deletes pattern at cursor.
  deselect(self)
Deselects the current selection.
  DrawBuffer(self)
Overriding a Canvas method that paints onto an offscreen buffer.
  get_endrow(self)
Get the last visible row.
  get_endtrack(self)
Get the last visible track.
(zzub.Plugin, int) get_pattern_at(self, track, row, includespecial)
Gets the pattern and plugin given a sequencer track and row.
  insert_at_cursor(self, index)
Inserts a space at cursor.
  jump_to_pattern(self, plugin, index)
Views a pattern in the pattern view.
  on_context_menu(self, event)
Callback that constructs and displays the popup menu
  on_focus(self, event)
  on_key_down(self, event)
Callback that responds to key stroke in sequence view.
  on_left_down(self, event)
Callback that responds to left click down in sequence view.
  on_left_up(self, event)
Callback that responds to left click up in sequence view.
  on_motion(self, event)
Callback that responds to mouse motion in sequence view.
  on_mousewheel(self, event)
Callback that responds to mousewheeling in sequencer.
  on_popup_add_track(self, event)
Callback that handles track addition via the popup menu
  on_popup_copy(self, event)
Copies the current selection into the clipboard
  on_popup_cut(self, event)
  on_popup_delete(self, event)
  on_popup_delete_track(self, event)
Callback that handles track deletion via the popup menu
  on_popup_paste(self, event)
  onPostPaint(self, dc)
Overriding a Canvas method that is called after painting is completed.
(int, int) pos_to_track_row(self, (x, y))
Converts pixel coordinate to a track and row.
  selection_range(self)
  set_cursor_pos(self, track, row)
Updates the cursor position to a track and row.
  show_plugin_dialog(self)
(int, int) track_row_to_pos(self, (track, row))
Converts track and row to a pixel coordinate.
  unpack_clipboard_data(self, d)
Unpacks clipboard data
  update(self)
Updates the view after a lot of data has changed.
  update_position(self, event)
Updates the position.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
str CLIPBOARD_SEQUENCER = 'SEQUENCERDATA'

Instance Method Details

__init__(self, rootwindow, *args, **kwds)
(Constructor)

Initialization.
Overrides:
aldrin.canvas.Canvas.__init__

delete_at_cursor(self)

Deletes pattern at cursor.

deselect(self)

Deselects the current selection.

DrawBuffer(self)

Overriding a Canvas method that paints onto an offscreen buffer. Draws the pattern view graphics.
Overrides:
aldrin.canvas.CanvasBase.DrawBuffer

get_endrow(self)

Get the last visible row.

get_endtrack(self)

Get the last visible track.

get_pattern_at(self, track, row, includespecial=False)

Gets the pattern and plugin given a sequencer track and row.
Parameters:
track - Track index.
           (type=int)
row - Row index.
           (type=int)
Returns:
Tuple containing plugin and pattern index.
           (type=(zzub.Plugin, int))

insert_at_cursor(self, index=-1)

Inserts a space at cursor.

jump_to_pattern(self, plugin, index=0)

Views a pattern in the pattern view.
Parameters:
plugin - Plugin.
           (type=zzub.Plugin)
index - Pattern index.
           (type=int)

on_context_menu(self, event)

Callback that constructs and displays the popup menu
Parameters:
event - Menu event.
           (type=wx.CommandEvent)

on_key_down(self, event)

Callback that responds to key stroke in sequence view.
Parameters:
event - Key event
           (type=wx.KeyEvent)

on_left_down(self, event)

Callback that responds to left click down in sequence view.
Parameters:
event - Mouse event
           (type=wx.MouseEvent)

on_left_up(self, event)

Callback that responds to left click up in sequence view.
Parameters:
event - Mouse event
           (type=wx.MouseEvent)

on_motion(self, event)

Callback that responds to mouse motion in sequence view.
Parameters:
event - Mouse event
           (type=wx.MouseEvent)

on_mousewheel(self, event)

Callback that responds to mousewheeling in sequencer.
Parameters:
event - Mouse event
           (type=wx.MouseEvent)

on_popup_add_track(self, event)

Callback that handles track addition via the popup menu
Parameters:
event - Menu event.
           (type=wx.CommandEvent)

on_popup_copy(self, event=None)

Copies the current selection into the clipboard

on_popup_delete_track(self, event)

Callback that handles track deletion via the popup menu
Parameters:
event - Menu event.
           (type=wx.CommandEvent)

onPostPaint(self, dc)

Overriding a Canvas method that is called after painting is completed. Draws an XOR play cursor over the pattern view.
Parameters:
dc - wx device context.
           (type=wx.PaintDC)
Overrides:
aldrin.canvas.CanvasBase.onPostPaint

pos_to_track_row(self, (x, y))

Converts pixel coordinate to a track and row.
Parameters:
x - Pixel coordinate.
           (type=int)
y - Pixel coordinate.
           (type=int)
Returns:
Tuple containing track and row index.
           (type=(int, int))

set_cursor_pos(self, track, row)

Updates the cursor position to a track and row.
Parameters:
track - Pattern index.
           (type=int)
row - Row index.
           (type=int)

track_row_to_pos(self, (track, row))

Converts track and row to a pixel coordinate.
Parameters:
track - Track index.
           (type=int)
row - Row index.
           (type=int)
Returns:
Pixel coordinate.
           (type=(int, int))

unpack_clipboard_data(self, d)

Unpacks clipboard data
Parameters:
d - Data that is to be unpacked.
           (type=unicode)

update(self)

Updates the view after a lot of data has changed. This will also reset selection.

update_position(self, event)

Updates the position.

Class Variable Details

CLIPBOARD_SEQUENCER

Type:
str
Value:
'SEQUENCERDATA'                                                        

Generated by Epydoc 2.1 on Sun Feb 4 18:01:14 2007 http://epydoc.sf.net