2
* Copyright (C) 2013-2014 Canonical Ltd
4
* This file is part of Ubuntu Calendar App
6
* Ubuntu Calendar App is free software: you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 3 as
8
* published by the Free Software Foundation.
10
* Ubuntu Calendar App is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
import Ubuntu.Components 1.1
21
import "ViewType.js" as ViewType
26
property int type: ViewType.ViewTypeWeek
35
property var currentDay;
37
signal dateSelected(var date);
39
delegate: TimeLineHeaderComponent{
42
isCurrentItem: index == header.currentIndex
43
currentDay: header.currentDay
47
startDay: date.addDays(7*header.indexType(index))
50
header.dateSelected(date);