fw4spl
t/include/fwGuiQt/dialog/PulseProgressDialog.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 __FWGUIQT_DIALOG_PULSEPROGRESSDIALOG_HPP__
8 #define __FWGUIQT_DIALOG_PULSEPROGRESSDIALOG_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 
12 #include <fwGui/dialog/IPulseProgressDialog.hpp>
13 
14 #include <QPointer>
15 #include <QProgressDialog>
16 
17 #include <string>
18 
19 QT_BEGIN_NAMESPACE
20 class QProgressDialog;
21 QT_END_NAMESPACE
22 
23 namespace fwGuiQt
24 {
25 namespace dialog
26 {
31 {
32 public:
33 
35  (()),
36  ::fwGui::factory::New< PulseProgressDialog > );
37 
39 
40  FWGUIQT_API virtual ~PulseProgressDialog();
41 
43  FWGUIQT_API void setTitle(const std::string& title) override;
44 
46  FWGUIQT_API void setMessage(const std::string& message) override;
47 
48  FWGUIQT_API void show() override;
49 
50 protected:
51 
52  QPointer< QProgressDialog > m_pdialog;
53 
54 };
55 } // namespace dialog
56 } // namespace fwGuiQt
57 
58 #endif /* __FWGUIQT_DIALOG_PULSEPROGRESSDIALOG_HPP__ */
This class allows us to show a pulse progress bar.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Defines the generic Progress dialog for IHM.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
Definition: WindowLevel.hpp:32
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.