-
Notifications
You must be signed in to change notification settings - Fork 0
/
rideselectionwindow.h
53 lines (41 loc) · 1.13 KB
/
rideselectionwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef RIDESELECTIONWINDOW_H
#define RIDESELECTIONWINDOW_H
#include <QWidget.h>
#include <boost/shared_ptr.hpp>
#include <boost/scoped_ptr.hpp>
class QTreeView;
class QStandardItemModel;
class QModelIndex;
class QLabel;
class TcxParser;
class FitParser;
class DataLog;
class User;
class LogDirectorySummary;
class RideSelectionWindow : public QWidget
{
Q_OBJECT
public:
RideSelectionWindow();
~RideSelectionWindow();
void setUser(boost::shared_ptr<User> user);
void refresh();
boost::shared_ptr<DataLog> currentDataLog();
signals:
void displayRide(boost::shared_ptr<DataLog> data_log);
void displayLap(int lap_index);
private slots:
void rideSelected(const QModelIndex& index);
private:
void populateTableWithRides();
void formatTreeView();
bool parse(const QString filename, boost::shared_ptr<DataLog> data_log);
QTreeView* _tree;
QStandardItemModel* _model;
QLabel* _head_label;
TcxParser* _tcx_parser;
FitParser* _fit_parser;
boost::shared_ptr<DataLog> _current_data_log;
boost::scoped_ptr<LogDirectorySummary> _log_dir_summary;
};
#endif // RIDESELECTIONWINDOW_H