Title block templates now embed a free field for extra information.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1541 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-03-02 17:55:27 +00:00
parent fac0fea239
commit 6bdd166e57
6 changed files with 160 additions and 4 deletions

View File

@@ -222,4 +222,30 @@ class SplitCellsCommand : public TitleBlockTemplateCommand {
int col_span_before_; ///< the col_span attribute of the spanning cell after the merge
};
/**
This class represents the action of changing extra information of a title
block template.
*/
class ChangeTemplateInformationsCommand : public QUndoCommand {
// constructors, destructor
public:
ChangeTemplateInformationsCommand(TitleBlockTemplate *, const QString &, const QString &, QUndoCommand * = 0);
virtual ~ChangeTemplateInformationsCommand();
private:
ChangeTemplateInformationsCommand(const ChangeTemplateInformationsCommand &);
// methods
public:
virtual void undo();
virtual void redo();
// attributes
private:
/// chnged title block template
TitleBlockTemplate *tbtemplate_;
/// Informations before they are modified
QString old_information_;
/// Informations after they were modified
QString new_information_;
};
#endif