| 1 | // SPDX-License-Identifier: GPL-3.0-or-latercxx . . $ `<file>/src/core/components/sensors/graphitem.h`/ |
| 2 | // Copyright 2019 Juan Palacios <[email protected]> |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "graphitemprofilepart.h"cxx . . $ `<file>/src/core/components/sensors/graphitemprofilepart.h`/ |
| 7 | #include <QList> |
| 8 | #include <QObject> |
| 9 | #include <QPointF> |
| 10 | #include <QQuickItem> |
| 11 | #include <QString> |
| 12 | #include <QtCharts/QAbstractAxis> |
| 13 | #include <QtCharts/QChart> |
| 14 | #include <QtCharts/QLineSeries> |
| 15 | #include <string> |
| 16 | #include <string_view> |
| 17 | |
| 18 | QT_USE_NAMESPACEcxx . . $ `<external>/7770798561591309169/qtconfigmacros.h:102:10`! |
| 19 | |
| 20 | class GraphItemcxx . . $ GraphItem# |
| 21 | : public QQuickItemcxx . . $ QQuickItem# |
| 22 | , public GraphItemProfilePartcxx . . $ GraphItemProfilePart#::Importercxx . . $ GraphItemProfilePart#Importer# |
| 23 | , public GraphItemProfilePartcxx . . $ GraphItemProfilePart#::Exportercxx . . $ GraphItemProfilePart#Exporter# |
| 24 | { |
| 25 | Q_OBJECTcxx . . $ QMetaObject#Call# |
| 26 | Q_PROPERTYcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:58:9`!(QString name READ name NOTIFY nameChanged) |
| 27 | Q_PROPERTYcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:58:9`!(qreal value READ value NOTIFY valueChanged) |
| 28 | Q_PROPERTYcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:58:9`!(bool active READ active WRITE active NOTIFY activeChanged) |
| 29 | Q_PROPERTYcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:58:9`!(bool ignored READ ignored WRITE ignored NOTIFY ignoredChanged) |
| 30 | Q_PROPERTYcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:58:9`!(QString unit READ unit) |
| 31 | Q_PROPERTYcxx . . $ `<external>/4830994369567095248/qtmetamacros.h:58:9`!(QString color READ color) |
| 32 | |
| 33 | public: |
| 34 | GraphItemcxx . . $ GraphItem#GraphItem(9ebb09e227cac344).(stdcxx . . $ std/::string_viewcxx . . $ std/string_view# name, stdcxx . . $ std/::string_viewcxx . . $ std/string_view# unit); |
| 35 | |
| 36 | QStringcxx . . $ QString# const &namecxx . . $ GraphItem#name(a2fb7a6ce195d51).() const; |
| 37 | QStringcxx . . $ QString# const &unitcxx . . $ GraphItem#unit(a2fb7a6ce195d51).() const; |
| 38 | QStringcxx . . $ QString# colorcxx . . $ GraphItem#color(6ef7b6c27b00b43d).() const; |
| 39 | qrealcxx . . $ qreal# valuecxx . . $ GraphItem#value(21b6c25e127938e2).() const; |
| 40 | |
| 41 | void initialRangecxx . . $ GraphItem#initialRange(bc12c9ec15586e6a).(qrealcxx . . $ qreal# min, qrealcxx . . $ qreal# max); |
| 42 | void updateGraphcxx . . $ GraphItem#updateGraph(ba8836b59fb42830).(qrealcxx . . $ qreal# value); |
| 43 | |
| 44 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Importablecxx . . $ Importable#::Importercxx . . $ Importable#Importer#>> |
| 45 | provideImportercxx . . $ GraphItem#provideImporter(c13a3bcac0db4745).(Itemcxx . . $ Item# const &i) final override; |
| 46 | stdcxx . . $ std/::optionalcxx . . $ std/optional#<stdcxx . . $ std/::reference_wrappercxx . . $ std/reference_wrapper#<Exportablecxx . . $ Exportable#::Exportercxx . . $ Exportable#Exporter#>> |
| 47 | provideExportercxx . . $ GraphItem#provideExporter(3acccbde2694e33a).(Itemcxx . . $ Item# const &i) final override; |
| 48 | |
| 49 | bool provideActivecxx . . $ GraphItem#provideActive(50ce9a9e25b4a850).() const final override; |
| 50 | stdcxx . . $ std/::stringcxx . . $ std/string# const &provideColorcxx . . $ GraphItem#provideColor(f4fff0029955a25f).() const final override; |
| 51 | |
| 52 | void takeActivecxx . . $ GraphItem#takeActive(b45ddcbc8423892c).(bool active) override; |
| 53 | |
| 54 | void takeColorcxx . . $ GraphItem#takeColor(9c546c94e5fcce4e).(stdcxx . . $ std/::stringcxx . . $ std/string# const &color) override; |
| 55 | |
| 56 | virtual void initcxx . . $ GraphItem#init(3bf673abd0708ab9).(Exportablecxx . . $ Exportable# const *e) = 0; |
| 57 | |
| 58 | public slotscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:42:14`!: |
| 59 | void configurecxx . . $ GraphItem#configure(76486491299da10).(QAbstractSeriescxx . . $ QAbstractSeries# *series, QAbstractAxiscxx . . $ QAbstractAxis# *xAxis, |
| 60 | QAbstractAxiscxx . . $ QAbstractAxis# *yAxis); |
| 61 | void updateYAxisRangecxx . . $ GraphItem#updateYAxisRange(bc12c9ec15586e6a).(qrealcxx . . $ qreal# min, qrealcxx . . $ qreal# max); |
| 62 | void refreshSeriePointscxx . . $ GraphItem#refreshSeriePoints(49f6e7a06ebc5aa8).(); |
| 63 | |
| 64 | virtual void updatecxx . . $ GraphItem#update(49f6e7a06ebc5aa8).() = 0; |
| 65 | |
| 66 | signalscxx . . $ `<external>/4830994369567095248/qtmetamacros.h:43:14`!: |
| 67 | void settingsChangedcxx . . $ GraphItem#settingsChanged(49f6e7a06ebc5aa8).(); |
| 68 | void nameChangedcxx . . $ GraphItem#nameChanged(49f6e7a06ebc5aa8).(); |
| 69 | void valueChangedcxx . . $ GraphItem#valueChanged(ba8836b59fb42830).(qrealcxx . . $ qreal# value); |
| 70 | void activeChangedcxx . . $ GraphItem#activeChanged(b45ddcbc8423892c).(bool active); |
| 71 | void colorChangedcxx . . $ GraphItem#colorChanged(3520e46b33348bf6).(QStringcxx . . $ QString# const &color); |
| 72 | void ignoredChangedcxx . . $ GraphItem#ignoredChanged(b45ddcbc8423892c).(bool ignored); |
| 73 | void yAxisRangeChangedcxx . . $ GraphItem#yAxisRangeChanged(bc12c9ec15586e6a).(qrealcxx . . $ qreal# min, qrealcxx . . $ qreal# max); |
| 74 | |
| 75 | private: |
| 76 | bool activecxx . . $ GraphItem#active(50ce9a9e25b4a850).() const; |
| 77 | void activecxx . . $ GraphItem#active(b45ddcbc8423892c).(bool active); |
| 78 | bool ignoredcxx . . $ GraphItem#ignored(50ce9a9e25b4a850).() const; |
| 79 | void ignoredcxx . . $ GraphItem#ignored(b45ddcbc8423892c).(bool ignored); |
| 80 | void updateYAxiscxx . . $ GraphItem#updateYAxis(ba8836b59fb42830).(qrealcxx . . $ qreal# value); |
| 81 | void restartXPointscxx . . $ GraphItem#restartXPoints(49f6e7a06ebc5aa8).(); |
| 82 | |
| 83 | static unsigned short const PointsCountcxx . . $ GraphItem#PointsCount.; |
| 84 | |
| 85 | QStringcxx . . $ QString# const name_cxx . . $ GraphItem#name_.; |
| 86 | QStringcxx . . $ QString# const unit_cxx . . $ GraphItem#unit_.; |
| 87 | |
| 88 | stdcxx . . $ std/::stringcxx . . $ std/string# color_cxx . . $ GraphItem#color_.{cxx . . $ std/__cxx11/basic_string#basic_string(e36662616dba894d)."white"}; |
| 89 | bool active_cxx . . $ GraphItem#active_.{true}; |
| 90 | bool ignored_cxx . . $ GraphItem#ignored_.{false}; |
| 91 | |
| 92 | qrealcxx . . $ qreal# value_cxx . . $ GraphItem#value_.{0}; |
| 93 | |
| 94 | QListcxx . . $ QList#<QPointFcxx . . $ QPointF#> points_cxx . . $ GraphItem#points_.; |
| 95 | |
| 96 | QLineSeriescxx . . $ QLineSeries# *series_cxx . . $ GraphItem#series_.{nullptr}; |
| 97 | QAbstractAxiscxx . . $ QAbstractAxis# *xAxis_cxx . . $ GraphItem#xAxis_.; |
| 98 | QAbstractAxiscxx . . $ QAbstractAxis# *yAxis_cxx . . $ GraphItem#yAxis_.; |
| 99 | |
| 100 | qrealcxx . . $ qreal# yMin_cxx . . $ GraphItem#yMin_.; |
| 101 | qrealcxx . . $ qreal# yMax_cxx . . $ GraphItem#yMax_.; |
| 102 | }; |