27 #include "../common/STLUtils.h" 54 assert(name.empty() ==
false);
79 assert(colorScheme && (colorScheme->
getParent() ==
nullptr));
void disconnect(ColorScheme *colorScheme)
It just remove the reference to the informed color scheme.
const std::vector< ColorScheme * > & getColorSchemes() const
It returns a reference to the list of color schemes belonging to this group.
This class represents a group of color schemes.
~ColorSchemeGroup()
Destructor.
const std::string & getName() const
It returns the group name.
It models the concept of color scheme.
std::string m_description
A brief description about the color scheme, that can helps someone to decide to use it or not (when i...
void setParent(ColorSchemeGroup *parent)
It sets the parent color scheme group for this scheme.
ColorSchemeGroup(const std::string &name)
It initializes a new ColorSchemeGroup and adds it to the parent catalog.
void push_back(ColorSchemeGroup *group)
It adds a new group to the catalog and sets its relationship.
void setName(const std::string &name)
It sets the group name and adjust its entry in its the catalog if needed.
void push_back(ColorScheme *colorScheme)
It adds a new color scheme to the group and sets its relationship.
static te::dt::DateTime d(2010, 8, 9, 15, 58, 39)
const std::string & getDescription() const
It returns the group description.
std::string m_name
Color scheme name.
void disconnect(ColorSchemeGroup *group)
It removes the internal reference to the group.
ColorSchemeCatalog * m_parent
The parent catalog.
The concept of color scheme.
ColorSchemeGroup * getParent() const
It returns the parent scheme group or NULL if it doesn't belong to a group.
A catalog for color schemes.
void setParent(ColorSchemeCatalog *parent)
It sets the parent color catalog for this group.
ColorSchemeCatalog * getParent() const
It returns the parent catalog or NULL if it doesn't belong to a catalog.
void setDescription(const std::string &d)
It sets the group description.
A catalog for color schemes groups.
std::vector< ColorScheme * > m_colorSchemes
The group of color schemes.
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...