Inheritance diagram for IAEX::CellCursor:
Public Member Functions | |
CellCursor (QWidget *parent=0) | |
The class constructor. | |
virtual | ~CellCursor () |
The class destructor. | |
void | deleteCurrentCell () |
void | removeCurrentCell () |
void | replaceCurrentWith (Cell *newCell) |
Replaces current cell with a new cell. | |
Cell * | currentCell () |
void | moveDown () |
void | moveToFirstChild (Cell *parent) |
void | moveToLastChild (Cell *parent) |
void | moveAfter (Cell *current) |
virtual void | accept (Visitor &v) |
bool | isEditable () |
Function for telling if the user is allowed to change the text settings for the text inside the cell. User isn't allowed to change the text settings for cellcursor so this function always return false. | |
bool | isClickedOn () |
Return state of the clickedOn_ property. | |
Protected Member Functions | |
void | mousePressEvent (QMouseEvent *event) |
Reimplemenation of the mousePressEvent function. |
The cellcursor class acts like a ordinary cell. It extends a cell with the functionality to move around in the celltree. See moveUp and moveDown members.
This class should be inherited with a lot of precaution. It has a lot of responsibility and dependency within the application. So change it with caution.
To change the cursors look reimplement the CursorWidget to have the desired look.
|
The class constructor.
|
|
The class destructor.
|
|
Reimplemented from IAEX::Cell. |
|
Returns current cell. |
|
|
|
Return state of the clickedOn_ property.
|
|
Function for telling if the user is allowed to change the text settings for the text inside the cell. User isn't allowed to change the text settings for cellcursor so this function always return false.
Implements IAEX::Cell. |
|
Reimplemenation of the mousePressEvent function.
|
|
|
|
|
|
Insert this cell as first child of parent.
|
|
|
|
Removes a cell and all its subcells from the tree. This should work for all cells. But it will leave an empty cellgroup if last cell is deleted in cellgroup. This does not delete the cell, it just removes the cell from the celltree. |
|
Replaces current cell with a new cell.
|