2014-09-20 02:26:21 +02:00
|
|
|
import QtQuick 2.2
|
|
|
|
import QtQuick.Controls 1.1
|
|
|
|
|
|
|
|
MenuBar {
|
|
|
|
id: defaultMenuBar
|
|
|
|
property bool visible: true
|
|
|
|
Menu {
|
|
|
|
title: qsTr("File")
|
|
|
|
visible: defaultMenuBar.visible
|
|
|
|
MenuItem {action: quitAction}
|
|
|
|
}
|
|
|
|
Menu {
|
|
|
|
title: qsTr("Edit")
|
|
|
|
visible: defaultMenuBar.visible
|
|
|
|
MenuItem {action: copyAction}
|
|
|
|
MenuItem {action: pasteAction}
|
2014-10-10 15:12:28 +02:00
|
|
|
MenuSeparator{visible: Qt.platform.os !== "osx"}
|
2014-09-20 02:26:21 +02:00
|
|
|
MenuItem {action: showsettingsAction}
|
|
|
|
}
|
|
|
|
Menu{
|
|
|
|
title: qsTr("View")
|
|
|
|
visible: defaultMenuBar.visible
|
2014-10-10 15:12:28 +02:00
|
|
|
MenuItem {action: fullscreenAction; visible: fullscreenAction.enabled}
|
|
|
|
MenuItem {action: showMenubarAction; visible: showMenubarAction.enabled}
|
|
|
|
MenuSeparator{visible: showMenubarAction.enabled}
|
2014-09-20 02:26:21 +02:00
|
|
|
MenuItem {action: zoomIn}
|
|
|
|
MenuItem {action: zoomOut}
|
|
|
|
}
|
|
|
|
Menu{
|
|
|
|
id: profilesMenu
|
|
|
|
title: qsTr("Profiles")
|
|
|
|
visible: defaultMenuBar.visible
|
|
|
|
Instantiator{
|
|
|
|
model: shadersettings.profiles_list
|
|
|
|
delegate: MenuItem {
|
|
|
|
text: model.text
|
|
|
|
onTriggered: {
|
|
|
|
shadersettings.loadProfileString(obj_string);
|
|
|
|
shadersettings.handleFontChanged();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
onObjectAdded: profilesMenu.insertItem(index, object)
|
|
|
|
onObjectRemoved: profilesMenu.removeItem(object)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Menu{
|
|
|
|
title: qsTr("Help")
|
|
|
|
visible: defaultMenuBar.visible
|
|
|
|
MenuItem {action: showAboutAction}
|
|
|
|
}
|
|
|
|
}
|