Public Types | Public Member Functions | List of all members
iview::ISelectable Class Referenceabstract

#include <ISelectable.h>

Inheritance diagram for iview::ISelectable:
iview::ITouchable istd::IPolymorphic iview::ISelectableLayer iview::IShapeView iview::CInteractiveViewLayer iview::CViewBase iview::CCalibratedViewBase iview::CViewport

Public Types

enum  MousePointerMode {
  MPM_NONE, MPM_DEFAULT, MPM_DESELECT, MPM_POINTER,
  MPM_WAIT, MPM_CROSS, MPM_HAND, MPM_DRAG,
  MPM_SCREEN_MOVE, MPM_LAST = MPM_SCREEN_MOVE
}
 Defines possible states of mouse pointer. More...
 
enum  EditMode { EM_NONE = 0, EM_MOVE = 1, EM_ADD = 2, EM_REMOVE = 3 }
 Describes standard edit modes. More...
 
typedef QSet< IInteractiveShape * > SelectedShapes
 
- Public Types inherited from iview::ITouchable
enum  TouchState {
  TS_NONE, TS_INACTIVE, TS_TICKER, TS_DRAGGABLE,
  TS_OTHER, TS_LAST = TS_OTHER
}
 Enumeration for possible shape touch states. More...
 

Public Member Functions

virtual int GetSelectedShapesCount () const =0
 Get count of selected shapes. More...
 
virtual void InsertSelectedShapes (SelectedShapes &result) const =0
 Get set of selected shapes. More...
 
virtual void DeselectAllShapes ()=0
 Set all shapes to be deselected. More...
 
virtual int GetKeysState () const =0
 Get state of system keys. More...
 
virtual int GetEditMode () const =0
 Get actual edit mode. More...
 
virtual void OnShapeFocused (IInteractiveShape *shapePtr)=0
 Called when shape get focus. More...
 
virtual void OnShapeDefocused (IInteractiveShape *shapePtr)=0
 Called when shape loose focus. More...
 
virtual void OnShapeSelected (IInteractiveShape &shape, bool state=true)=0
 It is called after change shape selection state. More...
 
- Public Member Functions inherited from iview::ITouchable
virtual TouchState IsTouched (istd::CIndex2d position) const =0
 Check, if any shape is touched. More...
 
virtual QString GetShapeDescriptionAt (istd::CIndex2d position) const =0
 Get description to shape at specified position. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Definition at line 21 of file ISelectable.h.

Member Typedef Documentation

Definition at line 24 of file ISelectable.h.

Member Enumeration Documentation

Describes standard edit modes.

Enumerator
EM_NONE 
EM_MOVE 
EM_ADD 
EM_REMOVE 

Definition at line 46 of file ISelectable.h.

Defines possible states of mouse pointer.

Enumerator
MPM_NONE 
MPM_DEFAULT 
MPM_DESELECT 
MPM_POINTER 
MPM_WAIT 
MPM_CROSS 
MPM_HAND 
MPM_DRAG 
MPM_SCREEN_MOVE 
MPM_LAST 

Definition at line 29 of file ISelectable.h.

Member Function Documentation

virtual void iview::ISelectable::DeselectAllShapes ( )
pure virtual

Set all shapes to be deselected.

Implemented in iview::CViewBase, and iview::CInteractiveViewLayer.

virtual int iview::ISelectable::GetEditMode ( ) const
pure virtual
virtual int iview::ISelectable::GetKeysState ( ) const
pure virtual
virtual int iview::ISelectable::GetSelectedShapesCount ( ) const
pure virtual

Get count of selected shapes.

Implemented in iview::CViewBase, and iview::CInteractiveViewLayer.

virtual void iview::ISelectable::InsertSelectedShapes ( SelectedShapes result) const
pure virtual

Get set of selected shapes.

Implemented in iview::CViewBase, and iview::CInteractiveViewLayer.

virtual void iview::ISelectable::OnShapeDefocused ( IInteractiveShape shapePtr)
pure virtual

Called when shape loose focus.

Implemented in iview::CViewBase, and iview::CInteractiveViewLayer.

virtual void iview::ISelectable::OnShapeFocused ( IInteractiveShape shapePtr)
pure virtual

Called when shape get focus.

Implemented in iview::CViewBase, and iview::CInteractiveViewLayer.

virtual void iview::ISelectable::OnShapeSelected ( IInteractiveShape shape,
bool  state = true 
)
pure virtual

It is called after change shape selection state.

Implemented in iview::CViewBase, and iview::CInteractiveViewLayer.


The documentation for this class was generated from the following file:

© 2007-2017 Witold Gantzke and Kirill Lepskiy