Salome HOME
Updated copyright comment
[samples/sierpinsky.git] / src / SierpinskyGUI / SierpinskyGUI.h
1 // Copyright (C) 2005-2024  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 ///////////////////////////////////////////////////////////
21 // File    : SierpinskyGUI.h
22 // Author  : Vadim SANDLER (OCN)
23 // Created : 13/07/05
24 ///////////////////////////////////////////////////////////
25 //
26 #ifndef __SIERPINSKYGUI_H
27 #define __SIERPINSKYGUI_H
28
29 #include "SierpinskyGUI.hxx"
30
31 #include <SalomeApp_Module.h>
32
33 #include <SALOMEconfig.h>
34 #include CORBA_CLIENT_HEADER(Sierpinsky)
35
36 class SUIT_Desktop;
37 class SalomeApp_Application;
38
39 class SIERPINSKY_EXPORT SierpinskyGUI : public SalomeApp_Module
40 {
41   Q_OBJECT
42
43 public:
44   // Constructor
45   SierpinskyGUI();
46   // Destructor
47   ~SierpinskyGUI();
48
49   void    initialize( CAM_Application* );
50   virtual QString     engineIOR() const;
51
52   virtual void        windows( QMap<int, int>& ) const;
53   virtual void        viewManagers( QStringList& ) const;
54
55   static SIERPINSKY_ORB::SIERPINSKY_ptr InitSIERPINSKYGen( SalomeApp_Application* );
56   
57 public slots:
58   virtual bool        deactivateModule( SUIT_Study* );
59   virtual bool        activateModule( SUIT_Study* );
60
61 protected slots:
62   void    OnRun();
63
64 };
65
66 #endif // __SIERPINSKYGUI_H