Seamly2D
Code documentation
addtogroup_dialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  ** @file addtogroup_dialog.h
3  ** @author Douglas S Caskey
4  ** @date Mar 14, 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 ADD_TO_GROUP_DIALOG_H
26 #define ADD_TO_GROUP_DIALOG_H
27 
28 #include "../tools/dialogtool.h"
29 
30 #include <qcompilerdetection.h>
31 #include <QDialog>
32 #include <QMap>
33 #include <QMetaObject>
34 #include <QObject>
35 #include <QSound>
36 #include <QString>
37 #include <QtGlobal>
38 
39 class VContainer;
40 
41 namespace Ui
42 {
43  class AddToGroupDialog;
44 }
45 
47 {
48  Q_OBJECT
49 
50 public:
51  AddToGroupDialog(VContainer *data, const quint32 &toolId, QWidget *parent = nullptr);
52  virtual ~AddToGroupDialog();
53 
54  void fillNameBox();
55 
56  QString getName() const;
57 
59 
60  virtual void ShowDialog(bool click) Q_DECL_OVERRIDE;
61 
62 public slots:
63  virtual void SelectedObject(bool selected, quint32 object, quint32 tool) Q_DECL_OVERRIDE;
64 
65 private:
66  Q_DISABLE_COPY(AddToGroupDialog)
69  QMap<quint32, quint32> m_groupData;
70  QSound *m_beep;
71 };
72 
73 #endif // ADD_TO_GROUP_DIALOG_H
VAbstractPattern * m_doc
virtual void ShowDialog(bool click) Q_DECL_OVERRIDE
virtual void SelectedObject(bool selected, quint32 object, quint32 tool) Q_DECL_OVERRIDE
QMap< quint32, quint32 > getGroupData() const
QString getName() const
QMap< quint32, quint32 > m_groupData
Ui::AddToGroupDialog * ui
AddToGroupDialog(VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
The DialogTool class parent for all dialog of tools.
Definition: dialogtool.h:107
quint32 toolId
Definition: dialogtool.h:225
const VContainer * data
data container with data
Definition: dialogtool.h:177
The VContainer class container of all variables.
Definition: vcontainer.h:141