Files
GoldenCheetah/deprecated/RideCalendar.h
Mark Liversedge 1b55780d51 Reorg tidy src directory
.. move the fluff that has collected into the src directory
   to somewhere more appropriate.
2016-02-26 09:28:28 +00:00

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