App: [skip ci] rename class to PropertyLinkT
This commit is contained in:
@@ -398,13 +398,13 @@ std::vector<App::DocumentObject*> SubObjectT::getSubObjectList() const {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
PropertyListT::PropertyListT()
|
||||
PropertyLinkT::PropertyLinkT()
|
||||
: toPython("None")
|
||||
{
|
||||
}
|
||||
|
||||
PropertyListT::PropertyListT(DocumentObject *obj)
|
||||
: PropertyListT()
|
||||
PropertyLinkT::PropertyLinkT(DocumentObject *obj)
|
||||
: PropertyLinkT()
|
||||
{
|
||||
if (obj) {
|
||||
std::ostringstream str;
|
||||
@@ -415,8 +415,8 @@ PropertyListT::PropertyListT(DocumentObject *obj)
|
||||
}
|
||||
}
|
||||
|
||||
PropertyListT::PropertyListT(DocumentObject *obj, const std::vector<std::string>& subNames)
|
||||
: PropertyListT()
|
||||
PropertyLinkT::PropertyLinkT(DocumentObject *obj, const std::vector<std::string>& subNames)
|
||||
: PropertyLinkT()
|
||||
{
|
||||
if (obj) {
|
||||
std::ostringstream str;
|
||||
@@ -430,8 +430,8 @@ PropertyListT::PropertyListT(DocumentObject *obj, const std::vector<std::string>
|
||||
}
|
||||
}
|
||||
|
||||
PropertyListT::PropertyListT(const std::vector<DocumentObject*>& objs)
|
||||
: PropertyListT()
|
||||
PropertyLinkT::PropertyLinkT(const std::vector<DocumentObject*>& objs)
|
||||
: PropertyLinkT()
|
||||
{
|
||||
if (!objs.empty()) {
|
||||
std::stringstream str;
|
||||
@@ -454,8 +454,8 @@ PropertyListT::PropertyListT(const std::vector<DocumentObject*>& objs)
|
||||
}
|
||||
}
|
||||
|
||||
PropertyListT::PropertyListT(const std::vector<DocumentObject*>& objs, const std::vector<std::string>& subNames)
|
||||
: PropertyListT()
|
||||
PropertyLinkT::PropertyLinkT(const std::vector<DocumentObject*>& objs, const std::vector<std::string>& subNames)
|
||||
: PropertyLinkT()
|
||||
{
|
||||
if (!objs.empty() && objs.size() == subNames.size()) {
|
||||
std::stringstream str;
|
||||
@@ -484,7 +484,7 @@ PropertyListT::PropertyListT(const std::vector<DocumentObject*>& objs, const std
|
||||
}
|
||||
}
|
||||
|
||||
std::string PropertyListT::getPropertyPython() const
|
||||
std::string PropertyLinkT::getPropertyPython() const
|
||||
{
|
||||
return toPython;
|
||||
}
|
||||
|
||||
@@ -212,25 +212,25 @@ private:
|
||||
};
|
||||
|
||||
/**
|
||||
* The PropertyListT class is a helper class to create Python statements for proprty links.
|
||||
* The PropertyLinkT class is a helper class to create Python statements for proprty links.
|
||||
*/
|
||||
class AppExport PropertyListT
|
||||
class AppExport PropertyLinkT
|
||||
{
|
||||
public:
|
||||
/*! Constructor */
|
||||
PropertyListT();
|
||||
PropertyLinkT();
|
||||
|
||||
/*! Constructor */
|
||||
PropertyListT(DocumentObject *obj);
|
||||
PropertyLinkT(DocumentObject *obj);
|
||||
|
||||
/*! Constructor */
|
||||
PropertyListT(DocumentObject *obj, const std::vector<std::string>& subNames);
|
||||
PropertyLinkT(DocumentObject *obj, const std::vector<std::string>& subNames);
|
||||
|
||||
/*! Constructor */
|
||||
PropertyListT(const std::vector<DocumentObject*>& objs);
|
||||
PropertyLinkT(const std::vector<DocumentObject*>& objs);
|
||||
|
||||
/*! Constructor */
|
||||
PropertyListT(const std::vector<DocumentObject*>& objs, const std::vector<std::string>& subNames);
|
||||
PropertyLinkT(const std::vector<DocumentObject*>& objs, const std::vector<std::string>& subNames);
|
||||
|
||||
/*! Get the property as Python command. */
|
||||
std::string getPropertyPython() const;
|
||||
|
||||
Reference in New Issue
Block a user