Compare commits
1 Commits
41fab2847d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f6fdd19f73 |
22
build.rs
22
build.rs
@@ -2,21 +2,21 @@ use cxx_qt_build::{CxxQtBuilder, QmlModule};
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
CxxQtBuilder::new_qml_module(QmlModule::new("clide.module").qml_files(&[
|
CxxQtBuilder::new_qml_module(QmlModule::new("clide.module").qml_files(&[
|
||||||
"qml/main.qml",
|
|
||||||
"qml/ClideAboutWindow.qml",
|
|
||||||
"qml/ClideTreeView.qml",
|
|
||||||
"qml/ClideApplicationView.qml",
|
"qml/ClideApplicationView.qml",
|
||||||
"qml/ClideExplorerView.qml",
|
|
||||||
"qml/ClideEditor.qml",
|
|
||||||
"qml/ClideEditorView.qml",
|
"qml/ClideEditorView.qml",
|
||||||
"qml/ClideMenuBar.qml",
|
"qml/ClideExplorerView.qml",
|
||||||
"qml/ClideLogger.qml",
|
"qml/ClideTreeView.qml",
|
||||||
"qml/Components/ClideScrollBar.qml",
|
"qml/Components/ClideAboutWindow.qml",
|
||||||
"qml/Components/ClideHandle.qml",
|
|
||||||
"qml/Components/ClideMenu.qml",
|
|
||||||
"qml/Components/ClideMenuItem.qml",
|
|
||||||
"qml/Components/ClideBreadCrumbs.qml",
|
"qml/Components/ClideBreadCrumbs.qml",
|
||||||
|
"qml/Components/ClideEditor.qml",
|
||||||
|
"qml/Components/ClideHandle.qml",
|
||||||
|
"qml/Components/ClideLogger.qml",
|
||||||
|
"qml/Components/ClideMenu.qml",
|
||||||
|
"qml/Components/ClideMenuBar.qml",
|
||||||
|
"qml/Components/ClideMenuItem.qml",
|
||||||
|
"qml/Components/ClideScrollBar.qml",
|
||||||
"qml/Logger/Logger.qml",
|
"qml/Logger/Logger.qml",
|
||||||
|
"qml/main.qml",
|
||||||
]))
|
]))
|
||||||
// Link Qt's Network library
|
// Link Qt's Network library
|
||||||
// - Qt Core is always linked
|
// - Qt Core is always linked
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ Rectangle {
|
|||||||
SplitView {
|
SplitView {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
orientation: Qt.Vertical
|
orientation: Qt.Vertical
|
||||||
|
spacing: 3
|
||||||
|
|
||||||
// Customized handle to drag between the Editor and the Console.
|
// Customized handle to drag between the Editor and the Console.
|
||||||
handle: ClideHandle {
|
handle: ClideHandle {
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ TreeView {
|
|||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
color: current ? RustColors.explorer_folder_open : "transparent"
|
color: current ? RustColors.explorer_folder_open : "transparent"
|
||||||
radius: 20
|
radius: 20
|
||||||
width: root.width - 15
|
width: root.width
|
||||||
}
|
}
|
||||||
// Item name.
|
// Item name.
|
||||||
contentItem: Text {
|
contentItem: Text {
|
||||||
|
|||||||
@@ -104,28 +104,6 @@ Rectangle {
|
|||||||
onLinkActivated: function (link) {
|
onLinkActivated: function (link) {
|
||||||
Qt.openUrlExternally(link);
|
Qt.openUrlExternally(link);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Handle saving
|
|
||||||
// Component.onCompleted: {
|
|
||||||
// if (Qt.application.arguments.length === 2)
|
|
||||||
// textDocument.source = "file:" + Qt.application.arguments[1]
|
|
||||||
// else
|
|
||||||
// textDocument.source = "qrc:/texteditor.html"
|
|
||||||
// }
|
|
||||||
// textDocument.onStatusChanged: {
|
|
||||||
// // a message lookup table using computed properties:
|
|
||||||
// // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer
|
|
||||||
// const statusMessages = {
|
|
||||||
// [ TextDocument.ReadError ]: qsTr("Failed to load “%1”"),
|
|
||||||
// [ TextDocument.WriteError ]: qsTr("Failed to save “%1”"),
|
|
||||||
// [ TextDocument.NonLocalFileError ]: qsTr("Not a local file: “%1”"),
|
|
||||||
// }
|
|
||||||
// const err = statusMessages[textDocument.status]
|
|
||||||
// if (err) {
|
|
||||||
// errorDialog.text = err.arg(textDocument.source)
|
|
||||||
// errorDialog.open()
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FontMetrics {
|
FontMetrics {
|
||||||
@@ -3,3 +3,7 @@ ClideHandle ClideHandle.qml
|
|||||||
ClideMenu ClideMenu.qml
|
ClideMenu ClideMenu.qml
|
||||||
ClideMenuItem ClideMenuItem.qml
|
ClideMenuItem ClideMenuItem.qml
|
||||||
ClideBreadCrumbs ClideBreadCrumbs.qml
|
ClideBreadCrumbs ClideBreadCrumbs.qml
|
||||||
|
ClideAboutWindow ClideAboutWindow.qml
|
||||||
|
ClideEditor ClideEditor.qml
|
||||||
|
ClideLogger ClideLogger.qml
|
||||||
|
ClideMenuBar ClideMenuBar.qml
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 324 KiB After Width: | Height: | Size: 402 KiB |
@@ -57,7 +57,6 @@ pub mod qobject {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Implement a provider for QFileSystemModel::setIconProvider for icons.
|
|
||||||
pub struct FileSystemImpl {
|
pub struct FileSystemImpl {
|
||||||
file_path: QString,
|
file_path: QString,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user