GNU Radio Manual and C++ API Reference  3.7.4
The Free & Open Software Radio Ecosystem
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 <qevent.h>
27 #include <gnuradio/qtgui/api.h>
28 #include <qwt_plot_picker.h>
29 #include <qwt_picker_machine.h>
30 #include <QString>
31 
32 /*!
33  * From QSS file name, extracts the file contents and returns a
34  * QString that contains the QSS information. Designed to be passed to
35  * the qApplication. The QSS file is typically retrieved using the
36  * [qtgui] qss=<filename> section of the preferences files.
37  */
38 QTGUI_API QString get_qt_style_sheet(QString filename);
39 
40 class QTGUI_API QwtDblClickPlotPicker: public QwtPlotPicker
41 {
42 public:
43 #if QWT_VERSION < 0x060100
44  QwtDblClickPlotPicker(QwtPlotCanvas *);
45 #else /* QWT_VERSION < 0x060100 */
46  QwtDblClickPlotPicker(QWidget *);
47 #endif /* QWT_VERSION < 0x060100 */
48 
50 
51  virtual QwtPickerMachine * stateMachine(int) const;
52 };
53 
54 class QTGUI_API QwtPickerDblClickPointMachine: public QwtPickerMachine
55 {
56 public:
59 
60 #if QWT_VERSION < 0x060000
61  virtual CommandList
62 #else
63  virtual QList<QwtPickerMachine::Command>
64 #endif
65  transition( const QwtEventPattern &eventPattern,
66  const QEvent *e);
67 };
68 
69 #endif /* INCLUDED_QTGUI_UTILS_H */
#define QTGUI_API
Definition: gr-qtgui/include/gnuradio/qtgui/api.h:30
QTGUI_API QString get_qt_style_sheet(QString filename)
Definition: utils.h:54
Definition: utils.h:40