mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 08:08:42 +00:00
.. move the fluff that has collected into the src directory to somewhere more appropriate.
36 lines
651 B
C++
36 lines
651 B
C++
#ifndef EVENT_CALENDAR_WIDGET_H
|
|
#define EVENT_CALENDAR_WIDGET_H
|
|
#include "GoldenCheetah.h"
|
|
|
|
#include <QCalendarWidget>
|
|
#include <QMultiMap>
|
|
#include "RideItem.h"
|
|
class MainWindow;
|
|
|
|
class RideCalendar : public QCalendarWidget
|
|
{
|
|
Q_OBJECT
|
|
G_OBJECT
|
|
|
|
|
|
public:
|
|
RideCalendar(MainWindow *parent);
|
|
QSize sizeHint() const;
|
|
void setHome(const QDir&);
|
|
void addWorkoutCode(QString, QColor);
|
|
|
|
protected:
|
|
void paintCell(QPainter *, const QRect &, const QDate &) const;
|
|
|
|
public slots:
|
|
void configUpdate();
|
|
|
|
private:
|
|
QMap<QString, QColor> workoutCodes;
|
|
QDir home;
|
|
QColor defaultColor;
|
|
MainWindow *mainWindow;
|
|
};
|
|
|
|
#endif
|