2024-02-06 22:35:52 +03:00
|
|
|
use gtk4 as gtk;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
use gtk::*;
|
|
|
|
use view::*;
|
|
|
|
use gtk::prelude::*;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
#[path="ui_src/components/switch.rs"]
|
|
|
|
mod switch;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
#[path="ui_src/components/wrapper.rs"]
|
|
|
|
mod wrapper;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
#[path="ui_src/properties.rs"]
|
|
|
|
mod properties;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
#[path="utils/parse_input.rs"]
|
|
|
|
mod parse_input;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
#[path="utils/state_controller.rs"]
|
|
|
|
mod state_controller;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
mod view;
|
|
|
|
mod model;
|
|
|
|
mod controller;
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
fn main() {
|
|
|
|
let app = Application::builder()
|
|
|
|
.application_id("com.github.gtk-rs.examples.basic")
|
|
|
|
.build();
|
2023-09-17 20:21:14 +03:00
|
|
|
|
2024-02-06 22:35:52 +03:00
|
|
|
app.connect_activate(ui);
|
|
|
|
app.run();
|
2023-09-17 20:21:14 +03:00
|
|
|
}
|