From: Anthony Geay Date: Thu, 9 Oct 2014 06:36:16 +0000 (+0200) Subject: Little cleanup of filters (remove useless methods) X-Git-Tag: V7_5_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f76ef8d4502402fd554587bc3569c356a5b9edc;p=modules%2Fparavis.git Little cleanup of filters (remove useless methods) --- diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.h b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.h index 56136640..1fbfbf9f 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.h +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractCellTypePanel.h @@ -44,7 +44,6 @@ protected: virtual void linkServerManagerProperties(); class pqUI; pqUI* UI; - std::vector _all_lev4; }; #endif diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx index 93698ae6..004a4e19 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.cxx @@ -271,61 +271,6 @@ void pqExtractGroupPanel::updateSIL() } } -void pqExtractGroupPanel::aLev4HasBeenFired() -{ - pqTreeWidgetItemObject *zeItem(qobject_cast(sender())); - if(!zeItem) - return; - pqTreeWidgetItemObject *father(dynamic_cast(zeItem->QTreeWidgetItem::parent())); - if(!father) - return ; - if(zeItem->isChecked()) - { - // This part garantees that all leaves having not the same father than zeItem are desactivated - foreach(pqTreeWidgetItemObject* elt,this->_all_lev4) - { - QTreeWidgetItem *testFath(elt->QTreeWidgetItem::parent()); - if(testFath!=father) - if(elt->isChecked()) - elt->setChecked(false); - } - //If all leaves are checked the father is check too - bool allItemsAreChked(true); - for(int i=0;ichildCount() && allItemsAreChked;i++) - { - pqTreeWidgetItemObject *elt(dynamic_cast(father->child(i))); - if(elt && !elt->isChecked()) - allItemsAreChked=false; - } - if(allItemsAreChked && !father->isChecked()) - father->setChecked(true); - } - else - { - // if all are unchecked - check it again - bool allItemsAreUnChked(true); - foreach(pqTreeWidgetItemObject* elt,this->_all_lev4) - { - if(elt && elt->isChecked()) - allItemsAreUnChked=false; - } - if(allItemsAreUnChked) - zeItem->setChecked(true);// OK zeItem was required to be unchecked but as it is the last one. Recheck it ! - else - {// if all items are uncheked inside a same parent - uncheck the parent - allItemsAreUnChked=true; - for(int i=0;ichildCount() && allItemsAreUnChked;i++) - { - pqTreeWidgetItemObject *elt(dynamic_cast(father->child(i))); - if(elt && elt->isChecked()) - allItemsAreUnChked=false; - } - if(allItemsAreUnChked && father->isChecked()) - father->setChecked(false); - } - } -} - std::map pqExtractGroupPanel::DeduceMapOfFamilyFromSIL(vtkMutableDirectedGraph *graph) { std::map ret; diff --git a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.h b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.h index c52644b2..507f9c8b 100644 --- a/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.h +++ b/src/Plugins/MEDReader/ParaViewPlugin/pqExtractGroupPanel.h @@ -38,7 +38,6 @@ public: pqExtractGroupPanel(pqProxy* proxy, QWidget* p = NULL); ~pqExtractGroupPanel(); protected slots: - void aLev4HasBeenFired(); void updateSIL(); private: static std::map DeduceMapOfFamilyFromSIL(vtkMutableDirectedGraph *graph); @@ -47,7 +46,6 @@ protected: virtual void linkServerManagerProperties(); class pqUI; pqUI* UI; - std::vector _all_lev4; }; #endif