fw4spl
SFolderSelector.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 __UIIO_ACTION_SFOLDERSELECTOR_HPP__
8 #define __UIIO_ACTION_SFOLDERSELECTOR_HPP__
9 
10 #include "uiIO/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 #include <boost/filesystem/path.hpp>
15 
16 namespace uiIO
17 {
18 namespace action
19 {
20 
37 class UIIO_CLASS_API SFolderSelector : public ::fwGui::IActionSrv
38 {
39 public:
41 
42 
46  typedef ::fwCom::Signal< void ( ::boost::filesystem::path ) > FolderSelectedSignalType;
47  static const ::fwCom::Signals::SignalKeyType s_FOLDER_SELECTED_SIG;
49 
50  UIIO_API SFolderSelector() noexcept;
51  UIIO_API virtual ~SFolderSelector() noexcept;
52 
53 protected:
54 
56  UIIO_API void configuring() override;
57 
59  UIIO_API void starting() override;
60 
62  UIIO_API void updating() override;
63 
65  UIIO_API void stopping() override;
66 
67 private:
68 
70  std::string m_dialogTitle;
71 };
72 
73 } // namespace action
74 } // namespace uiIO
75 
76 #endif // __UIIO_ACTION_SFOLDERSELECTOR_HPP__
Raise a pop-up dialog to select a directory, then send it via a signal.
Namespace containing fw4spl communication tools.
Definition: DumpEditor.hpp:30
STL namespace.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
The namespace uiIO contains a simple service to manipulate IO with IHM..