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