From kde-commits Sun Dec 08 14:55:41 2013 From: Mathias Kraus Date: Sun, 08 Dec 2013 14:55:41 +0000 To: kde-commits Subject: [abakus] src/mobile/harmattan/qml: replaced trigonometric keypad with functions and numerals keypad Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=138651454927755 Git commit 94b0ed5d13ba5bd74eb298ff8f55395ed550a941 by Mathias Kraus. Committed on 08/12/2013 at 14:29. Pushed by mkraus into branch 'master'. replaced trigonometric keypad with functions and numerals keypad M +1 -1 src/mobile/harmattan/qml/KeyPad.qml R +46 -46 src/mobile/harmattan/qml/KeyPadFunctionsAndNumerals.qml [fro= m: src/mobile/harmattan/qml/KeyPadTrig.qml - 076% similarity] http://commits.kde.org/abakus/94b0ed5d13ba5bd74eb298ff8f55395ed550a941 diff --git a/src/mobile/harmattan/qml/KeyPad.qml b/src/mobile/harmattan/qml= /KeyPad.qml index 14768f3..489466b 100644 --- a/src/mobile/harmattan/qml/KeyPad.qml +++ b/src/mobile/harmattan/qml/KeyPad.qml @@ -140,7 +140,7 @@ Rectangle { buttonWidth: internal.buttonWidth buttonHeight: internal.buttonHeight } - KeyPadTrig { + KeyPadFunctionsAndNumerals { id: trigPad anchors.top: parent.top anchors.left: genericPad.right diff --git a/src/mobile/harmattan/qml/KeyPadTrig.qml b/src/mobile/harmattan= /qml/KeyPadFunctionsAndNumerals.qml similarity index 76% rename from src/mobile/harmattan/qml/KeyPadTrig.qml rename to src/mobile/harmattan/qml/KeyPadFunctionsAndNumerals.qml index caa667f..46ae866 100644 --- a/src/mobile/harmattan/qml/KeyPadTrig.qml +++ b/src/mobile/harmattan/qml/KeyPadFunctionsAndNumerals.qml @@ -16,31 +16,31 @@ Grid { Button { width: root.buttonWidth height: root.buttonHeight - text: "sin" - onPressed: root.pressed("sin(") + text: "ans" + onPressed: root.pressed(text) } Button { width: root.buttonWidth height: root.buttonHeight - text: "cos" - onPressed: root.pressed("cos(") + text: "e" + onPressed: root.pressed(text) } Button { width: root.buttonWidth height: root.buttonHeight - text: "=CF=80" - onPressed: root.pressed("pi") + text: "" + onPressed: root.pressed(text) } Button { width: root.buttonWidth height: root.buttonHeight - text: "(" + text: "" onPressed: root.pressed(text) } Button { width: root.buttonWidth height: root.buttonHeight - text: ")" + text: "" onPressed: root.pressed(text) } = @@ -48,127 +48,127 @@ Grid { Button { width: root.buttonWidth height: root.buttonHeight - text: "tan" - onPressed: root.pressed("tan(") + text: "sin" + onPressed: root.pressed("sin(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "8" - onPressed: root.pressed(text) + text: "cos" + onPressed: root.pressed("cos(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "9" - onPressed: root.pressed(text) + text: "tan" + onPressed: root.pressed("tan(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "x=C2=B2" - onPressed: root.pressed("^2") + text: "" + onPressed: root.pressed(text) } Button { width: root.buttonWidth height: root.buttonHeight - text: "=E2=88=9A" - onPressed: root.pressed("sqrt(") + text: "" + onPressed: root.pressed(text) } = // third row Button { width: root.buttonWidth height: root.buttonHeight - text: "4" - onPressed: root.pressed(text) + text: "abs" + onPressed: root.pressed("abs(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "5" + text: "" onPressed: root.pressed(text) } Button { width: root.buttonWidth height: root.buttonHeight - text: "6" - onPressed: root.pressed(text) + text: "ln" + onPressed: root.pressed("ln(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "=C3=97" - onPressed: root.pressed("*") + text: "log" + onPressed: root.pressed("log(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "=C3=B7" - onPressed: root.pressed("/") + text: "e=CB=A3" + onPressed: root.pressed("exp(") } = // fourth row Button { width: root.buttonWidth height: root.buttonHeight - text: "1" - onPressed: root.pressed(text) + text: "round" + onPressed: root.pressed("round(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "2" - onPressed: root.pressed(text) + text: "ceil" + onPressed: root.pressed("ceil(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "3" - onPressed: root.pressed(text) + text: "floor" + onPressed: root.pressed("floor(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "+" - onPressed: root.pressed(text) + text: "int" + onPressed: root.pressed("int(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "-" - onPressed: root.pressed(text) + text: "frac" + onPressed: root.pressed("frac(") } = // fifth row Button { width: root.buttonWidth height: root.buttonHeight - text: "0" - onPressed: root.pressed(text) + text: "hex" + onPressed: root.pressed("hex(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "." - onPressed: root.pressed(text) + text: "bin" + onPressed: root.pressed("bin(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "10=CB=A3" - onPressed: root.pressed("*10^") + text: "dec" + onPressed: root.pressed("dec(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "ans" - onPressed: root.pressed(text) + text: "oct" + onPressed: root.pressed("oct(") } Button { width: root.buttonWidth height: root.buttonHeight - text: "=3D" + text: "" textColor: "orange" onPressed: root.evaluate() }