+ add properties with 'hidden' mode to property editor but hide the item
This commit is contained in:
@@ -132,7 +132,7 @@ void PropertyView::slotChangePropertyView(const Gui::ViewProvider&, const App::P
|
||||
void PropertyView::slotAppendDynamicProperty(const App::Property& prop)
|
||||
{
|
||||
App::PropertyContainer* parent = prop.getContainer();
|
||||
if (parent->isHidden(&prop) || prop.testStatus(App::Property::Hidden))
|
||||
if (parent->isHidden(&prop))
|
||||
return;
|
||||
|
||||
if (parent && parent->isDerivedFrom(App::DocumentObject::getClassTypeId())) {
|
||||
@@ -158,10 +158,10 @@ void PropertyView::slotChangePropertyEditor(const App::Property& prop)
|
||||
{
|
||||
App::PropertyContainer* parent = prop.getContainer();
|
||||
if (parent && parent->isDerivedFrom(App::DocumentObject::getClassTypeId())) {
|
||||
propertyEditorData->updatetEditorMode(prop);
|
||||
propertyEditorData->updateEditorMode(prop);
|
||||
}
|
||||
else if (parent && parent->isDerivedFrom(Gui::ViewProvider::getClassTypeId())) {
|
||||
propertyEditorView->updatetEditorMode(prop);
|
||||
propertyEditorView->updateEditorMode(prop);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -220,7 +220,7 @@ void PropertyView::onSelectionChanged(const SelectionChanges& msg)
|
||||
nameType.propName = ob->getPropertyName(*pt);
|
||||
nameType.propId = (*pt)->getTypeId().getKey();
|
||||
|
||||
if (!ob->isHidden(*pt) && !(*pt)->testStatus(App::Property::Hidden)) {
|
||||
if (!ob->isHidden(*pt)) {
|
||||
std::vector<PropInfo>::iterator pi = std::find_if(propDataMap.begin(), propDataMap.end(), PropFind(nameType));
|
||||
if (pi != propDataMap.end()) {
|
||||
pi->propList.push_back(*pt);
|
||||
@@ -240,7 +240,7 @@ void PropertyView::onSelectionChanged(const SelectionChanges& msg)
|
||||
nameType.propName = pt->first;
|
||||
nameType.propId = pt->second->getTypeId().getKey();
|
||||
|
||||
if (!vp->isHidden(pt->second) && !pt->second->testStatus(App::Property::Hidden)) {
|
||||
if (!vp->isHidden(pt->second)) {
|
||||
std::vector<PropInfo>::iterator pi = std::find_if(propViewMap.begin(), propViewMap.end(), PropFind(nameType));
|
||||
if (pi != propViewMap.end()) {
|
||||
pi->propList.push_back(pt->second);
|
||||
|
||||
Reference in New Issue
Block a user