| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
AdhocView --+
|
ViewPlugin
The generic way of dealing with a ViewPlugin is to create an instance of it, then call the get_widget () method to get the corresponding Gtk widget.
In the advene framework, the view should be registered via calls to register_view () so that it gets notified of the element's changes.
Do not inherit from this class, as it defines many optional methods. Inherit from AdhocView, and define the relevant additional methods.
self.load_parameters() takes a Content object as parameter, that must be of application/x-advene-adhoc-view mimetype. It will read the Content data, and return an options dictionary, and arguments as a list of (name, value) tuples. If None is passed, the view will try to load default options (cf load_parameters docstring).
|
|||
|
|||
|
|||
|
|||
|
|||
| a Gtk Widget |
|
||
|
|||
| usually an Advene element (Annotation, Schema, ...) |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
| Inherited from AdhocView | |||
|---|---|---|---|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
| AdveneController |
controller the controller |
||
| dict |
options view options |
||
| gkt.Widget |
widget the gtk widget representing the view |
||
|
|||
|
Inherited from |
|||
|
|||
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Method called when saving a parametered view. It should return a tuple (options, arguments) where options is the options dictionary, and arguments is a list of (name, value) tuples). If it returns None, None, it means that the view saving is cancelled.
|
Method invoked on view creation. It can be used to register new EventHandler callbacks for instance (typically AnnotationBegin and AnnotationEnd).
|
Method invoked on view closing. It is used to clean up the settings done in register_callback.
|
Return a Gtk widget representing the view of the component. It should be idempotent (i.e. return the same reference upon multiple invocations).
|
Popup the view in a toplevel window.
|
Return the model (data structure) corresponding to the view.
|
Activate the given annotation (some kind of visual feedback).
|
Desactivate the given annotation (some kind of visual feedback).
|
Update the model of the view. This should be called when a new package has been loaded.
|
Update the representation of the given annotation. This should be called when the annotation data or metadata has been modified.
|
Activate the given relation (some kind of visual feedback).
|
Desactivate the given annotation (some kind of visual feedback).
|
Update the representation of the given relation. This should be called when the relation data or metadata has been modified.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Aug 22 14:37:43 2008 | http://epydoc.sourceforge.net |