mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user