]> SALOME platform Git repositories - tools/yacsgen.git/blob - Examples/cppgui2/cppcomposGUI.h
Salome HOME
updated copyright message
[tools/yacsgen.git] / Examples / cppgui2 / cppcomposGUI.h
1 // Copyright (C) 2009-2023  EDF R&D
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 #ifndef _cppcomposGUI_H_
21 #define _cppcomposGUI_H_
22
23 #include <LightApp_Module.h>
24 #include "ui_demo.h"
25
26 class SUIT_ViewManager;
27 class SUIT_ViewWindow;
28
29 class cppcomposGUI: public LightApp_Module
30 {
31   Q_OBJECT
32
33 public:
34   cppcomposGUI();
35   void    initialize( CAM_Application* );
36   virtual void  windows( QMap<int, int>& theMap ) const;
37
38 public slots:
39   bool    deactivateModule( SUIT_Study* );
40   bool    activateModule( SUIT_Study* );
41
42 protected slots:
43   void OnGetBanner();
44   void OnDesigner();
45   void onWindowActivated( SUIT_ViewWindow* svw);
46
47 private:
48   QWidget* _myWidget;
49   SUIT_ViewManager* _myViewManager;
50 };
51
52 class MyDemo: public QDialog
53 {
54   Q_OBJECT
55
56 public:
57   MyDemo(QWidget *parent = 0);
58
59 private:
60   Ui::DemoDialog ui;
61
62 };
63
64 #endif