Removed the rudiments of the project

This commit is contained in:
Valentin Popov 2024-01-05 20:47:24 +04:00
parent 7e76448cb7
commit 58b6314dec
6 changed files with 10 additions and 4200 deletions

4165
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,6 @@ members = [
"libnres",
"nres-cli",
"packer",
"resource-viewer",
"texture-decoder",
"unpacker",
]

View File

@ -1,11 +0,0 @@
[package]
name = "resource-viewer"
version = "0.1.0"
edition = "2021"
build = "build.rs"
[dependencies]
slint = "1.0"
[build-dependencies]
slint-build = "1.0"

View File

@ -1,3 +0,0 @@
fn main() {
slint_build::compile("ui/appwindow.slint").unwrap();
}

View File

@ -1,13 +0,0 @@
slint::include_modules!();
fn main() -> Result<(), slint::PlatformError> {
let ui = AppWindow::new()?;
let ui_handle = ui.as_weak();
ui.on_request_increase_value(move || {
let ui = ui_handle.unwrap();
ui.set_counter(ui.get_counter() + 1);
});
ui.run()
}

View File

@ -1,17 +0,0 @@
import { Button, VerticalBox } from "std-widgets.slint";
export component AppWindow inherits Window {
in-out property<int> counter: 42;
callback request-increase-value();
VerticalBox {
Text {
text: "Counter: \{root.counter}";
}
Button {
text: "Increase value";
clicked => {
root.request-increase-value();
}
}
}
}