Skip to content

Commit

Permalink
Part: initialize controls of DlgImportExportStep with ImportExportSet…
Browse files Browse the repository at this point in the history
…tings
  • Loading branch information
wwmayer committed Jul 23, 2022
1 parent 710e16b commit b00044c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Mod/Part/Gui/DlgSettingsGeneral.cpp
Expand Up @@ -31,6 +31,7 @@

#include <Base/Parameter.h>
#include <App/Application.h>
#include <Mod/Part/App/ImportStep.h>

#include "DlgSettingsGeneral.h"
#include "ui_DlgSettingsGeneral.h"
Expand Down Expand Up @@ -216,6 +217,18 @@ DlgImportExportStep::DlgImportExportStep(QWidget* parent)
QRegExpValidator* authorValidator = new QRegExpValidator(ui->lineEditAuthor);
authorValidator->setRegExp(rx);
ui->lineEditAuthor->setValidator(authorValidator);

Part::ImportExportSettings settings;
ui->checkBoxMergeCompound->setChecked(settings.getReadShapeCompoundMode());
ui->checkBoxExportHiddenObj->setChecked(settings.getExportHiddenObject());
ui->checkBoxImportHiddenObj->setChecked(settings.getImportHiddenObject());
ui->checkBoxExportLegacy->setChecked(settings.getExportLegacy());
ui->checkBoxKeepPlacement->setChecked(settings.getExportKeepPlacement());
ui->checkBoxUseLinkGroup->setChecked(settings.getUseLinkGroup());
ui->checkBoxUseBaseName->setChecked(settings.getUseBaseName());
ui->checkBoxReduceObjects->setChecked(settings.getReduceObjects());
ui->checkBoxExpandCompound->setChecked(settings.getExpandCompound());
ui->checkBoxShowProgress->setChecked(settings.getShowProgress());
}

/**
Expand Down

0 comments on commit b00044c

Please sign in to comment.