fw4spl
include/fwGui/dialog/LocationDialog.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 __FWGUI_DIALOG_LOCATIONDIALOG_HPP__
8 #define __FWGUI_DIALOG_LOCATIONDIALOG_HPP__
9 
10 #include "fwGui/config.hpp"
11 #include "fwGui/dialog/ILocationDialog.hpp"
12 
13 #include <fwCore/base.hpp>
14 
15 namespace fwGui
16 {
17 namespace dialog
18 {
25 class FWGUI_CLASS_API LocationDialog : public ILocationDialog
26 {
27 
28 public:
29 
32 
33 
34  FWGUI_API LocationDialog();
35 
36  FWGUI_API virtual ~LocationDialog();
37 
42  FWGUI_API ::fwData::location::ILocation::sptr show() override;
43 
45  FWGUI_API ::fwGui::dialog::ILocationDialog& setOption( ::fwGui::dialog::ILocationDialog::Options option) override;
46 
48  FWGUI_API void setType( ::fwGui::dialog::ILocationDialog::Types type) override;
49 
56  FWGUI_API void addFilter(const std::string& filterName, const std::string& wildcardList ) override;
57 
59  FWGUI_API void setTitle(const std::string& title) override;
60 
62  FWGUI_API const std::string& getTitle() override;
63 
65  FWGUI_API virtual void setDefaultLocation( ::fwData::location::ILocation::sptr loc) override;
66 
68  FWGUI_API const ::boost::filesystem::path getDefaultLocation() override;
69 
71  FWGUI_API void saveDefaultLocation(::fwData::location::ILocation::sptr loc) override;
72 
74  FWGUI_API std::string getCurrentSelection() const override;
75 protected:
76 
77  ::fwGui::dialog::ILocationDialog::sptr m_implementation;
78 };
79 
80 } //namespace dialog
81 } // namespace fwGui
82 
83 #endif /*__FWGUI_DIALOG_LOCATIONDIALOG_HPP__*/
84 
The namespace fwGui contains the base interface for IHM services.
Definition: SJobBar.hpp:23
STL namespace.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Defines the generic file/folder selector dialog for IHM.
Contains the representation of the data objects used in the framework.