Merge pull request #2 from Ultimaker/master

update
This commit is contained in:
MaukCC 2020-01-16 16:35:48 +01:00 committed by GitHub
commit f79b3158e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
42 changed files with 1120 additions and 399 deletions

View file

@ -0,0 +1,41 @@
{
"version": 2,
"name": "3DTech Semi-Professional",
"inherits": "fdmprinter",
"metadata": {
"visible": true,
"author": "3DTech",
"manufacturer": "3DTech",
"file_formats": "text/x-gcode",
"platform": "3dtech_semi_professional_platform.stl",
"platform_offset": [0, -2.5, 0 ],
"machine_extruder_trains":
{
"0": "3dtech_semi_professional_extruder_0"
}
},
"overrides": {
"machine_name": { "default_value": "3DTECH SP Control" },
"machine_width": {
"default_value": 250
},
"machine_depth": {
"default_value": 250
},
"machine_height": {
"default_value": 300
},
"machine_center_is_zero": {
"default_value": false
},
"machine_gcode_flavor": {
"default_value": "RepRap (Marlin/Sprinter)"
},
"machine_start_gcode": {
"default_value": "G28 ; home all axes\nG29 ;\nG1 Z5 F3000 ; lift\nG1 X5 Y25 F5000 ; move to prime\nG1 Z0.2 F3000 ; get ready to prime\nG92 E0 ; reset extrusion distance\nG1 Y100 E20 F600 ; prime nozzle\nG1 Y140 F5000 ; quick wipe"
},
"machine_end_gcode": {
"default_value": "M104 S0\nM140 S0 ; Retract the filament\nG92 E1\nG1 E-1 F300\nG28 X0 Y0\nM84"
}
}
}

View file

@ -0,0 +1,15 @@
{
"version": 2,
"name": "Extruder 1",
"inherits": "fdmextruder",
"metadata": {
"machine": "3dtech_semi_professional",
"position": "0"
},
"overrides": {
"extruder_nr": { "default_value": 0 },
"machine_nozzle_size": { "default_value": 0.4 },
"material_diameter": { "default_value": 1.75 }
}
}

Binary file not shown.

View file

@ -54,6 +54,7 @@ Item
property alias manageProfiles: manageProfilesAction;
property alias manageMaterials: manageMaterialsAction;
property alias marketplaceMaterials: marketplaceMaterialsAction;
property alias preferences: preferencesAction;
@ -188,6 +189,12 @@ Item
shortcut: "Ctrl+K"
}
Action
{
id: marketplaceMaterialsAction
text: catalog.i18nc("@action:inmenu", "Add more materials from Marketplace")
}
Action
{
id: updateProfileAction;

View file

@ -1,4 +1,4 @@
// Copyright (c) 2019 Ultimaker B.V.
// Copyright (c) 2020 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.7
@ -21,7 +21,16 @@ UM.MainWindow
id: base
// Cura application window title
title: PrintInformation.jobName + " - " + catalog.i18nc("@title:window", CuraApplication.applicationDisplayName)
title:
{
let result = "";
if(PrintInformation.jobName != "")
{
result += PrintInformation.jobName + " - ";
}
result += CuraApplication.applicationDisplayName;
return result;
}
backgroundColor: UM.Theme.getColor("viewport_background")
@ -244,23 +253,6 @@ UM.MainWindow
}
}
Toolbar
{
// The toolbar is the left bar that is populated by all the tools (which are dynamicly populated by
// plugins)
id: toolbar
property int mouseX: base.mouseX
property int mouseY: base.mouseY
anchors
{
verticalCenter: parent.verticalCenter
left: parent.left
}
visible: CuraApplication.platformActivity && !PrintInformation.preSliced
}
ObjectSelector
{
id: objectSelector
@ -302,6 +294,23 @@ UM.MainWindow
}
}
Toolbar
{
// The toolbar is the left bar that is populated by all the tools (which are dynamicly populated by
// plugins)
id: toolbar
property int mouseX: base.mouseX
property int mouseY: base.mouseY
anchors
{
verticalCenter: parent.verticalCenter
left: parent.left
}
visible: CuraApplication.platformActivity && !PrintInformation.preSliced
}
// A hint for the loaded content view. Overlay items / controls can safely be placed in this area
Item {
id: mainSafeArea

View file

@ -154,7 +154,7 @@ Item
}
}
// show the plugin browser dialog
// show the Toolbox
Connections
{
target: Cura.Actions.browsePackages
@ -163,4 +163,15 @@ Item
curaExtensions.callExtensionMethod("Toolbox", "launch")
}
}
// Show the Marketplace dialog at the materials tab
Connections
{
target: Cura.Actions.marketplaceMaterials
onTriggered:
{
curaExtensions.callExtensionMethod("Toolbox", "launch")
curaExtensions.callExtensionMethod("Toolbox", "setViewCategoryToMaterials")
}
}
}

View file

@ -157,4 +157,11 @@ Menu
{
action: Cura.Actions.manageMaterials
}
MenuSeparator {}
MenuItem
{
action: Cura.Actions.marketplaceMaterials
}
}