7 #ifndef __FWGUIQT_DIALOG_PROGRESSDIALOG_HPP__ 8 #define __FWGUIQT_DIALOG_PROGRESSDIALOG_HPP__ 10 #include "fwGuiQt/config.hpp" 11 #include "fwGuiQt/container/QtContainer.hpp" 13 #include <fwGui/dialog/IProgressDialog.hpp> 15 #include <QApplication> 16 #include <QMainWindow> 18 #include <QProgressBar> 19 #include <QProgressDialog> 20 #include <QPushButton> 27 class QProgressDialog;
49 ::fwGui::factory::New< ProgressDialog > )
52 const
std::
string& title = "Progression",
53 const
std::
string& message =
std::
string(86, ' ') );
57 FWGUIQT_API
void operator()(
float percent,
std::
string msg) override;
60 FWGUIQT_API
void setTitle(const
std::
string& title) override;
63 FWGUIQT_API
void setMessage(const
std::
string& message) override;
65 FWGUIQT_API
void hideCancelButton() override;
68 void cancelPressed() override;
74 QPointer< QProgressDialog > m_pdialog;
75 QPointer< QProgressBar > m_pprogressbar;
76 QPointer< QPushButton > m_pcancelButton;
77 QPointer< QMainWindow > m_pmainWindow;
The namespace fwGui contains the base interface for IHM services.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
This class allows us to select an acquisition in a patient data base.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the generic Progress dialog for IHM.