23 #include "Config_def.h"
28 static const char SKETCH_TAB_NAME[] =
"Sketch";
82 Config_Prop(
const std::string& theSection,
const std::string& theName,
83 const std::string& theTitle,
PropType theType,
84 const std::string& theDefaultValue,
85 const std::string& theMin,
const std::string& theMax)
87 mySection = theSection;
91 myValue = theDefaultValue;
92 myDefaultValue = theDefaultValue;
133 CONFIG_EXPORT
void setValue(
const std::string& theValue);
137 return myDefaultValue;
144 return (mySection == theProp->
section()) && (myName == theProp->
name());
148 std::string
min()
const {
return myMin; }
150 void setMin(
const std::string& theMin) {
155 std::string
max()
const {
return myMax; }
157 void setMax(
const std::string& theMax) {
162 std::string mySection;
167 std::string myDefaultValue;
172 typedef std::list<Config_Prop*> Config_Properties;
Class which describes a one property.
Definition: Config_Prop.h:36
PropType type() const
Get type of property.
Definition: Config_Prop.h:118
std::string min() const
Returns minimal value.
Definition: Config_Prop.h:148
Config_Prop(const std::string &theSection, const std::string &theName, const std::string &theTitle, PropType theType, const std::string &theDefaultValue, const std::string &theMin, const std::string &theMax)
Creates a one property.
Definition: Config_Prop.h:82
void setValue(const std::string &theValue)
Set property's value in string format.
Definition: Config_Prop.cpp:24
std::string name() const
Get name of property.
Definition: Config_Prop.h:103
void setTitle(const std::string &theTitle)
Set title of property.
Definition: Config_Prop.h:113
void setType(PropType theType)
Set type of property.
Definition: Config_Prop.h:123
std::string value() const
Get property's value in string format.
Definition: Config_Prop.h:128
std::string defaultValue() const
Get default value of property.
Definition: Config_Prop.h:135
std::string title() const
Get title of property.
Definition: Config_Prop.h:108
PropType
Type of stored property.
Definition: Config_Prop.h:41
void setDefaultValue(const std::string &theValue)
Set default value of property.
Definition: Config_Prop.cpp:34
bool operator==(const Config_Prop *theProp) const
Alows to compare Config_Prop with each other.
Definition: Config_Prop.h:142
std::string max() const
Returns maximal value.
Definition: Config_Prop.h:155
std::string section() const
Get name of section.
Definition: Config_Prop.h:98