\( \def\bold#1{\bf #1} \newcommand{\d}{\mathrm{d}} \) BTP: Manual and Source Code Documentation

Power Uphill

bike mass [kg]
body mass [kg]
altitude gain [m]
climb length [km]
gradient [%]
time [s]
speed [km/h]
power [W]
power/mass [W/kg]
climbrate [m/min]

average power on climb stage

BTP  3.0
Routing/ClimbAnalysis/PowerCalculation
btp3setups.h
1 #ifndef BTP3DIALOGS_H
2 #define BTP3DIALOGS_H
3 #include "DataTyps.h"
4 #include <QtWidgets/QLabel>
5 #include <QtWidgets/QLineEdit>
6 #include <QtWidgets/QPushButton>
7 #include <QtWidgets/QCheckBox>
8 #include <QtWidgets/QGridLayout>
9 #include <QtWidgets/QMessageBox>
10 #include <QDir>
11 #include <QtWidgets/QFileDialog>
12 #include <QtWidgets/QColorDialog>
13 #include <QPalette>
14 #include <QPainter>
15 #include "MathExt.h"
16 
18 class ColorButton: public QPushButton{
19  Q_OBJECT
20 public:
21  ColorButton(QRgb* color);
22  void paintEvent(QPaintEvent *);
23 private slots:
24  void edit_color();
25 private:
26  QRgb* color;
27 };
29 class EditInputs: public QWidget{
30  Q_OBJECT
31 public:
32  EditInputs(QString name, double* v);
33  EditInputs(QString name, float* v);
34  EditInputs(QString name, int* v);
35  EditInputs(QString name, char* v, bool folder);
36  EditInputs(QString name, bool* v);
37  EditInputs(QString name, short* v);
38  EditInputs(QString name, QRgb* v);
39  void refresh();
40 private slots:
41  void checkedit(QString newtext);
42  void checkbox();
43  void select_folder();
44 private:
45  QLabel label;
46  QLineEdit edit;
47  ColorButton *colorbutton;
48  QCheckBox check;
49  double* dv;
50  float* fv;
51  int* iv;
52  char* cv;
53  bool* bv;
54  short* sv;
55  QRgb* rgbv;
56  char* folder;
57 };
58 
60 
70 class BTP3setups: public QDialog{
71  Q_OBJECT
72 public:
78  void init();
79 private:
80  void set_NULL();
82  STRONGsetting *ss, *ms, *cs, ss0, ms0, cs0;
90  MapSettings* MS, MS0;
92  QPushButton buttons[4];
93  EditInputs* edit[50];
94  QGridLayout L;
95 public slots:
96  void OK();
97  void init_buffer();
98  void init_dest();
99  void cancel();
100 };
101 
102 #endif // BTP3DIALOGS_H
ClimbAnalyseSettings * CA
buffer struct to store user edits
Definition: btp3setups.h:84
void cancel()
Definition: btp3setups.cpp:283
ExtMapSettings * ems
buffer struct to store user edits
Definition: btp3setups.h:86
provide all user settings
Definition: btp3setups.h:70
QPushButton buttons[4]
buffer struct to store user edits
Definition: btp3setups.h:92
generic class to provide editing of specific types
Definition: btp3setups.h:29
void init_buffer()
Definition: btp3setups.cpp:314
Button to display color and open color dialog.
Definition: btp3setups.h:18
MapSettings * MS
buffer struct to store user edits
Definition: btp3setups.h:90
void init_dest()
Definition: btp3setups.cpp:373
setting for 2D plot
Definition: DataTyps.h:196
STRONGsetting * ss
buffer struct to store user edits
Definition: btp3setups.h:82
ProfilSettings * PS
buffer struct to store user edits
Definition: btp3setups.h:88
container for user settings to run ClimbAnalyse
Definition: DataTyps.h:302
container for user settings to manually generate map
Definition: DataTyps.h:316