fw4spl
include/fwGui/dialog/LoggerDialog.hpp
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 #ifndef __FWGUI_DIALOG_LOGGERDIALOG_HPP__
8 #define __FWGUI_DIALOG_LOGGERDIALOG_HPP__
9 
10 #include "fwGui/config.hpp"
11 #include "fwGui/dialog/ILoggerDialog.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 #include <fwLog/Logger.hpp>
16 
17 namespace fwGui
18 {
19 namespace dialog
20 {
26 class FWGUI_CLASS_API LoggerDialog : public ILoggerDialog
27 {
28 
29 public:
30 
32 
40  FWGUI_API static bool showLoggerDialog(const std::string& title, const std::string& message,
41  const ::fwLog::Logger::sptr& logger);
42 
44  FWGUI_API LoggerDialog();
45 
47  FWGUI_API virtual ~LoggerDialog();
48 
55  FWGUI_API LoggerDialog(const std::string& title, const std::string& message,
56  const ::fwLog::Logger::sptr& logger);
57 
62  FWGUI_API virtual void setTitle(const std::string& title) override;
63 
68  FWGUI_API virtual void setMessage(const std::string& message) override;
69 
74  FWGUI_API virtual void setLogger(const ::fwLog::Logger::sptr& logger) override;
75 
79  FWGUI_API virtual bool show() override;
80 
81 protected:
82 
83  ::fwGui::dialog::ILoggerDialog::sptr m_implementation;
84 
85 };
86 
87 } // namespace dialog
88 } // namespace fwGui
89 
90 #endif /*__FWGUI_DIALOG_LOGGERDIALOG_HPP__*/
91 
ILoggerDialog is used to display a dialog message and a set of logs.
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
ILoggerDialog is used to display a dialog message and a set of logs Use the Delegate design pattern...
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.