+ friend class SMESHGUI_BaseComputeOp;
+ friend class SMESHGUI_PrecomputeOp;
+};
+
+class SMESHGUI_MeshOrderBox;
+
+/*!
+ * \brief Dialog to preview and compute a mesh and show computation errors
+ */
+
+class SMESHGUI_EXPORT SMESHGUI_PrecomputeDlg : public SMESHGUI_Dialog
+{
+ Q_OBJECT
+
+public:
+ SMESHGUI_PrecomputeDlg( QWidget* );
+ virtual ~SMESHGUI_PrecomputeDlg();
+
+ void setPreviewModes( const QList<int>& );
+ int getPreviewMode() const;
+
+ SMESHGUI_MeshOrderBox* getMeshOrderBox() const;
+
+signals:
+ void preview();
+
+private:
+ SMESHGUI_MeshOrderBox* myOrderBox;
+ QPushButton* myPreviewBtn;
+ QtxComboBox* myPreviewMode;
+};
+
+/*!
+ * \brief Thread to launch computation
+ */
+
+class SMESHGUI_EXPORT SMESHGUI_ComputeDlg_QThread : public QThread
+{
+ Q_OBJECT
+
+public:
+ SMESHGUI_ComputeDlg_QThread(SMESH::SMESH_Gen_var gen,
+ SMESH::SMESH_Mesh_var mesh,
+ GEOM::GEOM_Object_var mainShape);
+ bool result();
+ void cancel();
+ SMESH::SMESH_Mesh_var& getMesh() { return myMesh; }
+
+protected:
+ void run();
+
+private:
+ SMESH::SMESH_Gen_var myGen;
+ SMESH::SMESH_Mesh_var myMesh;
+ GEOM::GEOM_Object_var myMainShape;
+ bool myResult;
+};
+
+/*!
+ * \brief Dialog to display Cancel button
+ */