{
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();
char* getStudyEntry() const;
private:
- char* myStudyEntry;
bool myVisible;
+ char* myStudyEntry;
+
};
class GEOMTOOLSGUI_EXPORT GEOMToolsGUI_ReduceStudyDlg : public QDialog
~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