Seamly2D
Code documentation
remove_groupitem.h
Go to the documentation of this file.
1 /***************************************************************************
2  ** @file remove_groupitem.h
3  ** @author Douglas S Caskey
4  ** @date Mar 1, 2023
5  **
6  ** @copyright
7  ** Copyright (C) 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 REMOVE_GROUPITEM_H
26 #define REMOVE_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  RemoveGroupItem(const QDomElement &xml, VAbstractPattern *doc, quint32 groupId, QUndoCommand *parent = nullptr);
42  virtual ~RemoveGroupItem();
43  virtual void undo() Q_DECL_OVERRIDE;
44  virtual void redo() Q_DECL_OVERRIDE;
45 
46 signals:
47  void updateGroups();
48 
49 private:
50  Q_DISABLE_COPY(RemoveGroupItem)
51  const QString m_activeDrawName;
52 };
53 
54 #endif // REMOVE_GROUPITEM_H
RemoveGroupItem(const QDomElement &xml, VAbstractPattern *doc, quint32 groupId, QUndoCommand *parent=nullptr)
virtual void redo() Q_DECL_OVERRIDE
virtual ~RemoveGroupItem()
virtual void undo() Q_DECL_OVERRIDE
const QString m_activeDrawName
QDomElement xml
Definition: vundocommand.h:105
VAbstractPattern * doc
Definition: vundocommand.h:106