Warning, /sdk/cutehmi/extensions/CuteHMI/Examples/Symbols/HVAC/Gallery.2/View.qml is written in an unsupported language. File is not indexed.

0001 import QtQml 2.2
0002 import QtQuick 2.11
0003 import QtQuick.Controls 2.4
0004 import QtQuick.Layouts 1.3
0005 
0006 import CuteHMI.GUI 1.0
0007 import CuteHMI.Symbols.HVAC 1.0
0008 
0009 /**
0010   %View component.
0011 */
0012 Rectangle {
0013         anchors.fill: parent
0014 
0015         color: Theme.palette.background
0016 
0017         ColumnLayout {
0018                 anchors.fill: parent
0019                 anchors.margins: 10
0020 
0021                 spacing: 20
0022 
0023                 RowLayout {
0024                         Label {
0025                                 text: qsTr("Size:")
0026                         }
0027 
0028                         Slider {
0029                                 from: 10
0030                                 to: 240
0031 
0032                                 value: Theme.units.quadrat
0033 
0034                                 onValueChanged: Theme.units.quadrat = value
0035                         }
0036                 }
0037 
0038                 Flickable {
0039                         Layout.fillHeight: true
0040                         Layout.fillWidth: true
0041 
0042                         ScrollBar.vertical: ScrollBar {}
0043                         ScrollBar.horizontal: ScrollBar {}
0044 
0045                         contentWidth: row.width
0046                         contentHeight: row.height
0047 
0048                         Row {
0049                                 id: row
0050 
0051                                 GridLayout {
0052                                         rows: 3
0053                                         flow: GridLayout.TopToBottom
0054 
0055                                         Label {
0056                                                 Layout.alignment: Qt.AlignCenter
0057 
0058                                                 text: qsTr("Air filter")
0059                                         }
0060 
0061                                         AirFilter {
0062                                                 id: filter
0063 
0064                                                 Layout.alignment: Qt.AlignCenter
0065                                         }
0066 
0067                                         AirFilterSettings {
0068                                                 Layout.alignment: Qt.AlignTop
0069 
0070                                                 filter: filter
0071                                         }
0072 
0073                                         Label {
0074                                                 Layout.alignment: Qt.AlignCenter
0075 
0076                                                 text: qsTr("Basic cooler")
0077                                         }
0078 
0079                                         BasicCooler {
0080                                                 id: basicCooler
0081 
0082                                                 Layout.alignment: Qt.AlignCenter
0083                                         }
0084 
0085                                         ElementSettings {
0086                                                 Layout.alignment: Qt.AlignTop
0087 
0088                                                 element: basicCooler
0089                                         }
0090 
0091                                         Label {
0092                                                 Layout.alignment: Qt.AlignCenter
0093 
0094                                                 text: qsTr("Basic discrete instrument")
0095                                         }
0096 
0097                                         BasicDiscreteInstrument {
0098                                                 id: basicDiscreteInstrument
0099 
0100                                                 Layout.alignment: Qt.AlignCenter
0101                                         }
0102 
0103                                         BasicDiscreteInstrumentSettings {
0104                                                 Layout.alignment: Qt.AlignTop
0105 
0106                                                 instrument: basicDiscreteInstrument
0107                                         }
0108 
0109                                         Label {
0110                                                 Layout.alignment: Qt.AlignCenter
0111 
0112                                                 text: qsTr("Basic heater")
0113                                         }
0114 
0115                                         BasicHeater {
0116                                                 id: basicHeater
0117 
0118                                                 Layout.alignment: Qt.AlignCenter
0119                                         }
0120 
0121                                         ElementSettings {
0122                                                 Layout.alignment: Qt.AlignTop
0123 
0124                                                 element: basicHeater
0125                                         }
0126 
0127                                         Label {
0128                                                 Layout.alignment: Qt.AlignCenter
0129 
0130                                                 text: qsTr("Blade damper")
0131                                         }
0132 
0133                                         BladeDamper {
0134                                                 id: bladeDamper
0135 
0136                                                 Layout.alignment: Qt.AlignCenter
0137                                         }
0138 
0139                                         BladeDamperSettings {
0140                                                 Layout.alignment: Qt.AlignTop
0141 
0142                                                 damper: bladeDamper
0143                                         }
0144 
0145                                         Label {
0146                                                 Layout.alignment: Qt.AlignCenter
0147 
0148                                                 text: qsTr("Centrifugal fan")
0149                                         }
0150 
0151                                         CentrifugalFan {
0152                                                 id: centrifugalFan
0153 
0154                                                 Layout.alignment: Qt.AlignCenter
0155                                         }
0156 
0157                                         CentrifugalFanSettings {
0158                                                 Layout.alignment: Qt.AlignTop
0159 
0160                                                 fan: centrifugalFan
0161                                         }
0162 
0163                                         Label {
0164                                                 Layout.alignment: Qt.AlignCenter
0165 
0166                                                 text: qsTr("Cooler")
0167                                         }
0168 
0169                                         Cooler {
0170                                                 id: cooler
0171 
0172                                                 Layout.alignment: Qt.AlignCenter
0173                                         }
0174 
0175                                         ElementSettings {
0176                                                 Layout.alignment: Qt.AlignTop
0177 
0178                                                 element: cooler
0179                                         }
0180 
0181                                         Label {
0182                                                 Layout.alignment: Qt.AlignCenter
0183 
0184                                                 text: qsTr("Heater")
0185                                         }
0186 
0187                                         Heater {
0188                                                 id: heater
0189 
0190                                                 Layout.alignment: Qt.AlignCenter
0191                                         }
0192 
0193                                         ElementSettings {
0194                                                 Layout.alignment: Qt.AlignTop
0195 
0196                                                 element: heater
0197                                         }
0198 
0199                                         Label {
0200                                                 Layout.alignment: Qt.AlignCenter
0201 
0202                                                 text: qsTr("Heat exchanger")
0203                                         }
0204 
0205                                         HeatExchanger {
0206                                                 id: heatExchanger
0207 
0208                                                 Layout.alignment: Qt.AlignCenter
0209                                         }
0210 
0211                                         ElementSettings {
0212                                                 Layout.alignment: Qt.AlignTop
0213 
0214                                                 element: heatExchanger
0215                                         }
0216 
0217                                         Label {
0218                                                 Layout.alignment: Qt.AlignCenter
0219 
0220                                                 text: qsTr("Heat recovery wheel")
0221                                         }
0222 
0223                                         HeatRecoveryWheel {
0224                                                 id: wheel
0225 
0226                                                 Layout.alignment: Qt.AlignCenter
0227                                         }
0228 
0229                                         HeatRecoveryWheelSettings {
0230                                                 Layout.alignment: Qt.AlignTop
0231 
0232                                                 wheel: wheel
0233                                         }
0234 
0235                                         Label {
0236                                                 Layout.alignment: Qt.AlignCenter
0237 
0238                                                 text: qsTr("Motor actuator")
0239                                         }
0240 
0241                                         MotorActuator {
0242                                                 id: motorActuator
0243 
0244                                                 Layout.alignment: Qt.AlignCenter
0245                                         }
0246 
0247                                         MotorActuatorSettings {
0248                                                 Layout.alignment: Qt.AlignTop
0249 
0250                                                 actuator: motorActuator
0251                                         }
0252 
0253                                         Label {
0254                                                 Layout.alignment: Qt.AlignCenter
0255 
0256                                                 text: qsTr("Pump")
0257                                         }
0258 
0259                                         Pump {
0260                                                 id: pump
0261 
0262                                                 Layout.alignment: Qt.AlignCenter
0263                                         }
0264 
0265                                         PumpSettings {
0266                                                 Layout.alignment: Qt.AlignTop
0267 
0268                                                 pump: pump
0269                                         }
0270 
0271                                         Label {
0272                                                 Layout.alignment: Qt.AlignCenter
0273 
0274                                                 text: qsTr("Tank")
0275                                         }
0276 
0277                                         Tank {
0278                                                 id: tank
0279 
0280                                                 Layout.alignment: Qt.AlignCenter
0281                                         }
0282 
0283                                         TankSettings {
0284                                                 Layout.alignment: Qt.AlignTop
0285 
0286                                                 tank: tank
0287                                         }
0288 
0289                                         Label {
0290                                                 Layout.alignment: Qt.AlignCenter
0291 
0292                                                 text: qsTr("Valve")
0293                                         }
0294 
0295                                         Valve {
0296                                                 id: valve
0297 
0298                                                 Layout.alignment: Qt.AlignCenter
0299                                         }
0300 
0301                                         ValveSettings {
0302                                                 Layout.alignment: Qt.AlignTop
0303 
0304                                                 valve: valve
0305                                         }
0306                                 }
0307                         }
0308                 }
0309         }
0310 }
0311 
0312 //(c)C: Copyright © 2020, Michał Policht <michal@policht.pl>. All rights reserved.
0313 //(c)C: SPDX-License-Identifier: LGPL-3.0-or-later OR MIT
0314 //(c)C: This file is a part of CuteHMI.
0315 //(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.
0316 //(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.
0317 //(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/>.
0318 //(c)C: Additionally, this file is licensed under terms of MIT license as expressed below.
0319 //(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:
0320 //(c)C: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
0321 //(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.