Package kiwi :: Package ui :: Module delegates :: Class SlaveDelegate
[frames | no frames]

Type SlaveDelegate

BaseController --+
                 |
    object --+   |
             |   |
     SlaveView --+
                 |
                SlaveDelegate


A class that combines view and controller functionality into a single package. It does not possess a top-level window, but is instead intended to be plugged in to a View or Delegate using attach_slave().
Method Summary
    Inherited from SlaveView
  add_proxy(self, model, widgets)
Add a proxy to this view that automatically update a model when the view changes.
  attach_slave(self, name, slave)
Attaches a slaveview to the current view, substituting the widget specified by name.
  check_and_notify_validity(self, force)
  connect_multiple(self, widgets, signal, handler, after)
Connect the same handler to the specified signal for a number of widgets.
  detach_slave(self, name)
Detatch a slave called name from view
  disconnect_autoconnected(self)
Disconnect handlers previously connected with autoconnect_signals()
  focus_toplevel(self)
Focuses the toplevel widget in the view
  focus_topmost(self, widgets)
Looks through widgets specified (if no widgets are specified, look through all widgets attached to the view and sets focus to the widget that is rendered in the position closest to the view window's top and left
  force_validation(self)
  get_glade_adaptor(self)
Special init code that subclasses may want to override.
  get_sizegroups(self)
Return a list of sizegroups for the current view.
  get_slave(self, holder)
  get_toplevel(self)
Returns the toplevel widget in the view
  get_topmost_widget(self, widgets, can_focus)
A real hack; returns the widget that is most to the left and top of the window.
  get_widget(self, name)
Retrieves the named widget from the View
  handler_block(self, widget, signal_name)
  handler_unblock(self, widget, signal_name)
  on_attach(self, parent)
Hook function called when attach_slave is performed on slave views.
  on_startup(self)
This is a virtual method that can be customized by classes that want to perform additional initalization after a controller has been set for it.
  register_validate_function(self, function)
The signature of the validate function is:
  set_controller(self, controller)
Sets the view's controller, checking to see if one has already been set before.
  show(self, *args)
Shows the toplevel widget
  show_all(self, *args)
Shows all widgets attached to the toplevel widget
  show_and_loop(self, parent)
Runs show() and runs the GTK+ event loop.
    Inherited from BaseController
  get_parent(self)
parent: the correspondent parent for the controller
  get_view(self)
view: the correspondent view for the controller
  on_key_press(self, widget, event)
The keypress handler, which dispatches keypresses to the functions mapped to in self.keyactions
  set_keyactions(self, keyactions)
Sets the keyactions mapping.
  set_parent(self, parent)
parent: the correspondent parent for the controller
  set_view(self, view)
view: the correspondent view for the controller
  update_keyactions(self, new_actions)
XXX

Class Variable Summary
    Inherited from SlaveView
NoneType controller = None                                                                  
NoneType domain = None                                                                  
NoneType gladefile = None                                                                  
NoneType toplevel = None                                                                  
NoneType toplevel_name = None                                                                  
list widgets = []
    Inherited from BaseController
NoneType view = None                                                                  

Generated by Epydoc 2.1 on Fri Sep 15 11:53:24 2006 http://epydoc.sf.net