mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-19 04:30:44 +00:00
52 lines
1.5 KiB
QML
52 lines
1.5 KiB
QML
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}
|
|
MenuSeparator{visible: Qt.platform.os !== "osx"}
|
|
MenuItem {action: showsettingsAction}
|
|
}
|
|
Menu{
|
|
title: qsTr("View")
|
|
visible: defaultMenuBar.visible
|
|
MenuItem {action: fullscreenAction; visible: fullscreenAction.enabled}
|
|
MenuItem {action: showMenubarAction; visible: showMenubarAction.enabled}
|
|
MenuSeparator{visible: showMenubarAction.enabled}
|
|
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}
|
|
}
|
|
}
|