Schim
Signals | Public Member Functions | List of all members
SceneOperation Class Reference

The base class of all scene operations. More...

#include <operations.h>

Inheritance diagram for SceneOperation:
[legend]
Collaboration diagram for SceneOperation:
[legend]

Signals

void finished ()
 Emitted when the operation has finished, either successfully or not.
 

Public Member Functions

 SceneOperation (SheetScene *scene)
 Construct a scene operation in the specified scene.
 
virtual void mousePressEvent (QGraphicsSceneMouseEvent *event)
 Process a mousePressEvent. The base implementation does nothing.
 
virtual void mouseMoveEvent (QGraphicsSceneMouseEvent *event)
 Process a mouseMoveEvent. The base implementation does nothing.
 
virtual void mouseReleaseEvent (QGraphicsSceneMouseEvent *event)
 Process a mouseReleaseEvent. The base implementation does nothing.
 
virtual void keyPressEvent (QKeyEvent *event)
 Process a keyPressEvent. The base implementation does nothing.
 
virtual void cancel ()
 Cancel the operation. More...
 

Detailed Description

The base class of all scene operations.

An operation is any multi-step process that relies on mouse/keyboard input. An example of an operation is inserting a line.

Each operation is associated with a scene.

Member Function Documentation

◆ cancel()

virtual void SceneOperation::cancel ( )
virtual

Cancel the operation.

This will delete any dangling objects and remove them from the scene. The finished signal will be emitted.


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