54 #include "ui_editgroup_dialog.h"
57 #include <QStringList>
58 #include <QInputDialog>
62 #include "../ifc/ifcdef.h"
63 #include "../ifc/xml/vabstractpattern.h"
64 #include "../vmisc/logging.h"
65 #include "../vmisc/vabstractapplication.h"
66 #include "../vpatterndb/vcontainer.h"
67 #include "../vtools/undocommands/addgroup.h"
68 #include "../vwidgets/color_combobox.h"
69 #include "../vwidgets/linetype_combobox.h"
70 #include "../vwidgets/lineweight_combobox.h"
72 Q_LOGGING_CATEGORY(EditGroupDialogLog,
"editGroupDialogLog")
78 , m_doc(
qApp->getCurrentDocument())
83 setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
84 setWindowIcon(QIcon(
":/icon/32x32/edit.png"));
85 ui->groupColor_ComboBox->removeItem(ui->groupColor_ComboBox->findData(
ColorByGroup));
86 ui->groupLineType_ComboBox->removeItem(ui->groupLineType_ComboBox->findData(
LineTypeByGroup));
87 ui->groupLineType_ComboBox->removeItem(ui->groupLineType_ComboBox->findData(
LineTypeNone));
88 ui->groupLineWeight_ComboBox->removeItem(ui->groupLineWeight_ComboBox->findData(
LineWeightByGroup));
89 m_oldGroupName = ui->groupName_LineEdit->text();
91 initializeOkCancel(ui);
105 ui->groupName_LineEdit->setText(name);
111 return ui->groupName_LineEdit->text();
QString getLineType() const
void setLineType(const QString &type)
QMap< quint32, quint32 > getGroupData() const
QMap< quint32, quint32 > m_groupData
virtual void SelectedObject(bool selected, quint32 object, quint32 tool) Q_DECL_OVERRIDE
void setLineWeight(const QString &weight)
void setName(const QString &name)
void setColor(const QString &color)
QString getLineWeight() const
virtual void ShowDialog(bool click) Q_DECL_OVERRIDE
The VContainer class container of all variables.
const QString LineTypeByGroup
const QString LineTypeSolidLine
const QString LineTypeNone
const QString ColorByGroup
const QString LineWeightByGroup