Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType. More...
#include <EnumType.h>
Public Member Functions | |
EnumType (int id, std::string name, AbstractEnum *type) | |
Constructor. More... | |
int | getId () |
Returns numeric value assigned. More... | |
std::string | getLabel () |
Returns label. More... | |
std::string | getName () |
Returns name. More... | |
AbstractEnum * | getParent () |
Returns enum type. More... | |
te::layout::EnumTypeFlags | getType () |
Returns enum type. More... | |
void | setLabel (std::string label) |
Change label. More... | |
void | setName (std::string name) |
Change name. More... | |
void | setType (te::layout::EnumTypeFlags type) |
Sets enum type. More... | |
virtual | ~EnumType () |
Destructor. More... | |
Protected Attributes | |
int | m_id |
numeric value assigned More... | |
std::string | m_label |
label More... | |
std::string | m_name |
name More... | |
AbstractEnum * | m_parent |
te::layout::EnumTypeFlags | m_type |
Class that represents the value of an enumeration. An enumeration is made of "1..n" objects EnumType.
Definition at line 48 of file EnumType.h.
te::layout::EnumType::EnumType | ( | int | id, |
std::string | name, | ||
AbstractEnum * | type | ||
) |
Constructor.
id | numeric value assigned |
name |
Definition at line 35 of file EnumType.cpp.
References te::common::Convert2UCase(), and m_name.
|
virtual |
Destructor.
Definition at line 44 of file EnumType.cpp.
int te::layout::EnumType::getId | ( | ) |
Returns numeric value assigned.
Definition at line 49 of file EnumType.cpp.
std::string te::layout::EnumType::getLabel | ( | ) |
Returns label.
Definition at line 64 of file EnumType.cpp.
Referenced by te::qt::plugins::layout::OutsideArea::onRefreshStatusBar(), te::layout::PointModel::pointProperty(), and te::layout::ScaleModel::scaleProperty().
std::string te::layout::EnumType::getName | ( | ) |
Returns name.
Definition at line 54 of file EnumType.cpp.
Referenced by te::layout::AddCommand::createCommandString(), te::layout::MoveCommand::createCommandString(), te::layout::ChangePropertyCommand::createCommandString(), te::layout::Variant::fromPtree(), te::layout::JSON::loadFromProperties(), te::layout::BuildGraphicsItem::nameItem(), te::qt::plugins::layout::OutsideArea::onRefreshStatusBar(), and te::layout::JSON::searchProperty().
te::layout::AbstractEnum * te::layout::EnumType::getParent | ( | ) |
te::layout::EnumTypeFlags te::layout::EnumType::getType | ( | ) |
Returns enum type.
Definition at line 79 of file EnumType.cpp.
Referenced by te::layout::View::mousePressEvent().
void te::layout::EnumType::setLabel | ( | std::string | label | ) |
void te::layout::EnumType::setName | ( | std::string | name | ) |
Change name.
Definition at line 59 of file EnumType.cpp.
References te::common::Convert2UCase().
void te::layout::EnumType::setType | ( | te::layout::EnumTypeFlags | type | ) |
|
protected |
numeric value assigned
Definition at line 123 of file EnumType.h.
|
protected |
label
Definition at line 125 of file EnumType.h.
|
protected |
|
protected |
Definition at line 126 of file EnumType.h.
|
protected |
Definition at line 127 of file EnumType.h.