+ QTreeWidgetItem *obj((*it)->QTreeWidgetItem::parent()->QTreeWidgetItem::parent()->QTreeWidgetItem::parent());
+ pqTreeWidgetItemObject *objC(dynamic_cast<pqTreeWidgetItemObject *>(obj));
+ ret=std::max(ret,objC->property("NbOfTS").toInt());
+ }
+ return ret;
+}
+
+void pqMEDReaderPanel::updateInformationAndDomains()
+{
+ pqNamedObjectPanel::updateInformationAndDomains();
+ if(_is_fields_status_changed)
+ {
+ vtkSMProxy *proxy(this->proxy());
+ vtkSMProperty *SMProperty(proxy->GetProperty("FieldsStatus"));
+ SMProperty->Modified();// agy : THE LINE FOR 7.5.1 !
+ _is_fields_status_changed=false;
+ }
+}
+
+/*!
+ * This slot is called by this->UI->Fields when one/several leaves have been modified.
+ */
+void pqMEDReaderPanel::somethingChangedInFieldRepr()
+{
+ ///
+ vtkSMProxy *proxy(this->proxy());
+ vtkSMProperty *SMProperty(proxy->GetProperty("FieldsStatus"));
+ vtkSMStringVectorProperty *sm(dynamic_cast<vtkSMStringVectorProperty *>(SMProperty));
+ unsigned int nb(sm->GetNumberOfElements());
+ std::vector<std::string> sts(nb);
+ for(unsigned int i=0;i<nb;i++)
+ sts[i]=sm->GetElement(i);
+ ///
+ pqExodusIIVariableSelectionWidget *sc(this->UI->Fields);
+ for(int i0=0;i0<sc->topLevelItemCount();i0++)
+ {
+ QTreeWidgetItem *lev0(sc->topLevelItem(i0));//TS
+ for(int i1=0;i1<lev0->childCount();i1++)