GNU Radio Manual and C++ API Reference  3.10.9.1
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:
34 
35  virtual QwtPickerMachine* stateMachine(int) const;
36 };
37 
38 class QTGUI_API QwtPickerDblClickPointMachine : public QwtPickerMachine
39 {
40 public:
43 
44  QList<QwtPickerMachine::Command> transition(const QwtEventPattern& eventPattern,
45  const QEvent* e) override;
46 };
47 
48 QTGUI_API void check_set_qss(QApplication* app);
49 
50 #endif /* INCLUDED_QTGUI_UTILS_H */
Definition: utils.h:30
~QwtDblClickPlotPicker() override
QwtDblClickPlotPicker(QWidget *)
virtual QwtPickerMachine * stateMachine(int) const
Definition: utils.h:39
QList< QwtPickerMachine::Command > 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)
QTGUI_API void check_set_qss(QApplication *app)