fw4spl
SShowAbout.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 __UIGENERICQT_ACTION_SSHOWABOUT_HPP__
8 #define __UIGENERICQT_ACTION_SSHOWABOUT_HPP__
9 
10 #include "uiGenericQt/config.hpp"
11 
12 #include <fwGui/IActionSrv.hpp>
13 
14 #include <boost/filesystem/path.hpp>
15 
16 #include <QObject>
17 #include <QSize>
18 #include <QUrl>
19 
20 namespace uiGenericQt
21 {
22 
23 namespace action
24 {
25 
29 class UIGENERICQT_CLASS_API SShowAbout : public QObject,
30  public ::fwGui::IActionSrv
31 {
32 
33 Q_OBJECT
34 public:
36 
40  UIGENERICQT_API SShowAbout() noexcept;
41  UIGENERICQT_API virtual ~SShowAbout() noexcept;
44 protected:
58  void configuring() override;
59 
61  void starting() override;
62 
64  void updating() override;
65 
67  void stopping() override;
68 
70  void info(std::ostream& _sstream) override;
71 
72 protected Q_SLOTS:
73 
79  void onUrlClicked(const QUrl& url);
80 
81 private:
83  bool m_bServiceIsConfigured;
84 
88  ::boost::filesystem::path m_fsAboutPath;
89 
91  std::string m_title;
92 
94  QSize m_size;
95 };
96 
97 } // namespace action
98 
99 } // namespace uiGenericQt
100 
101 #endif // __UIGENERICQT_ACTION_SSHOWABOUT_HPP__
102 
The namespace uiGenericQt contains actions to show help, acknowledgments and about frame...
STL namespace.
Defines the service interface managing the menu items.
Definition: IActionSrv.hpp:24
This action show the about frame.
Definition: SShowAbout.hpp:29
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.