mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 18:49:01 +08:00
ignore octoprint plugin
This commit is contained in:
parent
7a6330fd08
commit
8cd9439497
1
.gitignore
vendored
1
.gitignore
vendored
@ -46,6 +46,7 @@ plugins/cura-siemensnx-plugin
|
|||||||
plugins/CuraVariSlicePlugin
|
plugins/CuraVariSlicePlugin
|
||||||
plugins/CuraLiveScriptingPlugin
|
plugins/CuraLiveScriptingPlugin
|
||||||
plugins/CuraPrintProfileCreator
|
plugins/CuraPrintProfileCreator
|
||||||
|
plugins/OctoPrintPlugin
|
||||||
|
|
||||||
#Build stuff
|
#Build stuff
|
||||||
CMakeCache.txt
|
CMakeCache.txt
|
||||||
|
@ -18,7 +18,6 @@ Item
|
|||||||
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
||||||
property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands
|
property bool printerAcceptsCommands: printerConnected && Cura.MachineManager.printerOutputDevices[0].acceptsCommands
|
||||||
property real progress: printerConnected ? Cura.MachineManager.printerOutputDevices[0].progress : 0
|
property real progress: printerConnected ? Cura.MachineManager.printerOutputDevices[0].progress : 0
|
||||||
property int backendState: UM.Backend.state
|
|
||||||
|
|
||||||
property bool showProgress: {
|
property bool showProgress: {
|
||||||
// determine if we need to show the progress bar + percentage
|
// determine if we need to show the progress bar + percentage
|
||||||
@ -203,6 +202,7 @@ Item
|
|||||||
target: Printer
|
target: Printer
|
||||||
onAdditionalComponentsChanged:
|
onAdditionalComponentsChanged:
|
||||||
{
|
{
|
||||||
|
print("areaId", areaId)
|
||||||
if(areaId == "monitorButtons") {
|
if(areaId == "monitorButtons") {
|
||||||
for (var component in CuraApplication.additionalComponents["monitorButtons"]) {
|
for (var component in CuraApplication.additionalComponents["monitorButtons"]) {
|
||||||
CuraApplication.additionalComponents["monitorButtons"][component].parent = additionalComponentsRow
|
CuraApplication.additionalComponents["monitorButtons"][component].parent = additionalComponentsRow
|
||||||
|
@ -28,6 +28,10 @@ Item {
|
|||||||
return catalog.i18nc("@label:PrintjobStatus", "Please load a 3D model");
|
return catalog.i18nc("@label:PrintjobStatus", "Please load a 3D model");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (base.backendState == "undefined") {
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
switch(base.backendState)
|
switch(base.backendState)
|
||||||
{
|
{
|
||||||
case 1:
|
case 1:
|
||||||
@ -81,7 +85,7 @@ Item {
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
color: UM.Theme.getColor("progressbar_control")
|
color: UM.Theme.getColor("progressbar_control")
|
||||||
radius: UM.Theme.getSize("progressbar_radius").width
|
radius: UM.Theme.getSize("progressbar_radius").width
|
||||||
visible: base.backendState == 2 ? true : false
|
visible: (base.backendState != "undefined" && base.backendState == 2) ? true : false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -159,10 +163,8 @@ Item {
|
|||||||
|
|
||||||
tooltip: [1, 5].indexOf(UM.Backend.state) != -1 ? catalog.i18nc("@info:tooltip","Slice current printjob") : catalog.i18nc("@info:tooltip","Cancel slicing process")
|
tooltip: [1, 5].indexOf(UM.Backend.state) != -1 ? catalog.i18nc("@info:tooltip","Slice current printjob") : catalog.i18nc("@info:tooltip","Cancel slicing process")
|
||||||
// 1 = not started, 2 = Processing
|
// 1 = not started, 2 = Processing
|
||||||
enabled: (base.backendState == 1 || base.backendState == 2) && base.activity == true
|
enabled: base.backendState != "undefined" && (base.backendState == 1 || base.backendState == 2) && base.activity == true
|
||||||
visible: {
|
visible: base.backendState != "undefined" && !autoSlice && (base.backendState == 1 || base.backendState == 2) && base.activity == true
|
||||||
return !autoSlice && (base.backendState == 1 || base.backendState == 2) && base.activity == true;
|
|
||||||
}
|
|
||||||
property bool autoSlice
|
property bool autoSlice
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
height: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
|
|
||||||
@ -235,10 +237,8 @@ Item {
|
|||||||
|
|
||||||
tooltip: UM.OutputDeviceManager.activeDeviceDescription;
|
tooltip: UM.OutputDeviceManager.activeDeviceDescription;
|
||||||
// 3 = done, 5 = disabled
|
// 3 = done, 5 = disabled
|
||||||
enabled: (base.backendState == 3 || base.backendState == 5) && base.activity == true
|
enabled: base.backendState != "undefined" && (base.backendState == 3 || base.backendState == 5) && base.activity == true
|
||||||
visible: {
|
visible: base.backendState != "undefined" && autoSlice || ((base.backendState == 3 || base.backendState == 5) && base.activity == true)
|
||||||
return autoSlice || ((base.backendState == 3 || base.backendState == 5) && base.activity == true);
|
|
||||||
}
|
|
||||||
property bool autoSlice
|
property bool autoSlice
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
height: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
|
|
||||||
@ -315,8 +315,8 @@ Item {
|
|||||||
width: UM.Theme.getSize("save_button_save_to_button").height
|
width: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
height: UM.Theme.getSize("save_button_save_to_button").height
|
||||||
// 3 = Done, 5 = Disabled
|
// 3 = Done, 5 = Disabled
|
||||||
enabled: (base.backendState == 3 || base.backendState == 5) && base.activity == true
|
enabled: base.backendState != "undefined" && (base.backendState == 3 || base.backendState == 5) && base.activity == true
|
||||||
visible: (devicesModel.deviceCount > 1) && (base.backendState == 3 || base.backendState == 5) && base.activity == true
|
visible: base.backendState != "undefined" && (devicesModel.deviceCount > 1) && (base.backendState == 3 || base.backendState == 5) && base.activity == true
|
||||||
|
|
||||||
|
|
||||||
style: ButtonStyle {
|
style: ButtonStyle {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user