mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-19 22:39:06 +08:00
Added new project option
CURA-3494
This commit is contained in:
parent
039c1b92de
commit
66afc2a391
@ -10,6 +10,7 @@ import Cura 1.0 as Cura
|
|||||||
|
|
||||||
Item
|
Item
|
||||||
{
|
{
|
||||||
|
property alias newProject: newProjectAction;
|
||||||
property alias open: openAction;
|
property alias open: openAction;
|
||||||
property alias loadWorkspace: loadWorkspaceAction;
|
property alias loadWorkspace: loadWorkspaceAction;
|
||||||
property alias quit: quitAction;
|
property alias quit: quitAction;
|
||||||
@ -288,6 +289,13 @@ Item
|
|||||||
shortcut: StandardKey.Open;
|
shortcut: StandardKey.Open;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Action
|
||||||
|
{
|
||||||
|
id: newProjectAction
|
||||||
|
text: catalog.i18nc("@action:inmenu menubar:file","&New Project...");
|
||||||
|
shortcut: StandardKey.New
|
||||||
|
}
|
||||||
|
|
||||||
Action
|
Action
|
||||||
{
|
{
|
||||||
id: loadWorkspaceAction
|
id: loadWorkspaceAction
|
||||||
|
@ -66,6 +66,10 @@ UM.MainWindow
|
|||||||
{
|
{
|
||||||
id: fileMenu
|
id: fileMenu
|
||||||
title: catalog.i18nc("@title:menu menubar:toplevel","&File");
|
title: catalog.i18nc("@title:menu menubar:toplevel","&File");
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
action: Cura.Actions.newProject;
|
||||||
|
}
|
||||||
|
|
||||||
MenuItem
|
MenuItem
|
||||||
{
|
{
|
||||||
@ -533,6 +537,15 @@ UM.MainWindow
|
|||||||
target: Cura.Actions.preferences
|
target: Cura.Actions.preferences
|
||||||
onTriggered: preferences.visible = true
|
onTriggered: preferences.visible = true
|
||||||
}
|
}
|
||||||
|
Connections
|
||||||
|
{
|
||||||
|
target: Cura.Actions.newProject
|
||||||
|
onTriggered:
|
||||||
|
{
|
||||||
|
Printer.deleteAll();
|
||||||
|
Cura.Actions.resetProfile.trigger();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user