gcp::Theme Class Reference

themes class. More...

#include <gcp/theme.h>

List of all members.

Public Member Functions

 Theme (char const *name)
 ~Theme ()
std::string & GetName ()
bool Save (xmlDocPtr xml)
bool Load (xmlNodePtr node)
bool operator== (const Theme &theme)
void AddClient (gcu::Object *client)
void RemoveClient (gcu::Object *client)
void NotifyChanged ()

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.

gcp::Theme::~Theme (  ) 

The destructor.


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.
void gcp::Theme::RemoveClient ( gcu::Object client  ) 
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:
Generated on Tue Apr 13 14:55:03 2010 for The Gnome Chemistry Utils by  doxygen 1.6.3