1/**************************************************************************** 2** 3** Copyright (C) 2017 The Qt Company Ltd. 4** Contact: https://www.qt.io/licensing/ 5** 6** This file is part of the examples of the Qt Toolkit. 7** 8** $QT_BEGIN_LICENSE:BSD$ 9** Commercial License Usage 10** Licensees holding valid commercial Qt licenses may use this file in 11** accordance with the commercial license agreement provided with the 12** Software or, alternatively, in accordance with the terms contained in 13** a written agreement between you and The Qt Company. For licensing terms 14** and conditions see https://www.qt.io/terms-conditions. For further 15** information use the contact form at https://www.qt.io/contact-us. 16** 17** BSD License Usage 18** Alternatively, you may use this file under the terms of the BSD license 19** as follows: 20** 21** "Redistribution and use in source and binary forms, with or without 22** modification, are permitted provided that the following conditions are 23** met: 24** * Redistributions of source code must retain the above copyright 25** notice, this list of conditions and the following disclaimer. 26** * Redistributions in binary form must reproduce the above copyright 27** notice, this list of conditions and the following disclaimer in 28** the documentation and/or other materials provided with the 29** distribution. 30** * Neither the name of The Qt Company Ltd nor the names of its 31** contributors may be used to endorse or promote products derived 32** from this software without specific prior written permission. 33** 34** 35** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 36** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 37** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 38** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 39** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 40** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 41** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 42** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 43** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 44** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 45** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 46** 47** $QT_END_LICENSE$ 48** 49****************************************************************************/ 50 51import QtQuick 2.5 52import QtQuick.Controls 1.4 53import QtQuick.Layouts 1.2 54 55Item { 56 property alias clearButton: clearButton 57 property alias goButton: goButton 58 property alias longitude: longitude 59 property alias latitude: latitude 60 property alias widthDeg: widthDeg 61 property alias heightDeg: heightDeg 62 property alias cancelButton: cancelButton 63 property alias tabTitle: tabTitle 64 Rectangle { 65 id: tabRectangle 66 y: 20 67 height: tabTitle.height * 2 68 color: "#46a2da" 69 anchors.rightMargin: 0 70 anchors.leftMargin: 0 71 anchors.left: parent.left 72 anchors.right: parent.right 73 74 Label { 75 id: tabTitle 76 color: "#ffffff" 77 text: qsTr("Search Bounding Box") 78 anchors.verticalCenter: parent.verticalCenter 79 anchors.horizontalCenter: parent.horizontalCenter 80 } 81 } 82 83 Item { 84 id: item2 85 anchors.rightMargin: 20 86 anchors.leftMargin: 20 87 anchors.bottomMargin: 20 88 anchors.topMargin: 20 89 anchors.bottom: parent.bottom 90 anchors.left: parent.left 91 anchors.right: parent.right 92 anchors.top: tabRectangle.bottom 93 94 GridLayout { 95 id: gridLayout3 96 anchors.rightMargin: 0 97 anchors.bottomMargin: 0 98 anchors.leftMargin: 0 99 anchors.topMargin: 0 100 rowSpacing: 10 101 rows: 1 102 columns: 2 103 anchors.fill: parent 104 105 Label { 106 id: label2 107 text: qsTr("Latitude") 108 } 109 110 TextField { 111 id: latitude 112 Layout.fillWidth: true 113 } 114 115 Label { 116 id: label3 117 text: qsTr("Longitude") 118 } 119 120 TextField { 121 id: longitude 122 Layout.fillWidth: true 123 placeholderText: qsTr("") 124 } 125 126 Label { 127 id: label4 128 text: qsTr("Width (deg)") 129 } 130 131 TextField { 132 id: widthDeg 133 Layout.fillWidth: true 134 } 135 136 Label { 137 id: label5 138 text: qsTr("Height (deg)") 139 } 140 141 TextField { 142 id: heightDeg 143 Layout.fillWidth: true 144 placeholderText: qsTr("") 145 } 146 147 RowLayout { 148 id: rowLayout1 149 Layout.columnSpan: 2 150 Layout.alignment: Qt.AlignRight 151 152 Button { 153 id: goButton 154 text: qsTr("Set") 155 } 156 157 Button { 158 id: clearButton 159 text: qsTr("Clear") 160 } 161 162 Button { 163 id: cancelButton 164 text: qsTr("Cancel") 165 } 166 } 167 Item { 168 Layout.fillHeight: true 169 Layout.columnSpan: 2 170 } 171 } 172 } 173} 174