MauiKit Image Tools

ColourBar.qml
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import org.mauikit.controls as Maui
6
7import org.kde.kquickimageeditor as KQuickImageEditor
8
9ColumnLayout
10{
11 id: control
12
13 spacing: 0
14
15 property alias brightnessButton: _brightnessButton
16 property alias contrastButton : _contrastButton
17 property alias saturationButton : _saturationButton
18
19
20 Maui.ToolBar
21 {
22 id: _sliderToolBar
23 Layout.fillWidth: true
24 middleContent: Slider
25 {
26 id: _slider
27 Layout.fillWidth: true
28 value: 0
29 from: -100
30 to: 100
31 stepSize: 1
32 }
33
34 background: Rectangle
35 {
36 color: Maui.Theme.backgroundColor
37 }
38 }
39
40 Maui.ToolBar
41 {
42 position: ToolBar.Footer
43 Layout.fillWidth: true
44
45 background: Rectangle
46 {
47 color: Maui.Theme.backgroundColor
48 }
49
50 middleContent: [
51 ToolButton
52 {
53 id: _saturationButton
54 checkable: true
55 autoExclusive: true
56 icon.name: "transform-crop"
57 text: i18nc("@action:button Crop an image", "Saturation");
58 },
59
60 ToolButton
61 {
62 id: _contrastButton
63 autoExclusive: true
64 icon.name: "transform-rotate"
65 checkable: true
66 text: i18nc("@action:button Rotate an image", "Contrast");
67 } ,
68
69 ToolButton
70 {
71 id: _exposureButton
72 autoExclusive: true
73 icon.name: "transform-rotate"
74 checkable: true
75 text: i18nc("@action:button Rotate an image", "Exposure");
76 },
77
78 ToolButton
79 {
80 id: _highlightsButton
81 autoExclusive: true
82 icon.name: "transform-rotate"
83 checkable: true
84 text: i18nc("@action:button Rotate an image", "Highlights");
85 },
86
87 ToolButton
88 {
89 id: _shadowsButton
90 autoExclusive: true
91 icon.name: "transform-rotate"
92 checkable: true
93 text: i18nc("@action:button Rotate an image", "Shadows");
94 },
95
96
97 ToolButton
98 {
99 id: _brightnessButton
100 autoExclusive: true
101 icon.name: "transform-rotate"
102 checkable: true
103 text: i18nc("@action:button Rotate an image", "Brightness");
104 }
105 ]
106
107 leftContent: ToolButton
108 {
109 // text: i18nd("mauikitimagetools","Accept")
110 icon.name: "dialog-apply"
111 onClicked:
112 {
113
114 }
115 }
116
117 rightContent: ToolButton
118 {
119 // text: i18nd("mauikitimagetools","Cancel")
120 icon.name: "dialog-cancel"
121 onClicked:
122 {
123 }
124 }
125 }
126}
127
QString i18nc(const char *context, const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:32:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.