mirror of https://github.com/vitalif/openscad
Add preferences option to enable/disable localization.
parent
929d909947
commit
c8a24971b6
|
@ -104,7 +104,7 @@ Preferences::Preferences(QWidget *parent) : QMainWindow(parent)
|
|||
this->defaultmap["advanced/mdi"] = true;
|
||||
this->defaultmap["advanced/undockableWindows"] = false;
|
||||
this->defaultmap["launcher/showOnStartup"] = true;
|
||||
this->defaultmap["advanced/localization"] = false;
|
||||
this->defaultmap["advanced/localization"] = true;
|
||||
|
||||
// Toolbar
|
||||
QActionGroup *group = new QActionGroup(this);
|
||||
|
@ -367,6 +367,12 @@ void Preferences::on_opencsgLimitEdit_textChanged(const QString &text)
|
|||
// FIXME: Set this globally?
|
||||
}
|
||||
|
||||
void Preferences::on_localizationCheckBox_toggled(bool state)
|
||||
{
|
||||
QSettings settings;
|
||||
settings.setValue("advanced/localization", state);
|
||||
}
|
||||
|
||||
void Preferences::on_forceGoldfeatherBox_toggled(bool state)
|
||||
{
|
||||
QSettings settings;
|
||||
|
@ -466,6 +472,7 @@ void Preferences::updateGUI()
|
|||
this->cgalCacheSizeEdit->setText(getValue("advanced/cgalCacheSize").toString());
|
||||
this->polysetCacheSizeEdit->setText(getValue("advanced/polysetCacheSize").toString());
|
||||
this->opencsgLimitEdit->setText(getValue("advanced/openCSGLimit").toString());
|
||||
this->localizationCheckBox->setChecked(getValue("advanced/localization").toBool());
|
||||
this->forceGoldfeatherBox->setChecked(getValue("advanced/forceGoldfeather").toBool());
|
||||
this->mdiCheckBox->setChecked(getValue("advanced/mdi").toBool());
|
||||
this->undockCheckBox->setChecked(getValue("advanced/undockableWindows").toBool());
|
||||
|
|
|
@ -31,6 +31,7 @@ public slots:
|
|||
void on_opencsgLimitEdit_textChanged(const QString &);
|
||||
void on_forceGoldfeatherBox_toggled(bool);
|
||||
void on_mouseWheelZoomBox_toggled(bool);
|
||||
void on_localizationCheckBox_toggled(bool);
|
||||
void on_updateCheckBox_toggled(bool);
|
||||
void on_snapshotCheckBox_toggled(bool);
|
||||
void on_mdiCheckBox_toggled(bool);
|
||||
|
|
|
@ -244,7 +244,7 @@
|
|||
<number>0</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_9">
|
||||
<widget class="QLabel" name="labelColorSyntaxHighlighting">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
|
@ -516,7 +516,7 @@
|
|||
<item row="0" column="0">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_9">
|
||||
<item>
|
||||
<widget class="QLabel" name="label_10">
|
||||
<widget class="QLabel" name="labelFeatures">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>75</weight>
|
||||
|
@ -699,6 +699,16 @@
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QCheckBox" name="localizationCheckBox">
|
||||
<property name="text">
|
||||
<string>Enable user interface localization (requires restart of OpenSCAD)</string>
|
||||
</property>
|
||||
<property name="checked">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="verticalSpacer_2">
|
||||
<property name="orientation">
|
||||
|
|
Loading…
Reference in New Issue