Seamly2D
Code documentation
add_groupitem.h
Go to the documentation of this file.
1 /***************************************************************************
2  ** @file add_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 ADD_GROUPITEM_H
26 #define ADD_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 
37 class AddGroupItem : public VUndoCommand
38 {
39  Q_OBJECT
40 public:
41  AddGroupItem(const QDomElement &xml, VAbstractPattern *doc, quint32 nodeId,
42  QUndoCommand *parent = nullptr);
43  virtual ~AddGroupItem();
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(AddGroupItem)
52  const QString m_activeDraftblockName;
53 };
54 
55 #endif // ADD_GROUPITEM_H
virtual void redo() Q_DECL_OVERRIDE
virtual void undo() Q_DECL_OVERRIDE
void updateGroups()
const QString m_activeDraftblockName
Definition: add_groupitem.h:52
AddGroupItem(const QDomElement &xml, VAbstractPattern *doc, quint32 nodeId, QUndoCommand *parent=nullptr)
virtual ~AddGroupItem()
QDomElement xml
Definition: vundocommand.h:105
VAbstractPattern * doc
Definition: vundocommand.h:106
quint32 nodeId
Definition: vundocommand.h:107