From b7092ed3a5aad552f2b01ed167c4330cd20e26e6 Mon Sep 17 00:00:00 2001 From: "PANIK\\chris" Date: Fri, 26 Dec 2025 23:10:53 +0100 Subject: [PATCH] Add missing files via terminal. --- bcdevicepanel.cpp | 77 +++++++++++++++++++++++++++++++++++++++++++++++ bcdevicepanel.h | 63 ++++++++++++++++++++++++++++++++++++++ bcdevicepanel.ui | 40 ++++++++++++++++++++++++ bctoolbutton.cpp | 44 +++++++++++++++++++++++++++ bctoolbutton.h | 46 ++++++++++++++++++++++++++++ 5 files changed, 270 insertions(+) create mode 100644 bcdevicepanel.cpp create mode 100644 bcdevicepanel.h create mode 100644 bcdevicepanel.ui create mode 100644 bctoolbutton.cpp create mode 100644 bctoolbutton.h diff --git a/bcdevicepanel.cpp b/bcdevicepanel.cpp new file mode 100644 index 0000000..75f8731 --- /dev/null +++ b/bcdevicepanel.cpp @@ -0,0 +1,77 @@ +/*************************************************************************** + + BionxControl + Copyright © 2025 christoph holzheuer + christoph.holzheuer@gmail.com + + Using: + + mhs_can_drv.c + © 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany + Klaus Demlehner, klaus@mhs-elektronik.de + @see www.mhs-elektronik.de + + Based on Bionx data type descriptions from: + + BigXionFlasher USB V 0.2.4 rev. 97 + © 2011-2013 by Thomas Koenig + @see www.bigxionflasher.org + + Bionx Bike Info + © 2018 Thorsten Schmidt (tschmidt@ts-soft.de) + @see www.ts-soft.de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + @see https://github.com/bikemike/bionx-bikeinfo + + ***************************************************************************/ + + +#include + +BCDevicePanel::BCDevicePanel(QWidget *parent) + : QWidget(parent) +{ + + setupUi(this); + +} + + + +void BCDevicePanel::setHeaderText( const QString& headerText) +{ + _headerLabel->setText( headerText ); +} + +QString BCDevicePanel::getHeaderText() +{ + return _headerLabel->text(); +} + +QTableView* BCDevicePanel::getValueView() +{ + return _valueView; +} + +void BCDevicePanel::setValueList(const BCValueList& valueList) +{ + +} + + +const BCValueList& BCDevicePanel::getValueList() +{ + +} + +/* +QTableView* BCDevicePanel::setValueView() +{ + return _valueView; +} +*/ + diff --git a/bcdevicepanel.h b/bcdevicepanel.h new file mode 100644 index 0000000..f216c92 --- /dev/null +++ b/bcdevicepanel.h @@ -0,0 +1,63 @@ +/*************************************************************************** + + BionxControl + Copyright © 2025 christoph holzheuer + christoph.holzheuer@gmail.com + + Using: + + mhs_can_drv.c + © 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany + Klaus Demlehner, klaus@mhs-elektronik.de + @see www.mhs-elektronik.de + + Based on Bionx data type descriptions from: + + BigXionFlasher USB V 0.2.4 rev. 97 + © 2011-2013 by Thomas Koenig + @see www.bigxionflasher.org + + Bionx Bike Info + © 2018 Thorsten Schmidt (tschmidt@ts-soft.de) + @see www.ts-soft.de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + @see https://github.com/bikemike/bionx-bikeinfo + + ***************************************************************************/ + + +#ifndef BCDEVICEPANEL_H +#define BCDEVICEPANEL_H + +#include +#include + +class BCDevicePanel : public QWidget, private Ui::BCDevicePanel +{ + Q_OBJECT + Q_PROPERTY(QString headerText READ getHeaderText WRITE setHeaderText DESIGNABLE true) + +public: + + explicit BCDevicePanel(QWidget *parent = nullptr); + + void setHeaderText( const QString& headerText); + QString getHeaderText(); + + void setValueList(const BCValueList& valueList); + const BCValueList& getValueList(); + + QTableView* getValueView(); + +protected: + + BCValueModel _valueModel; + + +}; + +#endif // BCDEVICEPANEL_H diff --git a/bcdevicepanel.ui b/bcdevicepanel.ui new file mode 100644 index 0000000..b080c86 --- /dev/null +++ b/bcdevicepanel.ui @@ -0,0 +1,40 @@ + + + BCDevicePanel + + + + 0 + 0 + 400 + 300 + + + + Form + + + Fitze! + + + + + + + 0 + 30 + + + + TextLabel + + + + + + + + + + + diff --git a/bctoolbutton.cpp b/bctoolbutton.cpp new file mode 100644 index 0000000..df8595a --- /dev/null +++ b/bctoolbutton.cpp @@ -0,0 +1,44 @@ +/*************************************************************************** + + BionxControl + Copyright © 2025 christoph holzheuer + christoph.holzheuer@gmail.com + + Using: + + mhs_can_drv.c + © 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany + Klaus Demlehner, klaus@mhs-elektronik.de + @see www.mhs-elektronik.de + + Based on Bionx data type descriptions from: + + BigXionFlasher USB V 0.2.4 rev. 97 + © 2011-2013 by Thomas Koenig + @see www.bigxionflasher.org + + Bionx Bike Info + © 2018 Thorsten Schmidt (tschmidt@ts-soft.de) + @see www.ts-soft.de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + @see https://github.com/bikemike/bionx-bikeinfo + + ***************************************************************************/ + + +#include + +#include + + + +BCToolButton::BCToolButton(QWidget* parent) + : QToolButton(parent) +{ + qDebug() << " --- dis cant work: " << objectName(); + //setDefaultAction( +} diff --git a/bctoolbutton.h b/bctoolbutton.h new file mode 100644 index 0000000..2944f2c --- /dev/null +++ b/bctoolbutton.h @@ -0,0 +1,46 @@ +/*************************************************************************** + + BionxControl + Copyright © 2025 christoph holzheuer + christoph.holzheuer@gmail.com + + Using: + + mhs_can_drv.c + © 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany + Klaus Demlehner, klaus@mhs-elektronik.de + @see www.mhs-elektronik.de + + Based on Bionx data type descriptions from: + + BigXionFlasher USB V 0.2.4 rev. 97 + © 2011-2013 by Thomas Koenig + @see www.bigxionflasher.org + + Bionx Bike Info + © 2018 Thorsten Schmidt (tschmidt@ts-soft.de) + @see www.ts-soft.de + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + @see https://github.com/bikemike/bionx-bikeinfo + + ***************************************************************************/ + + +#ifndef BCTOOLBUTTON_H +#define BCTOOLBUTTON_H + +#include + +class BCToolButton : public QToolButton +{ +public: + + BCToolButton( QWidget* parent=nullptr ); + +}; + +#endif // BCTOOLBUTTON_H