1 // Copyright (C) 2007-2023 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // HELLOGUI : HELLO component GUI implemetation
30 # if defined HELLO_EXPORTS || defined Hello_EXPORTS
31 # define HELLO_EXPORT __declspec( dllexport )
33 # define HELLO_EXPORT __declspec( dllimport )
39 #include <SalomeApp_Module.h>
41 #include <SALOMEconfig.h>
42 #include CORBA_CLIENT_HEADER(HELLO_Gen)
44 class SalomeApp_Application;
46 class HELLO_EXPORT HELLOGUI: public SalomeApp_Module
52 OpTestMe = 190, //!< Test me
53 OpHello = 901, //!< Hello
54 OpGoodbye = 902, //!< Goodbye
61 static HELLO_ORB::HELLO_Gen_var engine();
63 virtual void initialize( CAM_Application* app );
64 virtual QString engineIOR() const;
66 virtual QPixmap moduleIcon() const;
67 virtual QString iconName() const;
69 virtual void windows( QMap<int, int>& theMap ) const;
70 virtual void viewManagers( QStringList& theList ) const;
72 virtual LightApp_Selection* createSelection() const;
73 virtual LightApp_Displayer* displayer();
75 virtual void contextMenuPopup( const QString& type, QMenu* menu, QString& title );
77 virtual void createPreferences();
78 virtual void preferencesChanged( const QString& section, const QString& parameter );
80 virtual void storeVisualParameters( int savePoint );
81 virtual void restoreVisualParameters( int savePoint );
83 virtual void studyActivated();
85 virtual bool canCopy() const;
86 virtual bool canPaste() const;
90 virtual bool isDraggable( const SUIT_DataObject* what ) const;
91 virtual bool isDropAccepted( const SUIT_DataObject* where ) const;
92 virtual void dropObjects( const DataObjectList& what, SUIT_DataObject* where,
93 const int row, Qt::DropAction action );
96 virtual bool activateModule( SUIT_Study* theStudy );
97 virtual bool deactivateModule( SUIT_Study* theStudy );
100 virtual LightApp_Operation* createOperation( const int id ) const;
111 static HELLO_ORB::HELLO_Gen_var myEngine;
114 #endif // _HELLOGUI_H_