GNU Radio's DISPLAY Package
display_text_msg_impl.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2016 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * GNU Radio is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 3, or (at your option)
10 * any later version.
11 *
12 * GNU Radio is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with GNU Radio; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 51 Franklin Street,
20 * Boston, MA 02110-1301, USA.
21 */
22
23#ifndef INCLUDED_DISPLAY_TEXT_MSG_IMPL_H
24#define INCLUDED_DISPLAY_TEXT_MSG_IMPL_H
25
26#include "show_text_window.h"
28#include <qapplication.h>
29
30namespace gr {
31namespace display {
32
34{
35
36public:
37 text_msg_impl(const std::string& label,
38 const std::string& message_key,
39 int splitlength,
40 int maxlines,
41 QWidget* parent);
43
44 void exec_();
45 QApplication* d_qApplication;
46 QWidget* qwidget();
47
48 PyObject* pyqwidget();
49
50 void set_value(pmt::pmt_t val);
51
52private:
53 int d_argc;
54 char* d_argv;
55 show_text_window* d_text;
56 int d_splitlength;
57 pmt::pmt_t d_message_key;
58};
59
60} // namespace display
61} /* namespace gr */
62
63#endif /* INCLUDED_DISPLAY_TEXT_MSG_IMPL_H */
#define DISPLAY_API
Definition api.h:30
text_msg_impl(const std::string &label, const std::string &message_key, int splitlength, int maxlines, QWidget *parent)
QApplication * d_qApplication
Definition display_text_msg_impl.h:45
void set_value(pmt::pmt_t val)
Create a QT Text box widget (QLabel) where the values are posted as a message.
Definition display_text_msg.h:45
Definition show_text_window.h:34
Definition display_text_msg.h:27
Definition display_text_msg.h:26