[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 18/24: qtgui: fixes number sink to handle P
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 18/24: qtgui: fixes number sink to handle Python/C++ exposure (see: 6a78af5919133 and d9dbb6b489deb) |
Date: |
Tue, 18 Mar 2014 17:51:41 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit e7942e24a48cde22e7503fec763983230bf65354
Author: Tom Rondeau <address@hidden>
Date: Mon Mar 17 16:41:11 2014 -0400
qtgui: fixes number sink to handle Python/C++ exposure (see: 6a78af5919133
and d9dbb6b489deb)
---
gr-qtgui/include/gnuradio/qtgui/number_sink.h | 3 +++
gr-qtgui/lib/number_sink_impl.cc | 6 ++++++
gr-qtgui/lib/number_sink_impl.h | 2 ++
3 files changed, 11 insertions(+)
diff --git a/gr-qtgui/include/gnuradio/qtgui/number_sink.h
b/gr-qtgui/include/gnuradio/qtgui/number_sink.h
index c3829a1..7c7b865 100644
--- a/gr-qtgui/include/gnuradio/qtgui/number_sink.h
+++ b/gr-qtgui/include/gnuradio/qtgui/number_sink.h
@@ -73,9 +73,12 @@ namespace gr {
QWidget *parent=NULL);
virtual void exec_() = 0;
+ virtual QWidget* qwidget() = 0;
#ifdef ENABLE_PYTHON
virtual PyObject* pyqwidget() = 0;
+#else
+ virtual void* pyqwidget() = 0;
#endif
virtual void set_update_time(double t) = 0;
diff --git a/gr-qtgui/lib/number_sink_impl.cc b/gr-qtgui/lib/number_sink_impl.cc
index a2a7d67..abfb872 100644
--- a/gr-qtgui/lib/number_sink_impl.cc
+++ b/gr-qtgui/lib/number_sink_impl.cc
@@ -131,6 +131,12 @@ namespace gr {
PyObject *retarg = Py_BuildValue("N", w);
return retarg;
}
+#else
+ void *
+ number_sink_impl::pyqwidget()
+ {
+ return NULL;
+ }
#endif
void
diff --git a/gr-qtgui/lib/number_sink_impl.h b/gr-qtgui/lib/number_sink_impl.h
index ca1ad0f..0f4fd48 100644
--- a/gr-qtgui/lib/number_sink_impl.h
+++ b/gr-qtgui/lib/number_sink_impl.h
@@ -78,6 +78,8 @@ namespace gr {
#ifdef ENABLE_PYTHON
PyObject* pyqwidget();
+#else
+ void* pyqwidget();
#endif
void set_update_time(double t);
- [Commit-gnuradio] [gnuradio] 11/24: grc: show dummy blocks when opening grc blocks, (continued)
- [Commit-gnuradio] [gnuradio] 11/24: grc: show dummy blocks when opening grc blocks, git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 15/24: grc: tabbed probs: fix initial error box height, git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 14/24: grc: tabbed props: no more double entries, git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 06/24: qtgui: Adding a Number sink with options to set autoscale, layout style, colors, averaging., git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 04/24: Simplify some more., git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 03/24: Move correlate_access_code_tag_bb to non-deprecated GRC category and deprecate the older correlate_access_code_bb., git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 20/24: Merge remote-tracking branch 'skoslowski/grc_show_missing_blocks', git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 09/24: grc: tabbed PropsDialog, git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 19/24: Merge remote-tracking branch 'gnuradio-wg-grc/grc_pygtk_backw_compat_fixes', git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 12/24: grc: special colors for missing blocks, git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 18/24: qtgui: fixes number sink to handle Python/C++ exposure (see: 6a78af5919133 and d9dbb6b489deb),
git <=
- [Commit-gnuradio] [gnuradio] 22/24: qtgui: fixing up a few minor details; include file and ability to set accumulate checkable on startup., git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 10/24: Merge branch 'qtgui_numsink', git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 02/24: Simplify correlate_access_code_tag_bb and fix bug leading to false trigger., git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 23/24: Merge remote-tracking branch 'mbant/doxygen-updates', git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 16/24: qtgui: fixed number display for qwt 5.2, 6.0, and 6.1., git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 08/24: gr-qtgui: Expose the qwidget() method in the public interface, git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 21/24: Merge remote-tracking branch 'bistromath/corr_tag', git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 24/24: Merge branch 'maint', git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 01/24: docs: Updated Doxy files, added search bar, git, 2014/03/18
- [Commit-gnuradio] [gnuradio] 13/24: qtgui: adding a 'config' tab to qtgui sinks to set display/line config options (style, width, colors, etc.), git, 2014/03/18