X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_ScaleDlg.h;h=3fe4f0ddbbfadf9399d21088064f5a6f731cea30;hp=7293a99e7811c13735b73b48eab9a65ccca47b50;hb=e85e13ee2a8e2484050471ff8e4dea298abe481a;hpb=bd4e115a78b52e3fbc016e5e30bb0e19b2a9e7d6 diff --git a/src/SMESHGUI/SMESHGUI_ScaleDlg.h b/src/SMESHGUI/SMESHGUI_ScaleDlg.h index 7293a99e7..3fe4f0ddb 100644 --- a/src/SMESHGUI/SMESHGUI_ScaleDlg.h +++ b/src/SMESHGUI/SMESHGUI_ScaleDlg.h @@ -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 myObjects; + QList myObjectsNames; + QList 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(); };