fw4spl
t/include/fwGuiQt/dialog/InputDialog.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWGUIQT_DIALOG_INPUTDIALOG_HPP__
8 #define __FWGUIQT_DIALOG_INPUTDIALOG_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 
12 #include <fwCore/base.hpp>
13 
14 #include <fwGui/dialog/IInputDialog.hpp>
15 
16 #include <string>
17 
18 namespace fwGuiQt
19 {
20 namespace dialog
21 {
34 class FWGUIQT_CLASS_API InputDialog : public ::fwGui::dialog::IInputDialog
35 {
36 
37 public:
38 
40  (()),
41  ::fwGui::factory::New< InputDialog > );
42 
43  FWGUIQT_API InputDialog(::fwGui::GuiBaseObject::Key key);
44 
45  FWGUIQT_API virtual ~InputDialog();
46 
48  FWGUIQT_API virtual void setTitle( const std::string& title ) override;
49 
51  FWGUIQT_API virtual void setMessage( const std::string& msg ) override;
52 
54  FWGUIQT_API virtual void setInput(const std::string& text) override;
55 
57  FWGUIQT_API virtual std::string getInput() override;
58 
59 protected:
61  std::string m_title;
63  std::string m_message;
65  std::string m_input;
66 
67 };
68 } // namespace dialog
69 } // namespace fwGuiQt
70 
71 #endif /*__FWGUIQT_DIALOG_INPUTDIALOG_HPP__*/
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
The namespace fwGuiQt contains classes which provide the implementation of the Gui using Qt library...
Definition: WindowLevel.hpp:32
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the generic input dialog box for IHM.