-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,331 additions
and
0 deletions.
There are no files selected for viewing
64 changes: 64 additions & 0 deletions
64
ArcGISRuntimeSDKQt_CppSamples/EditData/SnapGeometryEdits/GeometryEditorButton.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
// [WriteFile Name=CreateAndEditGeometries, Category=Geometry] | ||
// [Legal] | ||
// Copyright 2023 Esri. | ||
|
||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// [Legal] | ||
|
||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Layouts | ||
|
||
// This component defines each of the buttons in the Geometry Editor control UI | ||
|
||
RoundButton { | ||
id: geometryEditorButton | ||
|
||
property string buttonName: "" | ||
property string iconPath: "" | ||
|
||
Layout.fillWidth: true | ||
|
||
// Set the focus policy so that the buttons do not take focus from the MapView | ||
focusPolicy: Qt.NoFocus | ||
|
||
radius: 5 | ||
|
||
Rectangle { | ||
anchors.fill: parent | ||
radius: parent.radius | ||
opacity: parent.enabled || parent.checked ? 1 : 0.3 | ||
color: geometryEditorButton.down ? "#d0d0d0" : "#e0e0e0" | ||
} | ||
|
||
Image { | ||
id: imgComponent | ||
anchors { | ||
horizontalCenter: parent.horizontalCenter | ||
verticalCenter: parent.verticalCenter | ||
verticalCenterOffset: -textComponent.height/2 | ||
} | ||
source: iconPath | ||
width: 20 | ||
fillMode: Image.PreserveAspectFit | ||
} | ||
|
||
Text { | ||
id: textComponent | ||
anchors { | ||
top: imgComponent.bottom | ||
horizontalCenter: parent.horizontalCenter | ||
} | ||
text: buttonName | ||
font.pixelSize: 8 | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
ArcGISRuntimeSDKQt_CppSamples/EditData/SnapGeometryEdits/Info.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleDisplayName</key> | ||
<string>SnapGeometryEdits</string> | ||
<key>CFBundleExecutable</key> | ||
<string>SnapGeometryEdits</string> | ||
<key>CFBundleGetInfoString</key> | ||
<string>ArcGIS</string> | ||
<key>CFBundleIcons~ipad</key> | ||
<dict/> | ||
<key>CFBundleIdentifier</key> | ||
<string>com.esri.${PRODUCT_NAME:rfc1034identifier}</string> | ||
<key>CFBundleName</key> | ||
<string>${PRODUCT_NAME}</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0</string> | ||
<key>CFBundleSignature</key> | ||
<string>????</string> | ||
<key>CFBundleVersion</key> | ||
<string>1.0</string> | ||
<key>NOTE</key> | ||
<string>This app is cool</string> | ||
<key>UIFileSharingEnabled</key> | ||
<string>FALSE</string> | ||
<key>UIRequiresPersistentWiFi</key> | ||
<string>NO</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSLocationAlwaysUsageDescription</key> | ||
<string></string> | ||
<key>NSLocationWhenInUseUsageDescription</key> | ||
<string></string> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
</dict> | ||
</plist> | ||
|
Oops, something went wrong.