~rottinrob/reminders-app/trunk

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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.Layouts 0.1
import Ubuntu.Components.ListItems 0.1 as ListItem
import "components"
import "ui"
import "img"

MainView {
    id: remindapp
    // objectName for functional testing purposes (autopilot-qt5)
    objectName: "mainView"
    applicationName: "remindapp"

    automaticOrientation: true

    width: units.gu(45)
    height: units.gu(90)

    PageStack {
        id: remindStack
        Component.onCompleted: push(notebooks)

        Page {
            id: notebooks
            title: i18n.tr("Notebooks")
            visible: false
            Flickable {
                anchors.fill: parent
                Column {
                    anchors.fill: parent
                    ListItem.Header {
                        text: "Nov 18-24, 2013"
                    }
                    ListItem.Standard {
                        text: "Notes for Nov 19, 2013"
                        selected: false
                        onClicked: selected = !selected
                    }
                    ListItem.Standard {
                        text: "Notes for Nov 20, 2013"
                        selected: false
                        onClicked: selected = !selected
                    }
                    ListItem.Divider {}
                    ListItem.Header {
                        text: "Nov 11-17, 2013"
                    }
                    ListItem.Divider {}
                }
            }
            tools: ToolbarItems {
                ToolbarButton {
                    //iconSource: Qt.
                }
            }
        }

        Page {
            id: notes
            title: i18n.tr("Notes")
            visible: false
            Flickable {
                anchors.fill: parent
            }
            tools: ToolbarItems {
                ToolbarButton {
                    //iconSource: Qt.
                }
            }
        }

        Page {
            id: reminders
            title: i18n.tr("Reminders")
            visible: false
            Flickable {
                anchors.fill: parent
            }
            tools: ToolbarItems {
                ToolbarButton {
                    //iconSource: Qt.
                }
            }
        }
    }
}



        // An Alternative Tab Layout
        /*Tabs {
            id: mainTabs
            Tab {
                title: i18n.tr("Notebook List")
                page: Page {
                        id: notebooks
                        visible: false
                        tools: ToolbarItems {
                            back: Button {
                                iconSource: Qt.resolvedUrl("back.png")
                                onTriggered: action
                            }
                        }
                      }
            }

            Tab {
                title: i18n.tr("Notes")
                page: Page {
                        id: notes
                        visible: false
                      }
            }

            Tab {
                title: i18n.tr("Reminders")
                page: Page {
                        id: reminders
                        visible: false
                      }
            }
        }*/