Running Manager  1.7
API for Running Manager (https://github.com/HWiman-ICONIC/running-manager)
Public Member Functions | Public Attributes | List of all members
TrainingProgramGrid Class Reference

GUI grid for the entire training program. More...

#include <TrainingProgramGrid.h>

Inheritance diagram for TrainingProgramGrid:

Public Member Functions

 TrainingProgramGrid (wxWindow *pParent, Plan *pt, PTUnit const &outUnit)
 Constructor. More...
 
void Update (Plan *pt, PTUnit const &outUnit)
 Recreate grid from new plan. More...
 
int GetRow (wxDateTime const &date)
 Get row number for this date. More...
 
void OnLabelLeftClick (wxGridEvent &e)
 Highlight selected line and update todays training with selected activity. More...
 
void OnDateSelected (wxCommandEvent &e)
 Unused More...
 

Public Attributes

int todayLine
 

Detailed Description

GUI grid for the entire training program.

Constructor & Destructor Documentation

◆ TrainingProgramGrid()

TrainingProgramGrid::TrainingProgramGrid ( wxWindow *  pParent,
Plan pt,
PTUnit const &  outUnit 
)

Constructor.

Parameters
pParentParent
ptPlan to populate from
outUnitkm|miles

Member Function Documentation

◆ GetRow()

int TrainingProgramGrid::GetRow ( wxDateTime const &  date)

Get row number for this date.

Parameters
dateDate
Returns
Row number

◆ OnDateSelected()

void TrainingProgramGrid::OnDateSelected ( wxCommandEvent &  e)

Unused

Parameters
e

◆ OnLabelLeftClick()

void TrainingProgramGrid::OnLabelLeftClick ( wxGridEvent &  e)

Highlight selected line and update todays training with selected activity.

Parameters
eevent

◆ Update()

void TrainingProgramGrid::Update ( Plan pt,
PTUnit const &  outUnit 
)

Recreate grid from new plan.

Parameters
ptPlan
outUnitkm|miles

Member Data Documentation

◆ todayLine

int TrainingProgramGrid::todayLine

The documentation for this class was generated from the following file: