Inheritance diagram for IAEX::CellGroup:
Public Slots | |
virtual void | setStyle (CellStyle style) |
Set the cells style. If the cell is closed, set style on the first child (the cell thats displayed). | |
void | setClosed (const bool closed) |
This function hides/shows the content of a groupcell. | |
Public Member Functions | |
CellGroup (QWidget *parent=0) | |
The class constructor. | |
virtual | ~CellGroup () |
The class destructor. | |
virtual void | accept (Visitor &v) |
Decides if a visitor is allowed to visit the object. | |
virtual void | addChild (Cell *newCell) |
virtual void | removeChild (Cell *aCell) |
Removes a cell from a cellgroup. But does not delete the cell! | |
int | height () |
calculates the height of the cellgroup. | |
CellStyle * | style () |
Return the cells style. If the cell is closed, style is returned from the first child (the cell thats displayed). If the cell is opened this function returns a new CellStyle with the name 'cellgroup';. | |
void | closeChildCells () |
hide() or show() the child cells of the groupcell, depending on the state of the groupcell (opened or closed). This must be done because otherwise qt layout will compress all child and display them in the smaller height set went the groupcell is closed. | |
bool | isClosed () const |
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 cellgroups so this function always return false. | |
Protected Slots | |
void | adjustHeight () |
Protected Member Functions | |
void | mouseDoubleClickEvent (QMouseEvent *event) |
open and close the groupcell when double click on the treeview |
|
The class constructor.
|
|
The class destructor.
|
|
Decides if a visitor is allowed to visit the object. Traverses the structure in preorder.
Reimplemented from IAEX::Cell. |
|
Reimplemented from IAEX::Cell. |
|
|
|
hide() or show() the child cells of the groupcell, depending on the state of the groupcell (opened or closed). This must be done because otherwise qt layout will compress all child and display them in the smaller height set went the groupcell is closed.
|
|
calculates the height of the cellgroup.
|
|
Reimplemented from IAEX::Cell. |
|
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 cellgroups so this function always return false.
Implements IAEX::Cell. |
|
open and close the groupcell when double click on the treeview
|
|
This function hides/shows the content of a groupcell.
Reimplemented from IAEX::Cell. |
|
Set the cells style. If the cell is closed, set style on the first child (the cell thats displayed).
Reimplemented from IAEX::Cell. |
|
Return the cells style. If the cell is closed, style is returned from the first child (the cell thats displayed). If the cell is opened this function returns a new CellStyle with the name 'cellgroup';.
Reimplemented from IAEX::Cell. |