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