Package advene :: Package gui :: Package views :: Module viewbook :: Class ViewBook
[hide private]
[frames] | no frames]

Class ViewBook

source code

object --+    
         |    
 AdhocView --+
             |
            ViewBook

Notebook containing multiple views

Instance Methods [hide private]
 
__init__(self, controller=None, views=None, location=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
remove_view(self, view) source code
 
detach_view(self, view) source code
 
clear(self)
Clear the viewbook.
source code
 
add_view(self, v, name=None, permanent=False)
Add a new view to the notebook.
source code
 
drag_received(self, widget, context, x, y, selection, targetType, time) source code
 
build_widget(self) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from AdhocView
 
attach_view(self, menuitem, window) source code
 
close(self, *p) source code
 
export_as_static_view(self, ident=None)
Propose to export the view as a static view.
source code
 
get_save_arguments(self)
Method called when saving a parametered view.
source code
 
get_widget(self)
Return the widget.
source code
 
load_parameters(self, param)
Parse the parameters from a Content object, a tuple or an ElementTree.Element
source code
 
log(self, msg, level=None) source code
 
message(self, m)
Display a message in the statusbar, if present.
source code
 
parameters_to_element(self, options=None, arguments=None)
Generate an ET.Element representing the view and its parameters.
source code
 
popup(self, label=None) source code
 
register_slave_view(self, v) source code
 
safe_connect(self, obj, *p)
Connect a signal handler to a gobject.
source code
 
save_default_options(self, *p)
Save the default options.
source code
 
save_parameters(self, content, options=None, arguments=None)
Save the view parameters to a Content object.
source code
 
save_view(self, *p) source code
 
set_label(self, label) source code
 
unregister_slave_view(self, v) source code
Class Variables [hide private]
  view_name = 'ViewBook'
  view_id = 'viewbook'
    Inherited from AdhocView
  tooltip = 'This view is a generic abstract view that should be...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, controller=None, views=None, location=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

add_view(self, v, name=None, permanent=False)

source code 

Add a new view to the notebook.

Each view is an Advene view, and must have a .widget attribute

build_widget(self)

source code 
Overrides: AdhocView.build_widget