gcp::Theme Class Reference
themes class.
More...
#include <gcp/theme.h>
List of all members.
Detailed Description
themes class.
Represent an edition settings in GChemPaint.
Definition at line 67 of file theme.h.
Constructor & Destructor Documentation
gcp::Theme::Theme |
( |
char const * |
name |
) |
|
- Parameters:
-
| name | the name of the new theme. |
Constructs a new theme according to the local settings.
Member Function Documentation
void gcp::Theme::AddClient |
( |
gcu::Object * |
client |
) |
[inline] |
- Parameters:
-
| client | the client to add. |
Adds a new client to the list of this theme clients.
Definition at line 112 of file theme.h.
std::string& gcp::Theme::GetName |
( |
|
) |
[inline] |
- Returns:
- the theme name.
Definition at line 87 of file theme.h.
bool gcp::Theme::Load |
( |
xmlNodePtr |
node |
) |
|
- Parameters:
-
| node | the xml node containing the serialized theme. |
Loads a theme in memory, either from the theme database or from a document file.
void gcp::Theme::NotifyChanged |
( |
|
) |
|
Notify all the theme clients that at least one setting changed.
bool gcp::Theme::operator== |
( |
const Theme & |
theme |
) |
|
- Parameters:
-
| theme | a theme to compare. |
- Returns:
- true if the two themes have identical settings.
- Parameters:
-
| client | the client to remove. |
Removes client to the list of this theme clients.
bool gcp::Theme::Save |
( |
xmlDocPtr |
xml |
) |
|
- Parameters:
-
| xml | the xml document used for serialization. |
Builds an xml node containing the serialized theme.
- Returns:
- the new xml node or NULL if an error occured.
The documentation for this class was generated from the following file: