-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSchedulerController.h
45 lines (35 loc) · 1.24 KB
/
SchedulerController.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
37
38
39
40
41
42
43
44
45
//
// SchedulerController.h
// Scheduler
//
// Created by David Flores on 1/23/16.
// Copyright © 2016 David Flores. All rights reserved.
//
#ifndef SchedulerController_h
#define SchedulerController_h
#include "CalendarWidgetDelegate.h"
#include "InfiniteController.h"
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class CalendarWidget;
class InfiniteTreeView;
class SchedulerModel;
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class SchedulerController : public CalendarWidgetDelegate, public InfiniteController
{
public:
// SchedulerController
SchedulerController(CalendarWidget* pCalendarWidget, InfiniteTreeView* pInfiniteTreeView);
virtual ~SchedulerController();
private:
// CalendarWidgetDelegate
virtual void DisplayingDate(const QDate& date) override;
// InfiniteController
virtual InfiniteModel* GetModel() const override;
virtual void DisplayingIndexRange(InfiniteModelIndex* pFirstVisibleIndex, InfiniteModelIndex* pLastVisibleIndex) override;
CalendarWidget* m_pCalendarWidget;
InfiniteTreeView* m_pInfiniteTreeView;
SchedulerModel* m_pSchedulerModel;
bool m_bCurrentlyDisplayingDate;
bool m_bCurrentlyDisplayingIndexRange;
};
#endif // SchedulerController_h