Tepl.Application¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Tepl.Application(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_default()¶
- Returns:
the default
Tepl.Application
.- Return type:
Convenience function that calls
Gio.Application.get_default
() followed byTepl.Application.get_from_gtk_application
(). The object returned byGio.Application.get_default
() must be aGtk.Application
.New in version 2.0.
- classmethod get_from_gtk_application(gtk_app)¶
- Parameters:
gtk_app (
Gtk.Application
) – aGtk.Application
.- Returns:
the
Tepl.Application
of gtk_app.- Return type:
Returns the
Tepl.Application
of gtk_app. The returned object is guaranteed to be the same for the lifetime of gtk_app.New in version 2.0.
- get_active_main_window()¶
- Returns:
the active main
Gtk.ApplicationWindow
, orNone
.- Return type:
Like
Gtk.Application.get_active_window
(), but returns the main window in the sense ofTepl.ApplicationWindow.is_main_window
().New in version 4.0.
- get_app_action_info_store()¶
- Returns:
the
Amtk.ActionInfoStore
reserved for the application.- Return type:
Returns an initially empty
Amtk.ActionInfoStore
reserved for the application-specific actions. Libraries should not addAmtk.ActionInfo
's to this store. Libraries should provide their own store if they want to shareAmtk.ActionInfo
's.New in version 2.0.
- get_application()¶
- Returns:
the
Gtk.Application
of self.- Return type:
New in version 2.0.
- get_tepl_action_info_store()¶
- Returns:
the
Amtk.ActionInfoStore
of the Tepl library.- Return type:
The returned
Amtk.ActionInfoStore
containsAmtk.ActionInfo
's for all theGio.Action
's listed in the ‘class description of TeplApplicationWindow [tepl-application-window-gactions]’ and the ‘class description of TeplApplication [tepl-application-gactions]’.New in version 3.0.
- handle_activate()¶
Connects a generic function handler for the
Gio.Application
::activate
signal.If no main windows exist, it creates one with
Tepl.AbstractFactory.create_main_window
(). If a main window already exists, it callsGtk.Window.present
() on the most recently focused window of the application.New in version 4.0.
- handle_metadata()¶
This function:
Connects to the
Gio.Application
::startup
signal to callTepl.MetadataManager.load_from_disk
().Connects to the
Gio.Application
::shutdown
signal to callTepl.MetadataManager.save_to_disk
() with trim set toTrue
.
It gets the
Gio.File
by callingTepl.AbstractFactory.create_metadata_manager_file
().New in version 5.0.
- handle_open()¶
Connects a generic function handler for the
Gio.Application
::open
signal.It calls
Tepl.ApplicationWindow.open_file
() for eachGio.File
to open, on the active main window as returned byTepl.Application.get_active_main_window
(). If the active main window isNone
, it creates one withTepl.AbstractFactory.create_main_window
().New in version 4.0.
- open_simple(file)¶
-
Calls
Gio.Application.open
() with a single file and an empty hint.New in version 2.0.
Property Details¶
- Tepl.Application.props.application¶
- Name:
application
- Type:
- Default Value:
- Flags:
The
Gtk.Application
.New in version 2.0.