Warning, /graphics/peruse/src/app/qml/MobileMain.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright (C) 2015 Dan Leinir Turthra Jensen <admin@leinir.dk> 0003 * 0004 * This library is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU Lesser General Public 0006 * License as published by the Free Software Foundation; either 0007 * version 2.1 of the License, or (at your option) version 3, or any 0008 * later version accepted by the membership of KDE e.V. (or its 0009 * successor approved by the membership of KDE e.V.), which shall 0010 * act as a proxy defined in Section 6 of version 3 of the license. 0011 * 0012 * This library is distributed in the hope that it will be useful, 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0015 * Lesser General Public License for more details. 0016 * 0017 * You should have received a copy of the GNU Lesser General Public 0018 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 0019 * 0020 */ 0021 0022 import QtQuick 2.12 0023 0024 import org.kde.kirigami 2.7 as Kirigami 0025 0026 import org.kde.peruse 0.1 as Peruse 0027 0028 PeruseMain { 0029 id: root; 0030 width: 750; 0031 height: 1100; 0032 0033 function openOther() { 0034 pageStack.push(openDlg, { folder: root.homeDir() } ); 0035 } 0036 0037 Component { 0038 id: openDlg; 0039 Kirigami.Page { 0040 id: root; 0041 property string folder; 0042 title: i18nc("Title of a page which lets you open comics not in your collection by using a standard touch-friendly dig-down style filesystem browser", "Open Comics not in Your Collection"); 0043 FileFinder { 0044 width: root.width - (root.leftPadding + root.rightPadding); 0045 height: root.height - (root.topPadding + root.bottomPadding); 0046 folder: root.folder; 0047 showFiles: true; 0048 property int splitPos: osIsWindows ? 8 : 7; 0049 onAccepted: { 0050 if(selectedItem().substring(0, 7) === "file://") { 0051 showBook(selectedItem().substring(splitPos), 0); 0052 } 0053 } 0054 onAborted: pageStack.pop(); 0055 } 0056 } 0057 } 0058 }