7 #include "fwGui/dialog/LoggerDialog.hpp" 9 #include <fwServices/registry/ActiveWorkers.hpp> 11 #include <fwThread/Worker.hpp> 12 #include <fwThread/Worker.hxx> 24 const std::string& title,
const std::string& message, const ::fwLog::Logger::sptr& logger)
35 m_implementation = ::fwGui::dialog::ILoggerDialog::dynamicCast(guiObj);
49 m_implementation = ::fwGui::dialog::ILoggerDialog::dynamicCast(guiObj);
50 m_implementation->setTitle(title);
51 m_implementation->setMessage(message);
52 m_implementation->setLogger(logger);
59 m_implementation->setTitle(title);
66 m_implementation->setMessage(message);
73 m_implementation->setLogger(logger);
virtual FWGUI_API void setLogger(const ::fwLog::Logger::sptr &logger) override
Set the dialog logger.
virtual FWGUI_API bool show()=0
Show the dialog and return whether the user has selected the Ok or Cancel button. ...
The namespace fwGui contains the base interface for IHM services.
ILoggerDialog is used to display a dialog message and a set of logs Use the Delegate design pattern...
static FWGUI_API const FactoryRegistryKeyType REGISTRY_KEY
This unique key should be used for all factory for specific Selector(qt,wx,...)
virtual FWGUI_API void setTitle(const std::string &title) override
Set the dialog title.
virtual FWGUI_API void setMessage(const std::string &message) override
Set the dialog message.
virtual FWGUI_API ~LoggerDialog()
Destructor.
virtual FWGUI_API bool show() override
Show the dialog and return whether the user has selected the Ok or Cancel button. ...
FWGUI_API LoggerDialog()
Constructor that will instantiate the concrete implementation.
static FWSERVICES_API::fwThread::Worker::sptr getDefaultWorker()
Get the default registered worker.
static FWGUI_API bool showLoggerDialog(const std::string &title, const std::string &message, const ::fwLog::Logger::sptr &logger)