Warning, /pim/merkuro/src/mail/qml/app/GlobalMenuBar.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2021 Carson Black <uhhadd@gmail.com>
0002 // SPDX-License-Identifier: GPL-3.0-or-later
0003 
0004 import Qt.labs.platform 1.1 as Labs
0005 
0006 import QtQuick 2.15
0007 import QtQuick.Window 2.15
0008 import org.kde.merkuro 1.0
0009 import org.kde.merkuro.components 1.0
0010 
0011 Labs.MenuBar {
0012     id: bar
0013 
0014     NativeFileMenu {}
0015 
0016     NativeEditMenu {}
0017 
0018     Labs.Menu {
0019         title: i18nc("@action:menu", "View")
0020 
0021         NativeMenuItemFromAction {
0022             merkuroAction: 'open_month_view'
0023         }
0024 
0025         NativeMenuItemFromAction {
0026             merkuroAction: 'open_week_view'
0027         }
0028 
0029         NativeMenuItemFromAction {
0030             merkuroAction: "open_threeday_view"
0031         }
0032 
0033         NativeMenuItemFromAction {
0034             merkuroAction: "open_day_view"
0035         }
0036 
0037         NativeMenuItemFromAction {
0038             merkuroAction: 'open_schedule_view'
0039         }
0040 
0041         NativeMenuItemFromAction {
0042             merkuroAction: 'open_todo_view'
0043         }
0044 
0045         NativeMenuItemFromAction {
0046             merkuroAction: 'open_contact_view'
0047         }
0048 
0049         NativeMenuItemFromAction {
0050             merkuroAction: 'open_kcommand_bar'
0051         }
0052     }
0053 
0054     Labs.Menu {
0055         title: i18nc("@action:menu", "Create")
0056 
0057         NativeMenuItemFromAction {
0058             merkuroAction: 'create_mail'
0059         }
0060     }
0061     Labs.Menu {
0062         title: i18nc("@action:menu", "Window")
0063 
0064         Labs.MenuItem {
0065             text: root.visibility === Window.FullScreen ? i18nc("@action:menu", "Exit Full Screen") : i18nc("@action:menu", "Enter Full Screen")
0066             icon.name: "view-fullscreen"
0067             shortcut: "F11"
0068             onTriggered: root.visibility === Window.FullScreen ? root.showNormal() : root.showFullScreen()
0069         }
0070     }
0071 
0072     NativeSettingsMenu {}
0073 
0074     NativeHelpMenu {}
0075 }