IViewEventObserver.h
Go to the documentation of this file.
1 #ifndef iview_IViewEventObserver_included
2 #define iview_IViewEventObserver_included
3 
4 
5 // Qt includes
6 #include <QtCore/QtGlobal>
7 
8 // ACF includes
9 #include <istd/IPolymorphic.h>
10 #include <imod/IModel.h>
11 #include <iview/IShapeView.h>
13 
14 
15 namespace iview
16 {
17 
18 
23 {
24 public:
29  virtual bool OnSelectChange(const IShapeView& view, const istd::CIndex2d& position, const IInteractiveShape& shape, bool state) = 0;
30 
35  virtual bool OnViewMouseButton(const IShapeView& view, const istd::CIndex2d& position, Qt::MouseButton buttonType, bool state, const IInteractiveShape* shapePtr) = 0;
36 };
37 
38 
39 
40 } // namespace iview
41 
42 
43 
44 #endif // !iview_IViewEventObserver_included
45 
46 
47 
Index implementation for addressing elements in 2D-space.
Definition: CIndex2d.h:20
Common interface for a general shape view implementations.
Definition: IShapeView.h:24
Common interface for all display console shapes which can interacts with user.
Base interface for all used interfaces and implementations.
Definition: IPolymorphic.h:17
Interface for external view event observer.
virtual bool OnViewMouseButton(const IShapeView &view, const istd::CIndex2d &position, Qt::MouseButton buttonType, bool state, const IInteractiveShape *shapePtr)=0
Message handler for mouse button click.
virtual bool OnSelectChange(const IShapeView &view, const istd::CIndex2d &position, const IInteractiveShape &shape, bool state)=0
Message handler for selection changes.

© 2007-2017 Witold Gantzke and Kirill Lepskiy