Commit 8053095b authored by Jan Möbius's avatar Jan Möbius

Added option to change default behaviour on newly created objects with target setting

parent 03d55fd7
......@@ -273,6 +273,8 @@ void OptionsWidget::showEvent ( QShowEvent * /*event*/ ) {
maxRecentBox->setValue( OpenFlipperSettings().value("Core/File/MaxRecent",15).toInt() );
rbReloadShaders->setChecked(OpenFlipperSettings().value("Core/File/ReloadShaders",false).toBool()) ;
leShaderOutputDir->setText(OpenFlipperSettings().value("Core/File/ShaderOutputDir","").toString());
allTarget->setChecked( OpenFlipperSettings().value("Core/File/AllTarget",false).toBool() );
// UI settings
toolBoxOrientation->setCurrentIndex((OpenFlipperSettings().value("Core/Gui/ToolBoxes/ToolBoxOnTheRight",true).toBool() ? 0 : 1));
......@@ -584,6 +586,8 @@ void OptionsWidget::slotApply() {
OpenFlipperSettings().setValue("Core/File/ShaderOutputDir",leShaderOutputDir->text() ) ;
ACG::ShaderCache::getInstance()->setDebugOutputDir(leShaderOutputDir->text().toUtf8());
OpenFlipperSettings().setValue("Core/File/AllTarget",allTarget->isChecked());
// Toolbox orientation
OpenFlipperSettings().setValue("Core/Gui/ToolBoxes/ToolBoxOnTheRight", (toolBoxOrientation->currentIndex() == 0));
......
......@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>699</width>
<width>702</width>
<height>700</height>
</rect>
</property>
......@@ -36,8 +36,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>662</width>
<height>862</height>
<width>721</width>
<height>957</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
......@@ -50,7 +50,7 @@
<string/>
</property>
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<property name="usesScrollButtons">
<bool>true</bool>
......@@ -412,6 +412,35 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_15">
<property name="title">
<string>General Object Options</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_27">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_26">
<item>
<widget class="QCheckBox" name="allTarget">
<property name="toolTip">
<string>The add empty object functions will set all new objects to be target by default</string>
</property>
<property name="statusTip">
<string>The add empty object functions will set all new objects to be target by default</string>
</property>
<property name="whatsThis">
<string>The add empty object functions will set all new objects to be target by default</string>
</property>
<property name="text">
<string>Set all newly added objects to target</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment