Extended global marker size to be used for Sketcher
This commit is contained in:
@@ -109,10 +109,6 @@ void SketcherSettings::saveSettings()
|
||||
ui->checkBoxNotifyConstraintSubstitutions->onSave();
|
||||
form->saveSettings();
|
||||
|
||||
ParameterGrp::handle hViewGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
|
||||
int markerSize = ui->EditSketcherMarkerSize->itemData(ui->EditSketcherMarkerSize->currentIndex()).toInt();
|
||||
hViewGrp->SetInt("EditSketcherMarkerSize", markerSize);
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Part");
|
||||
QVariant data = ui->comboBox->itemData(ui->comboBox->currentIndex());
|
||||
int pattern = data.toInt();
|
||||
@@ -136,16 +132,6 @@ void SketcherSettings::loadSettings()
|
||||
ui->checkBoxNotifyConstraintSubstitutions->onRestore();
|
||||
form->loadSettings();
|
||||
|
||||
std::list<int> sizes = Gui::Inventor::MarkerBitmaps::getSupportedSizes("CIRCLE_FILLED");
|
||||
for (std::list<int>::iterator it = sizes.begin(); it != sizes.end(); ++it)
|
||||
ui->EditSketcherMarkerSize->addItem(tr("%1 px").arg(*it), *it);
|
||||
ParameterGrp::handle hViewGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
|
||||
int markerSize = hViewGrp->GetInt("EditSketcherMarkerSize", 7);
|
||||
int markerIndex = ui->EditSketcherMarkerSize->findData(QVariant(markerSize));
|
||||
if (markerIndex < 0)
|
||||
markerIndex = 1;
|
||||
ui->EditSketcherMarkerSize->setCurrentIndex(markerIndex);
|
||||
|
||||
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/Mod/Part");
|
||||
int pattern = hGrp->GetInt("GridLinePattern", 0x0f0f);
|
||||
int index = ui->comboBox->findData(QVariant(pattern));
|
||||
|
||||
Reference in New Issue
Block a user