#include <QRadioButton>
#include <QGridLayout>
#include <QPushButton>
+#include <QCheckBox>
#include <QMap>
//=================================================================================
ledShape->setMinimumSize(QSize(100, 0));
int line = 0, col = 0;
+ // adWidget(widget, fromRow, fromColumn, rowSpan, columnSpan)
gridLayoutExport->addWidget(lblShape, line, col++, 1, 1);
gridLayoutExport->addWidget(btnShapeSelect, line, col++, 1, 1);
gridLayoutExport->addWidget(ledShape, line, col++, 1, 1);
ledAuthor = new QLineEdit(gbxExport);
line++; col = 0;
- gridLayoutExport->addWidget(lblAuthor, line, col++, 2, 1);
+ gridLayoutExport->addWidget(lblAuthor, line, col++, 1, 1);
col++; // span
gridLayoutExport->addWidget(ledAuthor, line, col++, 1, 1);
+ // Line 3
+ ckxUseSeparateFile = new QCheckBox(tr("XAOPLUGIN_EXPORT_SHAPEFILE"), gbxExport);
+
+ line++; col = 0;
+ gridLayoutExport->addWidget(ckxUseSeparateFile, line, col++, 1, 2);
+
+
//****************************
// Filter Group box
QGroupBox* gbxFilter = new QGroupBox(parent);
QString author = ledAuthor->text();
QString fileName = ledFileName->text();
+ QString shapeFileName = QString("");//ledShapeFile->text();
+ if (ckxUseSeparateFile->isChecked())
+ {
+ shapeFileName = fileName;
+ shapeFileName.append(".brep");
+ }
// get selected groups
QList<QListWidgetItem*> selGroups;
GEOM::IXAOOperations_var aXAOOp = GEOM::IXAOOperations::_narrow( getOperation() );
res = aXAOOp->ExportXAO(m_mainObj, groups, fields,
author.toUtf8().constData(),
- fileName.toUtf8().constData());
+ fileName.toUtf8().constData(),
+ shapeFileName.toStdString().c_str());
return res;
}