Package conduit :: Package hildonui :: Module Canvas :: Class Canvas
[hide private]

Class Canvas

source code


This class manages many objects

Instance Methods [hide private]
 
__init__(self, parentWindow, typeConverter, syncManager)
Draws an empty canvas of the appropriate size
source code
 
_update_for_theme(self, *args) source code
 
_setup_popup_menus(self, dataproviderPopupXML, conduitPopupXML)
Sets up the popup menus and their callbacks
source code
 
_create_welcome(self) source code
 
_on_conduit_button_press(self, view, target, event)
Handle button clicks on conduits
source code
 
_on_dataprovider_button_press(self, view, target, event)
Handle button clicks
source code
 
on_conduit_added(self, sender, conduitAdded)
Creates a ConduitCanvasItem for the new conduit
source code
 
on_conduit_removed(self, sender, conduitRemoved) source code
 
on_dataprovider_removed(self, sender, dataproviderRemoved, conduitCanvasItem) source code
 
on_dataprovider_added(self, sender, dataproviderAdded, conduitCanvasItem)
Creates a DataProviderCanvasItem for the new dataprovider and adds it to the canvas
source code
 
set_sync_set(self, syncSet) source code
 
move_next(self)
Moves the canvas to the next conduit
source code
 
move_previous(self)
Moves the canvas to the previous conduit
source code
 
set_position(self, index)
Sets the Canvas position to the index provided
source code
 
get_position(self)
Gets the position
source code
 
get_position_str(self)
Gets the position representation
source code
 
_refresh_current_item(self)
Refreshes the current item; only in drawing, not the conduit
source code
 
_remove_current_item(self)
Clears the current conduit from the Canvas
source code
 
_create_item_for_conduit(self, conduit) source code
 
_get_child_conduit_canvas_items(self) source code
 
_get_child_conduit_canvas_item(self) source code
 
_get_child_dataprovider_canvas_items(self) source code

Inherited from gtkui.Canvas.Canvas: add_dataprovider_to_canvas, clear_canvas, get_sync_set, on_auto_sync_toggle, on_configure_dataprovider_clicked, on_delete_conduit_clicked, on_delete_dataprovider_clicked, on_drag_motion, on_policy_toggle, on_refresh_conduit_clicked, on_refresh_dataprovider_clicked, on_slow_sync_toggle, on_synchronize_conduit_clicked, on_two_way_sync_toggle

Inherited from gtkui.Canvas.Canvas (private): _canvas_resized, _get_bottom_of_conduits_coord, _remove_overlap, _show_welcome_message

Class Variables [hide private]
  __gsignals__ = {"position-changed":(gobject.SIGNAL_RUN_LAST, g...

Inherited from gtkui.Canvas.Canvas: DND_TARGETS, WELCOME_MESSAGE

Method Details [hide private]

__init__(self, parentWindow, typeConverter, syncManager)
(Constructor)

source code 
Draws an empty canvas of the appropriate size
Overrides: gtkui.Canvas.Canvas.__init__

_setup_popup_menus(self, dataproviderPopupXML, conduitPopupXML)

source code 
Sets up the popup menus and their callbacks
Overrides: gtkui.Canvas.Canvas._setup_popup_menus
(inherited documentation)

_on_conduit_button_press(self, view, target, event)

source code 
Handle button clicks on conduits
Overrides: gtkui.Canvas.Canvas._on_conduit_button_press
(inherited documentation)

_on_dataprovider_button_press(self, view, target, event)

source code 
Handle button clicks
Parameters:
Overrides: gtkui.Canvas.Canvas._on_dataprovider_button_press

on_conduit_added(self, sender, conduitAdded)

source code 
Creates a ConduitCanvasItem for the new conduit
Overrides: gtkui.Canvas.Canvas.on_conduit_added

on_conduit_removed(self, sender, conduitRemoved)

source code 
Overrides: gtkui.Canvas.Canvas.on_conduit_removed

on_dataprovider_removed(self, sender, dataproviderRemoved, conduitCanvasItem)

source code 
Overrides: gtkui.Canvas.Canvas.on_dataprovider_removed

on_dataprovider_added(self, sender, dataproviderAdded, conduitCanvasItem)

source code 
Creates a DataProviderCanvasItem for the new dataprovider and adds it to the canvas
Overrides: gtkui.Canvas.Canvas.on_dataprovider_added
(inherited documentation)

set_sync_set(self, syncSet)

source code 
Overrides: gtkui.Canvas.Canvas.set_sync_set

_get_child_conduit_canvas_items(self)

source code 
Overrides: gtkui.Canvas.Canvas._get_child_conduit_canvas_items

_get_child_dataprovider_canvas_items(self)

source code 
Overrides: gtkui.Canvas.Canvas._get_child_dataprovider_canvas_items

Class Variable Details [hide private]

__gsignals__

Value:
{"position-changed":(gobject.SIGNAL_RUN_LAST, gobject.TYPE_NONE, [])}