The title block template editor now supports pasting multiple cells.

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1597 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavier
2012-03-25 16:34:53 +00:00
parent e31a8a375e
commit 8b1e7904c4
6 changed files with 181 additions and 18 deletions

View File

@@ -78,6 +78,7 @@ class TitleBlockTemplateCommand : public QUndoCommand {
TitleBlockTemplateView *view() const;
void setView(TitleBlockTemplateView *);
void refreshView();
void refreshLayout();
// attributes
protected:
@@ -300,6 +301,8 @@ class PasteTemplateCellsCommand : public TitleBlockTemplateCommand {
// attributes
public:
/// Spans before operation
QHash<TitleBlockCell *, QPair<int, int> > spans_before_;
/// Pasted cells
QHash<TitleBlockCell *, TitleBlockCell> pasted_cells_;
/// Existing cells impacted by the paste operation