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