10
11
width: units.gu(45)
11
12
height: units.gu(80)
12
// FIXME: 80/45 = aspect ration of Galaxy Nexus
14
Tabs { // preliminary HACK, needs rewrite when NewTabBar is finalized!
16
16
anchors.fill: parent
18
Tab { id: pageArea; title: i18n.tr("January"); page: Item { anchors.fill: parent } }
19
Tab { title: i18n.tr("February") }
20
Tab { title: i18n.tr("March") }
21
Tab { title: i18n.tr("April") }
22
Tab { title: i18n.tr("May") }
23
Tab { title: i18n.tr("June") }
24
Tab { title: i18n.tr("July") }
25
Tab { title: i18n.tr("August") }
26
Tab { title: i18n.tr("September") }
27
Tab { title: i18n.tr("October") }
28
Tab { title: i18n.tr("November") }
29
Tab { title: i18n.tr("December") }
18
Tab { title: Qt.locale(i18n.language).monthName(0) }
19
Tab { title: Qt.locale(i18n.language).monthName(1) }
20
Tab { title: Qt.locale(i18n.language).monthName(2) }
21
Tab { title: Qt.locale(i18n.language).monthName(3) }
22
Tab { title: Qt.locale(i18n.language).monthName(4) }
23
Tab { title: Qt.locale(i18n.language).monthName(5) }
24
Tab { title: Qt.locale(i18n.language).monthName(6) }
25
Tab { title: Qt.locale(i18n.language).monthName(7) }
26
Tab { title: Qt.locale(i18n.language).monthName(8) }
27
Tab { title: Qt.locale(i18n.language).monthName(9) }
28
Tab { title: Qt.locale(i18n.language).monthName(10) }
29
Tab { title: Qt.locale(i18n.language).monthName(11) }
31
31
onSelectedTabIndexChanged: monthView.gotoNextMonth(selectedTabIndex)
33
tools: ToolbarActions {
35
iconSource: Qt.resolvedUrl("avatar.png")
36
text: i18n.tr("To-do")
37
onTriggered:; // FIXME
40
iconSource: Qt.resolvedUrl("avatar.png")
41
text: i18n.tr("New Event")
42
onTriggered: mainView.newEvent()
45
iconSource: Qt.resolvedUrl("avatar.png")
46
text: i18n.tr("Timeline")
47
onTriggered:; // FIXME
41
59
onMonthStartChanged: tabs.selectedTabIndex = monthStart.getMonth()
60
y: units.gu(9.5) // FIXME
43
61
onMovementEnded: eventView.currentDayStart = currentDayStart
44
62
onCurrentDayStartChanged: if (!(dragging || flicking)) eventView.currentDayStart = currentDayStart
45
63
Component.onCompleted: eventView.currentDayStart = currentDayStart
51
property real minY: pageArea.y + monthView.compressedHeight
52
property real maxY: pageArea.y + monthView.expandedHeight
69
property real minY: monthView.y + monthView.compressedHeight
70
property real maxY: monthView.y + monthView.expandedHeight
55
73
width: mainView.width
78
96
NumberAnimation { duration: 100 }
99
onNewEvent: mainView.newEvent()
82
tools: ToolbarActions {
84
iconSource: Qt.resolvedUrl("avatar.png")
85
text: i18n.tr("To-do")
86
onTriggered:; // FIXME
89
iconSource: Qt.resolvedUrl("avatar.png")
90
text: i18n.tr("New Event")
91
onTriggered:; // FIXME
94
iconSource: Qt.resolvedUrl("avatar.png")
95
text: i18n.tr("Timeline")
96
onTriggered:; // FIXME
103
onNewEvent: PopupUtils.open(newEventComponent, mainView, {"defaultDate": monthView.currentDayStart})
106
id: newEventComponent