Differential D28487 Diff 79120 applets/systemmonitor/systemmonitor/faces/barchart/contents/ui/Config.qml
Changeset View
Changeset View
Standalone View
Standalone View
applets/systemmonitor/systemmonitor/faces/barchart/contents/ui/Config.qml
- This file was added.
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright 2019 Marco Martin <mart@kde.org> | ||||
3 | * Copyrigth 2019 Kai Uwe Broulik <kde@broulik.de> | ||||
4 | * | ||||
5 | * This program is free software; you can redistribute it and/or modify | ||||
6 | * it under the terms of the GNU Library General Public License as | ||||
7 | * published by the Free Software Foundation; either version 2, or | ||||
8 | * (at your option) any later version. | ||||
9 | * | ||||
10 | * This program is distributed in the hope that it will be useful, | ||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
13 | * GNU General Public License for more details | ||||
14 | * | ||||
15 | * You should have received a copy of the GNU Library General Public | ||||
16 | * License along with this program; if not, write to the | ||||
17 | * Free Software Foundation, Inc., | ||||
18 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
19 | */ | ||||
20 | | ||||
21 | import QtQuick 2.9 | ||||
22 | import QtQuick.Layouts 1.1 | ||||
23 | import QtQuick.Controls 2.2 as Controls | ||||
24 | | ||||
25 | import org.kde.kirigami 2.8 as Kirigami | ||||
26 | | ||||
27 | import org.kde.ksysguard.sensors 1.0 as Sensors | ||||
28 | | ||||
29 | Kirigami.FormLayout { | ||||
30 | id: root | ||||
31 | | ||||
32 | property alias cfg_showLegend: showSensorsLegendCheckbox.checked | ||||
33 | property alias cfg_barChartStacked: stackedCheckbox.checked | ||||
34 | property alias cfg_rangeAuto: rangeAutoCheckbox.checked | ||||
35 | property alias cfg_rangeFrom: rangeFromSpin.value | ||||
36 | property alias cfg_rangeTo: rangeToSpin.value | ||||
37 | | ||||
38 | Controls.CheckBox { | ||||
39 | id: showSensorsLegendCheckbox | ||||
40 | text: i18n("Show Sensors Legend") | ||||
41 | } | ||||
42 | Controls.CheckBox { | ||||
43 | id: stackedCheckbox | ||||
44 | text: i18n("Stacked Bars") | ||||
45 | } | ||||
46 | Controls.CheckBox { | ||||
47 | id: rangeAutoCheckbox | ||||
48 | text: i18n("Automatic Data Range") | ||||
49 | } | ||||
50 | Controls.SpinBox { | ||||
51 | id: rangeFromSpin | ||||
52 | Kirigami.FormData.label: i18n("From:") | ||||
53 | enabled: !rangeAutoCheckbox.checked | ||||
54 | } | ||||
55 | Controls.SpinBox { | ||||
56 | id: rangeToSpin | ||||
57 | to: 99999 | ||||
58 | Kirigami.FormData.label: i18n("To:") | ||||
59 | enabled: !rangeAutoCheckbox.checked | ||||
60 | } | ||||
61 | } | ||||
62 | |