GNU Radio's DISPLAY Package
show_text_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2013 Volker Schroer, DL1KSV.
4 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3, or (at your option)
8 * any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; see the file COPYING. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street,
18 * Boston, MA 02110-1301, USA.
19 */
20#ifndef INCLUDED_DISPLAY_SHOW_TEXT_IMPL_H
21#define INCLUDED_DISPLAY_SHOW_TEXT_IMPL_H
22
23#include <display/show_text.h>
24#include <QApplication>
25
27
28namespace gr {
29namespace display {
30
32{
33private:
34 int d_splitlength;
35 QWidget* d_parent;
36 show_text_window* d_main_gui;
37 char* d_argv;
38
39public:
40 show_text_impl(const std::string& label,
41 int splitlength,
42 int maxlines,
43 QWidget* parent);
45
46 QApplication* d_qApplication;
47
48 void exec_() override;
49 QWidget* qwidget() override;
50
51 // Where all the action really happens
52 int work(int noutput_items,
53 gr_vector_const_void_star& input_items,
54 gr_vector_void_star& output_items);
55};
56
57} // namespace display
58} // namespace gr
59
60#endif /* INCLUDED_DISPLAY_SHOW_TEXT_IMPL_H */
int work(int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
show_text_impl(const std::string &label, int splitlength, int maxlines, QWidget *parent)
QApplication * d_qApplication
Definition show_text_impl.h:46
QWidget * qwidget() override
Create a QT Text sink, where the values are received as stream.
Definition show_text.h:40
Definition show_text_window.h:34
Definition display_text_msg.h:27
Definition display_text_msg.h:26