-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Format.qml
executable file
·41 lines (35 loc) · 1.07 KB
/
Format.qml
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
// AGPLv3
import UM 1.5 as UM
import QtQuick 2.15
import QtQuick.Window 2.2
import QtQuick.Controls 2.15
import Cura 1.5 as Cura
UM.Dialog
{
id: base
title: "Gcode Filename Format Plus - Edit Format"
width: 600 * screenScaleFactor
height: 80 * screenScaleFactor
minimumWidth: 300 * screenScaleFactor
minimumHeight: 70 * screenScaleFactor
Cura.TextField
{
id: textfield
text: UM.Preferences.getValue("gcode_filename_format_plus/filename_format")
width: base.width - 15 * screenScaleFactor
}
leftButtons: Cura.SecondaryButton
{
text: "Default"
onClicked: textfield.text = "[abbr_machine] [base_name] [brand] [material] lw [line_width]mm lh [layer_height]mm if [infill_sparse_density]% ext1 [material_print_temperature]C bed [material_bed_temperature]C"
}
rightButtons: Cura.SecondaryButton
{
text: "Close"
onClicked:
{
base.visible = false;
UM.Preferences.setValue("gcode_filename_format_plus/filename_format", textfield.text)
}
}
}