[Sketcher] Visibility automation : add option to force orthographic view when entering edit mode
This commit is contained in:
@@ -156,6 +156,7 @@ void SketcherSettingsDisplay::saveSettings()
|
||||
ui->checkBoxTVShowLinks->onSave();
|
||||
ui->checkBoxTVShowSupport->onSave();
|
||||
ui->checkBoxTVRestoreCamera->onSave();
|
||||
ui->checkBoxTVForceOrtho->onSave();
|
||||
ui->checkBoxTVSectionView->onSave();
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Part");
|
||||
@@ -178,6 +179,8 @@ void SketcherSettingsDisplay::loadSettings()
|
||||
ui->checkBoxTVShowLinks->onRestore();
|
||||
ui->checkBoxTVShowSupport->onRestore();
|
||||
ui->checkBoxTVRestoreCamera->onRestore();
|
||||
ui->checkBoxTVForceOrtho->onRestore();
|
||||
this->ui->checkBoxTVForceOrtho->setEnabled(this->ui->checkBoxTVRestoreCamera->isChecked());
|
||||
ui->checkBoxTVSectionView->onRestore();
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Part");
|
||||
@@ -211,12 +214,14 @@ void SketcherSettingsDisplay::onBtnTVApplyClicked(bool)
|
||||
" sketch.ViewObject.ShowLinks = %s\n"
|
||||
" sketch.ViewObject.ShowSupport = %s\n"
|
||||
" sketch.ViewObject.RestoreCamera = %s\n"
|
||||
" sketch.ViewObject.ForceOrtho = %s\n"
|
||||
" sketch.ViewObject.SectionView = %s\n",
|
||||
this->ui->checkBoxTVHideDependent->isChecked() ? "True": "False",
|
||||
this->ui->checkBoxTVShowLinks->isChecked() ? "True": "False",
|
||||
this->ui->checkBoxTVShowSupport->isChecked() ? "True": "False",
|
||||
this->ui->checkBoxTVRestoreCamera->isChecked() ? "True": "False",
|
||||
this->ui->checkBoxTVSectionView->isChecked() ? "True": "False");
|
||||
this->ui->checkBoxTVForceOrtho->isChecked() ? "True": "False",
|
||||
this->ui->checkBoxTVSectionView->isChecked() ? "True": "False");
|
||||
} catch (Base::PyException &e){
|
||||
Base::Console().Error("SketcherSettings::onBtnTVApplyClicked:\n");
|
||||
e.ReportException();
|
||||
|
||||
Reference in New Issue
Block a user