| 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 "abstractsamplesource.h"cxx . . $ `<file>/src/abstractsamplesource.h`/ |
| 26 | #include "util.h"cxx . . $ `<file>/src/util.h`/ |
| 27 | |
| 28 | class Plotcxx . . $ Plot# : public QObjectcxx . . $ QObject#, public Subscribercxx . . $ Subscriber# |
| 29 | { |
| 30 | Q_OBJECTcxx . . $ Plot#QPrivateSignal# |
| 31 | |
| 32 | public: |
| 33 | Plotcxx . . $ Plot#Plot(22d84a47a7b53cf1).(stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<AbstractSampleSourcecxx . . $ AbstractSampleSource#> src); |
| 34 | ~cxx . . $ Plot#`~Plot`(49f6e7a06ebc5aa8).Plotcxx . . $ Plot#(); |
| 35 | void invalidateEventcxx . . $ Plot#invalidateEvent(49f6e7a06ebc5aa8).() override; |
| 36 | virtual bool mouseEventcxx . . $ Plot#mouseEvent(bf65bbe40893342c).(QEventcxx . . $ QEvent#::Typecxx . . $ QEvent#Type# type, QMouseEventcxx . . $ QMouseEvent# *event); |
| 37 | virtual void leaveEventcxx . . $ Plot#leaveEvent(49f6e7a06ebc5aa8).(); |
| 38 | virtual stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<AbstractSampleSourcecxx . . $ AbstractSampleSource#> outputcxx . . $ Plot#output(aad09d7b1d4b04e1).(); |
| 39 | virtual void paintBackcxx . . $ Plot#paintBack(dba2c6533854c69f).(QPaintercxx . . $ QPainter# &painter, QRectcxx . . $ QRect# &rect, range_tcxx . . $ range_t#<size_tcxx . . $ size_t#> sampleRange); |
| 40 | virtual void paintMidcxx . . $ Plot#paintMid(dba2c6533854c69f).(QPaintercxx . . $ QPainter# &painter, QRectcxx . . $ QRect# &rect, range_tcxx . . $ range_t#<size_tcxx . . $ size_t#> sampleRange); |
| 41 | virtual void paintFrontcxx . . $ Plot#paintFront(dba2c6533854c69f).(QPaintercxx . . $ QPainter# &painter, QRectcxx . . $ QRect# &rect, range_tcxx . . $ range_t#<size_tcxx . . $ size_t#> sampleRange); |
| 42 | int heightcxx . . $ Plot#height(455f465bc33b4cdf).() const { return _heightcxx . . $ Plot#_height.; }; |
| 43 | |
| 44 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 45 | void repaintcxx . . $ Plot#repaint(49f6e7a06ebc5aa8).(); |
| 46 | |
| 47 | protected: |
| 48 | void setHeightcxx . . $ Plot#setHeight(d4f767463ce0a6b3).(int height) { _heightcxx . . $ Plot#_height. = height; }; |
| 49 | |
| 50 | stdcxx . . $ std/::shared_ptrcxx . . $ std/shared_ptr#<AbstractSampleSourcecxx . . $ AbstractSampleSource#> sampleSourcecxx . . $ Plot#sampleSource.; |
| 51 | |
| 52 | private: |
| 53 | // TODO: don't hardcode this |
| 54 | int _heightcxx . . $ Plot#_height. = 200; |
| 55 | }; |