Package init for the gui package.
About dialog
Bases: xml.sax.handler.ContentHandler
Parse the authors.xml file to show in the About dialog.
The authors.xml file has the same format as the one in the svn2cl package, with an additional title tag in the author element. For example:
<author uid="dallingham" title="author">
Don Allingham <<html:a href="mailto:don@gramps-project.org">don@gramps-project.org</html:a>>
</author>}
Bases: object
The base class for all sidebar plugins.
Called when the sidebar is made visible.
Return the top container widget for the GUI.
Called when the sidebar is hidden.
Called when the active view is changed.
Handle the column ordering
Bases: gramps.gui.managedwindow.ManagedWindow
Base class for configuration dialogs. They provide a Notebook, to which pages are added with configuration options, and a Cancel and Save button. On save, a config file on which the dialog works, is saved to disk, and a callback called.
A drop-down list allowing selection from a number of fixed options. :param opts: A list of options. Each option is a tuple containing an integer code and a textual description. If valueactive = True, the constant stores the value, not the position in the list
Add an entry to give in path and a select button to open a dialog. Changing entry calls callback_label Clicking open button call callback_sel
entry field for positive integers
A slider allowing the selection of an integer within a specified range. :param range: A tuple containing the minimum and maximum allowed values.
A spinner allowing the selection of an integer within a specified range. :param range: A tuple containing the minimum and maximum allowed values.
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|
Bases: gramps.gui.managedwindow.ManagedWindow
Bases: gramps.gui.configure.ConfigureDialog
Name format editor TreeView callback
Remember the values of the selected row (self.selected_fmt, self.iter) and set the Remove and Edit button sensitivity
Group common stuff Gramps GUI elements must be able to do when tracking a DB:
- connect to db signals
- listen to db changes to update themself on relevant changes
- determine if the GUI has become out of sync with the db
Handling of loading new/existing databases.
Bases: gramps.cli.grampscli.CLIDbLoader
Run common error checks and return True if any found.
In this process, a warning dialog can pop up.
On import the importer can construct an info object about the import. If so, this method will return this text, otherwise the empty string is returned
This method takes care of changing database, and loading the data. In 3.0 we only allow reading of real databases of filetype ‘x-directory/normal’
This method should only return on success. Returning on failure makes no sense, because we cannot recover, since database has already been changed. Therefore, any errors should raise exceptions.
On success, return with the disabled signals. The post-load routine should enable signals, as well as finish up with other UI goodies.
Bases: gi.overrides.Gtk.ComboBox
Constructors: |
---|
ComboBox(**properties)
new()
new_with_area(area:Gtk.CellArea)
new_with_area_and_entry(area:Gtk.CellArea)
new_with_entry()
new_with_model(model:Gtk.TreeModel)
new_with_model_and_entry(model:Gtk.TreeModel)
Provide the management of databases. This includes opening, renaming, creating, and deleting of databases.
Bases: gramps.cli.clidbman.CLIDbManager
Database Manager. Opens a database manager window that allows users to create, rename, delete and open databases.
alias of ErrorDialog
Custom Filter Editor tool.
Bases: gramps.gui.managedwindow.ManagedWindow
Bases: gramps.gui.managedwindow.ManagedWindow
Expand or collapse the selected parent name node. Return True if change done, False otherwise
Bases: gramps.gui.managedwindow.ManagedWindow
Bases: gi.repository.Gtk.CheckButton
Constructors: |
---|
CheckButton(**properties)
new()
new_with_label(label:str)
new_with_mnemonic(label:str)
Bases: gi.repository.Gtk.Entry
Constructors: |
---|
Entry(**properties)
new()
new_with_buffer(buffer:Gtk.EntryBuffer)
Bases: gi.overrides.Gtk.ComboBox
Constructors: |
---|
ComboBox(**properties)
new()
new_with_area(area:Gtk.CellArea)
new_with_area_and_entry(area:Gtk.CellArea)
new_with_entry()
new_with_model(model:Gtk.TreeModel)
new_with_model_and_entry(model:Gtk.TreeModel)
Bases: gi.overrides.Gtk.Box
Constructors: |
---|
Box(**properties)
new(orientation:Gtk.Orientation, spacing:int)
Bases: gi.repository.Gtk.SpinButton
Constructors: |
---|
SpinButton(**properties)
new(adjustment:Gtk.Adjustment=None, climb_rate:float, digits:int)
new_with_range(min:float, max:float, step:float)
Bases: gi.overrides.Gtk.ComboBox
Constructors: |
---|
ComboBox(**properties)
new()
new_with_area(area:Gtk.CellArea)
new_with_area_and_entry(area:Gtk.CellArea)
new_with_entry()
new_with_model(model:Gtk.TreeModel)
new_with_model_and_entry(model:Gtk.TreeModel)
Bases: gi.overrides.Gtk.ComboBox
Constructors: |
---|
ComboBox(**properties)
new()
new_with_area(area:Gtk.CellArea)
new_with_area_and_entry(area:Gtk.CellArea)
new_with_entry()
new_with_model(model:Gtk.TreeModel)
new_with_model_and_entry(model:Gtk.TreeModel)
Bases: gi.repository.Gtk.Entry
Constructors: |
---|
Entry(**properties)
new()
new_with_buffer(buffer:Gtk.EntryBuffer)
Bases: gi.overrides.Gtk.ComboBox
Constructors: |
---|
ComboBox(**properties)
new()
new_with_area(area:Gtk.CellArea)
new_with_area_and_entry(area:Gtk.CellArea)
new_with_entry()
new_with_model(model:Gtk.TreeModel)
new_with_model_and_entry(model:Gtk.TreeModel)
Bases: gramps.gui.editors.filtereditor.MyID
Constructors: |
---|
Box(**properties)
new(orientation:Gtk.Orientation, spacing:int)
The core of the Gramps plugin system. This module provides capability to load plugins from specified directories and provide information about the loaded plugins.
Plugins are divided into several categories. These are: reports, tools, importers, exporters, quick reports, and document generators.
Bases: gramps.gen.utils.callback.Callback
PluginManager is a Singleton which manages plugins. It is the gui implementation using a unique BasePluginmanager. This class adds the possibility to hide plugins in the GUI via a config setting
Returns copy of the set hidden plugin ids
Return list of non hidden registered reports :Param gui: bool indicating if GUI reports or CLI reports must be returned
Return list of non hidden registered sidebars
Return list of non hidden registered tools :Param gui: bool indicating if GUI reports or CLI reports must be returned
Hide plugin with given id. This will hide the plugin so queries do not return it anymore, and write this change to the config. Note that config will then emit a signal
Load icons in the iconfactory of Gramps, so they can be used in the plugin.
The plugin directory must contain the directories scalable, 48x48, 22x22 and 16x16 with the icons, e.g. in dir we have:
Parameters: |
|
---|
The User class provides basic interaction with the user.
Bases: gramps.gen.user.User
This class provides a means to interact with the user via GTK. It implements the interface in gen.user.User
Start showing a progress indicator to the user.
Parameters: |
|
---|---|
Returns: | none |
Notify the user of a DB error.
Parameters: | error (str) – the DB error message |
---|---|
Returns: | none |
Notify the user of an error.
Parameters: |
|
---|---|
Returns: | none |
Prompt the user with a message to select an alternative.
Parameters: |
|
---|---|
Returns: | the user’s answer to the question |
Return type: | bool |
Utility functions that depend on GUI components or for GUI components
Command-line interface vbox, to keep compatible with Dialog.
Command-line interface vbox, to keep compatible with Dialog.
Bases: object
Progress meter class for Gramps.
The progress meter has two modes:
MODE_FRACTION is used when you know the number of steps that will be taken. Set the total number of steps, and then call step() that many times. The progress bar will progress from left to right.
MODE_ACTIVITY is used when you don’t know the number of steps that will be taken. Set up the total number of steps for the bar to get from one end of the bar to the other. Then, call step() as many times as you want. The bar will move from left to right until you stop calling step().
Manages the main window and the pluggable views
Bases: gramps.cli.grampscli.CLIManager
Overview
The ViewManager is the session manager of the program. Specifically, it manages the main window of the program. It is closely tied into the Gtk.UIManager to control all menus and actions.
The ViewManager controls the various Views within the Gramps programs. Views are organised in categories. The categories can be accessed via a sidebar. Within a category, the different views are accesible via the toolbar of view menu.
A View is a particular way of looking a information in the Gramps main window. Each view is separate from the others, and has no knowledge of the others.
Examples of current views include:
The View Manager does not have to know the number of views, the type of views, or any other details about the views. It simply provides the method of containing each view, and has methods for creating, deleting and switching between the views.
Builds a new XML description for a menu based on the list of plugindata
Loads the plugins at initialization time. The plugin status window is opened on an error if the user has requested.
Register the plugins at initialization time. The plugin status window is opened on an error if the user has requested.
Set the main Granps window fullscreen based on the value of the toggle button. Save the setting in the config file.
Create the page if it doesn’t exist and make it the current page.
Set the sidebar based on the value of the toggle button. Save the results in the configuration settings
Showing the main window is deferred so that ArgHandler can work without it always shown
Choose a backup folder. Make sure there is one highlighted in right pane, otherwise FileChooserDialog will hang.
Set the toolbar based on the value of the toggle button. Save the results in the configuration settings