Package advene :: Package gui :: Package views :: Module activebookmarks :: Class ActiveBookmark
[hide private]
[frames] | no frames]

Class ActiveBookmark

source code

object --+
         |
        ActiveBookmark

An ActiveBookmark can represent a simple bookmark (i.e. a single time, with an optional content) or a completed annotation.

If the from_serialisation parameter is present, it is used as the source of information.

Else, if the annotation parameter is present, it is used as the source of information.

Else the begin time is mandatory. It can be associated with an optional content.

If the end time is None, then the widget is displayed as a simple bookmark. DNDing a timestamp over the begin image will set the end time.

Instance Methods [hide private]
 
__init__(self, container=None, begin=None, end=None, content=None, annotation=None, from_serialisation=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
set_begin(self, v) source code
 
get_begin(self) source code
 
set_end(self, v) source code
 
get_end(self) source code
 
set_current(self, is_current=True)
Display the 'current' marker (highlight frame) around the widget.
source code
 
serialize(self)
Return a serialized form of the bookmark.
source code
 
as_html(self) source code
 
bound_drag_motion(self, widget, drag_context, x, y, timestamp) source code
 
begin_drag_received(self, widget, context, x, y, selection, targetType, time) source code
 
end_drag_received(self, widget, context, x, y, selection, targetType, time) source code
 
transtype(self, at) source code
 
set_content(self, c) source code
 
get_content(self) source code
 
set_image_size(self, s) source code
 
check_annotation(self) source code
 
set_frame_attributes(self) source code
 
grab_focus(self, *p)
Set the focus on the comment edition widget.
source code
 
handle_scroll_event(self, button, event, get_value, set_value, check_value) source code
 
is_widget_in_bookmark(self, widget)
Check if the widget is in the bookmark.
source code
 
delete_timestamp(self, position)
Delete a timestamp.
source code
 
timestamp_key_press(self, widget, event, source) source code
 
build_widget(self) source code

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

Properties [hide private]
  begin
  end
  content

Inherited from object: __class__

Method Details [hide private]

__init__(self, container=None, begin=None, end=None, content=None, annotation=None, from_serialisation=None)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

serialize(self)

source code 

Return a serialized form of the bookmark.

It is used when saving the view.

is_widget_in_bookmark(self, widget)

source code 

Check if the widget is in the bookmark.

It checks the images, which are the source for DND.

delete_timestamp(self, position)

source code 

Delete a timestamp.

position is either 'begin' or 'end'.


Property Details [hide private]

begin

Get Method:
get_begin(self)
Set Method:
set_begin(self, v)

end

Get Method:
get_end(self)
Set Method:
set_end(self, v)

content

Get Method:
get_content(self)
Set Method:
set_content(self, c)