Warning, /sdk/cutehmi/extensions/CuteHMI/Examples/Modbus/ControllerItems.3/UiScreen.ui.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.0 0002 import QtQuick.Controls 2.0 0003 0004 import CuteHMI.Modbus 4.0 0005 0006 Item { 0007 Switch { 0008 id: element 0009 x: 10 0010 y: 10 0011 text: qsTr("Switch") 0012 0013 CoilItem { 0014 id: coilItem 0015 controller.device: client 0016 controller.address: 10 0017 anchors.horizontalCenter: parent.horizontalCenter 0018 anchors.verticalCenter: parent.verticalCenter 0019 } 0020 } 0021 0022 CheckBox { 0023 id: checkBox 0024 x: 10 0025 y: 80 0026 text: qsTr("Check Box") 0027 0028 CoilItem { 0029 id: coilItem1 0030 controller.device: client 0031 controller.address: 10 0032 anchors.horizontalCenter: parent.horizontalCenter 0033 anchors.verticalCenter: parent.verticalCenter 0034 } 0035 } 0036 0037 Label { 0038 id: label 0039 x: 227 0040 y: 94 0041 text: qsTr("Label") 0042 0043 HoldingRegisterItem { 0044 id: holdingRegisterItem1 0045 controller.device: client 0046 controller.address: 10 0047 delegateProperty: "text" 0048 anchors.horizontalCenter: parent.horizontalCenter 0049 anchors.verticalCenter: parent.verticalCenter 0050 } 0051 } 0052 0053 SpinBox { 0054 id: spinBox 0055 x: 160 0056 y: 10 0057 0058 HoldingRegisterItem { 0059 id: holdingRegisterItem 0060 controller.device: client 0061 controller.address: 10 0062 anchors.horizontalCenter: parent.horizontalCenter 0063 anchors.verticalCenter: parent.verticalCenter 0064 } 0065 } 0066 } 0067 0068 /*##^## 0069 Designer { 0070 D{i:0;autoSize:true;height:480;width:640} 0071 } 0072 ##^##*/ 0073 0074 //(c)C: Copyright © 2024, Michał Policht <michal@policht.pl>. All rights reserved. 0075 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT 0076 //(c)C: This file is a part of CuteHMI. 0077 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. 0078 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. 0079 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>. 0080 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below. 0081 //(c)C: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 0082 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 0083 //(c)C: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.