319 lines
10 KiB
QML
319 lines
10 KiB
QML
//Generated by FigmaQML 3.2.1
|
|
|
|
import QtQuick
|
|
import QtQuick.Effects
|
|
import QtQuick.Shapes
|
|
import QtQuick.Controls
|
|
import QtQuick.Shapes
|
|
|
|
Rectangle {
|
|
id: rootErrorMessage
|
|
property var message: ""
|
|
property var messagePath: ""
|
|
property var titleMessage: "Ошибка конвертации"
|
|
signal okClick()
|
|
signal copyToClipBoard(var pos, var message)
|
|
// # "ErrorMessasge"
|
|
objectName:"ErrorMessasge"
|
|
x:0
|
|
y:0
|
|
width:516
|
|
height:342
|
|
color:"#ffffffff"
|
|
radius:30
|
|
clip: true
|
|
border.width: 2
|
|
Shape {
|
|
anchors.fill: parent
|
|
/*
|
|
ShapePath {
|
|
strokeColor: Qt.rgba(0, 0, 0, 1)
|
|
strokeWidth: 1
|
|
fillColor: "transparent"
|
|
PathMove { x: 30; y: 0 }
|
|
PathLine { x: 30; y: 0.5 }
|
|
PathLine { x: 486; y: 0.5 }
|
|
PathLine { x: 486; y: 0 }
|
|
PathLine { x: 486; y: -0.5 }
|
|
PathLine { x: 30; y: -0.5 }
|
|
PathLine { x: 30; y: 0 }
|
|
PathMove { x: 516; y: 30 }
|
|
PathLine { x: 515.5; y: 30 }
|
|
PathLine { x: 515.5; y: 312 }
|
|
PathLine { x: 516; y: 312 }
|
|
PathLine { x: 516.5; y: 312 }
|
|
PathLine { x: 516.5; y: 30 }
|
|
PathLine { x: 516; y: 30 }
|
|
PathMove { x: 486; y: 342 }
|
|
PathLine { x: 486; y: 341.5 }
|
|
PathLine { x: 30; y: 341.5 }
|
|
PathLine { x: 30; y: 342 }
|
|
PathLine { x: 30; y: 342.5 }
|
|
PathLine { x: 486; y: 342.5 }
|
|
PathLine { x: 486; y: 342 }
|
|
PathMove { x: 0; y: 312 }
|
|
PathLine { x: 0.5; y: 312 }
|
|
PathLine { x: 0.5; y: 30 }
|
|
PathLine { x: 0; y: 30 }
|
|
PathLine { x: -0.5; y: 30 }
|
|
PathLine { x: -0.5; y: 312 }
|
|
PathLine { x: 0; y: 312 }
|
|
PathMove { x: 30; y: 342 }
|
|
PathLine { x: 30; y: 341.5 }
|
|
PathCubic { control1X: 13.7076; control1Y: 341.5; control2X: 0.5; control2Y: 328.292; x: 0.5; y: 312 }
|
|
PathLine { x: 0; y: 312 }
|
|
PathLine { x: -0.5; y: 312 }
|
|
PathCubic { control1X: -0.5; control1Y: 328.845; control2X: 13.1553; control2Y: 342.5; x: 30; y: 342.5 }
|
|
PathLine { x: 30; y: 342 }
|
|
PathMove { x: 516; y: 312 }
|
|
PathLine { x: 515.5; y: 312 }
|
|
PathCubic { control1X: 515.5; control1Y: 328.292; control2X: 502.292; control2Y: 341.5; x: 486; y: 341.5 }
|
|
PathLine { x: 486; y: 342 }
|
|
PathLine { x: 486; y: 342.5 }
|
|
PathCubic { control1X: 502.845; control1Y: 342.5; control2X: 516.5; control2Y: 328.845; x: 516.5; y: 312 }
|
|
PathLine { x: 516; y: 312 }
|
|
PathMove { x: 486; y: 0 }
|
|
PathLine { x: 486; y: 0.5 }
|
|
PathCubic { control1X: 502.292; control1Y: 0.5; control2X: 515.5; control2Y: 13.7076; x: 515.5; y: 30 }
|
|
PathLine { x: 516; y: 30 }
|
|
PathLine { x: 516.5; y: 30 }
|
|
PathCubic { control1X: 516.5; control1Y: 13.1553; control2X: 502.845; control2Y: -0.5; x: 486; y: -0.5 }
|
|
PathLine { x: 486; y: 0 }
|
|
PathMove { x: 30; y: 0 }
|
|
PathLine { x: 30; y: -0.5 }
|
|
PathCubic { control1X: 13.1553; control1Y: -0.5; control2X: -0.5; control2Y: 13.1553; x: -0.5; y: 30 }
|
|
PathLine { x: 0; y: 30 }
|
|
PathLine { x: 0.5; y: 30 }
|
|
PathCubic { control1X: 0.5; control1Y: 13.7076; control2X: 13.7076; control2Y: 0.5; x: 30; y: 0.5 }
|
|
PathLine { x: 30; y: 0 }
|
|
|
|
}
|
|
//*/
|
|
}
|
|
Rectangle {
|
|
// component (Instance) level: 0 Frame 808
|
|
id: figma_503_52
|
|
// # "Frame 808"
|
|
objectName:"Frame 808"
|
|
x:0
|
|
y:0
|
|
width:516
|
|
height:342
|
|
color: "transparent"
|
|
clip: true
|
|
|
|
Rectangle {
|
|
// component (Instance) level: 0 Frame 806
|
|
id: figma_503_53
|
|
// # "Frame 806"
|
|
objectName:"Frame 806"
|
|
anchors.horizontalCenter: figma_503_52.horizontalCenter
|
|
//x: (figma_503_52.width - width) / 2
|
|
y:27
|
|
width:448
|
|
height:57
|
|
color: "transparent"
|
|
clip: false
|
|
|
|
Item {
|
|
// component (Instance) level: 0 radar 1
|
|
id: figma_503_54
|
|
// # "radar 1"
|
|
objectName:"radar 1"
|
|
x:0
|
|
y:0
|
|
width:55
|
|
height:57
|
|
MultiEffect {
|
|
maskEnabled: true
|
|
anchors.fill:parent
|
|
source: source_figma_503_54
|
|
maskSource: maskSource_figma_503_54
|
|
}
|
|
Image {
|
|
id: source_figma_503_54
|
|
layer.enabled: true
|
|
fillMode: Image.PreserveAspectCrop
|
|
visible: false
|
|
mipmap: true
|
|
anchors.fill:parent
|
|
source: "images/error.png"
|
|
}
|
|
Shape {
|
|
id: maskSource_figma_503_54
|
|
anchors.fill: parent
|
|
layer.enabled: true
|
|
visible: false
|
|
ShapePath {
|
|
strokeColor: "transparent"
|
|
strokeWidth:1
|
|
fillColor:"black"
|
|
fillRule: ShapePath.WindingFill
|
|
PathSvg {
|
|
path: "M0 0L55 0L55 57L0 57L0 0Z"
|
|
}
|
|
}
|
|
}
|
|
Shape {
|
|
anchors.fill: parent
|
|
ShapePath {
|
|
strokeColor: "transparent"
|
|
strokeWidth:1
|
|
fillColor:"#00000000"
|
|
// component (shapeFill) level: 0
|
|
id: svgpath_figma_503_54
|
|
fillRule: ShapePath.WindingFill
|
|
PathSvg {
|
|
id: path_0_figma_503_54
|
|
path: "M0 0L55 0L55 57L0 57L0 0Z"
|
|
}
|
|
}
|
|
}
|
|
property alias path: path_0_figma_503_54.path
|
|
}
|
|
Text {
|
|
// component (Instance) level: 0 Ошибка конвертации
|
|
id: figma_503_55
|
|
// # "Ошибка конвертации"
|
|
objectName:"MessageTitle"
|
|
x:75
|
|
y:0
|
|
width:339
|
|
height:57
|
|
color:"#ff000000"
|
|
wrapMode: TextEdit.WordWrap
|
|
text: rootErrorMessage.titleMessage
|
|
font.family: "Tahoma"
|
|
font.italic: false
|
|
font.letterSpacing: 0
|
|
font.pixelSize: 32
|
|
font.weight: Font.DemiBold
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
}
|
|
}
|
|
|
|
ScrollView {
|
|
id: scrollView
|
|
x: 34
|
|
y: 94
|
|
width: 447
|
|
height: 120
|
|
|
|
// Стиль скроллбара (опционально)
|
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
|
|
|
Text {
|
|
id: main_message_id
|
|
objectName:"MainMessage"
|
|
text: rootErrorMessage.message
|
|
font.family: "Tahoma"
|
|
font.pixelSize: 16
|
|
color: "#ff000000"
|
|
wrapMode: Text.WordWrap
|
|
horizontalAlignment: Text.AlignLeft
|
|
verticalAlignment: Text.AlignTop
|
|
width: parent.width // Чтобы перенос работал корректно
|
|
|
|
MouseArea {
|
|
id: figma_503_56_area
|
|
anchors.fill: parent
|
|
onClicked: function(mouse) {
|
|
copyToClipBoard(
|
|
mapCoordinatesToAncestor(figma_503_56_area, mouse.x, mouse.y,rootErrorMessage),
|
|
main_message_id.text)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
Rectangle {
|
|
// component (Instance) level: 0 ButtonOk
|
|
id: figma_503_57
|
|
// # "ButtonOk"
|
|
objectName:"ButtonOk"
|
|
x: (figma_503_52.width - width) / 2
|
|
y:269
|
|
width:448
|
|
height:56
|
|
color:"#ff0a5bff"
|
|
radius:8
|
|
clip: true
|
|
|
|
Text {
|
|
// component (Instance) level: 0 Ок
|
|
id: figma_503_58
|
|
// # "Ок"
|
|
objectName:"Ок"
|
|
x:63
|
|
y:8
|
|
width:322
|
|
height:40
|
|
color:"#ffffffff"
|
|
wrapMode: TextEdit.WordWrap
|
|
text:"Ок"
|
|
font.family: "Tahoma"
|
|
font.italic: false
|
|
font.letterSpacing: 0
|
|
font.pixelSize: 20
|
|
font.weight: Font.Normal
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
}
|
|
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
onClicked: {
|
|
rootErrorMessage.okClick()
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
ScrollView {
|
|
id: scrollViewPath
|
|
x: 34
|
|
y: 219
|
|
width: 447
|
|
height: 37
|
|
|
|
ScrollBar.vertical.policy: ScrollBar.AsNeeded
|
|
|
|
Text {
|
|
id: figma_503_59
|
|
objectName:"MainMessagePath"
|
|
text: rootErrorMessage.messagePath
|
|
font.family: "Tahoma"
|
|
font.pixelSize: 16
|
|
color: "#ff000000"
|
|
wrapMode: Text.WordWrap
|
|
horizontalAlignment: Text.AlignLeft
|
|
verticalAlignment: Text.AlignTop
|
|
width: parent.width // важно для переноса строк
|
|
|
|
MouseArea {
|
|
id: figma_503_59_area
|
|
anchors.fill: parent
|
|
onClicked: function(mouse) {
|
|
copyToClipBoard(
|
|
mapCoordinatesToAncestor(figma_503_59_area, mouse.x, mouse.y,rootErrorMessage),
|
|
figma_503_59.text)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
function mapCoordinatesToAncestor(startItem, localX, localY, targetAncestor) {
|
|
if (startItem === targetAncestor || !startItem.parent) {
|
|
return Qt.point(localX, localY);
|
|
}
|
|
|
|
var parent = startItem.parent;
|
|
var newX = localX + startItem.x;
|
|
var newY = localY + startItem.y;
|
|
|
|
return mapCoordinatesToAncestor(parent, newX, newY, targetAncestor);
|
|
}
|
|
}
|