Files
BionxControl/main.cpp

64 lines
1.6 KiB
C++
Raw Normal View History

2025-12-15 20:57:09 +01:00
/***************************************************************************
2025-12-26 14:07:55 +01:00
BionxControl
Copyright © 2025 christoph holzheuer
christoph.holzheuer@gmail.com
2025-12-15 20:57:09 +01:00
2025-12-26 14:07:55 +01:00
Using:
2025-12-15 20:57:09 +01:00
2025-12-26 14:07:55 +01:00
mhs_can_drv.c
© 2011 - 2023 by MHS-Elektronik GmbH & Co. KG, Germany
Klaus Demlehner, klaus@mhs-elektronik.de
@see www.mhs-elektronik.de
2025-12-15 20:57:09 +01:00
2025-12-26 14:07:55 +01:00
Based on Bionx data type descriptions from:
2025-12-15 20:57:09 +01:00
2025-12-26 14:07:55 +01:00
BigXionFlasher USB V 0.2.4 rev. 97
© 2011-2013 by Thomas Koenig <info@bigxionflasher.org>
@see www.bigxionflasher.org
2025-12-15 20:57:09 +01:00
2025-12-26 14:07:55 +01:00
Bionx Bike Info
© 2018 Thorsten Schmidt (tschmidt@ts-soft.de)
@see www.ts-soft.de
2025-12-15 20:57:09 +01:00
2025-12-26 14:07:55 +01:00
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
***************************************************************************/
2025-12-15 20:57:09 +01:00
2025-12-15 23:05:48 +01:00
#include <QApplication>
2025-12-17 13:11:26 +01:00
#include <QFile>
2025-12-15 20:57:09 +01:00
#include <QDebug>
2025-12-15 23:05:48 +01:00
#include <bcmainwindow.h>
2025-12-15 20:57:09 +01:00
2025-12-17 13:11:26 +01:00
bool setApplicationStyleSheet( QAnyStringView path )
{
QFile styleFile( path.toString() );
if (styleFile.open(QIODevice::ReadOnly | QIODevice::Text))
{
QString style = styleFile.readAll();
qApp->setStyleSheet(style);
styleFile.close();
return true;
}
qWarning() << "Konnte Stylesheet nicht laden:" << styleFile.errorString();
return true;
}
2025-12-15 20:57:09 +01:00
int main(int argc, char *argv[])
{
2025-12-15 23:05:48 +01:00
QApplication app(argc, argv);
2025-12-30 10:12:01 +01:00
//setApplicationStyleSheet( ":/bionxcontrol.qss"_L1 );
2025-12-23 20:47:03 +01:00
2025-12-17 13:11:26 +01:00
BCMainWindow w;
w.show();
2025-12-15 23:05:48 +01:00
return app.exec();
2025-12-15 20:57:09 +01:00
}