Merge lp:~nik90/reminders-app/basic-structure into lp:reminders-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Alan Pope 🍺🐧🐱 πŸ¦„
Approved revision: 4
Merged at revision: 2
Proposed branch: lp:~nik90/reminders-app/basic-structure
Merge into: lp:reminders-app
Diff against target: 171 lines (+70/-43)
6 files modified
components/HelloComponent.qml (+0/-14)
manifest.json (+2/-2)
reminders-app.qml (+32/-27)
ui/Notebooks.qml (+12/-0)
ui/Notes.qml (+12/-0)
ui/Reminders.qml (+12/-0)
To merge this branch: bzr merge lp:~nik90/reminders-app/basic-structure
Reviewer Review Type Date Requested Status
David Planella Needs Fixing
Review via email: mp+196014@code.launchpad.net

Commit message

This commits added the following,
- A basic pagestack + tabs structure. This should help provide both flat and deep navigation styles as can be seen in the wireframe designs.
- Fixed manifest.json file to be more generic and list the reminder dev team instead of an individual dev name
- Fixed application name to "com.ubuntu.reminders-app" which is followed by other core apps
- Created notes, notebooks and reminders pages.

Description of the change

This MP adds the following,
- A basic pagestack + tabs structure. This should help provide both flat and deep navigation styles as can be seen in the wireframe designs.
- Fixed manifest.json file to be more generic and list the reminder dev team instead of an individual dev name
- Fixed application name to "com.ubuntu.reminders-app" which is followed by other core apps
- Created notes, notebooks and reminders pages.

To post a comment you must log in.
Revision history for this message
Jordan Keyes (jkeyes0) wrote :

I think Notes.qml might be missing from your latest commit. Just tried to run this locally, and I see "Notes is not a type".

4. By Nekhelesh Ramananthan

Added missing Notes.qml

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Thanks Jordan. I missed it ;) Fixed in commit rev 4.

Revision history for this message
David Planella (dpm) wrote :

Thanks Nekhelesh!

Just a couple of minor things:

1) $ qmlscene reminders-app.qml
file:///tmp/basic-structure/reminders-app.qml:39 Notes is not a type

It seems that the Notes component is not in the tree, perhaps you forgot to commit it?

2) I also noticed that you're using the "ui" folder to put the components in. In that case, it might be worth removing the "components" folder if it's unused.

review: Needs Fixing
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Hey David, thnx for the review.

1. I added the Notes.qml file which I forgot to commmit.

2. I was thinking of using the component folder for generic widgets that we will use in several places. While the UI folder is mostly for pages, tabs etc.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'components/HelloComponent.qml'
2--- components/HelloComponent.qml 2013-10-23 11:02:37 +0000
3+++ components/HelloComponent.qml 1970-01-01 00:00:00 +0000
4@@ -1,14 +0,0 @@
5-import QtQuick 2.0
6-import Ubuntu.Components 0.1
7-
8-UbuntuShape {
9- width: 200
10- height: width
11-
12- property alias text : myText.text
13-
14- Label {
15- id: myText
16- anchors.centerIn: parent
17- }
18-}
19
20=== modified file 'manifest.json'
21--- manifest.json 2013-10-23 11:02:37 +0000
22+++ manifest.json 2013-11-20 21:20:40 +0000
23@@ -7,8 +7,8 @@
24 "desktop": "reminders-app.desktop"
25 }
26 },
27- "maintainer": "David Planella <david.planella@ubuntu.com>",
28- "name": "com.ubuntu.developer.dpm.reminders-app",
29+ "maintainer": "Ubuntu Reminders app developers <ubuntu-phone@lists.launchpad.net>",
30+ "name": "com.ubuntu.reminders-app",
31 "title": "reminders-app",
32 "version": "0.1"
33 }
34
35=== modified file 'reminders-app.qml'
36--- reminders-app.qml 2013-10-23 11:02:37 +0000
37+++ reminders-app.qml 2013-11-20 21:20:40 +0000
38@@ -1,6 +1,7 @@
39 import QtQuick 2.0
40 import Ubuntu.Components 0.1
41 import "components"
42+import "ui"
43
44 /*!
45 \brief MainView with a Label and Button elements.
46@@ -11,7 +12,7 @@
47 objectName: "mainView"
48
49 // Note! applicationName needs to match the "name" field of the click manifest
50- applicationName: "com.ubuntu.developer.dpm.reminders-app"
51+ applicationName: "com.ubuntu.reminders-app"
52
53 /*
54 This property enables the application to change orientation
55@@ -19,34 +20,38 @@
56 */
57 //automaticOrientation: true
58
59- width: units.gu(100)
60+ width: units.gu(50)
61 height: units.gu(75)
62
63- Page {
64- title: i18n.tr("Reminders")
65-
66- Column {
67- spacing: units.gu(1)
68- anchors {
69- margins: units.gu(2)
70- fill: parent
71- }
72-
73- HelloComponent {
74- id: label
75- objectName: "label"
76-
77- text: i18n.tr("Hello..")
78- }
79-
80- Button {
81- objectName: "button"
82- width: parent.width
83-
84- text: i18n.tr("Tap me!")
85-
86- onClicked: {
87- label.text = i18n.tr("..world!")
88+ // Temporary background color. This can be changed to other suitable backgrounds when we get official mockup designs
89+ backgroundColor: UbuntuColors.coolGrey
90+
91+ PageStack {
92+ id: pagestack
93+
94+ Tabs {
95+ id: rootTabs
96+
97+ anchors.fill: parent
98+
99+ Tab {
100+ title: i18n.tr("Notes")
101+ page: Notes {
102+ id: notesPage
103+ }
104+ }
105+
106+ Tab {
107+ title: i18n.tr("Notebook")
108+ page: Notebooks {
109+ id: notebooksPage
110+ }
111+ }
112+
113+ Tab {
114+ title: i18n.tr("Reminders")
115+ page: Reminders {
116+ id: remindersPage
117 }
118 }
119 }
120
121=== added directory 'ui'
122=== added file 'ui/Notebooks.qml'
123--- ui/Notebooks.qml 1970-01-01 00:00:00 +0000
124+++ ui/Notebooks.qml 2013-11-20 21:20:40 +0000
125@@ -0,0 +1,12 @@
126+import QtQuick 2.0
127+import Ubuntu.Components 0.1
128+
129+Page {
130+ id: notebooksPage
131+
132+ Label {
133+ id: developmentWarning
134+ anchors.centerIn: parent
135+ text: i18n.tr("This page is still in development")
136+ }
137+}
138
139=== added file 'ui/Notes.qml'
140--- ui/Notes.qml 1970-01-01 00:00:00 +0000
141+++ ui/Notes.qml 2013-11-20 21:20:40 +0000
142@@ -0,0 +1,12 @@
143+import QtQuick 2.0
144+import Ubuntu.Components 0.1
145+
146+Page {
147+ id: notesPage
148+
149+ Label {
150+ id: developmentWarning
151+ anchors.centerIn: parent
152+ text: i18n.tr("This page is still in development")
153+ }
154+}
155
156=== added file 'ui/Reminders.qml'
157--- ui/Reminders.qml 1970-01-01 00:00:00 +0000
158+++ ui/Reminders.qml 2013-11-20 21:20:40 +0000
159@@ -0,0 +1,12 @@
160+import QtQuick 2.0
161+import Ubuntu.Components 0.1
162+
163+Page {
164+ id: remindersPage
165+
166+ Label {
167+ id: developmentWarning
168+ anchors.centerIn: parent
169+ text: i18n.tr("This page is still in development")
170+ }
171+}

Subscribers

People subscribed via source and target branches