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