mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-22 14:13:55 -06:00
Merge branch 'master' of github.com:Ultimaker/JediWifiPrintingPlugin
This commit is contained in:
commit
d8d1bd92d3
3 changed files with 11 additions and 4 deletions
|
@ -165,7 +165,7 @@ Cura.MachineAction
|
||||||
Column
|
Column
|
||||||
{
|
{
|
||||||
width: parent.width * 0.5
|
width: parent.width * 0.5
|
||||||
visible: base.selectedPrinter
|
visible: base.selectedPrinter ? true : false
|
||||||
spacing: UM.Theme.getSize("default_margin").height
|
spacing: UM.Theme.getSize("default_margin").height
|
||||||
Label
|
Label
|
||||||
{
|
{
|
||||||
|
@ -220,7 +220,7 @@ Cura.MachineAction
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
text: catalog.i18nc("@action:button", "Connect")
|
text: catalog.i18nc("@action:button", "Connect")
|
||||||
enabled: base.selectedPrinter
|
enabled: base.selectedPrinter ? true : false
|
||||||
onClicked: connectToPrinter()
|
onClicked: connectToPrinter()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -245,7 +245,7 @@ class NetworkPrinterOutputDevice(PrinterOutputDevice):
|
||||||
self._authentication_state = auth_state
|
self._authentication_state = auth_state
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def requestAuthentication(self, message_id, action_id):
|
def requestAuthentication(self, message_id = None, action_id = "Retry"):
|
||||||
if action_id == "Request" or action_id == "Retry":
|
if action_id == "Request" or action_id == "Retry":
|
||||||
self._authentication_failed_message.hide()
|
self._authentication_failed_message.hide()
|
||||||
self._not_authenticated_message.hide()
|
self._not_authenticated_message.hide()
|
||||||
|
|
|
@ -37,6 +37,7 @@ Item
|
||||||
text: catalog.i18nc("@action:button", "Connect")
|
text: catalog.i18nc("@action:button", "Connect")
|
||||||
style: UM.Theme.styles.sidebar_action_button
|
style: UM.Theme.styles.sidebar_action_button
|
||||||
onClicked: connectActionDialog.show()
|
onClicked: connectActionDialog.show()
|
||||||
|
enabled: true
|
||||||
visible: !base.printerConnected
|
visible: !base.printerConnected
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -64,12 +65,18 @@ Item
|
||||||
visible: isUM3
|
visible: isUM3
|
||||||
Button
|
Button
|
||||||
{
|
{
|
||||||
height: UM.Theme.getSize("save_button_save_to_button").height
|
|
||||||
tooltip: catalog.i18nc("@info:tooltip", "Send access request to the printer")
|
tooltip: catalog.i18nc("@info:tooltip", "Send access request to the printer")
|
||||||
text: catalog.i18nc("@action:button", "Request Access")
|
text: catalog.i18nc("@action:button", "Request Access")
|
||||||
onClicked: Cura.MachineManager.printerOutputDevices[0].requestAuthentication()
|
onClicked: Cura.MachineManager.printerOutputDevices[0].requestAuthentication()
|
||||||
visible: base.printerConnected && !base.printerAcceptsCommands
|
visible: base.printerConnected && !base.printerAcceptsCommands
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Button
|
||||||
|
{
|
||||||
|
tooltip: catalog.i18nc("@info:tooltip", "Load the configuration of the printer into Cura")
|
||||||
|
text: catalog.i18nc("@action:button", "Activate Configuration")
|
||||||
|
visible: false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
UM.I18nCatalog{id: catalog; name:"cura"}
|
UM.I18nCatalog{id: catalog; name:"cura"}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue