Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef GEOMTOOLSGUI_PUBLISHDLG_H
00029 #define GEOMTOOLSGUI_PUBLISHDLG_H
00030
00031 #include "GEOM_ToolsGUI.hxx"
00032
00033 #include <QMap>
00034 #include <QList>
00035 #include <QDialog>
00036 #include <QTreeWidgetItem>
00037
00038
00039
00040
00041 #include <SALOMEDSClient.hxx>
00042
00043 class QTreeWidget;
00044 class QTreeWidgetItem;
00045
00046 class SalomeApp_DataObject;
00047
00048 typedef QPair<QString, QString> Pair;
00049 typedef QList<Pair > BufferedList;
00050 typedef QMap<QString, QTreeWidgetItem*> Entry2ItemMap;
00051
00052 class GEOMTOOLSGUI_EXPORT GEOMToolsGUI_PublishDlg : public QDialog
00053 {
00054 Q_OBJECT
00055
00056 public:
00057 GEOMToolsGUI_PublishDlg( QWidget* );
00058 ~GEOMToolsGUI_PublishDlg();
00059
00060 protected:
00061 void initData();
00062 void buildTree(_PTR(Study) theStudy, SalomeApp_DataObject* theItem);
00063 QTreeWidgetItem* findParentItem(_PTR(Study) theStudy, SalomeApp_DataObject* theItem, BufferedList& theList);
00064 QTreeWidgetItem* createItem(QTreeWidgetItem* theItem, Pair theAttributes, bool isCheckable);
00065 void getDrawableList(QTreeWidgetItem* theItem, QList<QTreeWidgetItem*>& theList);
00066 void getTails(QTreeWidgetItem* theItem, QList<QTreeWidgetItem*>& theList);
00067
00068 protected slots:
00069 void clickOnOk();
00070 void clickOnApply();
00071 void clickOnSelectAll();
00072 void clickOnUnSelectAll();
00073
00074 private:
00075 QTreeWidget* myTreeWidget;
00076 SalomeApp_DataObject* myGeomRoot;
00077 Entry2ItemMap myEntryToItem;
00078 void processAll(QTreeWidgetItem* theItem, Qt::CheckState state);
00079 };
00080
00081
00082
00083 #endif //GEOMTOOLSGUI_PUBLISHDLG_H