2 // Created: 12 Aug 2014
3 // Author: Vitaly SMETANNIKOV
8 #include "Config_def.h"
13 /// Class which describes a one property
18 enum PropType { Auto, 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; }
45 std::string title() const { return myTitle; }
46 PropType type() const { return myType; }
47 std::string value() const { return myValue; }
50 std::string mySection;
57 typedef std::list<Config_Prop*> Config_Properties;