1 // Copyright (C) 2011-2013 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.
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 // HOMARDGUI : HOMARD component GUI implemetation
26 #include <SalomeApp_Module.h>
27 #include "SalomeApp_Study.h"
29 #include <SALOMEconfig.h>
30 #include <SALOME_LifeCycleCORBA.hxx>
31 #include CORBA_CLIENT_HEADER(HOMARD_Gen)
32 #include CORBA_CLIENT_HEADER(HOMARD_Cas)
33 #include CORBA_CLIENT_HEADER(HOMARD_Hypothesis)
35 #include <QtCore/QString>
37 class SalomeApp_Application;
39 class HOMARDGUI: public SalomeApp_Module
44 HOMARDGUI(const QString&);
49 virtual bool OnGUIEvent (int theCommandID);
50 void initialize( CAM_Application* );
51 QString engineIOR() const;
52 void windows( QMap<int, int>& ) const;
54 static HOMARD::HOMARD_Gen_var InitHOMARDGen(SalomeApp_Application* );
58 bool deactivateModule( SUIT_Study* );
59 bool activateModule( SUIT_Study* );
71 void XmGraceFichier();
74 virtual void contextMenuPopup( const QString&, QMenu*, QString& );
78 void createHOMARDAction( const int id, const QString& po_id, const QString& icon_id = QString(""),
79 const int key = 0, const bool toggle = false );
82 void createPopupMenus();
83 _PTR(SObject) chercheMonObjet();
85 virtual void createPreferences();
86 HOMARD::HOMARD_Gen_var myComponentHomard;
87 SALOMEDS::Study_var myStudy;