~aaronhoneycutt/ubuntu-beginner/trunk

« back to all changes in this revision

Viewing changes to main.qml

  • Committer: Aaron Honeycutt
  • Date: 2015-01-09 22:30:54 UTC
  • Revision ID: aaronhoneycutt@ubuntu.com-20150109223054-5osj6qgz0a79q3bz
Rearranged the Home tab, renamed Community tab to Contribute, added UWNL and Ubuntu Touch to Contribute tab.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
import QtQuick 2.0
2
2
import Ubuntu.Components 1.1
3
3
import Ubuntu.Components.ListItems 1.0 as ListItem
 
4
import "images"
4
5
 
5
6
/*!
6
7
    \brief MainView with a Label and Button elements.
50
51
                        Button {
51
52
                            id: omgubuntu
52
53
                            text: i18n.tr("OMG Ubuntu")
53
 
                            width: (parent.width - units.gu(1)) / 2
54
 
                            height: units.gu(5)
 
54
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
55
55
                            onClicked: {Qt.openUrlExternally("http://omgubuntu.co.uk");}
56
56
                        }
57
57
                        Button {
58
58
                            id: webupd8
59
59
                            text: i18n.tr("Web Upd8")
60
 
                            width: (parent.width - units.gu(1)) / 2
61
 
                            height: units.gu(5)
 
60
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
62
61
                            onClicked: {Qt.openUrlExternally("http://webupd8.org");}
63
62
                        }
64
63
                    }
68
67
                        Button {
69
68
                            id: ubuntugeek
70
69
                            text: i18n.tr("Ubuntu Geek")
71
 
                            width: (parent.width - units.gu(1)) / 2
72
 
                            height: units.gu(5)
 
70
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
73
71
                            onClicked: {Qt.openUrlExternally("http://www.ubuntugeek.com/");}
74
72
                        }
75
73
                        Button {
76
74
                            id: uwnl
77
75
                            text: i18n.tr("UWN")
78
 
                            width: (parent.width - units.gu(1)) / 2
79
 
                            height: units.gu(5)
 
76
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
80
77
                            onClicked: {Qt.openUrlExternally("https://wiki.ubuntu.com/UbuntuWeeklyNewsletter");}
81
78
                        }
82
79
                    }
87
84
                        Button {
88
85
                            id: irc
89
86
                            text: i18n.tr("IRC")
90
 
                            width: (parent.width - units.gu(1)) / 2
91
 
                            height: units.gu(5)
 
87
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
92
88
                            onClicked: {Qt.openUrlExternally("https://wiki.ubuntu.com/IRC/ChannelList");}
93
89
                        }
94
90
                        Button {
95
91
                            id: mailinglist
96
92
                            text: i18n.tr("Mailing List")
97
 
                            width: (parent.width - units.gu(1)) / 2
98
 
                            height: units.gu(5)
 
93
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
99
94
                            onClicked: {Qt.openUrlExternally("https://lists.ubuntu.com/");}
100
95
                        }
101
96
                    }
105
100
                        Button {
106
101
                            id: askubuntu
107
102
                            text: i18n.tr("AskUbuntu")
108
 
                            width: (parent.width - units.gu(1)) / 2
109
 
                            height: units.gu(5)
 
103
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
110
104
                            onClicked: {Qt.openUrlExternally("http://askubuntu.com");}
111
105
                        }
112
106
                        Button {
113
107
                            id: ubuntuforums
114
108
                            text: i18n.tr("Ubuntu forums")
115
 
                            width: (parent.width - units.gu(1)) / 2
116
 
                            height: units.gu(5)
 
109
                            width: (parent.width - units.gu(1)) / 2; height: units.gu(5)
117
110
                            onClicked: {Qt.openUrlExternally("http://ubuntuforums.org/");}
118
111
                        }
119
112
                    }
157
150
                        text: i18n.tr("Ubuntu Weekly Newsletter")
158
151
                        onClicked: {Qt.openUrlExternally("https://wiki.ubuntu.com/UbuntuWeeklyNewsletter/Join");}
159
152
                    }
160
 
                }
161
 
            }
162
 
        }
163
 
        Tab {
164
 
            title: i18n.tr("Test")
165
 
            page: Page {
166
 
 
167
 
                Column {
168
 
                    spacing: units.gu(1)
169
 
                    anchors {
170
 
                        margins: units.gu(2)
171
 
                        fill: parent
 
153
                    ListItem.Standard {
 
154
                        text: i18n.tr("Ubuntu Touch")
 
155
                        onClicked: {Qt.openUrlExternally("https://wiki.ubuntu.com/Touch/Contribute");}
172
156
                    }
173
 
 
174
 
                    ListItem.Standard { text: i18n.tr("Text") }
175
 
 
176
157
                }
177
158
            }
178
159
        }
189
170
                    }
190
171
 
191
172
                    Item {
192
 
                        width: parent.width
193
 
                        height: units.gu(20)
 
173
                        width: parent.width; height: units.gu(20)
194
174
 
195
175
                        UbuntuShape {
196
176
                            radius: "medium"
197
177
                            image: Image {
198
 
                                source: Qt.resolvedUrl("UbuntuBeginnerAbout.png")
 
178
                                source: Qt.resolvedUrl("images/UbuntuBeginnerAbout.png")
199
179
                            }
200
180
                            height: units.gu(15); width: height
201
181
                            anchors.centerIn: parent
222
202
}
223
203
 
224
204
 
 
205
 
 
206