Added a combo box in the title block properties to choose the template that will render the title block.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1134 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2010-12-24 23:35:40 +00:00
parent 649e3de3e6
commit aeae9a9f89
11 changed files with 140 additions and 37 deletions

View File

@@ -66,6 +66,10 @@ bool TitleBlockTemplate::loadFromXmlElement(const QDomElement &xml_element) {
if (xml_element.tagName() != "titleblocktemplate") {
return(false);
}
if (!xml_element.hasAttribute("name")) {
return(false);
}
name_ = xml_element.attribute("name");
loadLogos(xml_element, true);
loadGrid(xml_element);
@@ -421,6 +425,13 @@ QString TitleBlockTemplate::toString() const {
return(str);
}
/**
@return the name of this template
*/
QString TitleBlockTemplate::name() const {
return(name_);
}
/**
@param total_width The total width of the titleblock to render
@return the list of the columns widths for this rendering