1 // Copyright (C) 2011-2020 CEA/DEN, EDF R&D
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 // ADAPTGUI : HOMARD component GUI implemetation
26 #include "HOMARDGUI_Exports.hxx"
28 #include <SalomeApp_Module.h>
29 #include "SalomeApp_Study.h"
31 #include <SALOMEconfig.h>
32 #include <SALOME_LifeCycleCORBA.hxx>
33 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
34 #include CORBA_CLIENT_HEADER(HOMARD_Cas)
35 #include CORBA_CLIENT_HEADER(HOMARD_Hypothesis)
39 class SalomeApp_Application;
41 class HOMARD_EXPORT ADAPTGUI: public SalomeApp_Module
46 ADAPTGUI(const QString&);
51 virtual bool OnGUIEvent (int theCommandID);
52 void initialize( CAM_Application* );
53 QString engineIOR() const;
54 void windows( QMap<int, int>& ) const;
56 static HOMARD::HOMARD_Gen_var InitHOMARDGen(SalomeApp_Application* );
60 bool deactivateModule( SUIT_Study* );
61 bool activateModule( SUIT_Study* );
79 virtual void contextMenuPopup( const QString&, QMenu*, QString& );
83 void createHOMARDAction( const int id, const QString& po_id, const QString& icon_id = QString(""),
84 const int key = 0, const bool toggle = false );
87 void recupPreferences();
88 void createPopupMenus();
89 _PTR(SObject) chercheMonObjet();
91 virtual void createPreferences();
92 HOMARD::HOMARD_Gen_var myComponentHomard;
96 QString _LanguageShort ;