Warning, /maui/booth/src/widgets/views/Terminal.qml is written in an unsupported language. File is not indexed.

0001 // Copyright 2018-2020 Camilo Higuita <milo.h@aol.com>
0002 // Copyright 2018-2020 Nitrux Latinoamericana S.C.
0003 //
0004 // SPDX-License-Identifier: GPL-3.0-or-later
0005 
0006 
0007 import QtQuick 2.0
0008 import org.kde.mauikit 1.0 as Maui
0009 
0010 Maui.Terminal
0011 {
0012     id: control
0013     kterminal.colorScheme: "DarkPastels"
0014     onKeyPressed:
0015     {
0016         if ((event.key == Qt.Key_V) && (event.modifiers & Qt.ControlModifier) && (event.modifiers & Qt.ShiftModifier))
0017         {
0018             kterminal.pasteClipboard()
0019         }
0020 
0021         if ((event.key == Qt.Key_C) && (event.modifiers & Qt.ControlModifier) && (event.modifiers & Qt.ShiftModifier))
0022         {
0023             kterminal.copyClipboard()
0024         }
0025 
0026         if ((event.key == Qt.Key_F) && (event.modifiers & Qt.ControlModifier) && (event.modifiers & Qt.ShiftModifier))
0027         {
0028             footBar.visible = !footBar.visible
0029         }
0030     }
0031 
0032     onTitleChanged:
0033     {
0034 //        var path = "file://"+control.title.slice(control.title.indexOf(":")+1).trim();
0035 //        console.log("yea", path)
0036 //        root.currentBrowser.currentPath = path;
0037 
0038 //        if(Maui.FM.fileExists(path))
0039 //        {
0040 //            root.currentBrowser.currentPath = path;
0041 //        }
0042     }
0043 
0044     onUrlsDropped:
0045     {
0046         var str = ""
0047         for(var i in urls)
0048             str = str + urls[i].replace("file://", "")+ " "
0049 
0050         control.session.sendText(str)
0051     }
0052 }