+ header for IGES files (disabled)
This commit is contained in:
parent
c67f326174
commit
b6df4a490e
|
@ -7,13 +7,13 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>445</width>
|
||||
<height>187</height>
|
||||
<height>270</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>IGES</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<layout class="QGridLayout" name="gridLayout_3">
|
||||
<item row="0" column="0">
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
|
@ -70,6 +70,45 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QGroupBox" name="groupBoxHeader">
|
||||
<property name="title">
|
||||
<string>Header</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>Company</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLineEdit" name="lineEditCompany"/>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Product</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QLineEdit" name="lineEditProduct"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Author</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLineEdit" name="lineEditAuthor"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<spacer name="verticalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Vertical</enum>
|
||||
|
|
|
@ -87,6 +87,7 @@ DlgImportExportIges::DlgImportExportIges(QWidget* parent)
|
|||
{
|
||||
ui = new Ui_DlgImportExportIges();
|
||||
ui->setupUi(this);
|
||||
ui->groupBoxHeader->hide();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -118,6 +119,15 @@ void DlgImportExportIges::saveSettings()
|
|||
|
||||
hGrp->SetBool("BrepMode", ui->checkBrepMode->isChecked());
|
||||
Interface_Static::SetIVal("write.iges.brep.mode",ui->checkBrepMode->isChecked() ? 1 : 0);
|
||||
|
||||
// header info
|
||||
//hGrp->SetASCII("CompanyIges", ui->lineEditCompany->text().toLatin1());
|
||||
//hGrp->SetASCII("ProductIges", ui->lineEditProduct->text().toLatin1());
|
||||
//hGrp->SetASCII("AuthorIges", ui->lineEditAuthor->text().toLatin1());
|
||||
|
||||
//Interface_Static::SetCVal("write.iges.header.company", ui->lineEditCompany->text().toLatin1());
|
||||
//Interface_Static::SetCVal("write.iges.header.product", ui->lineEditProduct->text().toLatin1());
|
||||
//Interface_Static::SetCVal("write.iges.header.author", ui->lineEditAuthor->text().toLatin1());
|
||||
}
|
||||
|
||||
void DlgImportExportIges::loadSettings()
|
||||
|
@ -130,6 +140,11 @@ void DlgImportExportIges::loadSettings()
|
|||
int value = Interface_Static::IVal("write.iges.brep.mode");
|
||||
bool brep = hGrp->GetBool("BrepMode", value > 0);
|
||||
ui->checkBrepMode->setChecked(brep);
|
||||
|
||||
// header info
|
||||
//ui->lineEditCompany->setText(QString::fromStdString(hGrp->GetASCII("CompanyIges")));
|
||||
//ui->lineEditProduct->setText(QString::fromStdString(hGrp->GetASCII("ProductIges")));
|
||||
//ui->lineEditAuthor->setText(QString::fromStdString(hGrp->GetASCII("AuthorIges")));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user