Welcome to mirror list, hosted at ThFree Co, Russian Federation.

AboutDialog.qml « qml « resources - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a736a7fbda44b300641686e1bf358807c4a8176d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// Copyright (c) 2015 Ultimaker B.V.
// Cura is released under the terms of the AGPLv3 or higher.

import QtQuick 2.2
import QtQuick.Controls 1.1
import QtQuick.Window 2.1

import UM 1.0 as UM

UM.Dialog {
    id: base

    //: About dialog title
    title: qsTr("About Cura")
    minimumWidth: 400
    minimumHeight: 300

    Image {
        id: logo
        width: parent.width * 0.75
        height: width * (1/4.25)

        source: UM.Theme.images.logo

        sourceSize.width: width
        sourceSize.height: height
        anchors.centerIn: parent
        anchors.verticalCenterOffset : -(height * 0.5)
    }

    Label {
        id: version

        text: "Cura %1".arg(UM.Application.version)
        font: UM.Theme.fonts.large
        anchors.horizontalCenter : logo.horizontalCenter
        anchors.horizontalCenterOffset : (logo.width * 0.25)
        anchors.top: logo.bottom
        anchors.topMargin : 5
    }

    Label {
        id: description
        width: parent.width

        //: About dialog application description
        text: qsTr("End-to-end solution for fused filament 3D printing.")
        wrapMode: Text.WordWrap
        anchors.top: version.bottom
        anchors.topMargin : 10
    }

    Label {
        id: author_note
        width: parent.width

        //: About dialog application author note
        text: qsTr("Cura has been developed by Ultimaker B.V. in cooperation with the community.")
        wrapMode: Text.WordWrap
        anchors.top: description.bottom
    }

    rightButtons: Button {
        //: Close about dialog button
        text: qsTr("Close");

        onClicked: base.visible = false;
    }
}