Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
Interaction::ActionPrompt Class Reference
Inheritance diagram for Interaction::ActionPrompt:
Core::Reflect< Base >

Public Member Functions

 ActionPrompt (Visualization::Item *actionReceiver, bool autoExecuteAction, const StyleType *style=itemStyles().get())
 
virtual ~ActionPrompt ()
 
bool autoExecuteAction () const
 
Visualization::ItemcurrentActionReceiver ()
 
void downParentActionsLevel ()
 
void hidePrompt ()
 
int numActions ()
 
Visualization::ItemoriginalActionReceiver ()
 
void showPrompt ()
 
Visualization::Texttext ()
 
void upParentActionsLevel ()
 

Static Public Member Functions

static void initializeForms ()
 

Private Member Functions

void acquireCursor ()
 
QList< Action * > actions ()
 
void computeCurrentActionReceiver ()
 
void setHighlight (bool show)
 
void setPromptPosition ()
 
void setReceiverName ()
 

Private Attributes

Visualization::TextactionText_ {}
 
bool autoExecuteAction_ {}
 
Visualization::ItemcurrentActionReceiver_ {}
 
Visualization::SelectionOverlayhighlight_ {}
 
Visualization::TextnodeTypeName_ {}
 
int numActions_ {}
 
Visualization::ItemoriginalActionReceiver_ {}
 
int parentActionsLevel_ {0}
 The parentActionsLevel_ is used to indicate which item exactly should be used as a source for available actions. More...
 
QPoint receiverCursorPosition_
 

Additional Inherited Members

- Protected Types inherited from Core::Reflect< Base >
using Super = Reflect< Base >
 

Constructor & Destructor Documentation

◆ ActionPrompt()

Interaction::ActionPrompt::ActionPrompt ( Visualization::Item actionReceiver,
bool  autoExecuteAction,
const StyleType *  style = itemStyles().get() 
)

◆ ~ActionPrompt()

Interaction::ActionPrompt::~ActionPrompt ( )
virtual

Member Function Documentation

◆ acquireCursor()

void Interaction::ActionPrompt::acquireCursor ( )
private

◆ actions()

QList< Action * > Interaction::ActionPrompt::actions ( )
private

◆ autoExecuteAction()

bool Interaction::ActionPrompt::autoExecuteAction ( ) const
inline

◆ computeCurrentActionReceiver()

void Interaction::ActionPrompt::computeCurrentActionReceiver ( )
private

◆ currentActionReceiver()

Visualization::Item * Interaction::ActionPrompt::currentActionReceiver ( )
inline

◆ downParentActionsLevel()

void Interaction::ActionPrompt::downParentActionsLevel ( )

◆ hidePrompt()

void Interaction::ActionPrompt::hidePrompt ( )

◆ initializeForms()

void Interaction::ActionPrompt::initializeForms ( )
static

◆ numActions()

int Interaction::ActionPrompt::numActions ( )
inline

◆ originalActionReceiver()

Visualization::Item * Interaction::ActionPrompt::originalActionReceiver ( )
inline

◆ setHighlight()

void Interaction::ActionPrompt::setHighlight ( bool  show)
private

◆ setPromptPosition()

void Interaction::ActionPrompt::setPromptPosition ( )
private

◆ setReceiverName()

void Interaction::ActionPrompt::setReceiverName ( )
private

◆ showPrompt()

void Interaction::ActionPrompt::showPrompt ( )

◆ text()

Visualization::Text * Interaction::ActionPrompt::text ( )
inline

◆ upParentActionsLevel()

void Interaction::ActionPrompt::upParentActionsLevel ( )

Member Data Documentation

◆ actionText_

Visualization::Text* Interaction::ActionPrompt::actionText_ {}
private

◆ autoExecuteAction_

bool Interaction::ActionPrompt::autoExecuteAction_ {}
private

◆ currentActionReceiver_

Visualization::Item* Interaction::ActionPrompt::currentActionReceiver_ {}
private

◆ highlight_

Visualization::SelectionOverlay* Interaction::ActionPrompt::highlight_ {}
private

◆ nodeTypeName_

Visualization::Text* Interaction::ActionPrompt::nodeTypeName_ {}
private

◆ numActions_

int Interaction::ActionPrompt::numActions_ {}
private

◆ originalActionReceiver_

Visualization::Item* Interaction::ActionPrompt::originalActionReceiver_ {}
private

◆ parentActionsLevel_

int Interaction::ActionPrompt::parentActionsLevel_ {0}
private

The parentActionsLevel_ is used to indicate which item exactly should be used as a source for available actions.

When the action prompt is created the value of parentActionsLevel_ is 0. This means that a prompt should appear for the first parent of actionReceiver_, whose node contains actions. If parentActionsLevel_ is more than 0, then that many items in actionReceiver_'s hierarchy will be skipped. Only items that actually provide actions are considered.

Negative values behave similarly for child items. Child items are explored in breadth first manner.

This is used to quickly navigate to actions related to the current cursor position.

◆ receiverCursorPosition_

QPoint Interaction::ActionPrompt::receiverCursorPosition_
private