removed unnecessary module definitions

This commit is contained in:
doryan04 2024-03-10 12:54:32 +04:00
parent 54619cd3f9
commit 4c230c090d
11 changed files with 702 additions and 743 deletions

View File

@ -1,7 +1,5 @@
pub mod button_event_handlers_module{
use crate::{
model::model::model_module::*,
model::model::*,
gtk::{
*,
prelude::*
@ -30,5 +28,3 @@ pub mod button_event_handlers_module{
});
}
}
}

View File

@ -1,8 +1,6 @@
pub mod switch_event_handlers_module{
use crate::{
model::model::model_module::*,
view::components::switch::switch_module::SwitchExt,
model::model::*,
view::components::switch::SwitchExt,
gtk::{
*,
prelude::*
@ -26,5 +24,3 @@ pub mod switch_event_handlers_module{
input.buffer().set_text("");
output.buffer().set_text("");
}
}

View File

@ -1,10 +1,8 @@
pub mod hamming_code{
use std::{borrow::Borrow, collections::HashMap};
use crate::{
model::model::model_module::*,
controller::view_utils::input_utils::input_utils_module::*,
model::model::*,
controller::view_utils::input_utils::*,
};
/// **Синдромы**
@ -155,5 +153,3 @@ pub mod hamming_code{
}
}
}

View File

@ -1,5 +1,3 @@
pub mod input_utils_module {
use gtk4 as gtk;
use std::ops::Deref;
@ -7,8 +5,8 @@ pub mod input_utils_module {
use bitvec::{order::Lsb0, view::AsBits};
use crate::{
model::model::model_module::*,
model_utils::hamming_code_seven_four::hamming_code::*
model::model::*,
model_utils::hamming_code_seven_four::*
};
pub fn parse_input(input : &TextView, output : &TextView, mode: bool) -> (){
@ -68,5 +66,3 @@ pub mod input_utils_module {
.collect()
}
}

View File

@ -6,13 +6,11 @@ use gtk::*;
use gtk::prelude::*;
mod view;
use view::view::view_module::*;
mod model;
mod controller;
use controller::*;
use controller::*;
use view::view::*;
fn main() {
@ -22,4 +20,5 @@ fn main() {
app.connect_activate(ui);
app.run();
}

View File

@ -1,5 +1,3 @@
pub mod model_module{
#[repr(usize)]
#[derive(Clone)]
pub enum HammingMode{
@ -11,6 +9,3 @@ pub mod model_module{
pub(crate) component: C,
pub(crate) callback: F,
}
}

View File

@ -1,5 +1,3 @@
pub mod switch_module {
use gtk4 as gtk;
use gtk::{*, prelude::*};
@ -150,4 +148,3 @@ pub mod switch_module {
}
impl<O: IsA<Switch>> SwitchExt for O {}
}

View File

@ -1,5 +1,3 @@
pub mod tabs_module {
use gtk4 as gtk;
use gtk::{Notebook, Label, Box};
@ -67,5 +65,3 @@ pub mod tabs_module {
}
}
}

View File

@ -1,5 +1,3 @@
pub mod wrapper_module {
use gtk4 as gtk;
use gtk::{Orientation, builders::BoxBuilder, Box};
@ -18,6 +16,3 @@ pub mod wrapper_module {
}
}
}

View File

@ -1,4 +1,3 @@
pub mod properties_module{
use gtk4 as gtk;
use gtk::{Align};
@ -117,4 +116,3 @@ pub mod properties_module{
}
}
}
}

View File

@ -1,26 +1,24 @@
pub mod view_module{
use gtk4 as gtk;
use gtk::{*, prelude::*};
use crate::{
model::model::model_module::*,
model::model::*,
view::{
properties::properties_module::*,
properties::*,
components::{
*,
tabs::tabs_module::*,
switch::switch_module::*,
wrapper::wrapper_module::*,
tabs::*,
switch::*,
wrapper::*,
}
},
controller::{
controller::*,
view_utils::input_utils::input_utils_module::*,
view_utils::input_utils::*,
event_handlers::{
button_event_handlers::button_event_handlers_module::*,
switch_event_handlers::switch_event_handlers_module::*,
button_event_handlers::*,
switch_event_handlers::*,
},
}
};
@ -190,6 +188,3 @@ pub mod view_module{
window.show();
}
}