Package advene :: Package gui :: Module simple :: Class SimpleAdveneGUI
[hide private]
[frames] | no frames]

Class SimpleAdveneGUI

source code

main.Connect --+    
               |    
  main.AdveneGUI --+
                   |
                  SimpleAdveneGUI

Instance Methods [hide private]
 
__init__(self)
Initializes the simple GUI and other attributes.
source code
 
main(self, args=None)
Mainloop : Gtk mainloop setup.
source code
 
update_color(self, element)
Update the color for the given element.
source code
 
set_current_annotation(self, a)
Set the current annotation.
source code
 
update_loop_button(self)
Update the loop button tooltip.
source code
 
get_visualisation_widget(self)
Return the main visualisation widget.
source code
 
update_package_list(self)
Update the list of loaded packages.
source code
 
append_file_history_menu(self, filename)
Add the filename at the end of the filemenu Glade widget.
source code
 
updated_position_cb(self, context, parameters)
Method called upon video player position change.
source code
    Inherited from main.AdveneGUI
 
annotation_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
annotationtype_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
ask_for_annotation_type(self, text=None, create=False, force_create=False)
Display a popup asking to choose an annotation type.
source code
 
ask_for_schema(self, text=None, create=False)
Display a popup asking to choose a schema.
source code
 
build_utbv_menu(self, action=None) source code
 
check_for_default_adhoc_view(self, package) source code
 
check_for_update(self, *p) source code
 
close_view_cb(self, win=None, widget=None, view=None)
Generic handler called when a view is closed.
source code
 
create_bookmark(self, position, insert_after_current=False) source code
 
debug_cb(self, window, event, *p) source code
 
display_imagecache(self)
Debug method.
source code
 
do_quicksearch(self, *p) source code
 
edit_element(self, element, modal=False)
Edit the element.
source code
 
find_bookmark_view(self) source code
 
generate_screenshots(self, *p)
Generate screenshots.
source code
 
get_adhoc_view_instance_from_id(self, ident)
Return the adhoc view instance matching the identifier.
source code
 
get_adhoc_view_instance_id(self, view)
Return the identifier for the adhoc view instance.
source code
 
get_icon_list(self)
Return the list of icon pixbuf appropriate for Window.set_icon_list.
source code
 
get_illustrated_text(self, text, position=None, vertical=False, height=40)
Return a HBox with the given text and a snapshot corresponding to position.
source code
 
get_player_control_toolbar(self)
Return a player control toolbar
source code
 
handle_element_delete(self, context, parameters)
Handle element deletion.
source code
 
init_window_size(self, window, name)
Initialize window size according to stored values.
source code
 
log(self, msg, level=None)
Add a new log message to the logmessage window.
source code
 
loop_on_annotation_gui(self, a, goto=False)
Loop over an annotation
source code
 
manage_package_activate(self, context, parameters) source code
 
manage_package_load(self, context, parameters)
Event Handler executed after loading a package.
source code
 
manage_package_save(self, context, parameters)
Event Handler executed after saving a package.
source code
 
on_about1_activate(self, button=None, data=None)
Activate the About window.
source code
 
on_adhoc_browser_activate(self, button=None, data=None) source code
 
on_adhoc_timeline_activate(self, button=None, data=None) source code
 
on_adhoc_transcribe_activate(self, button=None, data=None) source code
 
on_adhoc_transcription_activate(self, button=None, data=None) source code
 
on_adhoc_transcription_package_activate(self, button=None, data=None) source code
 
on_adhoc_treeview_activate(self, button=None, data=None) source code
 
on_adhoc_web_browser_activate(self, button=None, data=None) source code
 
on_b_addfile_clicked(self, button=None, data=None)
Open a movie file
source code
 
on_b_forward_clicked(self, button=None, data=None) source code
 
on_b_pause_clicked(self, button=None, data=None) source code
 
on_b_play_clicked(self, button=None, data=None) source code
 
on_b_rewind_clicked(self, button=None, data=None) source code
 
on_b_selectdvd_clicked(self, button=None, data=None)
Play a DVD.
source code
 
on_b_stop_clicked(self, button=None, data=None) source code
 
on_close1_activate(self, button=None, data=None) source code
 
on_configure_player1_activate(self, button=None, data=None) source code
 
on_copy1_activate(self, button=None, data=None) source code
 
on_create_annotation_type_activate(self, button=None, data=None) source code
 
on_create_query_activate(self, button=None, data=None) source code
 
on_create_relation_type_activate(self, button=None, data=None) source code
 
on_create_schema_activate(self, button=None, data=None) source code
 
on_create_view_activate(self, button=None, data=None) source code
 
on_cut1_activate(self, button=None, data=None) source code
 
on_delete1_activate(self, button=None, data=None) source code
 
on_edit_ruleset1_activate(self, button=None, data=None)
Default ruleset editing.
source code
 
on_evaluator2_activate(self, button=None, data=None) source code
 
on_exit(self, source=None, event=None)
Generic exit callback.
source code
 
on_export_activate(self, button=None, data=None) source code
 
on_find1_activate(self, button=None, data=None) source code
 
on_help1_activate(self, button=None, data=None) source code
 
on_helpshortcuts_activate(self, button=None, data=None) source code
 
on_import_dvd_chapters1_activate(self, button=None, data=None) source code
 
on_import_file1_activate(self, button=None, data=None) source code
 
on_merge_package_activate(self, button=None, data=None) source code
 
on_navigationhistory1_activate(self, button=None, data=None) source code
 
on_new1_activate(self, button=None, data=None)
New package.
source code
 
on_open1_activate(self, button=None, data=None)
Open a file selector to load a package.
source code
 
on_package_imports1_activate(self, button=None, data=None)
Edit imported elements from other packages.
source code
 
on_package_list_activate(self, menu=None) source code
 
on_package_properties1_activate(self, button=None, data=None) source code
 
on_paste1_activate(self, button=None, data=None) source code
 
on_preferences1_activate(self, button=None, data=None) source code
 
on_restart_player1_activate(self, button=None, data=None) source code
 
on_save1_activate(self, button=None, package=None)
Save the current package.
source code
 
on_save_as1_activate(self, button=None, package=None)
Save the package with a new name.
source code
 
on_save_imagecache1_activate(self, button=None, data=None) source code
 
on_save_session1_activate(self, button=None, data=None)
Save the current session.
source code
 
on_save_workspace_as_default1_activate(self, button=None, data=None) source code
 
on_save_workspace_as_package_view1_activate(self, button=None, data=None) source code
 
on_select_a_video_stream1_activate(self, button=None, data=None) source code
 
on_slider_button_press_event(self, button=None, data=None) source code
 
on_slider_button_release_event(self, button=None, data=None) source code
 
on_support1_activate(self, button=None, data=None) source code
 
on_undo1_activate(self, button=None, data=None) source code
 
on_view_activation(self, context, parameters)
Handler used to update the STBV GUI.
source code
 
on_view_mediainformation_activate(self, button=None, data=None)
View mediainformation.
source code
 
on_view_urlstack_activate(self, button=None, data=None)
Open the URL stack view plugin.
source code
 
on_webserver_log1_activate(self, button=None, data=None) source code
 
on_win_key_press_event(self, win=None, event=None)
Keypress handling.
source code
 
open_adhoc_view(self, name, label=None, destination='popup', parameters=None, **kw)
Open the given adhoc view.
source code
 
open_url_embedded(self, url)
Open an URL in the embedded web browser.
source code
 
player_create_bookmark(self, event) source code
 
player_end(self, event) source code
 
player_forward(self, event) source code
 
player_forward_frame(self, event) source code
 
player_home(self, event) source code
 
player_play_pause(self, event) source code
 
player_rewind(self, event) source code
 
player_rewind_frame(self, event) source code
 
player_stop_cb(self, context, parameters)
Method called upon video player stop.
source code
 
popup_edit_accumulator(self, *p) source code
 
popup_evaluator(self, *p, **kw) source code
 
process_player_shortcuts(self, win, event)
Generic player control shortcuts.
source code
 
query_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
register_edit_popup(self, e)
Register an edit popup.
source code
 
register_view(self, view)
Register a view plugin instance.
source code
 
register_viewclass(self, viewclass, name=None)
Register a ViewPlugin class.
source code
 
relation_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
relationtype_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
resize_cb(self, widget, allocation, name)
Memorize the new dimensions of the widget.
source code
 
resource_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
schema_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
search_string(self, s) source code
 
slow_update_display(self)
Update the interface (slow version)
source code
 
unregister_edit_popup(self, e)
Unregister an edit popup.
source code
 
unregister_view(self, view)
Unregister a view plugin
source code
 
update_display(self)
Update the interface.
source code
 
update_gui(self)
Update the GUI.
source code
 
update_stbv_list(self)
Update the STBV list.
source code
 
update_window_title(self) source code
 
view_lifecycle(self, context, parameters)
Method used to update the active views.
source code
 
workspace_clear(self)
Clear the workspace.
source code
 
workspace_restore(self, workspace, preserve_layout=False)
Restore the workspace from a given ElementTree element.
source code
 
workspace_save(self, viewid=None)
Save the workspace in the given viewid.
source code
 
workspace_serialize(self, with_arguments=True)
Serialize the current workspace as an ElementTree element.
source code
    Inherited from main.Connect
 
connect(self, gui)
Connect the class methods with the UI.
source code
 
create_dictionary(self)
Create a (name, function) dictionary for the current class.
source code
 
create_dictionary_for_class(self, a_class, dic)
Create a (name, function) dictionary for the specified class.
source code
 
gtk_widget_hide(self, widget)
Generic hide() method.
source code
Class Variables [hide private]
    Inherited from main.AdveneGUI
  arrow_list = {'darwin': u'', 'linux': u'', 'win32': u'>'}
  control_key_shortcuts = {gtk.keysyms.Tab: player_play_pause, g...
  key_shortcuts = {gtk.keysyms.Insert: player_create_bookmark, g...
Instance Variables [hide private]
    Inherited from main.AdveneGUI
advene.model.Annotation annotation
the currently edited annotation (or None)
  gui
the GUI model from libglade
  gui.logmessages
the logmessages window
  gui.player_status
the player_status widget
  gui.slider
the slider widget
int last_slow_position
a cache to check whether a GUI update is necessary
  oldstatus
a status cache to check whether a GUI update is necessary
dict preferences
the current preferences
Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initializes the simple GUI and other attributes.

Overrides: main.AdveneGUI.__init__

main(self, args=None)

source code 

Mainloop : Gtk mainloop setup.

Parameters:
  • args (list) - list of arguments
Overrides: main.AdveneGUI.main

update_color(self, element)

source code 

Update the color for the given element.

element may be AnnotationType, RelationType or Schema

Overrides: main.AdveneGUI.update_color

set_current_annotation(self, a)

source code 

Set the current annotation.

Overrides: main.AdveneGUI.set_current_annotation

update_loop_button(self)

source code 

Update the loop button tooltip.

Overrides: main.AdveneGUI.update_loop_button