fw4spl
QtMainFrame.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwGuiQt/QtMainFrame.hpp"
8 
9 #include <fwCore/base.hpp>
10 
11 #include <fwGui/dialog/IMessageDialog.hpp>
12 #include <fwGui/dialog/MessageDialog.hpp>
13 
14 #include <boost/lambda/lambda.hpp>
15 
16 #include <QCloseEvent>
17 #include <QMainWindow>
18 
19 namespace fwGuiQt
20 {
21 
22 //------------------------------------------------------------------------------
23 
25  QMainWindow()
26 {
27 }
28 
29 //------------------------------------------------------------------------------
30 
32 {
33 }
34 
35 //------------------------------------------------------------------------------
36 
37 void QtMainFrame::setCloseCallback(CloseCallback fct)
38 {
39  m_fctCloseCallback = fct;
40 }
41 
42 //------------------------------------------------------------------------------
43 
44 void QtMainFrame::closeEvent(QCloseEvent* event)
45 {
47  m_fctCloseCallback();
48  event->ignore();
49 }
50 
51 //------------------------------------------------------------------------------
52 
53 } // fwGuiQt
54 
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition: spyLog.hpp:329
virtual FWGUIQT_API ~QtMainFrame() noexcept
Destructor.
Definition: QtMainFrame.cpp:31
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
Definition: WindowLevel.hpp:32
FWGUIQT_API QtMainFrame() noexcept
Constructor.
Definition: QtMainFrame.cpp:24