TUI #1

Merged
shaunrd0 merged 73 commits from ui into master 2026-01-25 20:57:37 +00:00
2 changed files with 21 additions and 18 deletions
Showing only changes of commit 4f3aebe64f - Show all commits

View File

@ -1,22 +1,24 @@
use cxx_qt_build::{CxxQtBuilder, QmlModule}; use cxx_qt_build::{CxxQtBuilder, QmlModule};
fn main() { fn main() {
CxxQtBuilder::new() CxxQtBuilder::new()
// Link Qt's Network library // Link Qt's Network library
// - Qt Core is always linked // - Qt Core is always linked
// - Qt Gui is linked by enabling the qt_gui Cargo feature of cxx-qt-lib. // - Qt Gui is linked by enabling the qt_gui Cargo feature of cxx-qt-lib.
// - Qt Qml is linked by enabling the qt_qml Cargo feature of cxx-qt-lib. // - Qt Qml is linked by enabling the qt_qml Cargo feature of cxx-qt-lib.
// - Qt Qml requires linking Qt Network on macOS // - Qt Qml requires linking Qt Network on macOS
.qt_module("Network") .qt_module("Network")
.qml_module(QmlModule { .qml_module(QmlModule {
uri: "clide.module", uri: "clide.module",
rust_files: &["src/colors.rs"], rust_files: &["src/colors.rs", "src/filesystem.rs"],
qml_files: &["qml/main.qml", qml_files: &[
"qml/ClideAboutWindow.qml", "qml/main.qml",
"qml/ClideProjectView.qml", "qml/ClideAboutWindow.qml",
"qml/ClideEditor.qml", "qml/ClideProjectView.qml",
"qml/ClideMenuBar.qml"], "qml/ClideEditor.qml",
..Default::default() "qml/ClideMenuBar.qml",
}) ],
.build(); ..Default::default()
})
.build();
} }

View File

@ -3,6 +3,7 @@
use cxx_qt_lib::QString; use cxx_qt_lib::QString;
pub mod colors; pub mod colors;
pub mod filesystem;
fn main() { fn main() {
use cxx_qt_lib::{QGuiApplication, QQmlApplicationEngine, QUrl}; use cxx_qt_lib::{QGuiApplication, QQmlApplicationEngine, QUrl};