MEPP2 Project
BaseWindowQt.h
Go to the documentation of this file.
1 // Copyright (c) 2012-2019 University of Lyon and CNRS (France).
2 // All rights reserved.
3 //
4 // This file is part of MEPP2; you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published
6 // by the Free Software Foundation; either version 3 of the License,
7 // or (at your option) any later version.
8 //
9 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
10 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
11 #pragma once
12 
15 
16 #include <QMainWindow>
17 
18 namespace FEVV {
19 
20 class BaseWindowQt : public QMainWindow, public BaseWindow
21 {
22 public:
24 
25  using BaseWindow::isInit;
26  using BaseWindow::isValid;
27 
28 public:
39  BaseWindowQt(QWidget *_parent = 0, Qt::WindowFlags _flags = Qt::Window)
40  : QMainWindow(_parent, _flags), BaseWindow()
41  {
42 #ifdef DEBUG_VISU2
43  std::cout << "*** this=" << this << " entering " << __func__ << std::endl;
44 #endif
45 
46 #ifdef DEBUG_VISU2
47  std::cout << "*** this=" << this << " leaving " << __func__ << std::endl;
48 #endif
49  }
50 
54  virtual ~BaseWindowQt()
55  {
56 #ifdef DEBUG_VISU2
57  std::cout << "*** this=" << this << " entering " << __func__ << std::endl;
58 #endif
59 
60 #ifdef DEBUG_VISU2
61  std::cout << "*** this=" << this << " leaving " << __func__ << std::endl;
62 #endif
63  }
64 };
65 
66 } // namespace FEVV
FEVV::BaseWindow::isInit
virtual bool isInit() const
Definition: BaseWindow.h:103
BaseAdapterVisuQt.h
BaseWindow.h
FEVV
Interfaces for plugins These interfaces will be used for different plugins.
Definition: Assert.h:16
FEVV::BaseWindow::isValid
virtual bool isValid() const
Definition: BaseWindow.h:105
FEVV::BaseWindowQt::BaseWindowQt
BaseWindowQt(QWidget *_parent=0, Qt::WindowFlags _flags=Qt::Window)
Definition: BaseWindowQt.h:39
FEVV::BaseAdapterVisuQt
Definition: BaseAdapterVisuQt.h:22
FEVV::BaseWindowQt
Definition: BaseWindowQt.h:21
FEVV::BaseWindow
Definition: BaseWindow.h:25
FEVV::BaseWindowQt::~BaseWindowQt
virtual ~BaseWindowQt()
Definition: BaseWindowQt.h:54