~bhdouglass/ubuntu-touch-tweak-tool/fix-disappearing-options

« back to all changes in this revision

Viewing changes to src/app/qml/systemTab/SystemTab.qml

  • Committer: Stefano Verzegnassi
  • Date: 2016-04-16 17:04:08 UTC
  • Revision ID: stefano92.100@gmail.com-20160416170408-t0ck3hoi0qifmehw
Stable codebase for 0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
*/
17
17
 
18
18
import QtQuick 2.4
 
19
import Ubuntu.Components 1.3
 
20
 
19
21
import "../components/ListItems" as ListItems
20
22
 
21
 
Flickable {
 
23
ScrollView {
 
24
    id: rootItem
22
25
    anchors.fill: parent
23
 
    interactive: true
24
 
 
25
 
    contentWidth: parent.width
26
 
    contentHeight: column.height
27
26
 
28
27
    Column {
29
 
        id: column
30
 
        anchors {
31
 
            left: parent.left
32
 
            right: parent.right
33
 
            //margins: units.gu(2)
34
 
        }
35
 
 
36
 
        ListItems.SectionDivider {
37
 
            iconName: "stock_application"
38
 
            text: i18n.tr("Click packages")
39
 
        }
40
 
 
41
 
        // TO BE FINISHED (FileChooserDialog refactioring + support for new component)
42
 
        ListItems.Page {
43
 
            text: i18n.tr("Install click packages from a local path")
44
 
            pageUrl: Qt.resolvedUrl("InstallClickFromLocal.qml")
45
 
        }
46
 
 
47
 
        // TODO: This should be implemented in the Applications tab.
48
 
        ListItems.Page {
49
 
            text: i18n.tr("Uninstall scopes")
50
 
            pageUrl: Qt.resolvedUrl("UninstallScopes.qml")
51
 
        }
 
28
        width: rootItem.width
52
29
 
53
30
        ListItems.SectionDivider {
54
31
            iconName: "ubuntu-logo-symbolic"
55
32
            text: i18n.tr("System")
56
33
        }
57
34
 
 
35
        // FIXME
58
36
        ListItems.Page {
59
37
            text: i18n.tr("Make image writable")
60
38
            pageUrl: Qt.resolvedUrl("ImageWritable.qml")
65
43
            pageUrl: Qt.resolvedUrl("SystemInfo.qml")
66
44
        }
67
45
 
 
46
        /*
 
47
          TODO: QML BatteryInfo is not yet integrated with the platform.
 
48
          See bug lp:1197542 - 2016/04/04
 
49
 
 
50
        ListItems.Page {
 
51
            text: i18n.tr("Battery informations")
 
52
            pageUrl: Qt.resolvedUrl("BatteryInfo.qml")
 
53
        }
 
54
        */
 
55
 
68
56
        ListItems.SectionDivider {
69
57
            iconName: "stock_usb"
70
58
            text: i18n.tr("USB mode")
71
59
        }
72
60
 
73
61
        ListItems.Page {
74
 
            text: i18n.tr("Set USB behavior when connected to a PC")
 
62
            text: i18n.tr("ADB settings")
75
63
            pageUrl: Qt.resolvedUrl("UsbMode.qml")
76
64
        }
77
 
 
78
 
        ListItems.SectionDivider {
79
 
            iconName: "like"
80
 
            text: i18n.tr("Stats")
81
 
        }
82
 
 
83
 
        ListItems.Page {
84
 
            text: i18n.tr("Application usage")
85
 
            pageUrl: Qt.resolvedUrl("AppsStats.qml")
86
 
        }
87
65
    }
88
66
}