7 #ifndef __FWGUI_DIALOG_IPROGRESSDIALOG_HPP__ 8 #define __FWGUI_DIALOG_IPROGRESSDIALOG_HPP__ 10 #include "fwGui/config.hpp" 11 #include "fwGui/GuiBaseObject.hpp" 13 #include <fwData/location/ILocation.hpp> 15 #include <boost/signals2.hpp> 31 public ::boost::signals2::trackable
38 typedef std::string FactoryRegistryKeyType;
39 typedef boost::function< void () > CancelCallbackType;
48 FWGUI_API
virtual void setTitle(
const std::string& title) = 0;
51 FWGUI_API
virtual void setMessage(
const std::string& msg) = 0;
54 FWGUI_API
virtual void operator()(
float percent, std::string msg) = 0;
56 FWGUI_API
virtual void setCancelCallback(CancelCallbackType callback);
60 virtual void setCancelRaiseException(
bool raise)
67 virtual bool getCanceled()
74 virtual void hideCancelButton()
80 virtual void setProcessUserEvents(
bool process)
82 m_processUserEvents = process;
87 FWGUI_API
virtual void cancelPressed();
89 CancelCallbackType m_cancelCallback;
94 bool m_processUserEvents;
99 static sptr progressDialogFactory()
101 ::fwGui::GuiBaseObject::sptr guiObj = ::fwGui::factory::New(
103 ::fwGui::dialog::IProgressDialog::sptr progressDlg = ::fwGui::dialog::IProgressDialog::dynamicCast(guiObj);
The namespace fwGui contains the base interface for IHM services.
static FWGUI_API const FactoryRegistryKeyType REGISTRY_KEY
this unique key should be used for all factory for specific LocationDialog(qt,wx,...)
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for all fwGui's classes.
int m_value
progress bar's current value: [0-100]
Defines the generic Progress dialog for IHM.