~ubuntu-branches/ubuntu/vivid/mygui/vivid

« back to all changes in this revision

Viewing changes to Tools/EditorFramework/DataTypeProperty.cpp

  • Committer: Package Import Robot
  • Author(s): Scott Howard, Bret Curtis, Scott Howard
  • Date: 2014-09-18 17:57:48 UTC
  • mfrom: (1.1.1)
  • Revision ID: package-import@ubuntu.com-20140918175748-dd8va78mvpw1jbes
Tags: 3.2.1-1
[ Bret Curtis ]
* Updated license for majority of files from LGPL to Expat (MIT)

[ Scott Howard ]
* New upstream release
* Updated patch to add build option for system GLEW libraries
* All patches accepted upstream except shared_libraries.patch
* Bumped SONAME due to dropped symbols, updated *.symbols and package
  names
* Updated license of debian/* to Expat with permission of all authors
* Don't install Doxygen autogenerated md5 and map files (thanks
  lintian)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
        @file
 
3
        @author         Albert Semenov
 
4
        @date           07/2012
 
5
*/
 
6
 
 
7
#include "Precompiled.h"
 
8
#include "DataTypeProperty.h"
 
9
 
 
10
namespace tools
 
11
{
 
12
 
 
13
        DataTypeProperty::DataTypeProperty() :
 
14
                mReadOnly(false),
 
15
                mVisible(false)
 
16
        {
 
17
        }
 
18
 
 
19
        DataTypeProperty::~DataTypeProperty()
 
20
        {
 
21
        }
 
22
 
 
23
        void DataTypeProperty::deserialization(pugi::xml_node _node)
 
24
        {
 
25
                mName = _node.select_single_node("Name").node().child_value();
 
26
                mType = _node.select_single_node("Type").node().child_value();
 
27
                mDefaultValue = _node.select_single_node("Default").node().child_value();
 
28
                mInitialisator = _node.select_single_node("Initialisator").node().child_value();
 
29
                mReadOnly = MyGUI::utility::parseValue<bool>(_node.select_single_node("ReadOnly").node().child_value());
 
30
                mVisible = MyGUI::utility::parseValue<bool>(_node.select_single_node("Visible").node().child_value());
 
31
                mAction = _node.select_single_node("Action").node().child_value();
 
32
        }
 
33
 
 
34
        const std::string& DataTypeProperty::getName() const
 
35
        {
 
36
                return mName;
 
37
        }
 
38
 
 
39
        const std::string& DataTypeProperty::getType() const
 
40
        {
 
41
                return mType;
 
42
        }
 
43
 
 
44
        const std::string& DataTypeProperty::getDefaultValue() const
 
45
        {
 
46
                return mDefaultValue;
 
47
        }
 
48
 
 
49
        const std::string& DataTypeProperty::getInitialisator() const
 
50
        {
 
51
                return mInitialisator;
 
52
        }
 
53
 
 
54
        bool DataTypeProperty::getReadOnly() const
 
55
        {
 
56
                return mReadOnly;
 
57
        }
 
58
 
 
59
        bool DataTypeProperty::getVisible() const
 
60
        {
 
61
                return mVisible;
 
62
        }
 
63
 
 
64
        const std::string& DataTypeProperty::getAction() const
 
65
        {
 
66
                return mAction;
 
67
        }
 
68
 
 
69
}