Package aldrin :: Module patterns :: Class PatternView
[show private | hide private]
[frames | no frames]

Type PatternView

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


Pattern viewer class.
Method Summary
  __init__(self, rootwindow, *args, **kwds)
Initialization.
  adjust_scrollbars(self)
  adjust_selection(self)
Adjusts the selection variables according to the selection mode.
(int, int, int, int, int) charpos_to_pattern(self, position)
Converts a (x,y) character coordinate into a pattern position.
  copy(self)
Copies the current selection into the clipboard
  cut(self)
Cuts the current selection into the clipboard
  DrawBuffer(self, row, rows, fulldraw)
Overriding a Canvas method that paints onto an offscreen buffer.
  get_charbounds(self)
Returns the outermost coordinates in characters.
(zzub.Plugin, zzub.Pattern) get_datasource(self)
Returns the plugin and the current pattern in the pattern view
  get_new_pattern_name(self)
Finds an unused pattern name.
zzub.Plugin get_plugin(self)
Returns the plugin of the pattern in the pattern view.
  get_virtual_size(self)
Returns the size in characters of the virtual view area.
  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)
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)
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)
Callback that adds a track.
  on_popup_create_copy(self, event)
Callback that creates a copy of the current pattern.
  on_popup_create_pattern(self, event)
Callback that creates a pattern.
  on_popup_delete_track(self, event)
Callback that deletes last track.
  on_popup_properties(self, event)
Callback that shows the properties of the current pattern.
  on_popup_remove_pattern(self, event)
Callback that removes the current pattern.
  on_popup_solo(self, event)
Callback that solos current plugin.
  on_scroll_window(self, event)
Handles window scrolling.
  onPostPaint(self, dc)
Overriding a Canvas method that is called after painting is completed.
  paste(self)
Pastes the clipboard data into the pattern view.
  pattern_changed(self)
Loads and redraws the pattern view after the pattern has been changed.
(int, int, int, int) pattern_range(self)
Iterator that moves through the entire pattern.
(int, int) pattern_to_charpos(self, row, group, track, index, subindex)
Converts a pattern position into a (x,y) character coordinate.
(int, int) pattern_to_pos(self, row, group, track, index, subindex)
Converts a pattern position into a (x,y) pixel coordinate.
(int, int, int, int, int) 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.
  refresh_view(self)
(int, int, int, int) 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.
  show_cursor_left(self)
Puts the cursor into visible frame after a jump to the left.
  show_cursor_right(self)
Puts the cursor into visible frame after a jump to the right.
  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.
    Inherited from Window
  __repr__(self)
  AcceptsFocus(*args, **kwargs)
AcceptsFocus(self) -> bool
  AcceptsFocusFromKeyboard(*args, **kwargs)
AcceptsFocusFromKeyboard(self) -> bool
  AddChild(*args, **kwargs)
AddChild(self, Window child)
  AssociateHandle(*args, **kwargs)
AssociateHandle(self, long handle)
  CacheBestSize(*args, **kwargs)
CacheBestSize(self, Size size)
  CaptureMouse(*args, **kwargs)
CaptureMouse(self)
  Center(*args, **kwargs)
Center(self, int direction=BOTH)
  CenterOnParent(*args, **kwargs)
CenterOnParent(self, int dir=BOTH)
  CenterOnScreen(*args, **kwargs)
<function CenterOnScreen at 0xb6c14cdc> is deprecated
  Centre(*args, **kwargs)
Center(self, int direction=BOTH)
  CentreOnParent(*args, **kwargs)
CenterOnParent(self, int dir=BOTH)
  CentreOnScreen(*args, **kwargs)
<function CenterOnScreen at 0xb6c14cdc> is deprecated
  ClearBackground(*args, **kwargs)
ClearBackground(self)
  ClientToScreen(*args, **kwargs)
ClientToScreen(self, Point pt) -> Point
  ClientToScreenXY(*args, **kwargs)
ClientToScreenXY(int x, int y) -> (x,y)
  Close(*args, **kwargs)
Close(self, bool force=False) -> bool
  ConvertDialogPointToPixels(*args, **kwargs)
ConvertDialogPointToPixels(self, Point pt) -> Point
  ConvertDialogSizeToPixels(*args, **kwargs)
ConvertDialogSizeToPixels(self, Size sz) -> Size
  ConvertPixelPointToDialog(*args, **kwargs)
ConvertPixelPointToDialog(self, Point pt) -> Point
  ConvertPixelSizeToDialog(*args, **kwargs)
ConvertPixelSizeToDialog(self, Size sz) -> Size
  Create(*args, **kwargs)
Create(self, Window parent, int id=-1, Point pos=DefaultPosition, Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool Create the GUI part of the Window for 2-phase creation mode.
  Destroy(*args, **kwargs)
Destroy(self) -> bool
  DestroyChildren(*args, **kwargs)
DestroyChildren(self) -> bool
  Disable(*args, **kwargs)
Disable(self) -> bool
  DissociateHandle(*args, **kwargs)
DissociateHandle(self)
  DLG_PNT(*args, **kwargs)
DLG_PNT(self, Point pt) -> Point
  DLG_SZE(*args, **kwargs)
DLG_SZE(self, Size sz) -> Size
  DragAcceptFiles(*args, **kwargs)
DragAcceptFiles(self, bool accept)
  Enable(*args, **kwargs)
Enable(self, bool enable=True) -> bool
  FindFocus(*args, **kwargs)
FindFocus() -> Window (Static method)
  FindWindowById(*args, **kwargs)
FindWindowById(self, long winid) -> Window
  FindWindowByName(*args, **kwargs)
FindWindowByName(self, String name) -> Window
  Fit(*args, **kwargs)
Fit(self)
  FitInside(*args, **kwargs)
FitInside(self)
  Freeze(*args, **kwargs)
Freeze(self)
  GetAcceleratorTable(*args, **kwargs)
GetAcceleratorTable(self) -> AcceleratorTable
  GetAdjustedBestSize(*args, **kwargs)
GetAdjustedBestSize(self) -> Size
  GetAutoLayout(*args, **kwargs)
GetAutoLayout(self) -> bool
  GetBackgroundColour(*args, **kwargs)
GetBackgroundColour(self) -> Colour
  GetBackgroundStyle(*args, **kwargs)
GetBackgroundStyle(self) -> int
  GetBestFittingSize(*args, **kwargs)
GetBestFittingSize(self) -> Size
  GetBestSize(*args, **kwargs)
GetBestSize(self) -> Size
  GetBestSizeTuple(*args, **kwargs)
GetBestSizeTuple() -> (width, height)
  GetBestVirtualSize(*args, **kwargs)
GetBestVirtualSize(self) -> Size
  GetBorder(*args)
GetBorder(self, long flags) -> int GetBorder(self) -> int
  GetCapture(*args, **kwargs)
GetCapture() -> Window (Static method)
  GetCaret(*args, **kwargs)
GetCaret(self) -> Caret
  GetCharHeight(*args, **kwargs)
GetCharHeight(self) -> int
  GetCharWidth(*args, **kwargs)
GetCharWidth(self) -> int
  GetChildren(*args, **kwargs)
GetChildren(self) -> PyObject
  GetClassDefaultAttributes(*args, **kwargs)
GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes (Static method)
  GetClientAreaOrigin(*args, **kwargs)
GetClientAreaOrigin(self) -> Point
  GetClientRect(*args, **kwargs)
GetClientRect(self) -> Rect
  GetClientSize(*args, **kwargs)
GetClientSize(self) -> Size
  GetClientSizeTuple(*args, **kwargs)
GetClientSizeTuple() -> (width, height)
  GetConstraints(*args, **kwargs)
GetConstraints(self) -> LayoutConstraints
  GetContainingSizer(*args, **kwargs)
GetContainingSizer(self) -> Sizer
  GetCursor(*args, **kwargs)
GetCursor(self) -> Cursor
  GetDefaultAttributes(*args, **kwargs)
GetDefaultAttributes(self) -> VisualAttributes
  GetDefaultItem(*args, **kwargs)
GetDefaultItem(self) -> Window
  GetDropTarget(*args, **kwargs)
GetDropTarget(self) -> DropTarget
  GetEventHandler(*args, **kwargs)
GetEventHandler(self) -> EvtHandler
  GetExtraStyle(*args, **kwargs)
GetExtraStyle(self) -> long
  GetFont(*args, **kwargs)
GetFont(self) -> Font
  GetForegroundColour(*args, **kwargs)
GetForegroundColour(self) -> Colour
  GetFullTextExtent(*args, **kwargs)
GetFullTextExtent(String string, Font font=None) -> (width, height, descent, externalLeading) Get the width, height, decent and leading of the text using the current or specified font.
  GetGrandParent(*args, **kwargs)
GetGrandParent(self) -> Window
  GetHandle(*args, **kwargs)
GetHandle(self) -> long
  GetHelpText(*args, **kwargs)
GetHelpText(self) -> String
  GetId(*args, **kwargs)
GetId(self) -> int
  GetLabel(*args, **kwargs)
GetLabel(self) -> String
  GetMaxHeight(*args, **kwargs)
GetMaxHeight(self) -> int
  GetMaxSize(*args, **kwargs)
GetMaxSize(self) -> Size
  GetMaxWidth(*args, **kwargs)
GetMaxWidth(self) -> int
  GetMinHeight(*args, **kwargs)
GetMinHeight(self) -> int
  GetMinSize(*args, **kwargs)
GetMinSize(self) -> Size
  GetMinWidth(*args, **kwargs)
GetMinWidth(self) -> int
  GetName(*args, **kwargs)
GetName(self) -> String
  GetParent(*args, **kwargs)
GetParent(self) -> Window
  GetPosition(*args, **kwargs)
GetPosition(self) -> Point
  GetPositionTuple(*args, **kwargs)
GetPositionTuple() -> (x,y)
  GetRect(*args, **kwargs)
GetRect(self) -> Rect
  GetScrollPos(*args, **kwargs)
GetScrollPos(self, int orientation) -> int
  GetScrollRange(*args, **kwargs)
GetScrollRange(self, int orientation) -> int
  GetScrollThumb(*args, **kwargs)
GetScrollThumb(self, int orientation) -> int
  GetSize(*args, **kwargs)
GetSize(self) -> Size
  GetSizer(*args, **kwargs)
GetSizer(self) -> Sizer
  GetSizeTuple(*args, **kwargs)
GetSizeTuple() -> (width, height)
  GetTextExtent(*args, **kwargs)
GetTextExtent(String string) -> (width, height)
  GetThemeEnabled(*args, **kwargs)
GetThemeEnabled(self) -> bool
  GetTitle(*args, **kwargs)
GetTitle(self) -> String
  GetToolTip(*args, **kwargs)
GetToolTip(self) -> ToolTip
  GetUpdateClientRect(*args, **kwargs)
GetUpdateClientRect(self) -> Rect
  GetUpdateRegion(*args, **kwargs)
GetUpdateRegion(self) -> Region
  GetValidator(*args, **kwargs)
GetValidator(self) -> Validator
  GetVirtualSize(*args, **kwargs)
GetVirtualSize(self) -> Size
  GetVirtualSizeTuple(*args, **kwargs)
GetVirtualSizeTuple() -> (width, height)
  GetWindowStyle(*args, **kwargs)
GetWindowStyleFlag(self) -> long
  GetWindowStyleFlag(*args, **kwargs)
GetWindowStyleFlag(self) -> long
  GetWindowVariant(*args, **kwargs)
GetWindowVariant(self) -> int
  HasCapture(*args, **kwargs)
HasCapture(self) -> bool
  HasFlag(*args, **kwargs)
HasFlag(self, int flag) -> bool
  HasScrollbar(*args, **kwargs)
HasScrollbar(self, int orient) -> bool
  HasTransparentBackground(*args, **kwargs)
HasTransparentBackground(self) -> bool
  Hide(*args, **kwargs)
Hide(self) -> bool
  HitTest(*args, **kwargs)
HitTest(self, Point pt) -> int
  HitTestXY(*args, **kwargs)
HitTestXY(self, int x, int y) -> int
  InheritAttributes(*args, **kwargs)
InheritAttributes(self)
  InheritsBackgroundColour(*args, **kwargs)
InheritsBackgroundColour(self) -> bool
  InitDialog(*args, **kwargs)
InitDialog(self)
  InvalidateBestSize(*args, **kwargs)
InvalidateBestSize(self)
  IsBeingDeleted(*args, **kwargs)
IsBeingDeleted(self) -> bool
  IsEnabled(*args, **kwargs)
IsEnabled(self) -> bool
  IsExposed(*args, **kwargs)
IsExposed(self, int x, int y, int w=1, int h=1) -> bool
  IsExposedPoint(*args, **kwargs)
IsExposedPoint(self, Point pt) -> bool
  IsExposedRect(*args, **kwargs)
IsExposedRect(self, Rect rect) -> bool
  IsRetained(*args, **kwargs)
IsRetained(self) -> bool
  IsShown(*args, **kwargs)
IsShown(self) -> bool
  IsTopLevel(*args, **kwargs)
IsTopLevel(self) -> bool
  Layout(*args, **kwargs)
Layout(self) -> bool
  LineDown(*args, **kwargs)
LineDown(self) -> bool
  LineUp(*args, **kwargs)
LineUp(self) -> bool
  Lower(*args, **kwargs)
Lower(self)
  MakeModal(*args, **kwargs)
MakeModal(self, bool modal=True)
  Move(*args, **kwargs)
Move(self, Point pt, int flags=SIZE_USE_EXISTING)
  MoveAfterInTabOrder(*args, **kwargs)
MoveAfterInTabOrder(self, Window win)
  MoveBeforeInTabOrder(*args, **kwargs)
MoveBeforeInTabOrder(self, Window win)
  MoveXY(*args, **kwargs)
MoveXY(self, int x, int y, int flags=SIZE_USE_EXISTING)
  Navigate(*args, **kwargs)
Navigate(self, int flags=NavigationKeyEvent.IsForward) -> bool
  NewControlId(*args, **kwargs)
NewControlId() -> int (Static method)
  NextControlId(*args, **kwargs)
NextControlId(int winid) -> int (Static method)
  PageDown(*args, **kwargs)
PageDown(self) -> bool
  PageUp(*args, **kwargs)
PageUp(self) -> bool
  PopEventHandler(*args, **kwargs)
PopEventHandler(self, bool deleteHandler=False) -> EvtHandler
  PopupMenu(*args, **kwargs)
PopupMenu(self, Menu menu, Point pos=DefaultPosition) -> bool
  PopupMenuXY(*args, **kwargs)
PopupMenuXY(self, Menu menu, int x=-1, int y=-1) -> bool
  PostCreate(self, pre)
Phase 3 of the 2-phase create <wink!> Call this method after precreating the window with the 2-phase create method.
  PrepareDC(*args, **kwargs)
PrepareDC(self, DC dc)
  PrevControlId(*args, **kwargs)
PrevControlId(int winid) -> int (Static method)
  PushEventHandler(*args, **kwargs)
PushEventHandler(self, EvtHandler handler)
  Raise(*args, **kwargs)
Raise(self)
  Refresh(*args, **kwargs)
Refresh(self, bool eraseBackground=True, Rect rect=None)
  RefreshRect(*args, **kwargs)
RefreshRect(self, Rect rect, bool eraseBackground=True)
  RegisterHotKey(*args, **kwargs)
RegisterHotKey(self, int hotkeyId, int modifiers, int keycode) -> bool
  ReleaseMouse(*args, **kwargs)
ReleaseMouse(self)
  RemoveChild(*args, **kwargs)
RemoveChild(self, Window child)
  RemoveEventHandler(*args, **kwargs)
RemoveEventHandler(self, EvtHandler handler) -> bool
  Reparent(*args, **kwargs)
Reparent(self, Window newParent) -> bool
  ScreenToClient(*args, **kwargs)
ScreenToClient(self, Point pt) -> Point
  ScreenToClientXY(*args, **kwargs)
ScreenToClientXY(int x, int y) -> (x,y)
  ScrollLines(*args, **kwargs)
ScrollLines(self, int lines) -> bool
  ScrollPages(*args, **kwargs)
ScrollPages(self, int pages) -> bool
  ScrollWindow(*args, **kwargs)
ScrollWindow(self, int dx, int dy, Rect rect=None)
  SendSizeEvent(self)
  SetAcceleratorTable(*args, **kwargs)
SetAcceleratorTable(self, AcceleratorTable accel)
  SetAutoLayout(*args, **kwargs)
SetAutoLayout(self, bool autoLayout)
  SetBackgroundColour(*args, **kwargs)
SetBackgroundColour(self, Colour colour) -> bool
  SetBackgroundStyle(*args, **kwargs)
SetBackgroundStyle(self, int style) -> bool Returns the background style of the window.
  SetBestFittingSize(*args, **kwargs)
SetBestFittingSize(self, Size size=DefaultSize)
  SetCaret(*args, **kwargs)
SetCaret(self, Caret caret)
  SetClientRect(*args, **kwargs)
SetClientRect(self, Rect rect)
  SetClientSize(*args, **kwargs)
SetClientSize(self, Size size)
  SetClientSizeWH(*args, **kwargs)
SetClientSizeWH(self, int width, int height)
  SetConstraints(*args, **kwargs)
SetConstraints(self, LayoutConstraints constraints)
  SetContainingSizer(*args, **kwargs)
SetContainingSizer(self, Sizer sizer)
  SetCursor(*args, **kwargs)
SetCursor(self, Cursor cursor) -> bool
  SetDefaultItem(*args, **kwargs)
SetDefaultItem(self, Window child) -> Window
  SetDimensions(*args, **kwargs)
SetDimensions(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO) Sets the position and size of the window in pixels.
  SetDropTarget(*args, **kwargs)
SetDropTarget(self, DropTarget dropTarget)
  SetEventHandler(*args, **kwargs)
SetEventHandler(self, EvtHandler handler)
  SetExtraStyle(*args, **kwargs)
SetExtraStyle(self, long exStyle)
  SetFocus(*args, **kwargs)
SetFocus(self)
  SetFocusFromKbd(*args, **kwargs)
SetFocusFromKbd(self)
  SetFont(*args, **kwargs)
SetFont(self, Font font) -> bool
  SetForegroundColour(*args, **kwargs)
SetForegroundColour(self, Colour colour) -> bool
  SetHelpText(*args, **kwargs)
SetHelpText(self, String text)
  SetHelpTextForId(*args, **kwargs)
SetHelpTextForId(self, String text)
  SetId(*args, **kwargs)
SetId(self, int winid)
  SetLabel(*args, **kwargs)
SetLabel(self, String label)
  SetMaxSize(*args, **kwargs)
SetMaxSize(self, Size maxSize)
  SetMinSize(*args, **kwargs)
SetMinSize(self, Size minSize)
  SetName(*args, **kwargs)
SetName(self, String name)
  SetOwnBackgroundColour(*args, **kwargs)
SetOwnBackgroundColour(self, Colour colour)
  SetOwnFont(*args, **kwargs)
SetOwnFont(self, Font font)
  SetOwnForegroundColour(*args, **kwargs)
SetOwnForegroundColour(self, Colour colour)
  SetPosition(*args, **kwargs)
Move(self, Point pt, int flags=SIZE_USE_EXISTING)
  SetRect(*args, **kwargs)
SetRect(self, Rect rect, int sizeFlags=SIZE_AUTO)
  SetScrollbar(*args, **kwargs)
SetScrollbar(self, int orientation, int position, int thumbSize, int range, bool refresh=True) Sets the scrollbar properties of a built-in scrollbar.
  SetScrollPos(*args, **kwargs)
SetScrollPos(self, int orientation, int pos, bool refresh=True)
  SetSize(*args, **kwargs)
SetSize(self, Size size)
  SetSizeHints(*args, **kwargs)
SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, int incH=-1) Allows specification of minimum and maximum window sizes, and window size increments.
  SetSizeHintsSz(*args, **kwargs)
SetSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)
  SetSizer(*args, **kwargs)
SetSizer(self, Sizer sizer, bool deleteOld=True)
  SetSizerAndFit(*args, **kwargs)
SetSizerAndFit(self, Sizer sizer, bool deleteOld=True)
  SetSizeWH(*args, **kwargs)
SetSizeWH(self, int width, int height)
  SetThemeEnabled(*args, **kwargs)
SetThemeEnabled(self, bool enableTheme) This function tells a window if it should use the system's "theme" code to draw the windows' background instead if its own background drawing code.
  SetTitle(*args, **kwargs)
SetTitle(self, String title)
  SetTmpDefaultItem(*args, **kwargs)
SetTmpDefaultItem(self, Window win)
  SetToolTip(*args, **kwargs)
SetToolTip(self, ToolTip tip)
  SetToolTipString(*args, **kwargs)
SetToolTipString(self, String tip)
  SetValidator(*args, **kwargs)
SetValidator(self, Validator validator)
  SetVirtualSize(*args, **kwargs)
SetVirtualSize(self, Size size)
  SetVirtualSizeHints(*args, **kwargs)
SetVirtualSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1)
  SetVirtualSizeHintsSz(*args, **kwargs)
SetVirtualSizeHintsSz(self, Size minSize, Size maxSize=DefaultSize)
  SetVirtualSizeWH(*args, **kwargs)
SetVirtualSizeWH(self, int w, int h)
  SetWindowStyle(*args, **kwargs)
SetWindowStyleFlag(self, long style)
  SetWindowStyleFlag(*args, **kwargs)
SetWindowStyleFlag(self, long style)
  SetWindowVariant(*args, **kwargs)
SetWindowVariant(self, int variant)
  ShouldInheritColours(*args, **kwargs)
ShouldInheritColours(self) -> bool
  Show(*args, **kwargs)
Show(self, bool show=True) -> bool
  Thaw(*args, **kwargs)
Thaw(self)
  TransferDataFromWindow(*args, **kwargs)
TransferDataFromWindow(self) -> bool
  TransferDataToWindow(*args, **kwargs)
TransferDataToWindow(self) -> bool
  UnregisterHotKey(*args, **kwargs)
UnregisterHotKey(self, int hotkeyId) -> bool
  Update(*args, **kwargs)
Update(self)
  UpdateWindowUI(*args, **kwargs)
UpdateWindowUI(self, long flags=UPDATE_UI_NONE)
  UseBgCol(*args, **kwargs)
UseBgCol(self) -> bool
  Validate(*args, **kwargs)
Validate(self) -> bool
  WarpPointer(*args, **kwargs)
WarpPointer(self, int x, int y)
    Inherited from EvtHandler
  _setOORInfo(*args, **kwargs)
_setOORInfo(self, PyObject _self, bool incref=True)
  AddPendingEvent(*args, **kwargs)
AddPendingEvent(self, Event event)
  Bind(self, event, handler, source, id, id2)
Bind an event to an event handler.
  Connect(*args, **kwargs)
Connect(self, int id, int lastId, int eventType, PyObject func)
  Disconnect(*args, **kwargs)
Disconnect(self, int id, int lastId=-1, wxEventType eventType=wxEVT_NULL) -> bool
  GetEvtHandlerEnabled(*args, **kwargs)
GetEvtHandlerEnabled(self) -> bool
  GetNextHandler(*args, **kwargs)
GetNextHandler(self) -> EvtHandler
  GetPreviousHandler(*args, **kwargs)
GetPreviousHandler(self) -> EvtHandler
  ProcessEvent(*args, **kwargs)
ProcessEvent(self, Event event) -> bool
  ProcessPendingEvents(*args, **kwargs)
ProcessPendingEvents(self)
  SetEvtHandlerEnabled(*args, **kwargs)
SetEvtHandlerEnabled(self, bool enabled)
  SetNextHandler(*args, **kwargs)
SetNextHandler(self, EvtHandler handler)
  SetPreviousHandler(*args, **kwargs)
SetPreviousHandler(self, EvtHandler handler)
  Unbind(self, event, source, id, id2)
Disconencts the event handler binding for event from self.
    Inherited from Object
  GetClassName(*args, **kwargs)
GetClassName(self) -> String
    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)
    Inherited from CanvasBase
  _finalize_canvas_init(self)
  Blit(self, dc)
Performs the blit of the buffer contents on-screen.
  GetBoundingRect(self)
Returns a tuple that contains the co-ordinates of the top-left and bottom-right corners of the canvas.
  MakeNewBuffer(self)
  onEraseBackground(self, event)
  onPaint(self, event)
Renders the off-screen buffer on-screen.
  onSize(self, event)
Perform actual redraw to off-screen buffer only when the size of the canvas has changed.
  ReDraw(self, *args, **kargs)
Explicitly tells the canvas to redraw it's contents.

Class Variable Summary
str CLIPBOARD_MAGIC = 'PATTERNDATA'
classobj Selection = aldrin.patterns.Selection
    Inherited from CanvasBase
bool doublebuffered = True

Instance Method Details

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

Initialization.
Parameters:
rootwindow - Window that contains the component.
           (type=main.AldrinFrame)
Overrides:
aldrin.canvas.Canvas.__init__

adjust_selection(self)

Adjusts the selection variables according to the selection mode.

charpos_to_pattern(self, position)

Converts a (x,y) character coordinate into a pattern position.
Parameters:
position - Character coordinate.
           (type=(int, int))
Returns:
(row, group, track, index, subindex) representing a pattern position.
           (type=(int, int, int, int, int))

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 a Canvas method that paints onto an offscreen buffer. Draws the pattern view graphics.
Overrides:
aldrin.canvas.CanvasBase.DrawBuffer

get_charbounds(self)

Returns the outermost coordinates in characters.

get_datasource(self)

Returns the plugin and the current pattern in the pattern view
Returns:
A tuple holding the plugin and the current pattern
           (type=(zzub.Plugin, zzub.Pattern))

get_new_pattern_name(self)

Finds an unused pattern name.

get_plugin(self)

Returns the plugin of the pattern in the pattern view.
Returns:
zzub plugin plugin.
           (type=zzub.Plugin)

get_virtual_size(self)

Returns the size in characters of the virtual view area.

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.
Parameters:
step - Amount the cursor is moved down.
           (type=int)

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.
Parameters:
step - Amount the cursor is moved up.
           (type=int)

on_char(self, event)

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

on_context_menu(self, event)

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

on_copy(self, event)

Sent when the copy function is selected from the menu.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

on_cut(self, event)

Sent when the cut function is selected from the menu.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

on_key_down(self, event)

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

on_left_down(self, event)

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

on_mousewheel(self, event)

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

on_paste(self, event)

Sent when the paste function is selected from the menu.
Parameters:
event - Menu event.
           (type=wx.MenuEvent)

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

on_scroll_window(self, event)

Handles window scrolling.

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

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.
Returns:
Tuple pair of the next position (row, group, track, index)
           (type=(int, int, int, int))

pattern_to_charpos(self, row, group, track=0, index=0, subindex=0)

Converts a pattern position into a (x,y) character coordinate.
Parameters:
row - Pattern row
           (type=int)
group - Specific pattern group (Connection, Global or Tracks)
           (type=int)
track - Track of the group
           (type=int)
index - Parameter index of the track
           (type=int)
subindex - Subindex of the index
           (type=int)
Returns:
(x,y) character coordinate
           (type=(int, int))

pattern_to_pos(self, row, group, track=0, index=0, subindex=0)

Converts a pattern position into a (x,y) pixel coordinate.
Parameters:
row - Pattern row
           (type=int)
group - Specific pattern group (Connection, Global or Tracks)
           (type=int)
track - Track of the group
           (type=int)
index - Parameter index of the track
           (type=int)
subindex - Subindex of the index
           (type=int)
Returns:
(x,y) pixel coordinate
           (type=(int, int))

pos_to_pattern(self, position)

Converts a (x,y) pixel coordinate into a pattern position.
Parameters:
position - Pixel coordinate.
           (type=(int, int))
Returns:
(row, group, track, index, subindex) representing a pattern position.
           (type=(int, int, int, int, int))

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.
Returns:
Tuple pair of the next position (row, group, track, index)
           (type=(int, int, int, int))

set_group(self, g)

Sets the current group position.
Parameters:
g - Group position.
           (type=int)

set_index(self, i)

Sets the current index position.
Parameters:
i - Index position.
           (type=int)

set_octave(self, o)

Sets the octave.
Parameters:
o - Octave
           (type=int)

set_row(self, r)

Sets the current row position.
Parameters:
r - Row position.
           (type=int)

set_subindex(self, si)

Sets the current subindex position.
Parameters:
si - Subindex position.
           (type=int)

set_track(self, t)

Sets the current track position.
Parameters:
t - Track position.
           (type=int)

show_cursor_left(self)

Puts the cursor into visible frame after a jump to the left.

show_cursor_right(self)

Puts the cursor into visible frame after a jump to the right.

transpose_selection(self, offset)

Transposes the current selection by an offset.
Parameters:
offset - The amount that the values is incremented.
           (type=int)

unpack_clipboard_data(self, d)

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

update_line(self, row)

Updates a line of the pattern.
Parameters:
row - Line that will be updated.
           (type=int)

update_position(self, event)

Updates the position.

Class Variable Details

CLIPBOARD_MAGIC

Type:
str
Value:
'PATTERNDATA'                                                          

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