|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef TITLEBLOCK_CELL_H
19 #define TITLEBLOCK_CELL_H
bool hadjust
Whether to reduce the font size if the text does not fit in the cell.
Definition: titleblockcell.h:75
void saveContentToXml(QDomElement &)
TitleBlockCell::saveContentToXml.
Definition: titleblockcell.cpp:223
int num_col
x coordinate of the cell within its parent title block template grid
Definition: titleblockcell.h:62
int verticalAlign() const
Definition: titleblockcell.cpp:43
int horizontalAlign() const
Definition: titleblockcell.cpp:36
void loadContentFromXml(const QDomElement &)
Definition: titleblockcell.cpp:157
TemplateCellType
Definition: titleblockcell.h:28
@ TextCell
Definition: titleblockcell.h:30
QVariant attribute(const QString &)
Definition: titleblockcell.cpp:81
static QFont fontForCell(const TitleBlockCell &)
TitleBlockTemplate::fontForCell.
Definition: titleblocktemplate.cpp:80
void loadContentFromCell(const TitleBlockCell &)
Definition: titleblockcell.cpp:142
NamesList value
Text displayed by the cell.
Definition: titleblockcell.h:70
@ Disabled
the cell span parameters should not applied at all
Definition: titleblockcell.h:34
@ EmptyCell
Definition: titleblockcell.h:29
TemplateCellType type() const
Definition: titleblockcell.cpp:29
int span_state
how should row_span and col_span be applied given other cells in the parent template
Definition: titleblockcell.h:65
NamesList label
Label displayed by the cell.
Definition: titleblockcell.h:71
int col_span
number of extra columns spanned by this cell
Definition: titleblockcell.h:64
QString name(const QString &=QString()) const
Definition: nameslist.cpp:231
bool display_label
Whether to display the label or not.
Definition: titleblockcell.h:72
@ Enabled
the cell span parameters should be applied without restriction
Definition: titleblockcell.h:35
int num_row
y coordinate of the cell within its parent title block template grid
Definition: titleblockcell.h:61
void setAttribute(const QString &, const QVariant &)
Definition: titleblockcell.cpp:52
@ LogoCell
Definition: titleblockcell.h:31
void fromXml(const QDomElement &, const QHash< QString, QString > &=QHash< QString, QString >())
Definition: nameslist.cpp:113
Definition: nameslist.h:30
int row_span
number of extra rows spanned by this cell
Definition: titleblockcell.h:63
static QString attributeName(const QString &)
Definition: titleblockcell.cpp:108
TitleBlockCell * spanner_cell
Cell spanning this cell, if any.
Definition: titleblockcell.h:68
bool spans() const
Definition: titleblockcell.cpp:134
bool attributeIsAnInteger(const QDomElement &, const QString &, int *=nullptr)
Definition: qet.cpp:210
TemplateCellType cell_type
Cell type: empty, text, logo?
Definition: titleblockcell.h:60
QString value_name
name of the cell; not displayed when the title block template is rendered
Definition: titleblockcell.h:69
TitleBlockCell()
Definition: titleblockcell.cpp:6
int applied_row_span
Actually applied row span.
Definition: titleblockcell.h:66
TemplateCellSpanState
Definition: titleblockcell.h:33
@ Restricted
the cell span parameters should be applied with some restrictions
Definition: titleblockcell.h:36
int font_size
Font size the text should be rendered with.
Definition: titleblockcell.h:74
QDomElement toXml(QDomDocument &, const QHash< QString, QString > &=QHash< QString, QString >()) const
Definition: nameslist.cpp:169
QIcon tr
Definition: qeticons.cpp:206
int applied_col_span
Actually applied column span.
Definition: titleblockcell.h:67
virtual ~TitleBlockCell()
Definition: titleblockcell.cpp:23
QString logo_reference
Logo displayed by this cell, it it is a logo cell.
Definition: titleblockcell.h:76
Definition: titleblockcell.h:26
int alignment
Where the label+text should be displayed within the visual cell.
Definition: titleblockcell.h:73