Salome HOME
d5214c19c0c9109199bbbe28742e0e9ac10d5edc
[samples/atomic.git] / src / ATOMICGUI / ATOMICGUI.h
1 // Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
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 #if !defined(ATOMICGUI_H)
21 #define ATOMICGUI_H
22
23 #include "ATOMICGUI_ATOMICGUI.hxx"
24
25 #include <LightApp_Module.h>
26
27 /*!
28  * Class       : ATOMICGUI
29  * Description : GUI module class for ATOMIC component
30  */
31 class ATOMICGUI_EXPORT ATOMICGUI: public LightApp_Module
32 {
33   Q_OBJECT
34   enum { agCreateMol,  
35          agAddAtom, 
36          agRename, 
37          agDelete,
38          agImportXML,
39          agExportXML };
40
41 public:
42   ATOMICGUI();
43
44   virtual void           initialize ( CAM_Application* );
45   virtual QString        iconName () const;
46
47   virtual void           windows ( QMap<int, int>& ) const;
48
49   void                   selected( QStringList&, const bool );
50   
51 protected:
52   virtual CAM_DataModel*      createDataModel();
53   virtual LightApp_Selection* createSelection() const;
54   virtual LightApp_Operation* createOperation( const int ) const;
55
56 public slots:
57   virtual bool           activateModule   ( SUIT_Study* );
58   virtual bool           deactivateModule ( SUIT_Study* );
59
60 private slots:
61   void                   onOperation();
62 };
63
64 #endif // ATOMICGUI_H