Warning, /pim/itinerary/src/app/NavigationBar.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2023 Mathis BrĂ¼chert <mbb@kaidan.im> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 import QtQuick 0008 import org.kde.kirigami as Kirigami 0009 import org.kde.itinerary 0010 0011 Kirigami.NavigationTabBar { 0012 id: root 0013 0014 visible: pageStack.layers.depth < 2 0015 actions: [ 0016 Kirigami.PagePoolAction { 0017 icon.name: "format-list-unordered" 0018 text: i18n("Itinerary") 0019 pagePool: pagepool 0020 page: Qt.resolvedUrl("TimelinePage.qml") 0021 }, 0022 Kirigami.Action { 0023 icon.name: "search" 0024 text: i18n("Plan Trip") 0025 onTriggered: { 0026 if (pageStack.currentItem.objectName !== "JourneyRequestPage") { 0027 pagepool.loadPage(Qt.resolvedUrl("TimelinePage.qml")).addTrainTrip() 0028 } 0029 } 0030 }, 0031 Kirigami.PagePoolAction { 0032 icon.name: "wallet-open" 0033 text: i18n("Passes & Programs") 0034 pagePool: pagepool 0035 page: Qt.resolvedUrl("PassPage.qml") 0036 }, 0037 Kirigami.Action { 0038 text: i18n("Current Ticket") 0039 icon.name: "view-barcode-qr" 0040 visible: TimelineModel.currentBatchId !== "" 0041 onTriggered: pagepool.loadPage(Qt.resolvedUrl("TimelinePage.qml")).showDetailsPageForReservation(TimelineModel.currentBatchId) 0042 } 0043 ] 0044 }