Seamly2D
Code documentation
move_groupitem.h
Go to the documentation of this file.
1 /***************************************************************************
2  ** @file move_groupitem.h
3  ** @author Douglas S Caskey
4  ** @date Mar 2, 2023
5  **
6  ** @copyright
7  ** Copyright (C) 2017 - 2023 Seamly, LLC
8  ** https://github.com/fashionfreedom/seamly2d
9  **
10  ** @brief
11  ** Seamly2D is free software: you can redistribute it and/or modify
12  ** it under the terms of the GNU General Public License as published by
13  ** the Free Software Foundation, either version 3 of the License, or
14  ** (at your option) any later version.
15  **
16  ** Seamly2D is distributed in the hope that it will be useful,
17  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
18  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  ** GNU General Public License for more details.
20  **
21  ** You should have received a copy of the GNU General Public License
22  ** along with Seamly2D. If not, see <http://www.gnu.org/licenses/>.
23  **************************************************************************/
24 
25 #ifndef MOVE_GROUPITEM_H
26 #define MOVE_GROUPITEM_H
27 
28 #include <qcompilerdetection.h>
29 #include <QDomElement>
30 #include <QMetaObject>
31 #include <QObject>
32 #include <QString>
33 #include <QtGlobal>
34 
35 #include "vundocommand.h"
36 
38 {
39  Q_OBJECT
40 public:
41  MoveGroupItem(const QDomElement &source, const QDomElement &dest, VAbstractPattern *doc, quint32 sourceId,
42  quint32 destinationId, QUndoCommand *parent = nullptr);
43  virtual ~MoveGroupItem();
44  virtual void undo() Q_DECL_OVERRIDE;
45  virtual void redo() Q_DECL_OVERRIDE;
46 
47 signals:
48  void updateGroups();
49 
50 private:
51  Q_DISABLE_COPY(MoveGroupItem)
52  QDomElement m_source;
53  QDomElement m_dest;
54  const QString m_activeDraftblockName;
55  quint32 m_sourceGroupId;
57 };
58 
59 #endif // MOVE_GROUPITEM_H
virtual void redo() Q_DECL_OVERRIDE
virtual void undo() Q_DECL_OVERRIDE
QDomElement m_dest
QDomElement m_source
MoveGroupItem(const QDomElement &source, const QDomElement &dest, VAbstractPattern *doc, quint32 sourceId, quint32 destinationId, QUndoCommand *parent=nullptr)
virtual ~MoveGroupItem()
quint32 m_destinationGroupId
const QString m_activeDraftblockName
quint32 m_sourceGroupId
void updateGroups()
VAbstractPattern * doc
Definition: vundocommand.h:106