26 #include "ui_addtogroup_dialog.h"
28 #include "../ifc/ifcdef.h"
29 #include "../ifc/xml/vabstractpattern.h"
30 #include "../tools/dialogtool.h"
31 #include "../vmisc/vabstractapplication.h"
32 #include "../vmisc/vcommonsettings.h"
33 #include "../vpatterndb/vcontainer.h"
34 #include "../vtools/undocommands/addgroup.h"
36 #include <QStringList>
43 , m_doc(
qApp->getCurrentDocument())
45 , m_beep(new QSound(
qApp->Settings()->getSelectionSound()))
48 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
49 setWindowIcon(QIcon(
":/icon/32x32/group.png"));
66 QStringList groupNames;
67 auto i = groups.constBegin();
68 while (i != groups.constEnd())
71 groupNames.append(
data.name);
74 ui->groupName_ComboBox->addItems(groupNames);
80 return ui->groupName_ComboBox->currentText();
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
QMap< quint32, quint32 > m_groupData
Ui::AddToGroupDialog * ui
AddToGroupDialog(VContainer *data, const quint32 &toolId, QWidget *parent=nullptr)
virtual ~AddToGroupDialog()
QMap< quint32, GroupAttributes > getGroups()
The VContainer class container of all variables.