fw4spl
fwGuiQt::dialog::MessageDialog Class Reference

Defines the generic message box for IHM. More...

#include <MessageDialog.hpp>

+ Inheritance diagram for fwGuiQt::dialog::MessageDialog:
+ Collaboration diagram for fwGuiQt::dialog::MessageDialog:

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWGUIQT_API MessageDialog (::fwGui::GuiBaseObject::Key key)
 
virtual FWGUIQT_API void setTitle (const std::string &title) override
 Set the title of the message box.
 
virtual FWGUIQT_API void setMessage (const std::string &msg) override
 Set the message.
 
virtual FWGUIQT_API void setIcon (IMessageDialog::Icons icon) override
 Set the icon (CRITICAL, WARNING, INFO or QUESTION)
 
virtual FWGUIQT_API void addButton (IMessageDialog::Buttons button) override
 Add a button (OK, YES_NO, CANCEL)
 
virtual FWGUIQT_API void addCustomButton (const std::string &label, std::function< void()> clickedFn) override
 Add a custom button to this dialog.
 
virtual FWGUIQT_API void setDefaultButton (IMessageDialog::Buttons button) override
 Set the default buttons.
 
virtual FWGUIQT_API Buttons show () override
 Show the message box and return the clicked button.
 
- Public Member Functions inherited from fwGui::dialog::IMessageDialog
FWGUI_API IMessageDialog ()
 Constructor. Do nothing.
 
virtual FWGUI_API ~IMessageDialog ()
 Destructor. Do nothing.
 
virtual FWGUI_API void setIcon (Icons icon)=0
 Set the icon (CRITICAL, WARNING, INFO or QUESTION)
 
virtual FWGUI_API void addButton (Buttons button)=0
 Add a button (OK, YES_NO, YES, NO, CANCEL)
 
virtual FWGUI_API void setDefaultButton (Buttons button)=0
 Set the default button.
 
- Public Member Functions inherited from fwGui::GuiBaseObject
- Public Member Functions inherited from fwCore::BaseObject

Static Public Member Functions

static bool isTypeOf (const std::string &type)
 
- Static Public Member Functions inherited from fwGui::dialog::IMessageDialog
static bool isTypeOf (const std::string &type)
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
- Static Public Member Functions inherited from fwGui::GuiBaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & classname ()
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
- Static Public Member Functions inherited from fwCore::BaseObject
static bool isTypeOf (const std::string &type)
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Protected Attributes

std::string m_title
 Dialog title.
 
std::string m_message
 Dialog box message.
 
::fwGui::dialog::IMessageDialog::Buttons m_buttons
 List of the button.
 
::fwGui::dialog::IMessageDialog::Buttons m_defaultButton
 default buttons
 
::fwGui::dialog::IMessageDialog::Icons m_icon
 Icon.
 
QVector< QPushButton * > m_customButtons
 Stores custom buttons.
 

Friends

template<class , class , class >
class ::fwTools::ClassFactory
 
class ::fwTools::Factory
 

Demangling methods

virtual const std::string & getLeafClassname () const override
 return object's classname without its namespace, i.e. BaseObject
 
virtual const std::string & getClassname () const override
 return full object's classname with its namespace, i.e. fwCore::BaseObject
 
static const std::string & leafClassname ()
 return object's classname without its namespace, i.e. BaseObject
 
static const std::string & classname ()
 return object's classname without its namespace, i.e. BaseObject
 

Additional Inherited Members

- Public Types inherited from fwGui::dialog::IMessageDialog
enum  Icons {
  CRITICAL, WARNING, INFO, QUESTION,
  NONE
}
 Icon type.
 
enum  Buttons {
  NOBUTTON = 0, OK = 1 << 1, YES = 1 << 2, NO = 1 << 3,
  CANCEL = 1 << 4, YES_NO = YES | NO
}
 Buttons type.
 
typedef std::string FactoryRegistryKeyType
 
- Public Types inherited from fwGui::GuiBaseObject
typedef ::fwGui::factory::Key Key
 
- Static Public Attributes inherited from fwGui::dialog::IMessageDialog
static FWGUI_API const FactoryRegistryKeyType REGISTRY_KEY = "::fwGui::dialog::MessageDialog"
 
- Protected Member Functions inherited from fwGui::GuiBaseObject
 GuiBaseObject ()
 
virtual ~GuiBaseObject ()
 

Detailed Description

Defines the generic message box for IHM.

Definition at line 27 of file t/include/fwGuiQt/dialog/MessageDialog.hpp.


The documentation for this class was generated from the following files: