FunctionPad.qml 1.22 KB
Newer Older
Han Young's avatar
Han Young committed
1
/*
Han Young's avatar
Han Young committed
2
 * SPDX-FileCopyrightText: 2020-2021 Han Young <hanyoung@protonmail.com>
Han Young's avatar
Han Young committed
3
 *
Han Young's avatar
Han Young committed
4
 * SPDX-License-Identifier: GPL-3.0-or-later
Han Young's avatar
Han Young committed
5
6
7
8
9
10
 */
import QtQuick 2.0
import org.kde.kirigami 2.13 as Kirigami
import QtQuick.Layouts 1.1
GridLayout {
    signal pressed(string text)
Sai Moukthik Konduru's avatar
Sai Moukthik Konduru committed
11
    columns: 2
12
13
14
15
16
    rowSpacing: Kirigami.Units.smallSpacing
    columnSpacing: Kirigami.Units.smallSpacing
    NumberButton {text: "sin(" ; display: "sin"; onClicked: pressed(text);}
    NumberButton {text: "cos(" ; display: "cos"; onClicked: pressed(text);}
    NumberButton {text: "tan(" ; display: "tan"; onClicked: pressed(text);}
17
    NumberButton {text: "log(" ; display: "ln"; onClicked: pressed(text);}
Sai Moukthik Konduru's avatar
Sai Moukthik Konduru committed
18
19
    NumberButton {text: "log10("; display: "log10"; onClicked: pressed(text);}
    NumberButton {text: "log2("; display: "log2"; onClicked: pressed(text);}
20
21
    NumberButton {text: "π" ; onClicked: pressed(text);}
    NumberButton {text: "e" ; onClicked: pressed(text);}
22
23
24
    NumberButton {text: "asin("; display: "asin"; onClicked: pressed(text);}
    NumberButton {text: "acos(" ; display: "acos"; onClicked: pressed(text);}
    NumberButton {text: "atan(" ; display: "atan"; onClicked: pressed(text);}
25
    NumberButton {text: "abs(" ; display: "abs"; onClicked: pressed(text);}
Han Young's avatar
Han Young committed
26
}