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
AddGroupItem
Definition:
add_groupitem.h:38
AddGroupItem::redo
virtual void redo() Q_DECL_OVERRIDE
Definition:
add_groupitem.cpp:101
AddGroupItem::undo
virtual void undo() Q_DECL_OVERRIDE
Definition:
add_groupitem.cpp:53
AddGroupItem::updateGroups
void updateGroups()
AddGroupItem::m_activeDraftblockName
const QString m_activeDraftblockName
Definition:
add_groupitem.h:52
AddGroupItem::AddGroupItem
AddGroupItem(const QDomElement &xml, VAbstractPattern *doc, quint32 nodeId, QUndoCommand *parent=nullptr)
Definition:
add_groupitem.cpp:39
AddGroupItem::~AddGroupItem
virtual ~AddGroupItem()
Definition:
add_groupitem.cpp:48
VAbstractPattern
Definition:
vabstractpattern.h:113
VUndoCommand
Definition:
vundocommand.h:93
VUndoCommand::xml
QDomElement xml
Definition:
vundocommand.h:105
VUndoCommand::doc
VAbstractPattern * doc
Definition:
vundocommand.h:106
VUndoCommand::nodeId
quint32 nodeId
Definition:
vundocommand.h:107
vundocommand.h
src
libs
vtools
undocommands
add_groupitem.h
Generated by
1.9.1