fw4spl
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
24
QtMainFrame::QtMainFrame
() noexcept :
25
QMainWindow()
26
{
27
}
28
29
//------------------------------------------------------------------------------
30
31
QtMainFrame::~QtMainFrame
() noexcept
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
{
46
SLM_TRACE_FUNC
();
47
m_fctCloseCallback();
48
event
->ignore();
49
}
50
51
//------------------------------------------------------------------------------
52
53
}
// fwGuiQt
54
SLM_TRACE_FUNC
#define SLM_TRACE_FUNC()
Trace contextual function signature.
Definition:
spyLog.hpp:329
fwGuiQt::QtMainFrame::~QtMainFrame
virtual FWGUIQT_API ~QtMainFrame() noexcept
Destructor.
Definition:
QtMainFrame.cpp:31
fwGuiQt
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
Definition:
WindowLevel.hpp:32
fwGuiQt::QtMainFrame::QtMainFrame
FWGUIQT_API QtMainFrame() noexcept
Constructor.
Definition:
QtMainFrame.cpp:24
SrcLib
core
fwGuiQt
src
fwGuiQt
QtMainFrame.cpp
Generated on Wed Sep 5 2018 12:47:56 for fw4spl by
1.8.11