7 #include "fwGui/dialog/ProgressDialog.hpp" 9 #include <fwServices/registry/ActiveWorkers.hpp> 24 m_implementation = ::fwGui::dialog::IProgressDialog::dynamicCast(guiObj);
27 m_implementation->setTitle(title);
28 m_implementation->setMessage(message);
35 ProgressDialog::~ProgressDialog()
49 m_implementation->setTitle(title);
62 m_implementation->setMessage(msg);
75 (*m_implementation)(percent, msg);
82 void ProgressDialog::setCancelCallback(CancelCallbackType callback)
88 m_implementation->setCancelCallback(callback);
95 void ProgressDialog::cancelPressed()
102 void ProgressDialog::hideCancelButton()
106 m_implementation->hideCancelButton();
FWGUI_API void setTitle(const std::string &title) override
set the title for the dialog
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,...)
FWGUI_API void setMessage(const std::string &message) override
set the message for the dialog
FWGUI_API void operator()(float percent, std::string msg) override
action called by fwTools::ProgressAdviser
FWGUI_API ProgressDialog(const std::string &title=std::string(), const std::string &msg=std::string())
will instanciate the concrete implementation
static FWSERVICES_API::fwThread::Worker::sptr getDefaultWorker()
Get the default registered worker.