Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenFlipper-Free
OpenFlipper
Commits
cf414797
Commit
cf414797
authored
Jul 11, 2016
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added option to change default behaviour on newly created objects with target setting
parent
55d727fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
+37
-4
widgets/optionsWidget/optionsWidget.cc
widgets/optionsWidget/optionsWidget.cc
+4
-0
widgets/optionsWidget/optionsWidget.ui
widgets/optionsWidget/optionsWidget.ui
+33
-4
No files found.
widgets/optionsWidget/optionsWidget.cc
View file @
cf414797
...
...
@@ -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
));
...
...
widgets/optionsWidget/optionsWidget.ui
View file @
cf414797
...
...
@@ -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"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment