fw4spl
fwGuiQt::dialog::InputDialog Class Reference

Defines an Input dialog. More...

#include <InputDialog.hpp>

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

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWGUIQT_API InputDialog (::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 setInput (const std::string &text) override
 Set the input text in the input field.
 
virtual FWGUIQT_API std::string getInput () override
 Get the input text in the input field.
 
- Public Member Functions inherited from fwGui::dialog::IInputDialog
FWGUI_API IInputDialog ()
 Constructor. Do nothing.
 
virtual FWGUI_API ~IInputDialog ()
 Destructor. Do nothing.
 
- 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::IInputDialog
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.
 
std::string m_input
 Text inputed.
 

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::IInputDialog
typedef std::string FactoryRegistryKeyType
 
- Public Types inherited from fwGui::GuiBaseObject
typedef ::fwGui::factory::Key Key
 
- Static Public Attributes inherited from fwGui::dialog::IInputDialog
static FWGUI_API const FactoryRegistryKeyType REGISTRY_KEY = "::fwGui::dialog::InputDialog"
 
- Protected Member Functions inherited from fwGui::GuiBaseObject
 GuiBaseObject ()
 
virtual ~GuiBaseObject ()
 

Detailed Description

Defines an Input dialog.

Example of use:

inputDlg.setTitle("Identification dialog");
inputDlg.setMessage("Enter Pin Code: ");
inputDlg.setInput ("<Enter your code here>");
std::string inputText = inputDlg.getInput();

Definition at line 34 of file t/include/fwGuiQt/dialog/InputDialog.hpp.


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