fw4spl
include/fwGui/dialog/ProgressDialog.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_PROGRESSDIALOG_HPP__
8 #define __FWGUI_DIALOG_PROGRESSDIALOG_HPP__
9 
10 #include "fwGui/config.hpp"
11 #include "fwGui/dialog/IProgressDialog.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 namespace fwGui
16 {
17 namespace dialog
18 {
24 class FWGUI_CLASS_API ProgressDialog : public IProgressDialog
25 {
26 
27 public:
28 
31 
32 
33  FWGUI_API ProgressDialog( const std::string& title = std::string(), const std::string& msg = std::string() );
34  FWGUI_API ~ProgressDialog();
35 
37  FWGUI_API void setTitle(const std::string& title) override;
38 
40  FWGUI_API void setMessage(const std::string& message) override;
41 
43  FWGUI_API void operator()(float percent, std::string msg) override;
44 
45  FWGUI_API void setCancelCallback(CancelCallbackType callback) override;
46 
47  FWGUI_API void hideCancelButton() override;
48 
49 protected:
50 
51  FWGUI_API void cancelPressed() override;
52 
53  ::fwGui::dialog::IProgressDialog::sptr m_implementation;
54 
55 };
56 
57 } //namespace dialog
58 } // namespace fwGui
59 
60 #endif /*__FWGUI_DIALOG_PROGRESSDIALOG_HPP__*/
61 
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
STL namespace.
Defines the generic progress dialog for IHM. Use the Delegate design pattern. The specific implementa...
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the generic Progress dialog for IHM.