Salome HOME
#19765 EDF 21730 - long time to load med file file with huge amount of groups
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_ScaleDlg.h
index 7293a99e7811c13735b73b48eab9a65ccca47b50..3fe4f0ddbbfadf9399d21088064f5a6f731cea30 100644 (file)
@@ -1,9 +1,9 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -52,7 +52,7 @@ class SMESH_LogicalFilter;
 // class    : SMESHGUI_ScaleDlg
 // purpose  :
 //=================================================================================
-class SMESHGUI_EXPORT SMESHGUI_ScaleDlg : public SMESHGUI_PreviewDlg
+class SMESHGUI_EXPORT SMESHGUI_ScaleDlg : public SMESHGUI_MultiPreviewDlg
 { 
   Q_OBJECT
 
@@ -62,9 +62,7 @@ public:
 
 private:
   void                   Init( bool = true );
-  void                   closeEvent( QCloseEvent* );
   void                   enterEvent( QEvent* );           /* mouse enter the QWidget */
-  void                   hideEvent( QHideEvent* );        /* ESC key */
   void                   keyPressEvent( QKeyEvent* );
   int                    GetConstructorId();
   void                   setNewMeshName();
@@ -83,11 +81,13 @@ private:
   QWidget*               myEditCurrentArgument;
 
   bool                   myBusy;
-  SMESH::SMESH_Mesh_var  myMesh;
   SMESH_Actor*           myActor;
   SMESH_LogicalFilter*   myMeshOrSubMeshOrGroupFilter;
 
-  SMESH::SMESH_IDSource_var mySelectedObject;
+  QList<SMESH::SMESH_IDSource_var> myObjects;
+  QList<QString>                    myObjectsNames;
+  QList<SMESH::SMESH_Mesh_var>     myMeshes;
+  
 
   QGroupBox*             ConstructorsBox;
   QButtonGroup*          GroupConstructors;
@@ -129,12 +129,13 @@ private:
 
 
 protected slots:
-  virtual void              onDisplaySimulation( bool );
+  virtual void           onDisplaySimulation( bool );
+  virtual void           reject();
+  void                   onFilterAccepted();
    
 private slots:
   void                   ConstructorsClicked( int );
   void                   ClickOnOk();
-  void                   ClickOnCancel();
   bool                   ClickOnApply();
   void                   ClickOnHelp();
   void                   SetEditCurrentArgument();
@@ -144,6 +145,8 @@ private slots:
   void                   onTextChange( const QString& );
   void                   onSelectMesh( bool );
   void                   onActionClicked( int );
+  void                   onOpenView();
+  void                   onCloseView();
   void                   setFilters();
 };