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
37
class
MoveGroupItem
:
public
VUndoCommand
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
;
56
quint32
m_destinationGroupId
;
57
};
58
59
#endif
// MOVE_GROUPITEM_H
MoveGroupItem
Definition:
move_groupitem.h:38
MoveGroupItem::redo
virtual void redo() Q_DECL_OVERRIDE
Definition:
move_groupitem.cpp:106
MoveGroupItem::undo
virtual void undo() Q_DECL_OVERRIDE
Definition:
move_groupitem.cpp:57
MoveGroupItem::m_dest
QDomElement m_dest
Definition:
move_groupitem.h:53
MoveGroupItem::m_source
QDomElement m_source
Definition:
move_groupitem.h:52
MoveGroupItem::MoveGroupItem
MoveGroupItem(const QDomElement &source, const QDomElement &dest, VAbstractPattern *doc, quint32 sourceId, quint32 destinationId, QUndoCommand *parent=nullptr)
Definition:
move_groupitem.cpp:39
MoveGroupItem::~MoveGroupItem
virtual ~MoveGroupItem()
Definition:
move_groupitem.cpp:52
MoveGroupItem::m_destinationGroupId
quint32 m_destinationGroupId
Definition:
move_groupitem.h:56
MoveGroupItem::m_activeDraftblockName
const QString m_activeDraftblockName
Definition:
move_groupitem.h:54
MoveGroupItem::m_sourceGroupId
quint32 m_sourceGroupId
Definition:
move_groupitem.h:55
MoveGroupItem::updateGroups
void updateGroups()
VAbstractPattern
Definition:
vabstractpattern.h:113
VUndoCommand
Definition:
vundocommand.h:93
VUndoCommand::doc
VAbstractPattern * doc
Definition:
vundocommand.h:106
vundocommand.h
src
libs
vtools
undocommands
move_groupitem.h
Generated by
1.9.1