fw4spl
t/include/fwGuiQt/Cursor.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_CURSOR_HPP__
8 #define __FWGUIQT_CURSOR_HPP__
9 
10 #include "fwGuiQt/config.hpp"
11 
12 #include <fwCore/base.hpp>
13 
14 #include <fwGui/ICursor.hpp>
15 
16 namespace fwGuiQt
17 {
18 
22 class FWGUIQT_CLASS_API Cursor : public ::fwGui::ICursor
23 {
24 
25 public:
26 
28  (()),
29  ::fwGui::factory::New< Cursor > );
30 
31  FWGUIQT_API Cursor(::fwGui::GuiBaseObject::Key key);
32 
33  FWGUIQT_API virtual ~Cursor();
34 
36  FWGUIQT_API virtual void setCursor( ::fwGui::ICursor::CursorType cursor) override;
37 
39  FWGUIQT_API virtual void setDefaultCursor() override;
40 
41 };
42 
43 } // namespace fwGuiQt
44 
45 #endif /*__FWGUIQT_CURSOR_HPP__*/
46 
Defines the generic cursor for IHM.
CursorType
Cursor type.
Definition: ICursor.hpp:29
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Defines the generic cursor for IHM.
Definition: ICursor.hpp:23
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.