Foundry.TemplateManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Foundry.TemplateManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Return type:
- find_template(context, template_id)¶
- Parameters:
context (
Foundry.ContextorNone) – a [class`Foundry`.Context] orNonetemplate_id (
str) –
- Returns:
a [class`Dex`.Future] that resolves to a [class`Foundry`.Template] or rejects with error.
- Return type:
- list_code_templates(context)¶
- Parameters:
context (
Foundry.ContextorNone) – a [class`Foundry`.Context] orNone- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.CodeTemplate]
- Return type:
Queries all [class`Foundry`.TemplateProvider] for available [class`Foundry`.CodeTemplate].
The resulting module may not be fully populated by all providers by time it resolves. You may await the completion of all providers by awaiting [func`Foundry`.list_model_await] for the completion of all providers.
This allows the consumer to get a dynamically populating list model for user interfaces without delay.
- list_project_templates()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.ProjectTemplate]
- Return type:
Queries all [class`Foundry`.TemplateProvider] for available [class`Foundry`.ProjectTemplate].
The resulting module may not be fully populated by all providers by time it resolves. You may await the completion of all providers by awaiting [func`Foundry`.list_model_await] for the completion of all providers.
This allows the consumer to get a dynamically populating list model for user interfaces without delay.
- list_templates(context)¶
- Parameters:
context (
Foundry.ContextorNone) – a [class`Foundry`.Context] orNone- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.Template].
- Return type: