1
/***************************************************************************
2
* Copyright (c) J�rgen Riegel (juergen.riegel@web.de) 2002 *
4
* This file is part of the FreeCAD CAx development system. *
6
* This library is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Library General Public *
8
* License as published by the Free Software Foundation; either *
9
* version 2 of the License, or (at your option) any later version. *
11
* This library is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU Library General Public License for more details. *
16
* You should have received a copy of the GNU Library General Public *
17
* License along with this library; see the file COPYING.LIB. If not, *
18
* write to the Free Software Foundation, Inc., 59 Temple Place, *
19
* Suite 330, Boston, MA 02111-1307, USA *
21
***************************************************************************/
24
#include "PreCompiled.h"
30
/// Here the FreeCAD includes sorted by Base,App,Gui......
32
#include "PropertyContainer.h"
37
//**************************************************************************
38
//**************************************************************************
40
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
42
TYPESYSTEM_SOURCE_ABSTRACT(App::Property , Base::Persistence);
44
//**************************************************************************
45
// Construction/Destruction
47
// here the implemataion! description should take place in the header file!
59
const char* Property::getName(void) const
61
return father->getName(this);
64
short Property::getType(void) const
66
return father->getPropertyType(this);
69
const char* Property::getGroup(void) const
71
return father->getPropertyGroup(this);
74
const char* Property::getDocumentation(void) const
76
return father->getPropertyDocumentation(this);
79
void Property::setContainer(PropertyContainer *Father)
84
void Property::touch()
87
father->onChanged(this);
91
void Property::hasSetValue(void)
94
father->onChanged(this);
98
void Property::aboutToSetValue(void)
101
father->onBeforeChange(this);
104
Property *Property::Copy(void) const
106
// have to be reimplemented by a subclass!
111
void Property::Paste(const Property& /*from*/)
113
// have to be reimplemented by a subclass!
117
std::string Property::encodeAttribute(const std::string& str) const
120
for (std::string::const_iterator it = str.begin(); it != str.end(); ++it) {
129
else if (*it == '\n')
138
//**************************************************************************
139
//**************************************************************************
141
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
143
TYPESYSTEM_SOURCE_ABSTRACT(App::PropertyLists , App::Property);