mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-19 17:19:07 +08:00
parent
783b75bcd9
commit
a82717f65c
@ -65,7 +65,26 @@ UM.MainWindow {
|
|||||||
MenuItem { action: actions.deleteSelection; }
|
MenuItem { action: actions.deleteSelection; }
|
||||||
MenuItem { action: actions.deleteAll; }
|
MenuItem { action: actions.deleteAll; }
|
||||||
}
|
}
|
||||||
|
Menu
|
||||||
|
{
|
||||||
|
title: qsTr("&View");
|
||||||
|
id: top_view_menu
|
||||||
|
Instantiator
|
||||||
|
{
|
||||||
|
model: UM.Models.viewModel
|
||||||
|
MenuItem
|
||||||
|
{
|
||||||
|
text: model.name;
|
||||||
|
checkable: true;
|
||||||
|
checked: model.active;
|
||||||
|
exclusiveGroup: view_menu_top_group;
|
||||||
|
onTriggered: UM.Controller.setActiveView(model.id);
|
||||||
|
}
|
||||||
|
onObjectAdded: top_view_menu.insertItem(index, object)
|
||||||
|
onObjectRemoved: top_view_menu.removeItem(object)
|
||||||
|
}
|
||||||
|
ExclusiveGroup { id: view_menu_top_group; }
|
||||||
|
}
|
||||||
Menu {
|
Menu {
|
||||||
id: machineMenu;
|
id: machineMenu;
|
||||||
//: Machine menu
|
//: Machine menu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user