MainWindow
object.Method | __init__ |
No summary |
Method | check_and_update_index |
No summary |
Method | copy_location |
Menu action to copy the current page name to the clipboard |
Method | delete_page |
Delete a page by either trashing it, or permanent deletion after confirmation of a TrashPageDialog or DeletePageDialog . |
Method | edit_page_source |
Menu action to edit the page source in an external editor. See edit_file for details. |
Method | email_page |
Menu action to open an email containing the current page. Encodes the current page as "mailto:" URI and calls open_url() to start the preferred email client. |
Method | ensure_index_uptodate |
Undocumented |
Method | import_page |
Menu action to show an ImportPageDialog |
Method | manage_custom_tools |
Menu action to show the CustomToolManagerDialog |
Method | move_page |
Menu action to show the MovePageDialog @param path: a Path object, or None to move to current selected page |
Method | new_page |
Menu action to create a new page, shows the NewPageDialog , |
Method | new_page_here |
Undocumented |
Method | new_sub_page |
Menu action to create a new page, shows the NewPageDialog . Like new_page() but forces a child page of the current page. |
Method | on_notebook_properties_changed |
Undocumented |
Method | open_attachments_folder |
Menu action to open the attachment folder for the current page |
Method | open_document_root |
Menu action to open the document root folder |
Method | open_new_window |
No summary |
Method | open_notebook |
Open another notebook. @param location: notebook location as uri or object with "uri" attribute @param pagename: optional page name |
Method | open_notebook_folder |
Menu action to open the notebook folder |
Method | populate_menu_with_actions |
Undocumented |
Method | quit |
Menu action for quit. @emits: quit |
Method | save_copy |
Menu action to show a SaveCopyDialog |
Method | show_about |
Menu action to show the "about" dialog |
Method | show_debug_log |
Undocumented |
Method | show_export |
Menu action to show an ExportDialog |
Method | show_help |
Menu action to show the user manual. Will start a new zim instance showing the notebook with the manual. @param page: manual page to show (string) |
Method | show_help_bugs |
Menu action to show the 'Bugs' page in the user manual |
Method | show_help_faq |
Menu action to show the 'FAQ' page in the user manual |
Method | show_help_keys |
Menu action to show the 'Key Bindings' page in the user manual |
Method | show_open_notebook |
Show the NotebookDialog dialog |
Method | show_preferences |
Menu action to show the PreferencesDialog |
Method | show_properties |
Menu action to show the PropertiesDialog |
Method | show_recent_changes |
Menu action to show the RecentChangesDialog |
Method | show_search |
Menu action to show the SearchDialog @param query: the search query to show |
Method | show_search_backlinks |
Menu action to show the SearchDialog with a query for backlinks |
Method | show_search_section |
Undocumented |
Method | show_server_gui |
Menu action to show the server interface from zim.gui.server . Spawns a new zim instance for the server. |
Method | show_templateeditor |
Menu action to show the TemplateEditorDialog |
Instance Variable | navigation |
Undocumented |
Instance Variable | notebook |
Undocumented |
Instance Variable | page |
Undocumented |
Instance Variable | widget |
Undocumented |
Parameters | |
widget | owning gtk widget or None, only used to determine parent window for dialogs |
notebook | Notebook object for actions to act on |
page | Page object that reflects the _default_ page for actions to act on. |
navigation | a NavigationModel |
Parameters | |
update_only | if True only updates are done, if False also check is done for all files |
Returns | |
True unless the user cancelled the update |
TrashPageDialog
or DeletePageDialog
.Parameters | |
path | a Path object, or None for the current selected page |
open_url()
to start the preferred email client.MovePageDialog
Parameters | |
path | a Path object, or None to move to current selected page |
Menu action to create a new page, shows the NewPageDialog
,
Difference with open_page()
is that the page is saved directly, so it exists and is stays visible if the user navigates away without first adding content. Though subtle this is expected behavior for users.
NewPageDialog
. Like new_page()
but forces a child page of the current page.PageWindow
Parameters | |
page | the page Path , deafults to current selected |
anchor | optional anchor id |
anchor_fail_silent | ignore error when anchor id does not exist in page |
Parameters | |
location | notebook location as uri or object with "uri" attribute |
pagename | optional page name |
Parameters | |
page | manual page to show (string) |
SearchDialog
Parameters | |
query | the search query to show |
focus_results | Undocumented |
zim.gui.server
. Spawns a new zim instance for the server.