summaryrefslogtreecommitdiff
path: root/gr-qtgui/src/lib/qtgui_sink_c.h
diff options
context:
space:
mode:
authortrondeau2009-02-28 03:41:15 +0000
committertrondeau2009-02-28 03:41:15 +0000
commit916a20271b7d81edc40dfc18468634311172c952 (patch)
tree21115d9600b6abd919ffcf2e526c27b76e5f5a3f /gr-qtgui/src/lib/qtgui_sink_c.h
parentd31a4ee4ce385907a9886f9796cbe379f95ca8c9 (diff)
downloadgnuradio-916a20271b7d81edc40dfc18468634311172c952.tar.gz
gnuradio-916a20271b7d81edc40dfc18468634311172c952.tar.bz2
gnuradio-916a20271b7d81edc40dfc18468634311172c952.zip
some cleanup as well as adding a way to pass the Qapplication between sinks that allows multiple GUIs to be defined and run.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10535 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-qtgui/src/lib/qtgui_sink_c.h')
-rw-r--r--gr-qtgui/src/lib/qtgui_sink_c.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gr-qtgui/src/lib/qtgui_sink_c.h b/gr-qtgui/src/lib/qtgui_sink_c.h
index a6bd59f27..a1eb05649 100644
--- a/gr-qtgui/src/lib/qtgui_sink_c.h
+++ b/gr-qtgui/src/lib/qtgui_sink_c.h
@@ -44,6 +44,8 @@ private:
float fmin, float fmax, const std::string &name);
qtgui_sink_c (int fftsize, int wintype,
float fmin, float fmax, const std::string &name);
+
+ void __initialize();
int d_fftsize;
gr_firdes::win_type d_wintype;
@@ -70,12 +72,16 @@ private:
public:
~qtgui_sink_c();
+ void initialize();
+ void initialize(QApplication *qapp);
void start_app();
void lock();
void unlock();
- QApplication *d_qApplication
-;
+ QApplication* get_qapplication();
+
+ QApplication *d_qApplication;
+ qtgui_obj *d_object;
int general_work (int noutput_items,
gr_vector_int &ninput_items,