QElectroTech  0.8-dev
templatecommands.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef TITLEBLOCK_SLASH_TEMPLATE_COMMANDS_H
19 #define TITLEBLOCK_SLASH_TEMPLATE_COMMANDS_H
20 #define MODIFY_TITLE_BLOCK_CELL_COMMAND_ID 6378
21 #include <QtCore>
22 #include <QUndoCommand>
23 #include "dimension.h"
24 #include "templatecellsset.h"
25 #include "titleblockcell.h"
27 class TitleBlockTemplate;
28 
33 class ModifyTitleBlockCellCommand : public QUndoCommand {
34  // constructor, destructor
35  public:
36  ModifyTitleBlockCellCommand(TitleBlockCell *, QUndoCommand * = nullptr);
38  private:
40 
41  // methods
42  public:
43  int id() const override;
44  bool mergeWith(const QUndoCommand *) override;
45  void undo() override;
46  void redo() override;
47  TitleBlockCell *cell() const;
48  void setCell(TitleBlockCell *);
51  void clear();
52  void addModification(const QString &, const QVariant &, bool = false);
53 
54  // attributes
55  private:
58  QHash<QString, QVariant> old_values_;
59  QHash<QString, QVariant> new_values_;
60 };
61 
66 class TitleBlockTemplateCommand : public QUndoCommand {
67  // Constructors, destructor
68  public:
69  TitleBlockTemplateCommand(TitleBlockTemplate * = nullptr, QUndoCommand * = nullptr);
70  ~TitleBlockTemplateCommand() override;
71  private:
73 
74  // methods
75  public:
80  void refreshView();
81  void refreshLayout();
82 
83  // attributes
84  protected:
87 };
88 
94  // static factory methods
95  public:
100 
101  // Constructors, destructor
102  public:
103  ModifyTemplateGridCommand(TitleBlockTemplate * = nullptr, QUndoCommand * = nullptr);
104  ~ModifyTemplateGridCommand() override;
105  private:
107 
108  // methods
109  public:
110  int index() const;
111  void setIndex(int);
112  QList<TitleBlockCell *> cells() const;
113  void setCells(const QList<TitleBlockCell *> &);
115  void setDimension(const TitleBlockDimension &);
116  int type() const;
117  void setType(bool);
118  bool isInsertion() const;
119  void setInsertion(bool);
120  void undo() override;
121  void redo() override;
122 
123  private:
124  void updateText();
125  void apply(bool = false);
126 
127  // attributes
128  private:
129  int index_;
130  QList<TitleBlockCell *> cells_;
131  bool type_;
133  bool insertion_;
134 };
135 
141  // Constructor, destructor
142  public:
143  ModifyTemplateDimension(TitleBlockTemplate * = nullptr, QUndoCommand * = nullptr);
144  ~ModifyTemplateDimension() override;
145  private:
147 
148  // methods
149  public:
150  int index() const;
151  void setIndex(int);
152  int type() const;
153  void setType(bool);
158  void undo() override;
159  void redo() override;
160 
161  private:
162  void updateText();
163  void apply(const TitleBlockDimension &);
164 
165  // attributes
166  private:
167  int index_;
168  bool type_;
171 };
172 
173 
178  // Constructor, destructor
179  public:
180  MergeCellsCommand(const TitleBlockTemplateCellsSet &, TitleBlockTemplate * = nullptr, QUndoCommand * = nullptr);
181  ~MergeCellsCommand() override;
182 
183  // methods
184  public:
186  bool isValid() const;
187  void undo() override;
188  void redo() override;
189  private:
191 
192  // attributes
193  private:
198  QHash<TitleBlockCell *, TitleBlockCell *> spanner_cells_before_merge_;
206 };
207 
212  // Constructor, destructor
213  public:
214  SplitCellsCommand(const TitleBlockTemplateCellsSet &, TitleBlockTemplate * = nullptr, QUndoCommand * = nullptr);
215  ~SplitCellsCommand() override;
216 
217  // methods
218  public:
219  static bool canSplit(const TitleBlockTemplateCellsSet &splitted_cells, TitleBlockTemplate *tbtemplate);
220  bool isValid() const;
221  void undo() override;
222  void redo() override;
223 
224  // attributes
225  private:
227  QSet<TitleBlockCell *> spanned_cells_;
233 };
234 
239 class ChangeTemplateInformationsCommand : public QUndoCommand {
240  // constructors, destructor
241  public:
242  ChangeTemplateInformationsCommand(TitleBlockTemplate *, const QString &, const QString &, QUndoCommand * = nullptr);
244  private:
246 
247  // methods
248  public:
249  void undo() override;
250  void redo() override;
251 
252  // attributes
253  private:
260 };
261 
266  // constructors, destructor
267  public:
268  CutTemplateCellsCommand(TitleBlockTemplate *, QUndoCommand * = nullptr);
269  ~CutTemplateCellsCommand() override;
270  private:
272 
273  // methods
274  public:
275  void undo() override;
276  void redo() override;
277  virtual void setCutCells(const QList<TitleBlockCell *> &);
278  protected:
279  virtual void updateText();
280 
281  // attributes
282  public:
284  QHash<TitleBlockCell *, TitleBlockCell::TemplateCellType> cut_cells_;
285 };
286 
291  // constructors, destructor
292  public:
293  PasteTemplateCellsCommand(TitleBlockTemplate *, QUndoCommand * = nullptr);
294  ~PasteTemplateCellsCommand() override;
295  private:
297 
298  // methods
299  public:
300  void undo() override;
301  void redo() override;
302  virtual void addPastedCell(TitleBlockCell *, const TitleBlockCell &);
303  virtual void addErasedCell(TitleBlockCell *, const TitleBlockCell &);
304  virtual void addCell(TitleBlockCell *, const TitleBlockCell &, const TitleBlockCell &);
305  protected:
306  virtual void updateText();
307 
308  // attributes
309  public:
311  QHash<TitleBlockCell *, QPair<int, int> > spans_before_;
313  QHash<TitleBlockCell *, TitleBlockCell> pasted_cells_;
315  QHash<TitleBlockCell *, TitleBlockCell> erased_cells_;
316 };
317 #endif
ModifyTemplateGridCommand::dimension_
TitleBlockDimension dimension_
width/height of the column/row, which interpretation depends on type_
Definition: templatecommands.h:132
MergeCellsCommand::row_span_after_
int row_span_after_
the row_span attribute of the spanning cell after the merge
Definition: templatecommands.h:204
ModifyTemplateGridCommand::setIndex
void setIndex(int)
Definition: templatecommands.cpp:330
ModifyTemplateDimension::redo
void redo() override
Definition: templatecommands.cpp:547
ModifyTitleBlockCellCommand::setView
void setView(TitleBlockTemplateView *)
Definition: templatecommands.cpp:118
SplitCellsCommand::redo
void redo() override
Definition: templatecommands.cpp:830
PasteTemplateCellsCommand::erased_cells_
QHash< TitleBlockCell *, TitleBlockCell > erased_cells_
Existing cells impacted by the paste operation.
Definition: templatecommands.h:315
ModifyTemplateGridCommand::deleteRow
static ModifyTemplateGridCommand * deleteRow(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:267
TitleBlockTemplateCommand::~TitleBlockTemplateCommand
~TitleBlockTemplateCommand() override
Definition: templatecommands.cpp:169
CutTemplateCellsCommand::undo
void undo() override
Definition: templatecommands.cpp:900
PasteTemplateCellsCommand::updateText
virtual void updateText()
Definition: templatecommands.cpp:951
ChangeTemplateInformationsCommand::undo
void undo() override
Definition: templatecommands.cpp:871
ModifyTemplateDimension::apply
void apply(const TitleBlockDimension &)
Definition: templatecommands.cpp:566
PasteTemplateCellsCommand
Definition: templatecommands.h:290
ModifyTemplateDimension::~ModifyTemplateDimension
~ModifyTemplateDimension() override
Definition: templatecommands.cpp:475
TitleBlockDimension::value
int value
Numeric value.
Definition: dimension.h:34
ModifyTemplateDimension
Definition: templatecommands.h:140
ModifyTemplateDimension::dimensionBefore
TitleBlockDimension dimensionBefore() const
Definition: templatecommands.cpp:512
TitleBlockTemplateCommand::view
TitleBlockTemplateView * view() const
Definition: templatecommands.cpp:190
ModifyTemplateDimension::dimensionAfter
TitleBlockDimension dimensionAfter() const
Definition: templatecommands.cpp:526
ModifyTitleBlockCellCommand::id
int id() const override
Definition: templatecommands.cpp:48
CutTemplateCellsCommand::updateText
virtual void updateText()
Definition: templatecommands.cpp:927
ModifyTemplateGridCommand::insertion_
bool insertion_
Definition: templatecommands.h:133
ModifyTemplateGridCommand::type_
bool type_
true for a row, false for a column
Definition: templatecommands.h:131
ModifyTitleBlockCellCommand::clear
void clear()
Definition: templatecommands.cpp:125
CutTemplateCellsCommand::redo
void redo() override
Definition: templatecommands.cpp:910
ModifyTemplateDimension::type
int type() const
Definition: templatecommands.cpp:496
MergeCellsCommand::spanning_cell_
TitleBlockCell * spanning_cell_
the cell spanning over the other ones
Definition: templatecommands.h:195
MergeCellsCommand::row_span_before_
int row_span_before_
the row_span attribute of the spanning cell before the merge
Definition: templatecommands.h:199
ModifyTitleBlockCellCommand::view_
TitleBlockTemplateView * view_
This class may trigger a view update.
Definition: templatecommands.h:56
ChangeTemplateInformationsCommand::old_information_
QString old_information_
Informations before they are modified.
Definition: templatecommands.h:257
ChangeTemplateInformationsCommand::redo
void redo() override
Definition: templatecommands.cpp:879
ModifyTitleBlockCellCommand::undo
void undo() override
Definition: templatecommands.cpp:73
ModifyTitleBlockCellCommand::new_values_
QHash< QString, QVariant > new_values_
values after the cell has been modified
Definition: templatecommands.h:59
ModifyTemplateGridCommand::ModifyTemplateGridCommand
ModifyTemplateGridCommand(TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:303
SplitCellsCommand::spanning_cell_
TitleBlockCell * spanning_cell_
the cell spanning over the other ones
Definition: templatecommands.h:226
ChangeTemplateInformationsCommand::ChangeTemplateInformationsCommand
ChangeTemplateInformationsCommand(TitleBlockTemplate *, const QString &, const QString &, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:854
CutTemplateCellsCommand::setCutCells
virtual void setCutCells(const QList< TitleBlockCell * > &)
Definition: templatecommands.cpp:917
TitleBlockTemplateView
Definition: templateview.h:32
ModifyTitleBlockCellCommand::~ModifyTitleBlockCellCommand
~ModifyTitleBlockCellCommand() override
Definition: templatecommands.cpp:41
dimension.h
TitleBlockTemplateCommand::TitleBlockTemplateCommand
TitleBlockTemplateCommand(const TitleBlockTemplateCommand &)
SplitCellsCommand::col_span_before_
int col_span_before_
the col_span attribute of the spanning cell before splitting
Definition: templatecommands.h:229
SplitCellsCommand::applied_col_span_before_
int applied_col_span_before_
the applied_col_span attribute of the spanning cell before splitting
Definition: templatecommands.h:231
TitleBlockTemplateCellsSet::cells
QSet< TitleBlockCell * > cells(bool=true) const
Definition: templatecellsset.cpp:191
ModifyTemplateDimension::ModifyTemplateDimension
ModifyTemplateDimension(TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:463
TitleBlockTemplateVisualCell
Definition: templatevisualcell.h:29
ModifyTitleBlockCellCommand::ModifyTitleBlockCellCommand
ModifyTitleBlockCellCommand(TitleBlockCell *, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:31
ModifyTemplateDimension::undo
void undo() override
Definition: templatecommands.cpp:540
ModifyTitleBlockCellCommand::modified_cell_
TitleBlockCell * modified_cell_
modified cell
Definition: templatecommands.h:57
ModifyTemplateGridCommand::redo
void redo() override
Definition: templatecommands.cpp:405
ModifyTemplateGridCommand::index
int index() const
Definition: templatecommands.cpp:322
TitleBlockTemplateCommand::TitleBlockTemplateCommand
TitleBlockTemplateCommand(TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:159
ChangeTemplateInformationsCommand
Definition: templatecommands.h:239
ModifyTemplateDimension::setType
void setType(bool)
Definition: templatecommands.cpp:504
ModifyTitleBlockCellCommand::old_values_
QHash< QString, QVariant > old_values_
values before the cell is modified
Definition: templatecommands.h:58
TitleBlockDimension
Definition: dimension.h:26
ModifyTemplateGridCommand::setDimension
void setDimension(const TitleBlockDimension &)
Definition: templatecommands.cpp:360
MergeCellsCommand::~MergeCellsCommand
~MergeCellsCommand() override
Definition: templatecommands.cpp:634
SplitCellsCommand::canSplit
static bool canSplit(const TitleBlockTemplateCellsSet &splitted_cells, TitleBlockTemplate *tbtemplate)
Definition: templatecommands.cpp:782
MergeCellsCommand::isValid
bool isValid() const
Definition: templatecommands.cpp:661
SplitCellsCommand::span_state_before_
int span_state_before_
the span_state attribute of the spanning cell before splitting
Definition: templatecommands.h:232
MergeCellsCommand::spanner_cells_before_merge_
QHash< TitleBlockCell *, TitleBlockCell * > spanner_cells_before_merge_
Definition: templatecommands.h:198
TitleBlockTemplate
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
templatecommands.h
CutTemplateCellsCommand::CutTemplateCellsCommand
CutTemplateCellsCommand(TitleBlockTemplate *, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:886
ModifyTemplateGridCommand::cells
QList< TitleBlockCell * > cells() const
Definition: templatecommands.cpp:337
ModifyTemplateDimension::updateText
void updateText()
Definition: templatecommands.cpp:554
ModifyTemplateGridCommand::isInsertion
bool isInsertion() const
Definition: templatecommands.cpp:383
ModifyTemplateGridCommand::cells_
QList< TitleBlockCell * > cells_
Cells composing the inserted/deleted row/column.
Definition: templatecommands.h:130
ModifyTitleBlockCellCommand
Definition: templatecommands.h:33
ModifyTemplateGridCommand::dimension
TitleBlockDimension dimension() const
Definition: templatecommands.cpp:352
ModifyTemplateDimension::before_
TitleBlockDimension before_
Size of the row/column before it is changed.
Definition: templatecommands.h:169
ModifyTemplateGridCommand::undo
void undo() override
Definition: templatecommands.cpp:398
MergeCellsCommand::col_span_before_
int col_span_before_
the col_span attribute of the spanning cell before the merge
Definition: templatecommands.h:200
ModifyTemplateGridCommand::addColumn
static ModifyTemplateGridCommand * addColumn(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:246
TITLEBLOCK_DEFAULT_COL_WIDTH
#define TITLEBLOCK_DEFAULT_COL_WIDTH
Definition: templatecommands.cpp:24
TitleBlockCell::EmptyCell
@ EmptyCell
Definition: titleblockcell.h:29
ModifyTitleBlockCellCommand::ModifyTitleBlockCellCommand
ModifyTitleBlockCellCommand(const ModifyTitleBlockCellCommand &)
PasteTemplateCellsCommand::addPastedCell
virtual void addPastedCell(TitleBlockCell *, const TitleBlockCell &)
Definition: templatecommands.cpp:1040
MergeCellsCommand::MergeCellsCommand
MergeCellsCommand(const TitleBlockTemplateCellsSet &, TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:589
TitleBlockTemplateCommand::refreshLayout
void refreshLayout()
Definition: templatecommands.cpp:213
TitleBlockTemplateCommand::view_
TitleBlockTemplateView * view_
This class may trigger a view update.
Definition: templatecommands.h:86
SplitCellsCommand::~SplitCellsCommand
~SplitCellsCommand() override
Definition: templatecommands.cpp:774
MergeCellsCommand::applied_row_span_before_
int applied_row_span_before_
the applied_row_span attribute of the spanning cell before the merge
Definition: templatecommands.h:201
titleblockcell.h
PasteTemplateCellsCommand::PasteTemplateCellsCommand
PasteTemplateCellsCommand(TitleBlockTemplate *, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:937
MergeCellsCommand::canMerge
static bool canMerge(const TitleBlockTemplateCellsSet &, TitleBlockTemplate *)
Definition: templatecommands.cpp:642
ModifyTemplateDimension::setDimensionAfter
void setDimensionAfter(const TitleBlockDimension &)
Definition: templatecommands.cpp:533
ChangeTemplateInformationsCommand::new_information_
QString new_information_
Informations after they were modified.
Definition: templatecommands.h:259
TitleBlockCell::col_span
int col_span
number of extra columns spanned by this cell
Definition: titleblockcell.h:64
TITLEBLOCK_DEFAULT_ROW_HEIGHT
#define TITLEBLOCK_DEFAULT_ROW_HEIGHT
Definition: templatecommands.cpp:23
ModifyTemplateDimension::type_
bool type_
true for a row, false for a column
Definition: templatecommands.h:168
ModifyTemplateDimension::index_
int index_
Index of the resized row/column.
Definition: templatecommands.h:167
MergeCellsCommand::applied_col_span_before_
int applied_col_span_before_
the applied_col_span attribute of the spanning cell before the merge
Definition: templatecommands.h:202
CutTemplateCellsCommand::~CutTemplateCellsCommand
~CutTemplateCellsCommand() override
Definition: templatecommands.cpp:894
TitleBlockTemplateCommand::titleBlockTemplate
TitleBlockTemplate * titleBlockTemplate() const
Definition: templatecommands.cpp:175
ModifyTemplateGridCommand::addRow
static ModifyTemplateGridCommand * addRow(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:225
TitleBlockTemplateCommand::setView
void setView(TitleBlockTemplateView *)
Definition: templatecommands.cpp:198
templateview.h
templatecellsset.h
SplitCellsCommand::undo
void undo() override
Definition: templatecommands.cpp:809
PasteTemplateCellsCommand::redo
void redo() override
Definition: templatecommands.cpp:976
ModifyTemplateGridCommand::setInsertion
void setInsertion(bool)
Definition: templatecommands.cpp:390
PasteTemplateCellsCommand::undo
void undo() override
Definition: templatecommands.cpp:958
TitleBlockCell::Enabled
@ Enabled
the cell span parameters should be applied without restriction
Definition: titleblockcell.h:35
MergeCellsCommand
Definition: templatecommands.h:177
ModifyTemplateGridCommand::updateText
void updateText()
Definition: templatecommands.cpp:412
CutTemplateCellsCommand
Definition: templatecommands.h:265
PasteTemplateCellsCommand::spans_before_
QHash< TitleBlockCell *, QPair< int, int > > spans_before_
Spans before operation.
Definition: templatecommands.h:311
SplitCellsCommand
Definition: templatecommands.h:211
ModifyTitleBlockCellCommand::setCell
void setCell(TitleBlockCell *)
Definition: templatecommands.cpp:103
MergeCellsCommand::span_state_before_
int span_state_before_
the span_state attribute of the spanning cell before the merge
Definition: templatecommands.h:203
ModifyTemplateGridCommand::apply
void apply(bool=false)
Definition: templatecommands.cpp:433
SplitCellsCommand::applied_row_span_before_
int applied_row_span_before_
the applied_row_span attribute of the spanning cell before splitting
Definition: templatecommands.h:230
ModifyTitleBlockCellCommand::cell
TitleBlockCell * cell() const
Definition: templatecommands.cpp:95
TitleBlockTemplateCommand::refreshView
void refreshView()
Definition: templatecommands.cpp:205
MergeCellsCommand::getBottomRightCell
static TitleBlockCell * getBottomRightCell(const TitleBlockTemplateCellsSet &)
Definition: templatecommands.cpp:713
ModifyTitleBlockCellCommand::redo
void redo() override
Definition: templatecommands.cpp:84
ModifyTemplateDimension::setDimensionBefore
void setDimensionBefore(const TitleBlockDimension &)
Definition: templatecommands.cpp:519
TitleBlockTemplateCommand::tbtemplate_
TitleBlockTemplate * tbtemplate_
Modified TitleBlock Template.
Definition: templatecommands.h:85
ModifyTemplateGridCommand
Definition: templatecommands.h:93
SplitCellsCommand::isValid
bool isValid() const
Definition: templatecommands.cpp:801
ModifyTemplateGridCommand::setType
void setType(bool)
Definition: templatecommands.cpp:375
TitleBlockCell::row_span
int row_span
number of extra rows spanned by this cell
Definition: titleblockcell.h:63
TitleBlockTemplateCellsSet::topLeftCell
TitleBlockTemplateVisualCell * topLeftCell() const
Definition: templatecellsset.cpp:98
ModifyTemplateGridCommand::~ModifyTemplateGridCommand
~ModifyTemplateGridCommand() override
Definition: templatecommands.cpp:316
PasteTemplateCellsCommand::addErasedCell
virtual void addErasedCell(TitleBlockCell *, const TitleBlockCell &)
Definition: templatecommands.cpp:1048
ModifyTemplateDimension::setIndex
void setIndex(int)
Definition: templatecommands.cpp:489
TitleBlockTemplateCellsSet::bottomRightCell
TitleBlockTemplateVisualCell * bottomRightCell() const
Definition: templatecellsset.cpp:129
CutTemplateCellsCommand::cut_cells_
QHash< TitleBlockCell *, TitleBlockCell::TemplateCellType > cut_cells_
Cut cells.
Definition: templatecommands.h:284
ModifyTemplateGridCommand::setCells
void setCells(const QList< TitleBlockCell * > &)
Definition: templatecommands.cpp:345
ModifyTemplateGridCommand::index_
int index_
Index of the inserted/deleted row/column.
Definition: templatecommands.h:129
PasteTemplateCellsCommand::pasted_cells_
QHash< TitleBlockCell *, TitleBlockCell > pasted_cells_
Pasted cells.
Definition: templatecommands.h:313
PasteTemplateCellsCommand::addCell
virtual void addCell(TitleBlockCell *, const TitleBlockCell &, const TitleBlockCell &)
Definition: templatecommands.cpp:1058
ModifyTemplateGridCommand::type
int type() const
Definition: templatecommands.cpp:367
ModifyTemplateDimension::index
int index() const
Definition: templatecommands.cpp:481
MergeCellsCommand::redo
void redo() override
Definition: templatecommands.cpp:690
MergeCellsCommand::undo
void undo() override
Definition: templatecommands.cpp:669
templatevisualcell.h
TitleBlockTemplateCommand::setTitleBlockTemplate
void setTitleBlockTemplate(TitleBlockTemplate *)
Definition: templatecommands.cpp:183
ModifyTemplateGridCommand::ModifyTemplateGridCommand
ModifyTemplateGridCommand(const ModifyTemplateGridCommand &)
ModifyTitleBlockCellCommand::mergeWith
bool mergeWith(const QUndoCommand *) override
Definition: templatecommands.cpp:57
ModifyTemplateGridCommand::deleteColumn
static ModifyTemplateGridCommand * deleteColumn(TitleBlockTemplate *, int=-1)
Definition: templatecommands.cpp:286
ModifyTemplateDimension::ModifyTemplateDimension
ModifyTemplateDimension(const ModifyTemplateDimension &)
ChangeTemplateInformationsCommand::ChangeTemplateInformationsCommand
ChangeTemplateInformationsCommand(const ChangeTemplateInformationsCommand &)
PasteTemplateCellsCommand::~PasteTemplateCellsCommand
~PasteTemplateCellsCommand() override
Definition: templatecommands.cpp:945
ChangeTemplateInformationsCommand::tbtemplate_
TitleBlockTemplate * tbtemplate_
Changed title block template.
Definition: templatecommands.h:255
ChangeTemplateInformationsCommand::~ChangeTemplateInformationsCommand
~ChangeTemplateInformationsCommand() override
Definition: templatecommands.cpp:865
PasteTemplateCellsCommand::PasteTemplateCellsCommand
PasteTemplateCellsCommand(const PasteTemplateCellsCommand &)
SplitCellsCommand::SplitCellsCommand
SplitCellsCommand(const TitleBlockTemplateCellsSet &, TitleBlockTemplate *=nullptr, QUndoCommand *=nullptr)
Definition: templatecommands.cpp:744
SplitCellsCommand::row_span_before_
int row_span_before_
the row_span attribute of the spanning cell before splitting
Definition: templatecommands.h:228
TitleBlockTemplateCommand
Definition: templatecommands.h:66
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
CutTemplateCellsCommand::CutTemplateCellsCommand
CutTemplateCellsCommand(const CutTemplateCellsCommand &)
MODIFY_TITLE_BLOCK_CELL_COMMAND_ID
#define MODIFY_TITLE_BLOCK_CELL_COMMAND_ID
Definition: templatecommands.h:20
TitleBlockTemplateCellsSet::isRectangle
bool isRectangle() const
Definition: templatecellsset.cpp:56
ModifyTitleBlockCellCommand::addModification
void addModification(const QString &, const QVariant &, bool=false)
Definition: templatecommands.cpp:138
MergeCellsCommand::col_span_after_
int col_span_after_
the col_span attribute of the spanning cell after the merge
Definition: templatecommands.h:205
TitleBlockTemplateCellsSet
Definition: templatecellsset.h:28
TitleBlockCell
Definition: titleblockcell.h:26
ModifyTemplateDimension::after_
TitleBlockDimension after_
Size of the row/column after it is changed.
Definition: templatecommands.h:170
SplitCellsCommand::spanned_cells_
QSet< TitleBlockCell * > spanned_cells_
the spanned cells
Definition: templatecommands.h:227
ModifyTitleBlockCellCommand::view
TitleBlockTemplateView * view() const
Definition: templatecommands.cpp:110