All pattern pieces instead All drawings.
--HG-- branch : XML Editor
This commit is contained in:
parent
b83633541b
commit
ffda1e5f8d
|
@ -29,6 +29,8 @@
|
||||||
#include "dialogpatternxmledit.h"
|
#include "dialogpatternxmledit.h"
|
||||||
#include "ui_dialogpatternxmledit.h"
|
#include "ui_dialogpatternxmledit.h"
|
||||||
|
|
||||||
|
#include <QMessageBox>
|
||||||
|
|
||||||
const short int DialogPatternXmlEdit::ChangeTypeDelete=1;
|
const short int DialogPatternXmlEdit::ChangeTypeDelete=1;
|
||||||
const short int DialogPatternXmlEdit::ChangeTypeAdd=2;
|
const short int DialogPatternXmlEdit::ChangeTypeAdd=2;
|
||||||
const short int DialogPatternXmlEdit::ChangeTypeModify=3;
|
const short int DialogPatternXmlEdit::ChangeTypeModify=3;
|
||||||
|
@ -63,7 +65,7 @@ DialogPatternXmlEdit::DialogPatternXmlEdit(QWidget *parent, VPattern *xmldoc)
|
||||||
|
|
||||||
|
|
||||||
VXMLTreeElement* standard_base = new VXMLTreeElement("Valentina", VXMLTreeElement::TypeRoot, root, false);
|
VXMLTreeElement* standard_base = new VXMLTreeElement("Valentina", VXMLTreeElement::TypeRoot, root, false);
|
||||||
ui->comboBox_Base_Selection->addItem(tr("All drawings"), QVariant(0));
|
ui->comboBox_Base_Selection->addItem(tr("All pattern pieces"), QVariant(0));
|
||||||
|
|
||||||
//rootBases[0]=(QDomNode) doc->DocumentNode;
|
//rootBases[0]=(QDomNode) doc->DocumentNode;
|
||||||
rootNode->appendRow(standard_base);
|
rootNode->appendRow(standard_base);
|
||||||
|
@ -579,9 +581,7 @@ void DialogPatternXmlEdit::ButtonAddSonClicked()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QString name = QInputDialog::getText(this, tr("Node Name"),
|
QString name = QInputDialog::getText(this, tr("Node Name"), tr("Name:"), QLineEdit::Normal, "", &ok);
|
||||||
tr("Name:"), QLineEdit::Normal,
|
|
||||||
"", &ok);
|
|
||||||
if (ok==false)
|
if (ok==false)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user