Inherits from
- DockWindowFeature: enthought.pyface.dock.dock_window_feature.DockWindowFeature
Attributes
- connectable_traits
Set of 'connectable' object traits:
connectable_traits = Any
- connections
Set of current connections that have been made:
connections = Dict
- feature_name
The user interface name of the feature:
feature_name = 'Connect'
- image
The current image to display on the feature bar:
image = ImageResource('no_connections_feature')
- permanent_connections
The list of permanent, persisted connections:
permanent_connections = [ ]
- permanent_loaded
Have the permanent connections been loaded yet?
permanent_loaded = False
- tooltip
The tooltip to display when the mouse is hovering over the image:
tooltip = 'Click to make or break connections to other views.'
Inherited from base classes
Method summary
- activate(self)
- add_connection(self, name, connection)
- add_permanent_connection(cls, connection)
- can_drop(self, object)
- check_permanent_connections(cls)
- click(self)
- connect(self, index)
- connect_actions(self, actions)
- disconnect(self, name, index)
- disconnect_actions(self, connections)
- dispose(self)
- drag(self)
- drop(self, object)
- feature_for(cls, dock_control)
- get_available_connections(self, feature2, connects, new_connections)
- make_connection(self, connection, permanent = True)
- parse_connect(self, connect, name)
- pop_connection_menu(self, connects, new_connections, old_connections)
- remove_connection(self, name, connection)
- remove_permanent_connection(cls, connection)
- right_click(self)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add_class_trait(cls, name, *trait)
- add_to_menu(self, menu_item)
- add_to_toolbar(self, toolbar_item)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- alt_drag(self)
- alt_right_drag(self)
- base_trait(self, name)
- can_add_to_menu(self, action)
- can_add_to_toolbar(self, action)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- control_drag(self)
- control_right_drag(self)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- disable(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- enable(self)
- has_traits_interface(self, *interfaces)
- is_feature_for(self, dock_control)
- new_feature(cls, dock_control)
- new_feature_for(cls, dock_control)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- perform(self, action)
- popup_menu(self, menu)
- print_traits(self, show_help = False, **metadata)
- quick_drag(self)
- quick_right_drag(self)
- refresh(self)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- right_drag(self)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- shift_control_drag(self)
- shift_drag(self)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- toggle_feature(cls, event)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- activate(self)
Handles the associated DockControl being activated by the user.
- add_connection(self, name, connection)
Adds a new connection to our list of connections.
- add_permanent_connection(cls, connection)
Adds a permanent connection.
- can_drop(self, object)
Returns whether a specified object can be dropped on the feature image.
- check_permanent_connections(cls)
- click(self)
Handles the user left clicking on the feature image.
- connect(self, index)
Makes a connection specified by index.
- connect_actions(self, actions)
Returns a list of Actions for a list of potential connections.
- disconnect(self, name, index)
Disconnects a specified connection.
- disconnect_actions(self, connections)
Returns a list of Actions for a list of potential disconnects.
- dispose(self)
Performs any clean-up needed when the feature is being removed.
- drag(self)
Returns the object to be dragged when the user drags feature image.
- drop(self, object)
Handles the user dropping a specified object on the feature image.
- feature_for(cls, dock_control)
Returns a new feature object for a specified DockControl (or None if the feature does not apply to it).
- get_available_connections(self, feature2, connects, new_connections)
Returns the connections that can be made between two ConnectFeatures.
- make_connection(self, connection, permanent = True)
Makes a specified connection.
- parse_connect(self, connect, name)
Parses a 'connect' string into the connection type and an optional user friendly name.
- remove_connection(self, name, connection)
Removes a specified connection.
- remove_permanent_connection(cls, connection)
Removes a permanent connection.
- right_click(self)
Handles the user right clicking on the feature image.