![]() |
QElectroTech
0.8-dev
|
#include <titleblockcell.h>

Public Types | |
| enum | TemplateCellType { EmptyCell, TextCell, LogoCell } |
| enum | TemplateCellSpanState { Disabled, Enabled, Restricted } |
Public Member Functions | |
| TitleBlockCell () | |
| virtual | ~TitleBlockCell () |
| TemplateCellType | type () const |
| int | horizontalAlign () const |
| int | verticalAlign () const |
| void | setAttribute (const QString &, const QVariant &) |
| QVariant | attribute (const QString &) |
| bool | spans () const |
| void | loadContentFromCell (const TitleBlockCell &) |
| void | loadContentFromXml (const QDomElement &) |
| void | saveContentToXml (QDomElement &) |
| TitleBlockCell::saveContentToXml. More... | |
Static Public Member Functions | |
| static QString | attributeName (const QString &) |
Public Attributes | |
| TemplateCellType | cell_type |
| Cell type: empty, text, logo? More... | |
| int | num_row |
| y coordinate of the cell within its parent title block template grid More... | |
| int | num_col |
| x coordinate of the cell within its parent title block template grid More... | |
| int | row_span |
| number of extra rows spanned by this cell More... | |
| int | col_span |
| number of extra columns spanned by this cell More... | |
| int | span_state |
| how should row_span and col_span be applied given other cells in the parent template More... | |
| int | applied_row_span |
| Actually applied row span. More... | |
| int | applied_col_span |
| Actually applied column span. More... | |
| TitleBlockCell * | spanner_cell |
| Cell spanning this cell, if any. More... | |
| QString | value_name |
| name of the cell; not displayed when the title block template is rendered More... | |
| NamesList | value |
| Text displayed by the cell. More... | |
| NamesList | label |
| Label displayed by the cell. More... | |
| bool | display_label |
| Whether to display the label or not. More... | |
| int | alignment |
| Where the label+text should be displayed within the visual cell. More... | |
| int | font_size |
| Font size the text should be rendered with. More... | |
| bool | hadjust |
| Whether to reduce the font size if the text does not fit in the cell. More... | |
| QString | logo_reference |
| Logo displayed by this cell, it it is a logo cell. More... | |
This class is a container for the various parameters of a titleblock cell
| TitleBlockCell::TitleBlockCell | ( | ) |
Constructor
|
virtual |
Destructor
| QVariant TitleBlockCell::attribute | ( | const QString & | attribute | ) |
| attribute | Name of the cell attribute which value is wanted |


|
static |
| attribute | Name of the cell attribute which we want the human, translated name |


| int TitleBlockCell::horizontalAlign | ( | ) | const |
| void TitleBlockCell::loadContentFromCell | ( | const TitleBlockCell & | other_cell | ) |
Copy the content of another cell.
| other_cell | Another cell |
| void TitleBlockCell::loadContentFromXml | ( | const QDomElement & | cell_element | ) |
| cell_element | XML element from which cell content will be read |


| void TitleBlockCell::saveContentToXml | ( | QDomElement & | cell_elmt | ) |
TitleBlockCell::saveContentToXml.
| cell_elmt | : XML element to which cell content will be exported |

| void TitleBlockCell::setAttribute | ( | const QString & | attribute, |
| const QVariant & | attr_value | ||
| ) |
Set the new value attr_value to the attribute named attribute.
| attribute | Name of the cell attribute which value is to be changed |
| attr_value | New value of the changed attribute |

| bool TitleBlockCell::spans | ( | ) | const |
| TitleBlockCell::TemplateCellType TitleBlockCell::type | ( | ) | const |

| int TitleBlockCell::verticalAlign | ( | ) | const |
| int TitleBlockCell::alignment |
Where the label+text should be displayed within the visual cell.
| int TitleBlockCell::applied_col_span |
Actually applied column span.
| int TitleBlockCell::applied_row_span |
Actually applied row span.
| TemplateCellType TitleBlockCell::cell_type |
Cell type: empty, text, logo?
| int TitleBlockCell::col_span |
number of extra columns spanned by this cell
| bool TitleBlockCell::display_label |
Whether to display the label or not.
| int TitleBlockCell::font_size |
Font size the text should be rendered with.
| bool TitleBlockCell::hadjust |
Whether to reduce the font size if the text does not fit in the cell.
| NamesList TitleBlockCell::label |
Label displayed by the cell.
| QString TitleBlockCell::logo_reference |
Logo displayed by this cell, it it is a logo cell.
| int TitleBlockCell::num_col |
x coordinate of the cell within its parent title block template grid
| int TitleBlockCell::num_row |
y coordinate of the cell within its parent title block template grid
| int TitleBlockCell::row_span |
number of extra rows spanned by this cell
| int TitleBlockCell::span_state |
how should row_span and col_span be applied given other cells in the parent template
| TitleBlockCell* TitleBlockCell::spanner_cell |
Cell spanning this cell, if any.
| NamesList TitleBlockCell::value |
Text displayed by the cell.
| QString TitleBlockCell::value_name |
name of the cell; not displayed when the title block template is rendered
1.8.18