mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-22 18:31:11 -07:00
CURA-5458 Use Save and Export
This commit is contained in:
parent
461b191648
commit
e53e62ccab
1 changed files with 22 additions and 20 deletions
|
|
@ -122,29 +122,10 @@ UM.MainWindow
|
||||||
|
|
||||||
MenuSeparator { }
|
MenuSeparator { }
|
||||||
|
|
||||||
MenuItem
|
|
||||||
{
|
|
||||||
text: catalog.i18nc("@action:inmenu menubar:file", "&Save Selection to File");
|
|
||||||
enabled: UM.Selection.hasSelection;
|
|
||||||
iconName: "document-save-as";
|
|
||||||
onTriggered: UM.OutputDeviceManager.requestWriteSelectionToDevice("local_file", PrintInformation.jobName, { "filter_by_machine": false, "preferred_mimetype": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml"});
|
|
||||||
}
|
|
||||||
|
|
||||||
MenuItem
|
|
||||||
{
|
|
||||||
id: saveAsMenu
|
|
||||||
text: catalog.i18nc("@title:menu menubar:file", "Save &As...")
|
|
||||||
onTriggered:
|
|
||||||
{
|
|
||||||
var localDeviceId = "local_file";
|
|
||||||
UM.OutputDeviceManager.requestWriteToDevice(localDeviceId, PrintInformation.jobName, { "filter_by_machine": false, "preferred_mimetype": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml"});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
id: saveWorkspaceMenu
|
id: saveWorkspaceMenu
|
||||||
text: catalog.i18nc("@title:menu menubar:file","Save &Project...")
|
text: catalog.i18nc("@title:menu menubar:file","&Save..")
|
||||||
onTriggered:
|
onTriggered:
|
||||||
{
|
{
|
||||||
var args = { "filter_by_machine": false, "file_type": "workspace", "preferred_mimetype": "application/x-curaproject+xml" };
|
var args = { "filter_by_machine": false, "file_type": "workspace", "preferred_mimetype": "application/x-curaproject+xml" };
|
||||||
|
|
@ -160,6 +141,27 @@ UM.MainWindow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
id: saveAsMenu
|
||||||
|
text: catalog.i18nc("@title:menu menubar:file", "&Export..")
|
||||||
|
onTriggered:
|
||||||
|
{
|
||||||
|
var localDeviceId = "local_file";
|
||||||
|
UM.OutputDeviceManager.requestWriteToDevice(localDeviceId, PrintInformation.jobName, { "filter_by_machine": false, "preferred_mimetype": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml"});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
text: catalog.i18nc("@action:inmenu menubar:file", "Export Selection to File");
|
||||||
|
enabled: UM.Selection.hasSelection;
|
||||||
|
iconName: "document-save-as";
|
||||||
|
onTriggered: UM.OutputDeviceManager.requestWriteSelectionToDevice("local_file", PrintInformation.jobName, { "filter_by_machine": false, "preferred_mimetype": "application/vnd.ms-package.3dmanufacturing-3dmodel+xml"});
|
||||||
|
}
|
||||||
|
|
||||||
|
MenuSeparator { }
|
||||||
|
|
||||||
MenuItem { action: Cura.Actions.reloadAll; }
|
MenuItem { action: Cura.Actions.reloadAll; }
|
||||||
|
|
||||||
MenuSeparator { }
|
MenuSeparator { }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue