-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTodayControl.h
36 lines (33 loc) · 996 Bytes
/
TodayControl.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
#pragma once
#include <Plan.h>
#include <wx/html/htmlwin.h>
#include <wx/datetime.h>
#include <wx/grid.h>
/**
* @brief GUI grid showing training a specific day.
*/
class TodayControl : public wxGrid {
public:
/**
* @brief Constructor
* @param pParent Parent
* @param plan Plan to extract date from
* @param day Date to extract
* @param unit Unit (km|miles)
*/
TodayControl(wxWindow *pParent, Plan &plan, wxDateTime &day, PTUnit const &unit);
/**
* @brief Update the control with new date
* @param plan Plan to extract date from
* @param day Date to extract
* @param unit Unit (km|miles)
* @param index 0 for first training this date, 1 for second training the same date etc.
*/
void Update(Plan &plan, wxDateTime const &day, PTUnit const &unit, int const &index);
private:
Plan *cpLastPlan;
wxDateTime cLastDate;
PTUnit cLastUnit;
int cLastIndex;
// wxGrid *table;
};