Salome HOME
0022099: EDF 2307 SMESH: Apply a transformation to several meshes, sub-meshes or...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_PreviewDlg.h
index a5035c1b948256f09c4963a2b4034c0c27f89f21..5d125c673ed39cf89bec979ef2ae0ebe2d756b09 100644 (file)
 // Qt includes
 #include <QDialog>
 
+// IDL includes
+#include <SALOMEconfig.h>
+#include CORBA_SERVER_HEADER(SMESH_Mesh)
+
 class SMESHGUI;
 class SMESHGUI_MeshEditPreview;
 class QCheckBox;
@@ -64,4 +68,33 @@ protected:
   bool                      myIsApplyAndClose;
 };
 
+class SMESHGUI_EXPORT SMESHGUI_MultiPreviewDlg : public QDialog {
+  Q_OBJECT
+public:
+  SMESHGUI_MultiPreviewDlg( SMESHGUI* );
+  ~SMESHGUI_MultiPreviewDlg();
+
+  void showPreview();
+  void hidePreview();
+
+  void setSimulationPreview( QList<SMESH::MeshPreviewStruct_var>& );
+
+protected:
+  void connectPreviewControl();
+
+  virtual void setIsApplyAndClose( const bool theFlag );
+  virtual bool isApplyAndClose() const;
+
+protected slots:
+ void                      toDisplaySimulation();
+ virtual void              onDisplaySimulation( bool );
+
+  
+protected:
+  SMESHGUI*                        mySMESHGUI;              /* Current SMESHGUI object */  
+  QList<SMESHGUI_MeshEditPreview*> mySimulationList;
+  QCheckBox*                       myPreviewCheckBox;
+  bool                             myIsApplyAndClose;
+};
+
 #endif