fw4spl
t/include/fwGuiQt/dialog/MultiSelectorDialog.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_MULTISELECTORDIALOG_HPP__
8 #define __FWGUIQT_DIALOG_MULTISELECTORDIALOG_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 
12 #include <fwGui/dialog/IMultiSelectorDialog.hpp>
13 
14 #include <QDialog>
15 #include <QString>
16 #include <QWidget>
17 
18 #include <vector>
19 
20 namespace fwGuiQt
21 {
22 namespace dialog
23 {
24 //------------------------------------------------------------------------------
25 
31  public QDialog
32 {
33 public:
34 
36  (()),
37  ::fwGui::factory::New< MultiSelectorDialog > );
38 
40 
41  FWGUIQT_API virtual ~MultiSelectorDialog();
42 
46  FWGUIQT_API virtual void setSelections(Selections _selections) override;
47 
51  FWGUIQT_API virtual void setTitle(std::string _title) override;
52 
56  FWGUIQT_API virtual Selections show() override;
57 
58  FWGUIQT_API virtual void setMessage(const std::string& msg) override;
59 
60 private:
61 
62  Selections m_selections;
64  std::string m_message;
65  std::string m_title;
66 };
67 
68 } // namespace dialog
69 } // namespace fwGuiQt
70 
71 #endif /*__FWGUIQT_DIALOG_MULTISELECTORDIALOG_HPP__*/
MultiSelectorDialog allowing the choice of an element among severals (_selections) ...
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
IMultiSelectorDialog allows the choice of some elements among several (_selections) ...
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.