Envision
A visual programming IDE for object-oriented languages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions
Interaction::HList Class Reference
Inheritance diagram for Interaction::HList:
Interaction::GenericHandler Visualization::InteractionHandler OOInteraction::HStatementItemList

Public Member Functions

virtual void focusOutEvent (Visualization::Item *target, QFocusEvent *event) override
 
virtual void keyPressEvent (Visualization::Item *target, QKeyEvent *event) override
 
virtual void removeNodeAndSetCursor (Visualization::VList *list, int removeAtNodeIndex)
 Removes the node at position removeAtNodeIndex from list and sets the cursor to the list cursor below or above the removed element as indicated by setCursorDown. More...
 
virtual void removeNodeAndSetCursor (Visualization::VList *list, int removeAtNodeIndex, bool setCursorDown, SetCursorEvent::CursorPlacement howToSelectItem)
 Removes the node at position removeAtNodeIndex from list and sets the cursor inside the element below or above the removed one according to setCursorDown and howToSelectItem. More...
 
void removeNodeAndSetCursor (Visualization::VList *list, Model::Node *removeNode)
 
void removeNodeAndSetCursor (Visualization::VList *list, Model::Node *removeNode, bool setCursorDown, SetCursorEvent::CursorPlacement howToSelectItem)
 
virtual void scheduleSetCursor (Visualization::VList *list, int setCursorNodeIndex)
 
virtual void scheduleSetCursor (Visualization::VList *list, Model::Node *listNodeToSelect, SetCursorEvent::CursorPlacement howToSelectItem)
 
- Public Member Functions inherited from Interaction::GenericHandler
virtual void action (Visualization::Item *target, const QString &action)
 
ActionPrompt * actionPrompt ()
 
void addCommand (Command *command)
 
virtual void beforeEvent (Visualization::Item *target, QEvent *event) override
 
virtual void command (Visualization::Item *target, const QString &command, const std::unique_ptr< Visualization::Cursor > &cursor) override
 
const QList< Command * > & commands ()
 TODO: Commands are not inherited when the handler is inherited. More...
 
virtual void focusInEvent (Visualization::Item *target, QFocusEvent *event) override
 
virtual void mouseDoubleClickEvent (Visualization::Item *target, QGraphicsSceneMouseEvent *event) override
 
virtual void mouseMoveEvent (Visualization::Item *target, QGraphicsSceneMouseEvent *event) override
 
virtual void mousePressEvent (Visualization::Item *target, QGraphicsSceneMouseEvent *event) override
 
virtual void mouseReleaseEvent (Visualization::Item *target, QGraphicsSceneMouseEvent *event) override
 
void removeActionPrompt ()
 
bool removeFromList (Visualization::Item *target)
 Removes the node visualized by target from the list which contains it. More...
 
void showActionPrompt (Visualization::Item *actionRecevier, bool autoExecuteAction)
 
void toggleComment (Visualization::Item *itemWithComment, Model::Node *aNode, bool hideOnly)
 
virtual void wheelEvent (Visualization::Item *target, QGraphicsSceneWheelEvent *event) override
 
- Public Member Functions inherited from Visualization::InteractionHandler
virtual ~InteractionHandler ()
 
virtual void afterEvent (Item *target, QEvent *event)
 
virtual void command (Item *target, const QString &command, const std::unique_ptr< Cursor > &cursor)
 
virtual void contextMenuEvent (Item *target, QGraphicsSceneContextMenuEvent *event)
 
virtual void dragEnterEvent (Item *target, QGraphicsSceneDragDropEvent *event)
 
virtual void dragLeaveEvent (Item *target, QGraphicsSceneDragDropEvent *event)
 
virtual void dragMoveEvent (Item *target, QGraphicsSceneDragDropEvent *event)
 
virtual void dropEvent (Item *target, QGraphicsSceneDragDropEvent *event)
 
virtual void hoverEnterEvent (Item *target, QGraphicsSceneHoverEvent *event)
 
virtual void hoverLeaveEvent (Item *target, QGraphicsSceneHoverEvent *event)
 
virtual void hoverMoveEvent (Item *target, QGraphicsSceneHoverEvent *event)
 
virtual void keyReleaseEvent (Item *target, QKeyEvent *event)
 

Static Public Member Functions

static HList * instance ()
 
- Static Public Member Functions inherited from Interaction::GenericHandler
static CommandExecutionEngine * executionEngine ()
 
static void fixCursorPositionForUndoAfterTreeManagerChange ()
 
static GenericHandler * instance ()
 
static void setCommandExecutionEngine (CommandExecutionEngine *engine)
 
static void setCommentCreationFunction (CommentCreationFunction f)
 
- Static Public Member Functions inherited from Visualization::InteractionHandler
static InteractionHandler * instance ()
 
static bool isClick (Item *target)
 
static bool isDrag (Item *target)
 

Protected Member Functions

 HList ()
 
- Protected Member Functions inherited from Interaction::GenericHandler
 GenericHandler ()
 
virtual void filterSelectedItems (Visualization::Item *target, QGraphicsSceneMouseEvent *event)
 
bool moveCursor (Visualization::Item *target, int key)
 
- Protected Member Functions inherited from Visualization::InteractionHandler
 InteractionHandler ()
 

Additional Inherited Members

- Public Types inherited from Interaction::GenericHandler
using CommentCreationFunction = std::function< Model::Node *()>
 
enum  CursorMoveOrientation { NoOrientation , VerticalOrientation , HorizontalOrientation }
 

Constructor & Destructor Documentation

◆ HList()

Interaction::HList::HList ( )
protected

Member Function Documentation

◆ focusOutEvent()

void Interaction::HList::focusOutEvent ( Visualization::Item *  target,
QFocusEvent *  event 
)
overridevirtual

Reimplemented from Visualization::InteractionHandler.

◆ instance()

HList * Interaction::HList::instance ( )
static

◆ keyPressEvent()

void Interaction::HList::keyPressEvent ( Visualization::Item *  target,
QKeyEvent *  event 
)
overridevirtual

Reimplemented from Interaction::GenericHandler.

Reimplemented in OOInteraction::HStatementItemList.

◆ removeNodeAndSetCursor() [1/4]

void Interaction::HList::removeNodeAndSetCursor ( Visualization::VList *  list,
int  removeAtNodeIndex 
)
virtual

Removes the node at position removeAtNodeIndex from list and sets the cursor to the list cursor below or above the removed element as indicated by setCursorDown.

◆ removeNodeAndSetCursor() [2/4]

void Interaction::HList::removeNodeAndSetCursor ( Visualization::VList *  list,
int  removeAtNodeIndex,
bool  setCursorDown,
SetCursorEvent::CursorPlacement  howToSelectItem 
)
virtual

Removes the node at position removeAtNodeIndex from list and sets the cursor inside the element below or above the removed one according to setCursorDown and howToSelectItem.

◆ removeNodeAndSetCursor() [3/4]

void Interaction::HList::removeNodeAndSetCursor ( Visualization::VList *  list,
Model::Node *  removeNode 
)

◆ removeNodeAndSetCursor() [4/4]

void Interaction::HList::removeNodeAndSetCursor ( Visualization::VList *  list,
Model::Node *  removeNode,
bool  setCursorDown,
SetCursorEvent::CursorPlacement  howToSelectItem 
)

◆ scheduleSetCursor() [1/2]

void Interaction::HList::scheduleSetCursor ( Visualization::VList *  list,
int  setCursorNodeIndex 
)
virtual

◆ scheduleSetCursor() [2/2]

void Interaction::HList::scheduleSetCursor ( Visualization::VList *  list,
Model::Node *  listNodeToSelect,
SetCursorEvent::CursorPlacement  howToSelectItem 
)
virtual