Added views to top bar

Closes #73 and CURA-38 #close
This commit is contained in:
Jaime van Kessel 2015-07-31 17:05:44 +02:00
parent 783b75bcd9
commit a82717f65c

View File

@ -65,7 +65,26 @@ UM.MainWindow {
MenuItem { action: actions.deleteSelection; }
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 {
id: machineMenu;
//: Machine menu