GNU Radio Manual and C++ API Reference  v3.9.2.0-89-gb7c7001e
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  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_QTGUI_UTILS_H
12 #define INCLUDED_QTGUI_UTILS_H
13 
14 #include <gnuradio/qtgui/api.h>
15 #include <qevent.h>
16 #include <qwt_picker_machine.h>
17 #include <qwt_plot_picker.h>
18 #include <QCoreApplication>
19 #include <QString>
20 
21 /*!
22  * From QSS file name, extracts the file contents and returns a
23  * QString that contains the QSS information. Designed to be passed to
24  * the qApplication. The QSS file is typically retrieved using the
25  * [qtgui] qss=<filename> section of the preferences files.
26  */
27 QTGUI_API QString get_qt_style_sheet(QString filename);
28 
29 class QTGUI_API QwtDblClickPlotPicker : public QwtPlotPicker
30 {
31 public:
32 #if QWT_VERSION < 0x060100
33  QwtDblClickPlotPicker(QwtPlotCanvas*);
34 #else /* QWT_VERSION < 0x060100 */
35  QwtDblClickPlotPicker(QWidget*);
36 #endif /* QWT_VERSION < 0x060100 */
37 
39 
40  virtual QwtPickerMachine* stateMachine(int) const;
41 };
42 
43 class QTGUI_API QwtPickerDblClickPointMachine : public QwtPickerMachine
44 {
45 public:
48 
49 #if QWT_VERSION < 0x060000
50  virtual CommandList
51 #else
52  QList<QwtPickerMachine::Command>
53 #endif
54  transition(const QwtEventPattern& eventPattern, const QEvent* e) override;
55 };
56 
57 void check_set_qss(QApplication* app);
58 
59 #endif /* INCLUDED_QTGUI_UTILS_H */
Definition: utils.h:30
~QwtDblClickPlotPicker() override
QwtDblClickPlotPicker(QwtPlotCanvas *)
virtual QwtPickerMachine * stateMachine(int) const
Definition: utils.h:44
virtual CommandList transition(const QwtEventPattern &eventPattern, const QEvent *e) override
~QwtPickerDblClickPointMachine() override
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:18
QTGUI_API QString get_qt_style_sheet(QString filename)
void check_set_qss(QApplication *app)