Salome HOME
clean programming code
[modules/geom.git] / src / GEOMToolsGUI / GEOMToolsGUI_ReduceStudyDlg.h
index d5b14a764ebbe0892fb751feeaf40b9641a8bf07..e6396cb327c21c0f4ab6c9c0b0bcf8afa221830e 100644 (file)
@@ -37,8 +37,8 @@ class GEOMToolsGUI_TreeWidgetItem : public QTreeWidgetItem
 {
 
 public:
-  GEOMToolsGUI_TreeWidgetItem( QTreeWidget*, const QStringList&, char*, bool, int = Type );
-  GEOMToolsGUI_TreeWidgetItem( QTreeWidgetItem*, const QStringList&, char*, bool, int = Type );
+  GEOMToolsGUI_TreeWidgetItem( QTreeWidget*, const QStringList&, char*, int = Type );
+  GEOMToolsGUI_TreeWidgetItem( QTreeWidgetItem*, const QStringList&, char*, int = Type );
   ~GEOMToolsGUI_TreeWidgetItem();
 
   bool isVisible();
@@ -47,8 +47,9 @@ public:
   char* getStudyEntry() const;
 
 private:
-  char* myStudyEntry;
   bool myVisible;
+  char* myStudyEntry;
+
 };
 
 class GEOMTOOLSGUI_EXPORT GEOMToolsGUI_ReduceStudyDlg : public QDialog
@@ -60,57 +61,56 @@ public:
   ~GEOMToolsGUI_ReduceStudyDlg();
 
 private slots:
+  void                          onItemClicked(QTreeWidgetItem*, int );
+  void                          onHeaderClicked( int );
 
-  void clickOnOk();
-  void clickOnCancel();
-  void clickOnHelp();
+  void                          selectionChanged();
 
-  void onItemClicked(QTreeWidgetItem*, int );
-  void onHeaderClicked( int );
+  void                          update();
 
-  void selectionChanged();
-
-  void update();
+  void                          clickOnOk();
+  void                          clickOnHelp();
 
 private:
+  void                          init( const std::set<std::string>& theObjectEntries );
+  std::set<std::string>         getSelectedObjects() const;
+
+  void                          createTreeWidget( QTreeWidget* );
+  QGroupBox*                    createButtonGroup( QButtonGroup* );
 
-  void init( const std::set<std::string>& theObjectEntries );
-  void createTreeWidget( QTreeWidget* );
-  QGroupBox* createButtonGroup( QButtonGroup* );
-  void checkVisibleIcon( QTreeWidget* );
-  void sortObjects( QTreeWidget*, std::set<std::string>& );
-  GEOMToolsGUI_TreeWidgetItem* addSubObject( QTreeWidget*, std::set<std::string>&, GEOM::GEOM_Object_var );
-  GEOMToolsGUI_TreeWidgetItem* findObjectInTree( QTreeWidget*, GEOM::GEOM_Object_var );
+  void                          addObjectsToTree( QTreeWidget*, std::set<std::string>& );
+  GEOMToolsGUI_TreeWidgetItem*  addSubObject( QTreeWidget*, std::set<std::string>&, GEOM::GEOM_Object_var );
+  GEOMToolsGUI_TreeWidgetItem*  findObjectInTree( QTreeWidget*, GEOM::GEOM_Object_var );
 
-  void unpublishObjects( std::set<std::string>& );
-  void removeObjects( std::set<std::string>& );
+  void                          checkVisibleIcon( QTreeWidget* );
 
-  std::set<std::string> getSelectedObjects() const;
+  void                          unpublishObjects( std::set<std::string>& );
+  void                          removeObjects( std::set<std::string>& );
 
-  QTreeWidget* myTreeKeptObjects;
-  QTreeWidget* myTreeRemoveObjects;
+  QTreeWidget*                  myTreeKeptObjects;
+  QTreeWidget*                  myTreeRemoveObjects;
+  std::map<QTreeWidget*,bool>   myMapTreeSelectAll;
 
-  QButtonGroup* myGroupIntermediates;
-  QButtonGroup* myGroupSubObjects;
+  QButtonGroup*                 myGroupIntermediates;
+  QButtonGroup*                 myGroupSubObjects;
 
-  QCheckBox* myCBRemoveEmptyFolder;
-  QCheckBox* myCBSoftRemoval;
+  QCheckBox*                    myCBRemoveEmptyFolder;
+  QCheckBox*                    myCBSoftRemoval;
 
-  std::set<std::string> myMainEntries;
+  std::set<std::string>         myMainEntries;
 
-  QIcon myVisible;
-  QIcon myInvisible;
+  std::set<std::string>         myKeptObjects;
+  std::set<std::string>         myRemovedObjects;
+  std::set<std::string>         myListParents;
+  std::set<std::string>         myListSubObjects;
 
-  GEOM_Displayer myDisplayer;
-  SalomeApp_Application* myApp;
-  SALOMEDS::Study_var myStudy;
+  QIcon                         myVisible;
+  QIcon                         myInvisible;
 
-  std::set<std::string> myKeptObjects;
-  std::set<std::string> myRemovedObjects;
-  std::set<std::string> myListParents;
-  std::set<std::string> myListSubObjects;
+  GEOM_Displayer                myDisplayer;
+  SalomeApp_Application*        myApp;
+  SALOMEDS::Study_var           myStudy;
 
-  std::map<QTreeWidget*,bool> myMapTreeSelectAll;
 };
 
 #endif