| Home | Trees | Index | Help |
|
|---|
| Package aldrin :: Module patterns :: Class PatternView |
|
object--+ |Object--+ |EvtHandler--+ |Window--+ |Canvas--+ | PatternView
| Method Summary | |
|---|---|
Initialization. | |
Adjusts the selection variables according to the selection mode. | |
Copies the current selection into the clipboard | |
Cuts the current selection into the clipboard | |
Overriding a Canvas method that paints onto an offscreen
buffer. | |
| (zzub.Metaplugin, zzub.Pattern) |
Returns the machine and the current pattern in the pattern view |
| zzub.Metaplugin |
Returns the machine of the pattern in the pattern view. |
Finds an unused pattern name. | |
Initializes pattern storage and information. | |
Fills the current selection with values interpolated from selection start to selection end. | |
Moves the cursor down. | |
Moves the cursor one index position left. | |
Moves the cursor one index position right. | |
Moves the cursor left. | |
Moves the cursor right. | |
Moves the cursor one subindex position left. | |
Moves the cursor one subindex position right. | |
Moves the cursor one track position left. | |
Moves the cursor one track position right. | |
Moves the cursor up. | |
Callback that responds to key stroke in pattern view. | |
Callback that constructs and displays the popup menu | |
Sent when the copy function is selected from the menu. | |
Sent when the cut function is selected from the menu. | |
Callback that responds to key stroke in pattern view. | |
Callback that responds to left click in pattern view. | |
Callback that responds to mousewheeling in pattern view. | |
Sent when the paste function is selected from the menu. | |
Callback that adds a track. | |
Callback that creates a copy of the current pattern. | |
Callback that creates a pattern. | |
Callback that deletes last track. | |
Callback that shows the properties of the current pattern. | |
Callback that removes the current pattern. | |
Callback that solos current machine. | |
Overriding a Canvas method that is called after painting
is completed. | |
Pastes the clipboard data into the pattern view. | |
Loads and redraws the pattern view after the pattern has been changed. | |
| (int, int, int, int) |
Iterator that moves through the entire pattern. |
| (int, int) |
Converts a pattern position into a (x,y) pixel coordinate. |
| (int, int, int, int, int) |
Converts a (x,y) pixel coordinate into a pattern position. |
Initializes a buffer to handle the current pattern data. | |
Fills the current selection with random values. | |
refresh_view(self)
| |
| (int, int, int, int) |
Iterator that moves through the current selection. |
Sets the current group position. | |
Sets the current index position. | |
Sets the octave. | |
Sets the current row position. | |
Sets the current subindex position. | |
Sets the current track position. | |
Transposes the current selection by an offset. | |
Unpacks clipboard data | |
Updates a line of the pattern. | |
Updates the position. | |
| Inherited from Canvas | |
Performs the blit of the buffer contents on-screen. | |
Returns a tuple that contains the co-ordinates of the top-left and bottom-right corners of the canvas. | |
| |
| |
Renders the off-screen buffer on-screen. | |
Perform actual redraw to off-screen buffer only when the size of the canvas has changed. | |
Explicitly tells the canvas to redraw it's contents. | |
| |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Class Variable Summary | |
|---|---|
str |
CLIPBOARD_MAGIC = 'PATTERNDATA'
|
| Inherited from Canvas | |
bool |
doublebuffered = True
|
| Instance Method Details |
|---|
__init__(self,
rootwindow,
*args,
**kwds)
Initialization.
|
adjust_selection(self)Adjusts the selection variables according to the selection mode. |
copy(self)Copies the current selection into the clipboard |
cut(self)Cuts the current selection into the clipboard |
DrawBuffer(self, row=None, rows=None, fulldraw=True)Overriding aCanvas method that paints onto an
offscreen buffer. Draws the pattern view graphics.
|
get_datasource(self)Returns the machine and the current pattern in the pattern view
|
get_machine(self)Returns the machine of the pattern in the pattern view.
|
get_new_pattern_name(self)Finds an unused pattern name. |
init_values(self)Initializes pattern storage and information. |
interpolate_selection(self)Fills the current selection with values interpolated from selection start to selection end. |
move_down(self, step=1)Moves the cursor down.
|
move_index_left(self)Moves the cursor one index position left. |
move_index_right(self)Moves the cursor one index position right. |
move_left(self)Moves the cursor left. |
move_right(self)Moves the cursor right. |
move_subindex_left(self)Moves the cursor one subindex position left. |
move_subindex_right(self)Moves the cursor one subindex position right. |
move_track_left(self)Moves the cursor one track position left. |
move_track_right(self)Moves the cursor one track position right. |
move_up(self, step=1)Moves the cursor up.
|
on_char(self, event)Callback that responds to key stroke in pattern view.
|
on_context_menu(self, event)Callback that constructs and displays the popup menu
|
on_copy(self, event)Sent when the copy function is selected from the menu.
|
on_cut(self, event)Sent when the cut function is selected from the menu.
|
on_key_down(self, event)Callback that responds to key stroke in pattern view.
|
on_left_down(self, event)Callback that responds to left click in pattern view.
|
on_mousewheel(self, event)Callback that responds to mousewheeling in pattern view.
|
on_paste(self, event)Sent when the paste function is selected from the menu.
|
on_popup_add_track(self, event=None)Callback that adds a track. |
on_popup_create_copy(self, event=None)Callback that creates a copy of the current pattern. |
on_popup_create_pattern(self, event=None)Callback that creates a pattern. |
on_popup_delete_track(self, event=None)Callback that deletes last track. |
on_popup_properties(self, event=None)Callback that shows the properties of the current pattern. |
on_popup_remove_pattern(self, event=None)Callback that removes the current pattern. |
on_popup_solo(self, event=None)Callback that solos current machine. |
onPostPaint(self, dc)Overriding aCanvas method that is called after
painting is completed. Draws an XOR play cursor over the pattern
view.
|
paste(self)Pastes the clipboard data into the pattern view. The pasting mechanism looks a bit weird but its effective. you can serialize pattern data in a pasteable form, and upon deserialization the app tries to make parameters as valid as possible. Buzz used to not paste at all if the format wasnt right we still try to make some sense out of what we get. |
pattern_changed(self)Loads and redraws the pattern view after the pattern has been changed. |
pattern_range(self)Iterator that moves through the entire pattern.
|
pattern_to_pos(self, row, group, track=0, index=0, subindex=0)Converts a pattern position into a (x,y) pixel coordinate.
|
pos_to_pattern(self, position)Converts a (x,y) pixel coordinate into a pattern position.
|
prepare_textbuffer(self)Initializes a buffer to handle the current pattern data. |
randomize_selection(self)Fills the current selection with random values. |
selection_range(self)Iterator that moves through the current selection.
|
set_group(self, g)Sets the current group position.
|
set_index(self, i)Sets the current index position.
|
set_octave(self, o)Sets the octave.
|
set_row(self, r)Sets the current row position.
|
set_subindex(self, si)Sets the current subindex position.
|
set_track(self, t)Sets the current track position.
|
transpose_selection(self, offset)Transposes the current selection by an offset.
|
unpack_clipboard_data(self, d)Unpacks clipboard data
|
update_line(self, row)Updates a line of the pattern.
|
update_position(self, event)Updates the position. |
| Class Variable Details |
|---|
CLIPBOARD_MAGIC
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Nov 24 13:58:32 2006 | http://epydoc.sf.net |