yearly view

This commit is contained in:
Herwig Birke
2020-03-10 12:16:09 +01:00
parent 745cf83bcd
commit f10431b454
8 changed files with 609 additions and 30 deletions
+53
View File
@@ -0,0 +1,53 @@
#ifndef CYEARLYVIEW_H
#define CYEARLYVIEW_H
#include "cmonthlybooking.h"
#include "cmonthlyitemdelegate.h"
#include "cpublicholiday.h"
#include "cbooking.h"
#include <QWidget>
#include <QStandardItemModel>
#include <QMap>
#include <QTime>
#include <QRegExpValidator>
namespace Ui {
class cYearlyView;
}
class cYearlyView : public QWidget
{
Q_OBJECT
public:
explicit cYearlyView(const QDate& date, const QMap<QString, QString> code, cMonthlyBookingList* lpMonthlyBookingList, cPublicHoliday* lpPublicHoliday, cBookingList* lpBookingList, QWidget *parent = nullptr);
~cYearlyView();
void setDate(const QDate& date);
private:
Ui::cYearlyView* ui;
bool m_loading;
QStandardItemModel* m_lpYearlyListModel;
QMap<QString, QString> m_code;
cMonthlyBookingList* m_lpMonthlyBookingList;
cPublicHoliday* m_lpPublicHoliday;
cBookingList* m_lpBookingList;
QDate m_date;
cMonthlyBooking* m_lpMonthlyBooking;
// QRegExpValidator* m_lpValidator;
// QStringList m_temporaryFileList;
public slots:
void onPrevYear();
void onNextYear();
void onDateChanged(const QDate& date);
};
#endif // CYEARLYVIEW_H