GNU Radio Manual and C++ API Reference
3.8.1.0
The Free & Open Software Radio Ecosystem
utils.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2011,2012 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_QTGUI_UTILS_H
24
#define INCLUDED_QTGUI_UTILS_H
25
26
#include <
gnuradio/qtgui/api.h
>
27
#include <qevent.h>
28
#include <qwt_picker_machine.h>
29
#include <qwt_plot_picker.h>
30
#include <QCoreApplication>
31
#include <QString>
32
33
/*!
34
* From QSS file name, extracts the file contents and returns a
35
* QString that contains the QSS information. Designed to be passed to
36
* the qApplication. The QSS file is typically retrieved using the
37
* [qtgui] qss=<filename> section of the preferences files.
38
*/
39
QTGUI_API
QString
get_qt_style_sheet
(QString filename);
40
41
class
QTGUI_API
QwtDblClickPlotPicker
:
public
QwtPlotPicker
42
{
43
public
:
44
#if QWT_VERSION < 0x060100
45
QwtDblClickPlotPicker
(QwtPlotCanvas*);
46
#else
/* QWT_VERSION < 0x060100 */
47
QwtDblClickPlotPicker
(QWidget*);
48
#endif
/* QWT_VERSION < 0x060100 */
49
50
~
QwtDblClickPlotPicker
();
51
52
virtual
QwtPickerMachine* stateMachine(
int
)
const
;
53
};
54
55
class
QTGUI_API
QwtPickerDblClickPointMachine
:
public
QwtPickerMachine
56
{
57
public
:
58
QwtPickerDblClickPointMachine
();
59
~
QwtPickerDblClickPointMachine
();
60
61
#if QWT_VERSION < 0x060000
62
virtual
CommandList
63
#else
64
virtual
QList<QwtPickerMachine::Command>
65
#endif
66
transition(
const
QwtEventPattern& eventPattern,
const
QEvent* e);
67
};
68
69
void
check_set_qss
(QApplication* app);
70
71
#endif
/* INCLUDED_QTGUI_UTILS_H */
QTGUI_API
#define QTGUI_API
Definition:
gr-qtgui/include/gnuradio/qtgui/api.h:30
api.h
QwtPickerDblClickPointMachine
Definition:
utils.h:55
check_set_qss
void check_set_qss(QApplication *app)
QwtDblClickPlotPicker
Definition:
utils.h:41
get_qt_style_sheet
QTGUI_API QString get_qt_style_sheet(QString filename)
gr-qtgui
include
gnuradio
qtgui
utils.h
Generated by
1.8.16