Title block templates: improved span management

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1636 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-04-08 20:51:40 +00:00
parent e3eaed2314
commit ba7e030d9f
7 changed files with 112 additions and 53 deletions

View File

@@ -30,6 +30,11 @@ class TitleBlockCell {
TextCell,
LogoCell
};
enum TemplateCellSpanState {
Disabled, ///< the cell span parameters should not applied at all
Enabled, ///< the cell span parameters should be applied without restriction
Restricted ///< the cell span parameters should be applied with some restrictions
};
// Constructor, destructor
public:
@@ -58,6 +63,9 @@ class TitleBlockCell {
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