Salome HOME
1202ca65dd23c4e901fc822cf375a2d07c90429f
[modules/jobmanager.git] / src / wrappers / BL_MainWindows_Wrap.hxx
1 // Copyright (C) 2009-2022  CEA/DEN, 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
21 #ifndef _BL_MAINWINDOWS_WRAP_HXX_
22 #define _BL_MAINWINDOWS_WRAP_HXX_
23
24 #include "BL_Traces.hxx"
25
26 #include <QString>
27
28 class QAction;
29 class QIcon;
30 class QMainWindow;
31 class QObject;
32
33 namespace BL
34 {
35   class MainWindows_Wrap
36   {
37     
38     public:
39       MainWindows_Wrap() {}
40       virtual ~MainWindows_Wrap() {}
41
42       virtual QMainWindow * getDockParent() = 0;
43       virtual QMainWindow * getTabParent()  = 0;
44
45       virtual QAction* createAction(const QString& toolTip,
46                                     const QIcon& icon,
47                                     const QString& menu,
48                                     const QString& status,
49                                     const int accel,
50                                     QObject* parent =0,
51                                     bool checkable = false,
52                                     QObject* receiver =0,
53                                     const char* member =0,
54                                     const QString& shortCut=QString()) = 0;
55
56       virtual int createTopMenu(const QString & menu_name) = 0;
57       virtual void addActionToMenu(QAction * action, int menu_id) = 0;
58
59   };
60 }
61
62 #endif