Version: 9.16.0
SMESHGUI_MG_ADAPTDRIVER.h
Go to the documentation of this file.
1// Copyright (C) 2020-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef SMESHGUI_MG_ADAPTDRIVER_H
21#define SMESHGUI_MG_ADAPTDRIVER_H
22
23#include "SMESH_SMESHGUI.hxx"
24
25// model
26#include "SMESHGUI_MgAdaptDlg.h"
27
28// IDL includes
29#include <SALOMEconfig.h>
30#include CORBA_SERVER_HEADER(SMESH_Mesh)
31#include CORBA_SERVER_HEADER(MG_ADAPT)
32
33class SMESHGUI;
34class LightApp_SelectionMgr;
35//class MgAdapt;
36
37// int IObjectCount();
38// const SALOME_ListIO& selectedIO();
39// _PTR(Study) getStudy();
40// Handle(SALOME_InteractiveObject) firstIObject();
41// bool createAndPublishMed(QString fileName);
42// bool createMgAdaptObject(MgAdapt* myMgAdapt = 0);
43
44
46{
47 Q_OBJECT
48
49public :
50 SMESHGUI_MG_ADAPTDRIVER( SMESHGUI*, SMESH::MG_ADAPT_ptr, bool isCreation = true );
51 void setMyMesh(SMESH::SMESH_Mesh_var);
52 SMESH::SMESH_Mesh_var getMyMesh() ;
53
54private :
55
56 SMESHGUI* mySMESHGUI; /* Current SMESHGUI object */
57 LightApp_SelectionMgr* selMgr ;
58 LightApp_SelectionMgr* selectionMgr();
59 SMESH::SMESH_Mesh_var myMesh ;
61
62 void enterEvent( QEvent* ); /* mouse enter the QWidget */
63 void keyPressEvent( QKeyEvent* );
64
65 bool isValid();
67 void setIsApplyAndClose( const bool theFlag );
68 bool isApplyAndClose() const;
69 bool execute();
70
71
72private slots:
73 void selectionChanged();
74 void updateSelection();
75
76protected slots :
77
78private slots:
79
80 void exportMED(const char* );
81
82 virtual bool PushOnApply();
83 virtual void PushOnOK();
84 virtual void PushOnHelp();
85
87 void activateThisDialog();
88};
89
90#endif // SMESHGUI_MG_ADAPTDRIVER_H
Definition: SMESHGUI_MG_ADAPTDRIVER.h:46
bool createMeshInObjectBrowser()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:318
void updateSelection()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:110
SMESH::SMESH_Mesh_var myMesh
Definition: SMESHGUI_MG_ADAPTDRIVER.h:59
bool execute()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:234
virtual void PushOnOK()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:188
void keyPressEvent(QKeyEvent *)
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:279
void deactivateActiveDialog()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:400
void setIsApplyAndClose(const bool theFlag)
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:382
void activateThisDialog()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:414
virtual bool PushOnApply()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:196
void enterEvent(QEvent *)
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:262
bool myIsApplyAndClose
Definition: SMESHGUI_MG_ADAPTDRIVER.h:60
LightApp_SelectionMgr * selMgr
Definition: SMESHGUI_MG_ADAPTDRIVER.h:57
SMESHGUI * mySMESHGUI
Definition: SMESHGUI_MG_ADAPTDRIVER.h:56
void selectionChanged()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:125
LightApp_SelectionMgr * selectionMgr()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:101
bool isApplyAndClose() const
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:391
SMESHGUI_MG_ADAPTDRIVER(SMESHGUI *, SMESH::MG_ADAPT_ptr, bool isCreation=true)
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:81
void exportMED(const char *)
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:169
bool isValid()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:312
void setMyMesh(SMESH::SMESH_Mesh_var)
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:175
virtual void PushOnHelp()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:298
SMESH::SMESH_Mesh_var getMyMesh()
Definition: SMESHGUI_MG_ADAPTDRIVER.cxx:179
Definition: SMESHGUI_MgAdaptDlg.h:66
Definition: SMESHGUI.h:84