gaupol.agents.open.OpenAgent

Source: gaupol/agents/open.py

Anchestors: aeidon.delegate.Delegate, builtins.object

class gaupol.agents.open.OpenAgent
Opening subtitle files and creating new projects.

Methods

OpenAgent.add_page(page)

Add page to the application.

OpenAgent.add_to_recent_files(path, format, doc)

Add path to recent files managed by the recent manager.

OpenAgent.append_file(path, encoding=None)

Append subtitles from file at path to the current project.

Raise gaupol.Default if cancelled or something goes wrong.

OpenAgent.connect_view_signals(view)

Connect to signals emitted by view.

OpenAgent.open_main(path, encoding=None)

Open file at path as a main file.

path can be a sequence of paths to open multiple files. Use None for encoding to try the default sequence.

OpenAgent.open_translation(path, encoding=None, align_method=None)

Open file at path as a translation file.

Use None for encoding to try the default sequence. Use None for align_method to use whatever happens to be as gaupol.conf.file.align_method.