diff options
author | Tom Rondeau <tom@trondeau.com> | 2015-04-04 17:12:19 -0400 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2015-04-04 17:12:19 -0400 |
commit | b68ba8d358a19e91fc143f72772b17336a722f4b (patch) | |
tree | c331f1d8770523c41b518fe1d50a59d9d4bc687f /gr-qtgui/lib | |
parent | 8cdc041e1aaf8771de0fd9e7327720dc5b383464 (diff) |
qtgui: toggle legend off in GRC properties.
Supported in: time, ferq, waterfall, constellation, and historgram
plots
Diffstat (limited to 'gr-qtgui/lib')
-rw-r--r-- | gr-qtgui/lib/const_sink_c_impl.cc | 6 | ||||
-rw-r--r-- | gr-qtgui/lib/const_sink_c_impl.h | 1 | ||||
-rw-r--r-- | gr-qtgui/lib/histogram_sink_f_impl.cc | 6 | ||||
-rw-r--r-- | gr-qtgui/lib/histogram_sink_f_impl.h | 1 | ||||
-rw-r--r-- | gr-qtgui/lib/time_sink_c_impl.cc | 6 | ||||
-rw-r--r-- | gr-qtgui/lib/time_sink_c_impl.h | 1 | ||||
-rw-r--r-- | gr-qtgui/lib/time_sink_f_impl.cc | 6 | ||||
-rw-r--r-- | gr-qtgui/lib/time_sink_f_impl.h | 1 | ||||
-rw-r--r-- | gr-qtgui/lib/waterfall_sink_c_impl.cc | 6 | ||||
-rw-r--r-- | gr-qtgui/lib/waterfall_sink_c_impl.h | 1 | ||||
-rw-r--r-- | gr-qtgui/lib/waterfall_sink_f_impl.cc | 6 | ||||
-rw-r--r-- | gr-qtgui/lib/waterfall_sink_f_impl.h | 1 |
12 files changed, 42 insertions, 0 deletions
diff --git a/gr-qtgui/lib/const_sink_c_impl.cc b/gr-qtgui/lib/const_sink_c_impl.cc index 10b342dbf5..0711315bbb 100644 --- a/gr-qtgui/lib/const_sink_c_impl.cc +++ b/gr-qtgui/lib/const_sink_c_impl.cc @@ -360,6 +360,12 @@ namespace gr { } void + const_sink_c_impl::disable_legend() + { + d_main_gui->disableLegend(); + } + + void const_sink_c_impl::reset() { gr::thread::scoped_lock lock(d_setlock); diff --git a/gr-qtgui/lib/const_sink_c_impl.h b/gr-qtgui/lib/const_sink_c_impl.h index a7f0096dfb..fc3706ea27 100644 --- a/gr-qtgui/lib/const_sink_c_impl.h +++ b/gr-qtgui/lib/const_sink_c_impl.h @@ -115,6 +115,7 @@ namespace gr { void enable_menu(bool en); void enable_autoscale(bool en); void enable_grid(bool en); + void disable_legend(); void reset(); int work(int noutput_items, diff --git a/gr-qtgui/lib/histogram_sink_f_impl.cc b/gr-qtgui/lib/histogram_sink_f_impl.cc index 56a4177a5c..cdaf5cffc7 100644 --- a/gr-qtgui/lib/histogram_sink_f_impl.cc +++ b/gr-qtgui/lib/histogram_sink_f_impl.cc @@ -363,6 +363,12 @@ namespace gr { } void + histogram_sink_f_impl::disable_legend() + { + d_main_gui->disableLegend(); + } + + void histogram_sink_f_impl::autoscalex() { d_main_gui->autoScaleX(); diff --git a/gr-qtgui/lib/histogram_sink_f_impl.h b/gr-qtgui/lib/histogram_sink_f_impl.h index a5409a2ef6..e8ae1ac729 100644 --- a/gr-qtgui/lib/histogram_sink_f_impl.h +++ b/gr-qtgui/lib/histogram_sink_f_impl.h @@ -102,6 +102,7 @@ namespace gr { void enable_semilogx(bool en); void enable_semilogy(bool en); void enable_accumulate(bool en); + void disable_legend(); void autoscalex(); int nsamps() const; int bins() const; diff --git a/gr-qtgui/lib/time_sink_c_impl.cc b/gr-qtgui/lib/time_sink_c_impl.cc index 5260f7e7ce..fe33a0997e 100644 --- a/gr-qtgui/lib/time_sink_c_impl.cc +++ b/gr-qtgui/lib/time_sink_c_impl.cc @@ -434,6 +434,12 @@ namespace gr { } void + time_sink_c_impl::disable_legend() + { + d_main_gui->disableLegend(); + } + + void time_sink_c_impl::reset() { gr::thread::scoped_lock lock(d_setlock); diff --git a/gr-qtgui/lib/time_sink_c_impl.h b/gr-qtgui/lib/time_sink_c_impl.h index 3a836a34bb..f29d84768d 100644 --- a/gr-qtgui/lib/time_sink_c_impl.h +++ b/gr-qtgui/lib/time_sink_c_impl.h @@ -127,6 +127,7 @@ namespace gr { void enable_semilogy(bool en); void enable_control_panel(bool en); void enable_tags(int which, bool en); + void disable_legend(); void reset(); diff --git a/gr-qtgui/lib/time_sink_f_impl.cc b/gr-qtgui/lib/time_sink_f_impl.cc index 3c83983bd8..d0cafd42a9 100644 --- a/gr-qtgui/lib/time_sink_f_impl.cc +++ b/gr-qtgui/lib/time_sink_f_impl.cc @@ -430,6 +430,12 @@ namespace gr { } void + time_sink_f_impl::disable_legend() + { + d_main_gui->disableLegend(); + } + + void time_sink_f_impl::reset() { gr::thread::scoped_lock lock(d_setlock); diff --git a/gr-qtgui/lib/time_sink_f_impl.h b/gr-qtgui/lib/time_sink_f_impl.h index 4f8193e624..1d42f36994 100644 --- a/gr-qtgui/lib/time_sink_f_impl.h +++ b/gr-qtgui/lib/time_sink_f_impl.h @@ -127,6 +127,7 @@ namespace gr { void enable_semilogy(bool en); void enable_control_panel(bool en); void enable_tags(int which, bool en); + void disable_legend(); void reset(); diff --git a/gr-qtgui/lib/waterfall_sink_c_impl.cc b/gr-qtgui/lib/waterfall_sink_c_impl.cc index e5d43f4662..1675b8001a 100644 --- a/gr-qtgui/lib/waterfall_sink_c_impl.cc +++ b/gr-qtgui/lib/waterfall_sink_c_impl.cc @@ -346,6 +346,12 @@ namespace gr { } void + waterfall_sink_c_impl::disable_legend() + { + d_main_gui->disableLegend(); + } + + void waterfall_sink_c_impl::fft(float *data_out, const gr_complex *data_in, int size) { if(d_window.size()) { diff --git a/gr-qtgui/lib/waterfall_sink_c_impl.h b/gr-qtgui/lib/waterfall_sink_c_impl.h index 6ab09bdd9b..e21de88fba 100644 --- a/gr-qtgui/lib/waterfall_sink_c_impl.h +++ b/gr-qtgui/lib/waterfall_sink_c_impl.h @@ -125,6 +125,7 @@ namespace gr { void enable_menu(bool en); void enable_grid(bool en); + void disable_legend(); int work(int noutput_items, gr_vector_const_void_star &input_items, diff --git a/gr-qtgui/lib/waterfall_sink_f_impl.cc b/gr-qtgui/lib/waterfall_sink_f_impl.cc index adae592bff..7bb2a096ca 100644 --- a/gr-qtgui/lib/waterfall_sink_f_impl.cc +++ b/gr-qtgui/lib/waterfall_sink_f_impl.cc @@ -351,6 +351,12 @@ namespace gr { } void + waterfall_sink_f_impl::disable_legend() + { + d_main_gui->disableLegend(); + } + + void waterfall_sink_f_impl::fft(float *data_out, const float *data_in, int size) { // float to complex conversion diff --git a/gr-qtgui/lib/waterfall_sink_f_impl.h b/gr-qtgui/lib/waterfall_sink_f_impl.h index 2710f304ec..8be0003340 100644 --- a/gr-qtgui/lib/waterfall_sink_f_impl.h +++ b/gr-qtgui/lib/waterfall_sink_f_impl.h @@ -126,6 +126,7 @@ namespace gr { void enable_menu(bool en); void enable_grid(bool en); + void disable_legend(); int work(int noutput_items, gr_vector_const_void_star &input_items, |