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

@@ -43,7 +43,8 @@ bool TitleBlockProperties::operator==(const TitleBlockProperties &ip) {
ip.author == author &&\
ip.date == date &&\
ip.filename == filename &&\
ip.folio == folio
ip.folio == folio &&\
ip.template_name == template_name
);
}
@@ -66,6 +67,9 @@ void TitleBlockProperties::toXml(QDomElement &e) const {
e.setAttribute("filename", filename);
e.setAttribute("folio", folio);
e.setAttribute("date", exportDate());
if (!template_name.isEmpty()) {
e.setAttribute("titleblocktemplate", template_name);
}
}
/**
@@ -78,6 +82,7 @@ void TitleBlockProperties::fromXml(QDomElement &e) {
if (e.hasAttribute("filename")) filename = e.attribute("filename");
if (e.hasAttribute("folio")) folio = e.attribute("folio");
if (e.hasAttribute("date")) setDateFromString(e.attribute("date"));
if (e.hasAttribute("titleblocktemplate")) template_name = e.attribute("titleblocktemplate");
}
/**