2026-02-06 19:32:02 -05:00
|
|
|
// SPDX-FileCopyrightText: 2026, Shaun Reed <shaunrd0@gmail.com>
|
|
|
|
|
//
|
|
|
|
|
// SPDX-License-Identifier: GNU General Public License v3.0 or later
|
|
|
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
|
|
import clide.module 1.0
|
|
|
|
|
import Logger 1.0
|
|
|
|
|
|
2026-02-08 14:26:26 -05:00
|
|
|
Rectangle {
|
2026-02-06 19:32:02 -05:00
|
|
|
id: root
|
|
|
|
|
|
|
|
|
|
// The path to the file to show in the text editor.
|
2026-02-08 14:26:26 -05:00
|
|
|
// This is updated by a signal caught within ClideApplicationView.
|
2026-02-06 19:32:02 -05:00
|
|
|
required property string filePath
|
|
|
|
|
|
2026-02-08 14:26:26 -05:00
|
|
|
clip: true
|
|
|
|
|
color: "transparent"
|
|
|
|
|
radius: 20
|
|
|
|
|
|
|
|
|
|
SplitView {
|
|
|
|
|
anchors.fill: parent
|
|
|
|
|
orientation: Qt.Vertical
|
|
|
|
|
|
|
|
|
|
// Customized handle to drag between the Editor and the Console.
|
|
|
|
|
handle: ClideHandle {
|
|
|
|
|
hovered: SplitHandle.hovered
|
|
|
|
|
pressed: SplitHandle.pressed
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Component.onCompleted: {
|
|
|
|
|
// Show logging is working.
|
|
|
|
|
Logger.info("Info logs");
|
|
|
|
|
Logger.warn("Warning logs");
|
|
|
|
|
Logger.debug("Debug logs");
|
|
|
|
|
Logger.error("Error logs");
|
|
|
|
|
Logger.trace("Trace logs");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ClideEditor {
|
|
|
|
|
SplitView.preferredHeight: 650
|
|
|
|
|
}
|
|
|
|
|
ClideLogger {
|
|
|
|
|
}
|
2026-02-06 19:32:02 -05:00
|
|
|
}
|
|
|
|
|
}
|