Envision
A visual programming IDE for object-oriented languages
|
Public Member Functions | |
ActionPrompt (Visualization::Item *actionReceiver, bool autoExecuteAction, const StyleType *style=itemStyles().get()) | |
virtual | ~ActionPrompt () |
bool | autoExecuteAction () const |
Visualization::Item * | currentActionReceiver () |
void | downParentActionsLevel () |
void | hidePrompt () |
int | numActions () |
Visualization::Item * | originalActionReceiver () |
void | showPrompt () |
Visualization::Text * | text () |
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::Text * | actionText_ {} |
bool | autoExecuteAction_ {} |
Visualization::Item * | currentActionReceiver_ {} |
Visualization::SelectionOverlay * | highlight_ {} |
Visualization::Text * | nodeTypeName_ {} |
int | numActions_ {} |
Visualization::Item * | originalActionReceiver_ {} |
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 > |
Interaction::ActionPrompt::ActionPrompt | ( | Visualization::Item * | actionReceiver, |
bool | autoExecuteAction, | ||
const StyleType * | style = itemStyles().get() |
||
) |
|
virtual |
|
private |
|
private |
|
inline |
|
private |
|
inline |
void Interaction::ActionPrompt::downParentActionsLevel | ( | ) |
void Interaction::ActionPrompt::hidePrompt | ( | ) |
|
static |
|
inline |
|
inline |
|
private |
|
private |
|
private |
void Interaction::ActionPrompt::showPrompt | ( | ) |
|
inline |
void Interaction::ActionPrompt::upParentActionsLevel | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
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.
|
private |