Changeset View
Changeset View
Standalone View
Standalone View
dialer/package/contents/ui/Dialer/Dialer.qml
Show All 23 Lines | |||||
24 | import org.kde.plasma.components 2.0 as PlasmaComponents | 24 | import org.kde.plasma.components 2.0 as PlasmaComponents | ||
25 | import "../Dialpad" | 25 | import "../Dialpad" | ||
26 | 26 | | |||
27 | Item { | 27 | Item { | ||
28 | id: dialer | 28 | id: dialer | ||
29 | 29 | | |||
30 | property alias numberEntryText: status.text | 30 | property alias numberEntryText: status.text | ||
31 | 31 | | |||
32 | function addNumber(number) { | | |||
33 | status.text = status.text + number | | |||
34 | } | | |||
35 | | ||||
36 | Rectangle { | 32 | Rectangle { | ||
37 | width: parent.width / 2 | 33 | width: parent.width / 2 | ||
38 | x: parent.width / 4 | 34 | x: parent.width / 4 | ||
39 | y: parent.height - callStatusNotification.paintedHeight | 35 | y: parent.height - callStatusNotification.paintedHeight | ||
40 | color: PlasmaCore.ColorScope.backgroundColor | 36 | color: PlasmaCore.ColorScope.backgroundColor | ||
41 | opacity: 0.6 | 37 | opacity: 0.6 | ||
42 | visible: dialerUtils.callState == "failed" | 38 | visible: dialerUtils.callState == "failed" | ||
43 | 39 | | |||
Show All 10 Lines | |||||
54 | ColumnLayout { | 50 | ColumnLayout { | ||
55 | id: dialPadArea | 51 | id: dialPadArea | ||
56 | 52 | | |||
57 | anchors { | 53 | anchors { | ||
58 | fill: parent | 54 | fill: parent | ||
59 | margins: units.largeSpacing | 55 | margins: units.largeSpacing | ||
60 | } | 56 | } | ||
61 | 57 | | |||
62 | PlasmaComponents.Label { | 58 | PhoneNumberInput { | ||
63 | id: status | 59 | id: status | ||
60 | | ||||
64 | Layout.fillWidth: true | 61 | Layout.fillWidth: true | ||
65 | Layout.minimumHeight: parent.height / 6 | 62 | Layout.minimumHeight: units.gridUnit * 3.5 | ||
66 | Layout.maximumHeight: Layout.minimumHeight | 63 | Layout.maximumHeight: Layout.minimumHeight | ||
67 | 64 | font.pointSize: 30 | |||
68 | horizontalAlignment: Qt.AlignRight | | |||
69 | verticalAlignment: Qt.AlignVCenter | | |||
70 | font.pointSize: 1024 | | |||
71 | fontSizeMode: Text.Fit | | |||
72 | } | 65 | } | ||
73 | 66 | | |||
74 | Dialpad { | 67 | Dialpad { | ||
75 | Layout.fillWidth: true | 68 | Layout.fillWidth: true | ||
76 | Layout.fillHeight: true | 69 | Layout.fillHeight: true | ||
77 | 70 | | |||
78 | callback: function (string) { | 71 | callback: function (string) { | ||
79 | addNumber(string); | 72 | status.append(string) | ||
80 | } | 73 | } | ||
81 | pressedCallback: function (string) { | 74 | pressedCallback: function (string) { | ||
82 | //TODO | 75 | //TODO | ||
83 | // ofonoWrapper.startTone(string); | 76 | // ofonoWrapper.startTone(string); | ||
84 | } | 77 | } | ||
85 | releasedCallback: function (string) { | 78 | releasedCallback: function (string) { | ||
86 | // ofonoWrapper.stopTone(); | 79 | // ofonoWrapper.stopTone(); | ||
87 | } | 80 | } | ||
88 | } | 81 | } | ||
89 | } | 82 | } | ||
90 | } | 83 | } |