2 // Created: 12 Aug 2014
3 // Author: Vitaly SMETANNIKOV
8 #include "Config_def.h"
13 /// Class which describes a one property
18 enum PropType { Disabled, Space, Bool, Color, String, Selector,
19 DblSpin, IntSpin, Double, Integer,
20 GroupBox, Tab, Frame, Font, DirList, File,
21 Slider, Shortcut, ShortcutTree, BiColor, Background };
25 * Creates a one property
26 * \param theSection - name of section (domain of using) of the property.
27 * \param theName - name (title) of the value.
28 * \param theType - type of the value.
29 * \param theValue - initial value of the property.
31 Config_Prop(const std::string& theSection,
32 const std::string& theName,
33 const std::string& theTitle,
35 const std::string& theValue ) {
36 mySection = theSection;
43 std::string section() const { return mySection; }
44 std::string name() const { return myName; }
46 std::string title() const { return myTitle; }
47 void setTitle(const std::string& theTitle) { myTitle = theTitle; }
49 PropType type() const { return myType; }
50 void setType(PropType theType) { myType = theType; }
52 std::string value() const { return myValue; }
53 void setValue(const std::string& theValue) { myValue = theValue; }
55 bool operator==(const Config_Prop* theProp) const
57 return (mySection == theProp->section()) && (myName == theProp->name());
61 std::string mySection;
68 typedef std::list<Config_Prop*> Config_Properties;