Move TopBar to the Skeleton folder.

Clean up the Cura.qml even more by moving some components to the
ApplicationMenu, where they are called.

Contributes to CURA-5784.
This commit is contained in:
Diego Prado Gesto 2018-10-08 10:59:46 +02:00
parent 193f113851
commit 8bdd27183f
4 changed files with 229 additions and 222 deletions

View file

@ -183,7 +183,6 @@ UM.MainWindow
bottom: parent.bottom;
left: parent.left;
}
}
Topbar
@ -340,13 +339,6 @@ UM.MainWindow
}
}
WorkspaceSummaryDialog
{
id: saveWorkspaceDialog
property var args
onYes: UM.OutputDeviceManager.requestWriteToDevice("local_file", PrintInformation.jobName, args)
}
Connections
{
target: Cura.Actions.preferences
@ -359,33 +351,6 @@ UM.MainWindow
onShowPreferencesWindow: preferences.visible = true
}
MessageDialog
{
id: newProjectDialog
modality: Qt.ApplicationModal
title: catalog.i18nc("@title:window", "New project")
text: catalog.i18nc("@info:question", "Are you sure you want to start a new project? This will clear the build plate and any unsaved settings.")
standardButtons: StandardButton.Yes | StandardButton.No
icon: StandardIcon.Question
onYes:
{
CuraApplication.deleteAll();
Cura.Actions.resetProfile.trigger();
}
}
Connections
{
target: Cura.Actions.newProject
onTriggered:
{
if(Printer.platformActivity || Cura.MachineManager.hasUserSettings)
{
newProjectDialog.visible = true
}
}
}
Connections
{
target: Cura.Actions.addProfile