Envision
A visual programming IDE for object-oriented languages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes
Interaction::SetCursorEvent Class Reference
Inheritance diagram for Interaction::SetCursorEvent:
Visualization::CustomSceneEvent

Public Types

enum  CursorPlacement { CursorOnTop , CursorOnBottom , CursorOnLeft , CursorOnRight , CursorOnCenter , CursorAboveOf , CursorBelowOf , CursorLeftOf , CursorRightOf , CursorDefault }
 
typedef std::function< CursorPlacement()> GetCursorPlacement
 
typedef std::function< Visualization::Item *()> GetItemFunction
 
- Public Types inherited from Visualization::CustomSceneEvent
using EventFunction = std::function< void()>
 

Public Member Functions

 SetCursorEvent (GetItemFunction getItemToFocus, CursorPlacement placement=CursorDefault, bool showPrompt=false)
 
 SetCursorEvent (GetItemFunction getItemToFocus, GetCursorPlacement getCursorPlacement, bool showPrompt=false)
 
 SetCursorEvent (Visualization::Item *itemToGetCursor, CursorPlacement placement=CursorDefault, bool showPrompt=false)
 
 SetCursorEvent (Visualization::Item *itemToGetCursor, QPoint point, bool showPrompt=false)
 
 SetCursorEvent (Visualization::Item *parentContainer, Model::Node *node, CursorPlacement placement=CursorDefault, bool showPrompt=false)
 
 SetCursorEvent (Visualization::Scene *scene, Model::Node *node, CursorPlacement placement=CursorDefault, bool showPrompt=false)
 
virtual void execute ()
 
- Public Member Functions inherited from Visualization::CustomSceneEvent
 CustomSceneEvent (EventFunction f)
 
 CustomSceneEvent (QEvent::Type type)
 
virtual ~CustomSceneEvent ()
 
void setEventFunction (EventFunction f)
 

Static Public Attributes

static const QEvent::Type EventType = static_cast<QEvent::Type> (QEvent::registerEventType())
 
- Static Public Attributes inherited from Visualization::CustomSceneEvent
static const QEvent::Type EventType = static_cast<QEvent::Type> (QEvent::registerEventType())
 

Private Attributes

GetCursorPlacement getCursorPlacement_ {}
 
GetItemFunction getItemToFocus_ {}
 
Visualization::ItemitemToGetCursor_ {}
 
Model::Nodenode_ {}
 
Visualization::ItemparentContainer_ {}
 
CursorPlacement placement_ {}
 
QPoint point_ {-1, -1}
 
Visualization::Scenescene_ {}
 
bool showPrompt_ {false}
 

Member Typedef Documentation

◆ GetCursorPlacement

◆ GetItemFunction

Member Enumeration Documentation

◆ CursorPlacement

Enumerator
CursorOnTop 
CursorOnBottom 
CursorOnLeft 
CursorOnRight 
CursorOnCenter 
CursorAboveOf 
CursorBelowOf 
CursorLeftOf 
CursorRightOf 
CursorDefault 

Constructor & Destructor Documentation

◆ SetCursorEvent() [1/6]

Interaction::SetCursorEvent::SetCursorEvent ( Visualization::Item itemToGetCursor,
CursorPlacement  placement = CursorDefault,
bool  showPrompt = false 
)

◆ SetCursorEvent() [2/6]

Interaction::SetCursorEvent::SetCursorEvent ( Visualization::Item itemToGetCursor,
QPoint  point,
bool  showPrompt = false 
)

◆ SetCursorEvent() [3/6]

Interaction::SetCursorEvent::SetCursorEvent ( GetItemFunction  getItemToFocus,
CursorPlacement  placement = CursorDefault,
bool  showPrompt = false 
)

◆ SetCursorEvent() [4/6]

Interaction::SetCursorEvent::SetCursorEvent ( GetItemFunction  getItemToFocus,
GetCursorPlacement  getCursorPlacement,
bool  showPrompt = false 
)

◆ SetCursorEvent() [5/6]

Interaction::SetCursorEvent::SetCursorEvent ( Visualization::Item parentContainer,
Model::Node node,
CursorPlacement  placement = CursorDefault,
bool  showPrompt = false 
)

◆ SetCursorEvent() [6/6]

Interaction::SetCursorEvent::SetCursorEvent ( Visualization::Scene scene,
Model::Node node,
CursorPlacement  placement = CursorDefault,
bool  showPrompt = false 
)

Member Function Documentation

◆ execute()

void Interaction::SetCursorEvent::execute ( )
virtual

Reimplemented from Visualization::CustomSceneEvent.

Member Data Documentation

◆ EventType

const QEvent::Type Interaction::SetCursorEvent::EventType = static_cast<QEvent::Type> (QEvent::registerEventType())
static

◆ getCursorPlacement_

GetCursorPlacement Interaction::SetCursorEvent::getCursorPlacement_ {}
private

◆ getItemToFocus_

GetItemFunction Interaction::SetCursorEvent::getItemToFocus_ {}
private

◆ itemToGetCursor_

Visualization::Item* Interaction::SetCursorEvent::itemToGetCursor_ {}
private

◆ node_

Model::Node* Interaction::SetCursorEvent::node_ {}
private

◆ parentContainer_

Visualization::Item* Interaction::SetCursorEvent::parentContainer_ {}
private

◆ placement_

CursorPlacement Interaction::SetCursorEvent::placement_ {}
private

◆ point_

QPoint Interaction::SetCursorEvent::point_ {-1, -1}
private

◆ scene_

Visualization::Scene* Interaction::SetCursorEvent::scene_ {}
private

◆ showPrompt_

bool Interaction::SetCursorEvent::showPrompt_ {false}
private