Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenFlipper-Free
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
8053095b
Commit
8053095b
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
03d55fd7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
4 deletions
+37
-4
OpenFlipper/widgets/optionsWidget/optionsWidget.cc
OpenFlipper/widgets/optionsWidget/optionsWidget.cc
+4
-0
OpenFlipper/widgets/optionsWidget/optionsWidget.ui
OpenFlipper/widgets/optionsWidget/optionsWidget.ui
+33
-4
No files found.
OpenFlipper/widgets/optionsWidget/optionsWidget.cc
View file @
8053095b
...
...
@@ -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
));
...
...
OpenFlipper/widgets/optionsWidget/optionsWidget.ui
View file @
8053095b
...
...
@@ -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