74 lines
2.4 KiB
QML
Raw Normal View History

2020-10-18 06:50:26 -05:00
/*
2023-01-22 23:51:35 -06:00
* Copyright (c) 2020-2023 Alex Spataru <https://github.com/alex-spataru>
2020-10-18 06:50:26 -05:00
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
2022-05-02 04:31:32 -05:00
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
2021-12-16 15:41:29 -05:00
2024-08-11 18:20:03 -05:00
import "../../Widgets" as Widgets
2020-10-18 06:50:26 -05:00
2024-08-11 18:20:03 -05:00
Widgets.Pane {
id: root
2024-08-11 18:20:03 -05:00
title: qsTr("Console")
icon: "qrc:/rcc/icons/panes/console.svg"
//
// Custom properties
//
property alias vt100emulation: terminal.vt100emulation
2021-02-05 16:39:16 -05:00
//
// Utility functions between terminal widget & main window
//
function sendData() {
terminal.sendData()
} function clear() {
terminal.clear()
} function copy() {
terminal.copy()
} function selectAll() {
terminal.selectAll()
}
2021-02-17 14:36:39 -05:00
//
2024-09-18 21:48:57 -05:00
// Use page item to set application palette
//
2024-09-18 21:48:57 -05:00
Page {
anchors.fill: parent
2024-09-18 21:48:57 -05:00
palette.base: Cpp_ThemeManager.colors["base"]
palette.text: Cpp_ThemeManager.colors["text"]
palette.button: Cpp_ThemeManager.colors["button"]
palette.window: Cpp_ThemeManager.colors["window"]
palette.windowText: Cpp_ThemeManager.colors["text"]
palette.buttonText: Cpp_ThemeManager.colors["button_text"]
palette.highlight: Cpp_ThemeManager.colors["switch_highlight"]
palette.placeholderText: Cpp_ThemeManager.colors["placeholder_text"]
palette.highlightedText: Cpp_ThemeManager.colors["highlighted_text"]
Widgets.Terminal {
id: terminal
widgetEnabled: true
anchors.fill: parent
}
}
2020-10-18 06:50:26 -05:00
}