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 radius: radius
61    property alias cancelButton: cancelButton
62    property alias tabTitle: tabTitle
63    Rectangle {
64        id: tabRectangle
65        y: 20
66        height: tabTitle.height * 2
67        color: "#46a2da"
68        anchors.rightMargin: 0
69        anchors.leftMargin: 0
70        anchors.left: parent.left
71        anchors.right: parent.right
72
73        Label {
74            id: tabTitle
75            color: "#ffffff"
76            text: qsTr("Search Bounding Circle")
77            anchors.verticalCenter: parent.verticalCenter
78            anchors.horizontalCenter: parent.horizontalCenter
79        }
80    }
81
82    Item {
83        id: item2
84        anchors.rightMargin: 20
85        anchors.leftMargin: 20
86        anchors.bottomMargin: 20
87        anchors.topMargin: 20
88        anchors.bottom: parent.bottom
89        anchors.left: parent.left
90        anchors.right: parent.right
91        anchors.top: tabRectangle.bottom
92
93        GridLayout {
94            id: gridLayout3
95            anchors.rightMargin: 0
96            anchors.bottomMargin: 0
97            anchors.leftMargin: 0
98            anchors.topMargin: 0
99            rowSpacing: 10
100            rows: 1
101            columns: 2
102            anchors.fill: parent
103
104            Label {
105                id: label2
106                text: qsTr("Latitude")
107            }
108
109            TextField {
110                id: latitude
111                Layout.fillWidth: true
112            }
113
114            Label {
115                id: label3
116                text: qsTr("Longitude")
117            }
118
119            TextField {
120                id: longitude
121                Layout.fillWidth: true
122                placeholderText: qsTr("")
123            }
124
125            Label {
126                id: label4
127                text: qsTr("Radius (m)")
128            }
129
130            TextField {
131                id: radius
132                Layout.fillWidth: true
133            }
134
135            RowLayout {
136                id: rowLayout1
137                Layout.columnSpan: 2
138                Layout.alignment: Qt.AlignRight
139
140                Button {
141                    id: goButton
142                    text: qsTr("Set")
143                }
144
145                Button {
146                    id: clearButton
147                    text: qsTr("Clear")
148                }
149
150                Button {
151                    id: cancelButton
152                    text: qsTr("Cancel")
153                }
154            }
155            Item {
156                Layout.fillHeight: true
157                Layout.columnSpan: 2
158            }
159        }
160    }
161}
162