Merging qtdevel2 branch -r10565:10849. This adds a lot of fixes and capabilities...
[debian/gnuradio] / gr-qtgui / src / lib / qtgui.i
index eba37833eff39265a0724746f6ac80c93253d225..1113d647c4e89b6338dd2838bd0edb61a80dec22 100644 (file)
@@ -31,22 +31,37 @@ GR_SWIG_BLOCK_MAGIC(qtgui,sink_c)
 
   qtgui_sink_c_sptr qtgui_make_sink_c (int fftsize, int wintype,
                                       float fmin=-0.5, float fmax=0.5,
-                                      const std::string &name="Display");
+                                      const std::string &name="Display",
+                                      bool plotfreq=true, bool plotwaterfall=true,
+                                      bool plotwaterfall3d=true, bool plottime=true,
+                                      bool plotconst=true,
+                                      QWidget *parent=NULL);
 
 class qtgui_sink_c : public gr_block
 {
 private:
   friend qtgui_sink_c_sptr qtgui_make_sink_c (int fftsize, int wintype,
                                              float fmin, float fmax,
-                                             const std::string &name);
+                                             const std::string &name,
+                                             bool plotfreq, bool plotwaterfall,
+                                             bool plotwaterfall3d, bool plottime,
+                                             bool plotconst,
+                                             QWidget *parent);
   qtgui_sink_c (int fftsize, int wintype,
-               float fmin, float fmax, const std::string &name);
+               float fmin, float fmax,
+               const std::string &name,
+               bool plotfreq, bool plotwaterfall,
+               bool plotwaterfall3d, bool plottime,
+               bool plotconst,
+               QWidget *parent);
 
 public:
-  void start_app();
-  void initialize();
-  void initialize(QApplication *qapp);
-  QApplication* get_qapplication(); 
+  void exec_();
+  PyObject* pyqwidget();
+
+  void set_frequency_range(const double centerfreq,
+                          const double startfreq,
+                          const double stopfreq);
 };
 
 
@@ -56,25 +71,34 @@ public:
 
 GR_SWIG_BLOCK_MAGIC(qtgui,sink_f)
   
-qtgui_sink_f_sptr qtgui_make_sink_f (int fftsize, 
-                                    const std::vector<float> &window,
-                                    float fmin, float fmax, 
-                                    const std::string &name="Display");
+qtgui_sink_f_sptr qtgui_make_sink_f (int fftsize, int wintype,
+                                    float fmin=-0.5, float fmax=0.5,
+                                    const std::string &name="Display",
+                                    bool plotfreq=true, bool plotwaterfall=true,
+                                    bool plotwaterfall3d=true, bool plottime=true,
+                                    bool plotconst=true,
+                                    QWidget *parent=NULL);
 
 class qtgui_sink_f : public gr_block
 {
 private:
-  friend qtgui_sink_f_sptr qtgui_make_sink_f (int fftsize, 
-                                             const std::vector<float> &window,
-                                             float fmin, float fmax, 
-                                             const std::string &name);
-  qtgui_sink_f (int fftsize, 
-               const std::vector<float> &window,
+  friend qtgui_sink_f_sptr qtgui_make_sink_f (int fftsize, int wintype,
+                                             float fmin, float fmax,
+                                             const std::string &name,
+                                             bool plotfreq, bool plotwaterfall,
+                                             bool plotwaterfall3d, bool plottime,
+                                             bool plotconst,
+                                             QWidget *parent);
+  qtgui_sink_f (int fftsize, int wintype,
                float fmin, float fmax,
-               const std::string &name);
-  
+               const std::string &name,
+               bool plotfreq, bool plotwaterfall,
+               bool plotwaterfall3d, bool plottime,
+               bool plotconst,
+               QWidget *parent);
+
 public:
-  void start_app();
+  void exec_();
+  PyObject* pyqwidget();
 };
 
-