Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pulsatingscience
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
einsteinathome
pulsatingscience
Commits
2b378a91
Commit
2b378a91
authored
7 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
Added persistent preset selection
parent
82d46602
No related branches found
No related tags found
No related merge requests found
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/pulsatingscience.cpp
+11
-0
11 additions, 0 deletions
src/pulsatingscience.cpp
src/pulsatingscience.h
+1
-0
1 addition, 0 deletions
src/pulsatingscience.h
src/pulsatingscience.ui
+262
-231
262 additions, 231 deletions
src/pulsatingscience.ui
with
274 additions
and
231 deletions
src/pulsatingscience.cpp
+
11
−
0
View file @
2b378a91
...
...
@@ -86,6 +86,8 @@ PulsatingScience::PulsatingScience(QWidget *parent) : QMainWindow(parent)
// restore source presets
m_presets
=
new
PresetModel
();
ui
.
cmbSource
->
setModel
(
m_presets
);
ui
.
cmbSource
->
setCurrentIndex
(
settings
.
value
(
"currentPreset"
,
0
).
toInt
());
// For Bruce: set initial values for iota and psi
ui
.
sliderSourceIota
->
setValue
(
146
);
...
...
@@ -138,10 +140,19 @@ void PulsatingScience::closeEvent(QCloseEvent *event)
settings
.
setValue
(
"windowState"
,
saveState
());
settings
.
setValue
(
"splitterSizes"
,
ui
.
splitter
->
saveState
());
settings
.
setValue
(
"currentPreset"
,
ui
.
cmbSource
->
currentIndex
());
event
->
accept
();
}
}
void
PulsatingScience
::
on_cmbSource_currentIndexChanged
(
int
index
)
{
ui
.
lblSource
->
setText
(
m_presets
->
preset
(
index
).
getDescription
());
// TODO: change source
}
void
PulsatingScience
::
on_chkLHO_clicked
(
bool
checked
)
{
ui
.
pulsarGlWidget
->
setLHOState
(
checked
);
...
...
This diff is collapsed.
Click to expand it.
src/pulsatingscience.h
+
1
−
0
View file @
2b378a91
...
...
@@ -39,6 +39,7 @@ public:
void
closeEvent
(
QCloseEvent
*
event
);
public
slots
:
void
on_cmbSource_currentIndexChanged
(
int
index
);
void
on_chkLHO_clicked
(
bool
checked
);
void
on_chkLLO_clicked
(
bool
checked
);
void
on_chkVirgo_clicked
(
bool
checked
);
...
...
This diff is collapsed.
Click to expand it.
src/pulsatingscience.ui
+
262
−
231
View file @
2b378a91
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment