| 1 | /* |
| 2 | * Copyright (C) 2016, Mike Walters <[email protected]> |
| 3 | * |
| 4 | * This file is part of inspectrum. |
| 5 | * |
| 6 | * This program is free software: you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation, either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 18 | */ |
| 19 | |
| 20 | #pragma once |
| 21 | |
| 22 | #include <QMouseEvent> |
| 23 | #include <QObject> |
| 24 | #include <QPainter> |
| 25 | #include <QPoint> |
| 26 | #include "cursor.h"cxx . . $ `<file>/src/cursor.h`/ |
| 27 | #include "util.h"cxx . . $ `<file>/src/util.h`/ |
| 28 | |
| 29 | class Tunercxx . . $ Tuner# : public QObjectcxx . . $ QObject# |
| 30 | { |
| 31 | Q_OBJECTcxx . . $ Tuner#staticMetaObject. |
| 32 | |
| 33 | public: |
| 34 | Tunercxx . . $ Tuner#Tuner(1ee1e1ac455d3e6e).(int height, QObjectcxx . . $ QObject# * parent); |
| 35 | int centrecxx . . $ Tuner#centre(b126dc7c1de90089).(); |
| 36 | int deviationcxx . . $ Tuner#deviation(b126dc7c1de90089).(); |
| 37 | bool mouseEventcxx . . $ Tuner#mouseEvent(bf65bbe40893342c).(QEventcxx . . $ QEvent#::Typecxx . . $ QEvent#Type#, QMouseEventcxx . . $ QMouseEvent# *event); |
| 38 | void leaveEventcxx . . $ Tuner#leaveEvent(49f6e7a06ebc5aa8).(); |
| 39 | void paintFrontcxx . . $ Tuner#paintFront(dba2c6533854c69f).(QPaintercxx . . $ QPainter# &painter, QRectcxx . . $ QRect# &rect, range_tcxx . . $ range_t#<size_t> sampleRange); |
| 40 | void setCentrecxx . . $ Tuner#setCentre(d4f767463ce0a6b3).(int centre); |
| 41 | void setDeviationcxx . . $ Tuner#setDeviation(d4f767463ce0a6b3).(int dev); |
| 42 | void setHeightcxx . . $ Tuner#setHeight(d4f767463ce0a6b3).(int height); |
| 43 | |
| 44 | public slotscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:88:14`!: |
| 45 | void cursorMovedcxx . . $ Tuner#cursorMoved(49f6e7a06ebc5aa8).(); |
| 46 | |
| 47 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 48 | void tunerMovedcxx . . $ Tuner#tunerMoved(49f6e7a06ebc5aa8).(); |
| 49 | |
| 50 | private: |
| 51 | void updateCursorscxx . . $ Tuner#updateCursors(49f6e7a06ebc5aa8).(); |
| 52 | |
| 53 | Cursorcxx . . $ Cursor# *minCursorcxx . . $ Tuner#minCursor.; |
| 54 | Cursorcxx . . $ Cursor# *cfCursorcxx . . $ Tuner#cfCursor.; |
| 55 | Cursorcxx . . $ Cursor# *maxCursorcxx . . $ Tuner#maxCursor.; |
| 56 | int _deviationcxx . . $ Tuner#_deviation.; |
| 57 | int heightcxx . . $ Tuner#height.; |
| 58 | }; |