~ubuntu-branches/ubuntu/vivid/goldencheetah/vivid-proposed

« back to all changes in this revision

Viewing changes to src/AddIntervalDialog.h

  • Committer: Package Import Robot
  • Author(s): Bhavani Shankar
  • Date: 2014-11-16 14:54:01 UTC
  • mfrom: (16.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20141116145401-89v8lm2rayldamnr
Tags: 3.1.0-1ubuntu1
* Resync on debian unstable. Remaining changes:
  + Use libgcrypt11-dev than libgcrypt-dev as it no longer exists.
    (Closes: #769754)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include "GoldenCheetah.h"
22
22
 
23
23
#include <QtGui>
 
24
#include <QDialog>
 
25
#include <QLabel>
 
26
#include <QTableWidget>
 
27
#include <QHeaderView>
 
28
#include <QMessageBox>
 
29
#include <QCheckBox>
 
30
#include <QButtonGroup>
24
31
 
25
 
class MainWindow;
 
32
class Context;
26
33
class RideFile;
27
34
 
28
35
class AddIntervalDialog : public QDialog
36
43
        struct AddedInterval {
37
44
            QString name;
38
45
            double start, stop, avg;
 
46
            AddedInterval() : start(0), stop(0), avg(0) {}
39
47
            AddedInterval(double start, double stop, double avg) :
40
48
                start(start), stop(stop), avg(avg) {}
41
49
        };
42
50
 
43
 
        AddIntervalDialog(MainWindow *mainWindow);
 
51
        AddIntervalDialog(Context *context);
44
52
 
45
53
        static void findPeakPowerStandard(const RideFile *ride, QList<AddedInterval> &results);
46
54
 
52
60
 
53
61
    private slots:
54
62
        void createClicked();
55
 
        void doneClicked();
56
63
        void addClicked(); // add to inverval selections
57
64
 
58
65
        void methodFirstClicked();
59
66
        void methodBestPowerClicked();
 
67
        void methodWPrimeClicked();
 
68
        void methodClimbClicked();
60
69
        void peakPowerStandardClicked();
61
70
        void peakPowerCustomClicked();
62
71
        void typeTimeClicked();
64
73
 
65
74
    private:
66
75
 
67
 
        MainWindow *mainWindow;
68
 
        QWidget *intervalMethodWidget, *intervalPeakPowerWidget, *intervalTypeWidget, *intervalTimeWidget, *intervalDistanceWidget, *intervalCountWidget;
 
76
        Context *context;
 
77
        QWidget *intervalMethodWidget, *intervalPeakPowerWidget, *intervalTypeWidget, 
 
78
                *intervalTimeWidget, *intervalDistanceWidget, *intervalClimbWidget,
 
79
                *intervalCountWidget, *intervalWPrimeWidget;
69
80
 
70
81
        QHBoxLayout *intervalPeakPowerTypeLayout;
71
 
        QPushButton *createButton, *doneButton, *addButton;
72
 
        QDoubleSpinBox *hrsSpinBox, *minsSpinBox, *secsSpinBox, *countSpinBox,*kmsSpinBox, *msSpinBox;
73
 
        QRadioButton *methodFirst, *methodBestPower, *typeDistance, *typeTime, *peakPowerStandard, *peakPowerCustom;
 
82
        QPushButton *createButton, *addButton;
 
83
        QDoubleSpinBox *hrsSpinBox, *minsSpinBox, *secsSpinBox, *altSpinBox,
 
84
                       *countSpinBox,*kmsSpinBox, *msSpinBox, *kjSpinBox;
 
85
        QRadioButton *methodFirst, *methodBestPower, *methodWPrime, *methodClimb;
 
86
        QRadioButton *typeDistance, *typeTime, *peakPowerStandard, *peakPowerCustom;
74
87
        QTableWidget *resultsTable;
75
88
};
76
89