GOffice.GraphTheme¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The resource type for the theme |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GOffice.GraphTheme(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod foreach(handler, *user_data)¶
- Parameters:
Executes handler to each theme installed on the system, including built-in themes.
- classmethod registry_get_theme_names()¶
- Returns:
a newly allocated theme name list from theme registry.
- Return type:
[
str
]
- classmethod registry_lookup(name)¶
- Parameters:
name (
str
) – a theme name- Returns:
a
GOffice.GraphTheme
from theme registry.- Return type:
- delete()¶
-
Destroys the theme and remove it from the user directory and from the database.
- dup()¶
- Returns:
the new theme.
- Return type:
Duplicates self with a new Id.
- edit(cc)¶
- Parameters:
cc (
GOffice.CmdContext
) – aGOffice.CmdContext
orNone
.- Returns:
The edited theme or
None
if the edition has been cancelled.- Return type:
Displays a dialog box to edit the theme. This can be done only for locally installed themes that are writeable.
- fillin_style(style, obj, ind, relevant_fields)¶
- Parameters:
style (
GOffice.Style
) –GOffice.Style
to initializeobj (
GOffice.GraphObject
) –GOffice.GraphObject
The object associated with styleind (
int
) – an optional indexrelevant_fields (
GOffice.StyleFlag
) –GOffice.StyleFlag
Fill in the auto aspects of style based on self ‘s element for objects of type/role similar to obj with index ind. If relevant_fields is
GOffice.StyleFlag.ALL
, fillin the entire style, not just the auto portions included in relevant_fields.
- get_color_map(discrete)¶
- Parameters:
discrete (
bool
) – whether the map is for a discrete axis.- Returns:
the requested color map.
- Return type:
Retrieves the themed color map. Each theme has a discrete color map and a continuous one.
- get_id()¶
- Returns:
the
GOffice.GraphTheme
Id.- Return type:
Retrieves the theme Id.
- get_name()¶
- Returns:
the
GOffice.GraphTheme
name.- Return type:
- get_resource_type()¶
- Return type:
- save_to_home_dir()¶
Writes the theme to the user directory so that it becomes permanently available.
Property Details¶
- GOffice.GraphTheme.props.resource_type¶
- Name:
resource-type
- Type:
- Default Value:
- Flags:
The resource type for the theme