App/Gui: improve expression binding of PropertyEnumeration
The enumeration items are exposed through sub path '.Enum'. When 'ShowAll' is enabled in property view, this sub path is exposed as a sub property item named 'Enum', and can be either manually edited or bound with an expression.
This commit is contained in:
@@ -100,6 +100,7 @@ ViewProviderDocumentObject::ViewProviderDocumentObject()
|
||||
ViewProviderDocumentObject::~ViewProviderDocumentObject()
|
||||
{
|
||||
// Make sure that the property class does not destruct our string list
|
||||
DisplayMode.setContainer(nullptr);
|
||||
DisplayMode.setEnums(0);
|
||||
}
|
||||
|
||||
@@ -687,7 +688,7 @@ ViewProviderDocumentObject *ViewProviderDocumentObject::getLinkedViewProvider(
|
||||
std::string ViewProviderDocumentObject::getFullName() const {
|
||||
if(pcObject)
|
||||
return pcObject->getFullName() + ".ViewObject";
|
||||
return std::string();
|
||||
return std::string("?");
|
||||
}
|
||||
|
||||
bool ViewProviderDocumentObject::allowTreeOrderSwap(const App::DocumentObject *child1, const App::DocumentObject *child2) const
|
||||
|
||||
Reference in New Issue
Block a user