Foundry.TemplateProvider¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
Virtual Methods¶
- Inherited:
|
|
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Foundry.TemplateProvider(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
- 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] or rejects with error.
- Return type:
You may specify context to ensure that project-specific values are inherited for projects. Some providers may even provide additional templates that are defined within the project which would otherwise not be available.
- list_project_templates()¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.ProjectTemplate] or rejects with error.
- Return type:
- do_list_code_templates(context) virtual¶
- 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] or rejects with error.
- Return type:
You may specify context to ensure that project-specific values are inherited for projects. Some providers may even provide additional templates that are defined within the project which would otherwise not be available.
- do_list_project_templates() virtual¶
- Returns:
a [class`Dex`.Future] that resolves to a [iface`Gio`.ListModel] of [class`Foundry`.ProjectTemplate] or rejects with error.
- Return type: