Salome HOME
Merge from V6_main 01/04/2013
[samples/sierpinsky.git] / src / SierpinskyGUI / SierpinskyGUI.h
1 // Copyright (C) 2005-2013  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 ///////////////////////////////////////////////////////////
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 <SalomeApp_Module.h>
30
31 #include <SALOMEconfig.h>
32 #include CORBA_CLIENT_HEADER(Sierpinsky)
33
34 class SUIT_Desktop;
35 class SalomeApp_Application;
36
37 class SierpinskyGUI : public SalomeApp_Module
38 {
39   Q_OBJECT;
40
41 public:
42   // Constructor
43   SierpinskyGUI();
44   // Destructor
45   ~SierpinskyGUI();
46
47   void    initialize( CAM_Application* );
48   virtual QString     engineIOR() const;
49
50   virtual void        windows( QMap<int, int>& ) const;
51   virtual void        viewManagers( QStringList& ) const;
52
53   static SIERPINSKY_ORB::SIERPINSKY_ptr InitSIERPINSKYGen( SalomeApp_Application* );
54   
55 public slots:
56   virtual bool        deactivateModule( SUIT_Study* );
57   virtual bool        activateModule( SUIT_Study* );
58
59 protected slots:
60   void    OnRun();
61
62 };
63
64 #endif // __SIERPINSKYGUI_H