[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/06: qtgui: connected control panel and c
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/06: qtgui: connected control panel and context menu stop button/actions. |
Date: |
Mon, 11 May 2015 03:09:22 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit fa1cca4902b0096f39468186f8c73efbdf8ddb64
Author: Tom Rondeau <address@hidden>
Date: Sun May 10 17:35:23 2015 -0400
qtgui: connected control panel and context menu stop button/actions.
Make sure when either is clicked, the other is toggled with it.
---
gr-qtgui/include/gnuradio/qtgui/freqcontrolpanel.h | 3 +++
gr-qtgui/include/gnuradio/qtgui/timecontrolpanel.h | 4 ++++
gr-qtgui/lib/freqcontrolpanel.cc | 8 ++++++++
gr-qtgui/lib/freqdisplayform.cc | 2 ++
gr-qtgui/lib/timecontrolpanel.cc | 8 ++++++++
gr-qtgui/lib/timedisplayform.cc | 2 ++
6 files changed, 27 insertions(+)
diff --git a/gr-qtgui/include/gnuradio/qtgui/freqcontrolpanel.h
b/gr-qtgui/include/gnuradio/qtgui/freqcontrolpanel.h
index b7036d4..ce0aeed 100644
--- a/gr-qtgui/include/gnuradio/qtgui/freqcontrolpanel.h
+++ b/gr-qtgui/include/gnuradio/qtgui/freqcontrolpanel.h
@@ -53,9 +53,12 @@ public slots:
void toggleTriggerMode(gr::qtgui::trigger_mode mode);
+ void toggleStopButton();
+
signals:
void signalAvgSlider(float val);
void signalAvg(bool en);
+ void signalToggleStopButton();
private:
FreqDisplayForm *d_parent;
diff --git a/gr-qtgui/include/gnuradio/qtgui/timecontrolpanel.h
b/gr-qtgui/include/gnuradio/qtgui/timecontrolpanel.h
index c8e4143..aabd890 100644
--- a/gr-qtgui/include/gnuradio/qtgui/timecontrolpanel.h
+++ b/gr-qtgui/include/gnuradio/qtgui/timecontrolpanel.h
@@ -47,6 +47,10 @@ public slots:
void toggleGrid(bool en);
void toggleTriggerMode(gr::qtgui::trigger_mode mode);
void toggleTriggerSlope(gr::qtgui::trigger_slope slope);
+ void toggleStopButton();
+
+signals:
+ void signalToggleStopButton();
private:
TimeDisplayForm *d_parent;
diff --git a/gr-qtgui/lib/freqcontrolpanel.cc b/gr-qtgui/lib/freqcontrolpanel.cc
index da68f72..269b88a 100644
--- a/gr-qtgui/lib/freqcontrolpanel.cc
+++ b/gr-qtgui/lib/freqcontrolpanel.cc
@@ -196,6 +196,8 @@ FreqControlPanel::FreqControlPanel(FreqDisplayForm *form)
connect(d_stop_button, SIGNAL(pressed(void)),
d_parent, SLOT(setStop(void)));
+ connect(this, SIGNAL(signalToggleStopButton(void)),
+ d_stop_button, SLOT(toggle(void)));
}
FreqControlPanel::~FreqControlPanel()
@@ -273,3 +275,9 @@ FreqControlPanel::toggleTriggerMode(gr::qtgui::trigger_mode
mode)
{
d_trigger_mode_combo->setCurrentIndex(static_cast<int>(mode));
}
+
+void
+FreqControlPanel::toggleStopButton()
+{
+ emit signalToggleStopButton();
+}
diff --git a/gr-qtgui/lib/freqdisplayform.cc b/gr-qtgui/lib/freqdisplayform.cc
index 353c21e..301d5a6 100644
--- a/gr-qtgui/lib/freqdisplayform.cc
+++ b/gr-qtgui/lib/freqdisplayform.cc
@@ -193,6 +193,8 @@ FreqDisplayForm::setupControlPanel()
d_controlpanel, SLOT(toggleTriggerMode(gr::qtgui::trigger_mode)));
connect(this, SIGNAL(signalTriggerMode(gr::qtgui::trigger_mode)),
d_controlpanel, SLOT(toggleTriggerMode(gr::qtgui::trigger_mode)));
+ connect(d_stop_act, SIGNAL(triggered()),
+ d_controlpanel, SLOT(toggleStopButton()));
d_layout->addLayout(d_controlpanel, 0, 1);
diff --git a/gr-qtgui/lib/timecontrolpanel.cc b/gr-qtgui/lib/timecontrolpanel.cc
index f02e536..4c5a718 100644
--- a/gr-qtgui/lib/timecontrolpanel.cc
+++ b/gr-qtgui/lib/timecontrolpanel.cc
@@ -163,6 +163,8 @@ TimeControlPanel::TimeControlPanel(TimeDisplayForm *form)
d_parent, SLOT(autoScaleShot(void)));
connect(d_stop_button, SIGNAL(pressed(void)),
d_parent, SLOT(setStop(void)));
+ connect(this, SIGNAL(signalToggleStopButton(void)),
+ d_stop_button, SLOT(toggle(void)));
}
TimeControlPanel::~TimeControlPanel()
@@ -200,3 +202,9 @@
TimeControlPanel::toggleTriggerSlope(gr::qtgui::trigger_slope slope)
{
d_trigger_slope_combo->setCurrentIndex(static_cast<int>(slope));
}
+
+void
+TimeControlPanel::toggleStopButton()
+{
+ emit signalToggleStopButton();
+}
diff --git a/gr-qtgui/lib/timedisplayform.cc b/gr-qtgui/lib/timedisplayform.cc
index 160cf14..b8718c5 100644
--- a/gr-qtgui/lib/timedisplayform.cc
+++ b/gr-qtgui/lib/timedisplayform.cc
@@ -196,6 +196,8 @@ TimeDisplayForm::setupControlPanel()
d_controlpanel, SLOT(toggleTriggerSlope(gr::qtgui::trigger_slope)));
connect(this, SIGNAL(signalTriggerSlope(gr::qtgui::trigger_slope)),
d_controlpanel, SLOT(toggleTriggerSlope(gr::qtgui::trigger_slope)));
+ connect(d_stop_act, SIGNAL(triggered()),
+ d_controlpanel, SLOT(toggleStopButton()));
d_layout->addLayout(d_controlpanel, 0, 1);
d_controlpanel->toggleAutoScale(d_autoscale_act->isChecked());
- [Commit-gnuradio] [gnuradio] branch maint updated (a7bffb4 -> 6af7eb5), git, 2015/05/10
- [Commit-gnuradio] [gnuradio] 01/06: Fix minor grc issues in gr-digital: * trigger sink of header_payload_demux should be optional * message source of packet_headerparser_b_default is named "header_data", not "out", git, 2015/05/10
- [Commit-gnuradio] [gnuradio] 05/06: Merge remote-tracking branch 'tom/qtgui/qss_tag_colors' into maint, git, 2015/05/10
- [Commit-gnuradio] [gnuradio] 04/06: Merge remote-tracking branch 'jeremyd/digital_grc_fixes' into maint, git, 2015/05/10
- [Commit-gnuradio] [gnuradio] 06/06: Merge remote-tracking branch 'tom/qtgui/control_panel_stop' into maint, git, 2015/05/10
- [Commit-gnuradio] [gnuradio] 02/06: qtgui: connected control panel and context menu stop button/actions.,
git <=
- [Commit-gnuradio] [gnuradio] 03/06: qtgui: adds ability to set the tag text and background colors., git, 2015/05/10