fw4spl
IInputDialog.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
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 __FWGUI_DIALOG_IINPUTDIALOG_HPP__
8 #define __FWGUI_DIALOG_IINPUTDIALOG_HPP__
9 
10 #include <string>
11 
12 #include "fwGui/GuiBaseObject.hpp"
13 #include "fwGui/config.hpp"
14 
15 namespace fwGui
16 {
17 namespace dialog
18 {
26 class FWGUI_CLASS_API IInputDialog : public ::fwGui::GuiBaseObject
27 {
28 
29 public:
30 
32 
33 
34  FWGUI_API IInputDialog();
36  FWGUI_API virtual ~IInputDialog();
37 
38  typedef std::string FactoryRegistryKeyType;
39  FWGUI_API static const FactoryRegistryKeyType REGISTRY_KEY;
40 
42  FWGUI_API virtual void setTitle(const std::string &title) = 0;
43 
45  FWGUI_API virtual void setInput(const std::string &text) = 0;
46 
48  FWGUI_API virtual std::string getInput() = 0;
49 
51  FWGUI_API virtual void setMessage(const std::string &msg) = 0;
52 
53 };
54 
55 } //namespace dialog
56 } // namespace fwGui
57 
58 #endif /*__FWGUI_DIALOG_IINPUTDIALOG_HPP__*/
59 
60 
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
STL namespace.
Base class for all fwGui&#39;s classes.
Defines the generic input dialog box for IHM.