![]() |
QElectroTech
0.8-dev
|
#include <templatecommands.h>


Public Member Functions | |
| PasteTemplateCellsCommand (TitleBlockTemplate *, QUndoCommand *=nullptr) | |
| ~PasteTemplateCellsCommand () override | |
| void | undo () override |
| void | redo () override |
| virtual void | addPastedCell (TitleBlockCell *, const TitleBlockCell &) |
| virtual void | addErasedCell (TitleBlockCell *, const TitleBlockCell &) |
| virtual void | addCell (TitleBlockCell *, const TitleBlockCell &, const TitleBlockCell &) |
Public Member Functions inherited from TitleBlockTemplateCommand | |
| TitleBlockTemplateCommand (TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr) | |
| ~TitleBlockTemplateCommand () override | |
| TitleBlockTemplate * | titleBlockTemplate () const |
| void | setTitleBlockTemplate (TitleBlockTemplate *) |
| TitleBlockTemplateView * | view () const |
| void | setView (TitleBlockTemplateView *) |
| void | refreshView () |
| void | refreshLayout () |
Public Attributes | |
| QHash< TitleBlockCell *, QPair< int, int > > | spans_before_ |
| Spans before operation. More... | |
| QHash< TitleBlockCell *, TitleBlockCell > | pasted_cells_ |
| Pasted cells. More... | |
| QHash< TitleBlockCell *, TitleBlockCell > | erased_cells_ |
| Existing cells impacted by the paste operation. More... | |
Protected Member Functions | |
| virtual void | updateText () |
Private Member Functions | |
| PasteTemplateCellsCommand (const PasteTemplateCellsCommand &) | |
Additional Inherited Members | |
Protected Attributes inherited from TitleBlockTemplateCommand | |
| TitleBlockTemplate * | tbtemplate_ |
| Modified TitleBlock Template. More... | |
| TitleBlockTemplateView * | view_ |
| This class may trigger a view update. More... | |
This class represents the action of pasting a cells set.
| PasteTemplateCellsCommand::PasteTemplateCellsCommand | ( | TitleBlockTemplate * | tb_template, |
| QUndoCommand * | parent = nullptr |
||
| ) |
Constructor
| tb_template | Changed title block template |
| parent | Parent command |
|
override |
Destructor
|
private |
|
virtual |
This is a convenience function equivalent to: addErasedCell(cell, before) addPastedCell(cell, after)

|
virtual |
| cell | Pointer to the cell impacted by te paste operation |
| former_cell_content | Content of the cell before the paste operation |


|
virtual |
| cell | Pointer to the cell impacted by te paste operation |
| new_cell_content | Content pasted to the cell |

|
override |
Redo a paste action.

|
override |
Undo a paste action.

|
protectedvirtual |
Update the label describing this command

| QHash<TitleBlockCell *, TitleBlockCell> PasteTemplateCellsCommand::erased_cells_ |
Existing cells impacted by the paste operation.
| QHash<TitleBlockCell *, TitleBlockCell> PasteTemplateCellsCommand::pasted_cells_ |
Pasted cells.
| QHash<TitleBlockCell *, QPair<int, int> > PasteTemplateCellsCommand::spans_before_ |
Spans before operation.
1.8.18