Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
einsteinathome
pulsatingscience
Commits
9736c7b4
Commit
9736c7b4
authored
Feb 06, 2009
by
Oliver Bock
Browse files
Make sure control button states change coherently (action vs. button)
parent
c6b63ecd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pulsatingscience.cpp
View file @
9736c7b4
...
...
@@ -54,15 +54,33 @@ PulsatingScience::PulsatingScience(QWidget *parent) : QMainWindow(parent)
m_fullscreenShortcut
->
setEnabled
(
false
);
// establish object communications
connect
(
ui
.
pushRun
,
SIGNAL
(
clicked
()),
ui
.
pulsarGlWidget
,
SLOT
(
runAnimation
()));
connect
(
ui
.
actionRun
,
SIGNAL
(
activated
()),
ui
.
pulsarGlWidget
,
SLOT
(
runAnimation
()));
connect
(
ui
.
actionRun
,
SIGNAL
(
activated
()),
this
,
SLOT
(
on_pushRun_clicked
()));
connect
(
ui
.
pushPause
,
SIGNAL
(
clicked
()),
ui
.
pulsarGlWidget
,
SLOT
(
pauseAnimation
()));
connect
(
ui
.
actionPause
,
SIGNAL
(
activated
()),
ui
.
pulsarGlWidget
,
SLOT
(
pauseAnimation
()));
connect
(
ui
.
actionPause
,
SIGNAL
(
activated
()),
this
,
SLOT
(
on_pushPause_clicked
()));
connect
(
ui
.
pushStop
,
SIGNAL
(
clicked
()),
ui
.
pulsarGlWidget
,
SLOT
(
stopAnimation
()));
connect
(
ui
.
actionStop
,
SIGNAL
(
activated
()),
ui
.
pulsarGlWidget
,
SLOT
(
stopAnimation
()));
connect
(
ui
.
actionStop
,
SIGNAL
(
activated
()),
this
,
SLOT
(
on_pushStop_clicked
()));
connect
(
ui
.
actionPermanent_orbits
,
SIGNAL
(
toggled
(
bool
)),
ui
.
pulsarGlWidget
,
SLOT
(
showOrbits
(
bool
)));
...
...
src/pulsatingscience.ui
View file @
9736c7b4
...
...
@@ -748,54 +748,6 @@
</hint>
</hints>
</connection>
<connection>
<sender>pushRun</sender>
<signal>clicked()</signal>
<receiver>actionRun</receiver>
<slot>trigger()</slot>
<hints>
<hint type="sourcelabel" >
<x>47</x>
<y>491</y>
</hint>
<hint type="destinationlabel" >
<x>-1</x>
<y>-1</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushPause</sender>
<signal>clicked()</signal>
<receiver>actionPause</receiver>
<slot>trigger()</slot>
<hints>
<hint type="sourcelabel" >
<x>47</x>
<y>523</y>
</hint>
<hint type="destinationlabel" >
<x>-1</x>
<y>-1</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushStop</sender>
<signal>clicked()</signal>
<receiver>actionStop</receiver>
<slot>trigger()</slot>
<hints>
<hint type="sourcelabel" >
<x>47</x>
<y>555</y>
</hint>
<hint type="destinationlabel" >
<x>-1</x>
<y>-1</y>
</hint>
</hints>
</connection>
<connection>
<sender>pushAbout</sender>
<signal>clicked()</signal>
...
...
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