X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESHGUI%2FSMESHGUI_MG_ADAPTDRIVER.h;h=ecaa1a9f4070457940d92d7b03178649cdd42214;hp=e73a7779586fb61a1b19aa896d3eae15b6771829;hb=HEAD;hpb=5b9e6708a50563fd33f8d7543a879f9021b38c55 diff --git a/src/SMESHGUI/SMESHGUI_MG_ADAPTDRIVER.h b/src/SMESHGUI/SMESHGUI_MG_ADAPTDRIVER.h index e73a77795..58388dae7 100644 --- a/src/SMESHGUI/SMESHGUI_MG_ADAPTDRIVER.h +++ b/src/SMESHGUI/SMESHGUI_MG_ADAPTDRIVER.h @@ -1,4 +1,4 @@ -// Copyright (C) 2011-2020 CEA/DEN, EDF R&D +// Copyright (C) 2020-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -17,97 +17,34 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // -// SMESH SMESHGUI : GUI for the adaptation in the SMESH component -// File : SMESHGUI_MG_ADAPTDRIVER.h -// #ifndef SMESHGUI_MG_ADAPTDRIVER_H #define SMESHGUI_MG_ADAPTDRIVER_H -#include -// SMESH includes #include "SMESH_SMESHGUI.hxx" -// Qt includes -#include -#include -#include - -#include - -#include "LightApp_DataOwner.h" -#include "SalomeApp_Application.h" -#include -#include -#include "SalomeApp_Module.h" -#include "SalomeApp_Study.h" -#include -#include // model -//~#include "MG_ADAPT.h" -#include "MG_ADAPTGUI.hxx" -//~#include "MG_ADAPT.hxx" - -#include CORBA_SERVER_HEADER(MG_ADAPT) - -class SUIT_ViewWindow; -class SUIT_Desktop; -class SUIT_Study; -class SUIT_ResourceMgr; - -class CAM_Module; - -class SALOMEDSClient_Study; -class SALOMEDSClient_SObject; - -class SalomeApp_Study; -class SalomeApp_Module; -class LightApp_SelectionMgr; -class SUIT_SelectionFilter; - - -class QButtonGroup; -class QLineEdit; -class QGroupBox; -class QRadioButton; -class QLabel; -class QCheckBox; -class QGridLayout; -class QTabWidget; -class QDoubleSpinBox; -class QSpinBox; -class QTreeWidget; -class QTreeWidgetItem; -class QSpacerItem; -class QHBoxLayout; -class QItemDelegate; -class QComboBox; -class QObject; - +#include "SMESHGUI_MgAdaptDlg.h" // IDL includes #include #include CORBA_SERVER_HEADER(SMESH_Mesh) -#include CORBA_SERVER_HEADER(SMESH_Gen) -class SMESHGUI; -class SMESHGUI_MgAdaptDlg; -class SMESHGUI_IdValidator; -class SMESHGUI_FilterDlg; -class MgAdapt; -class QHeaderView; -class QFileDialog; +#include CORBA_SERVER_HEADER(MG_ADAPT) +class SMESHGUI; +class LightApp_SelectionMgr; +//class MgAdapt; -int IObjectCount(); -const SALOME_ListIO& selectedIO(); -_PTR(Study) getStudy(); -Handle(SALOME_InteractiveObject) firstIObject(); -bool createAndPublishMed(QString fileName); -bool createMgAdaptObject(MgAdapt* myMgAdapt = 0); +// int IObjectCount(); +// const SALOME_ListIO& selectedIO(); +// _PTR(Study) getStudy(); +// Handle(SALOME_InteractiveObject) firstIObject(); +// bool createAndPublishMed(QString fileName); +// bool createMgAdaptObject(MgAdapt* myMgAdapt = 0); class SMESHGUI_MG_ADAPTDRIVER : public SMESHGUI_MgAdaptDlg { - Q_OBJECT; + Q_OBJECT public : SMESHGUI_MG_ADAPTDRIVER( SMESHGUI*, SMESH::MG_ADAPT_ptr, bool isCreation = true ); @@ -116,70 +53,22 @@ public : private : - SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */ + SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */ LightApp_SelectionMgr* selMgr ; - SUIT_ResourceMgr* resMgr; - SUIT_ResourceMgr* resourceMgr(); LightApp_SelectionMgr* selectionMgr(); - SMESH::SMESH_Mesh_var myMesh ; - - + SMESH::SMESH_Mesh_var myMesh ; + bool myIsApplyAndClose; - void Init( bool = true ); void enterEvent( QEvent* ); /* mouse enter the QWidget */ void keyPressEvent( QKeyEvent* ); - QString getErrorMsg( SMESH::string_array_var invalidEntries, - QStringList & entriesToBrowse ); bool isValid(); bool createMeshInObjectBrowser(); void setIsApplyAndClose( const bool theFlag ); bool isApplyAndClose() const; bool execute(); - SMESHGUI_IdValidator* myIdValidator; - int myNbOkElements; /* to check when elements are defined */ - - SVTK_Selector* mySelector; - - bool myBusy; - GEOM::GEOM_Object_var myNewGeometry; - //~SMESH_Actor* myActor; // - SUIT_SelectionFilter* myIdSourceFilter; - - SMESH::SMESH_IDSource_var mySelectedObject; - - QTabWidget* myTabWidget; - QButtonGroup* GroupConstructors; - - QGroupBox* ConstructorsBox; - QGroupBox* GroupArguments; - QGroupBox* GroupButtons; - - QPushButton* buttonOk; - QPushButton* buttonCancel; - QPushButton* buttonApply; - QPushButton* buttonHelp; - QLabel* myTextLabelElements; - QLabel* myGeomLabel; - QLineEdit* myLineEditElements; - QLineEdit* myMeshNameEdit; - QLineEdit* myGeomNameEdit; - QCheckBox* myIdSourceCheck; - QCheckBox* myCopyGroupsCheck; - QCheckBox* myReuseHypCheck; - QCheckBox* myCopyElementsCheck; - QCheckBox* myKeepIdsCheck; - QPushButton* myFilterBtn; - SMESHGUI_FilterDlg* myFilterDlg; - - QString myHelpFileName; - - bool myIsApplyAndClose; - - QString inputMeshName; - QString outputMeshName; private slots: void selectionChanged(); void updateSelection(); @@ -190,23 +79,12 @@ private slots: void exportMED(const char* ); - virtual bool clickOnApply(); - virtual void clickOnOk(); - virtual void clickOnHelp(); - //~void SelectionIntoArgument(); - void deactivateActiveDialog(); - void activateThisDialog(); - void onConstructor( int ); - //~void onTextChange( const QString& ); - //~void onSelectIdSource( bool ); - void setFilters(); - void onOpenView(); - void onCloseView(); - + virtual bool PushOnApply(); + virtual void PushOnOK(); + virtual void PushOnHelp(); + void deactivateActiveDialog(); + void activateThisDialog(); }; - - - #endif // SMESHGUI_MG_ADAPTDRIVER_H