changed inputs for second section and implemented Clone and Copy traits for Alignment data structure
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
use crate::model::builder_traits::*;
|
||||
use gtk4 as gtk;
|
||||
|
||||
use gtk::{*, prelude::*, StackTransitionType::SlideLeftRight};
|
||||
use gtk::{prelude::*, StackTransitionType::SlideLeftRight, *};
|
||||
|
||||
use crate::{
|
||||
view::{
|
||||
properties::*,
|
||||
components::{
|
||||
*,
|
||||
wrapper::*,
|
||||
},
|
||||
pages::*
|
||||
},
|
||||
};
|
||||
use crate::view::components::pages::Pages;
|
||||
|
||||
pub fn ui(application: &adw::Application) {
|
||||
#[allow(unused)]
|
||||
use crate::view::{
|
||||
components::{wrapper::*, *},
|
||||
pages::*,
|
||||
properties::*,
|
||||
};
|
||||
|
||||
pub fn ui(application: &adw::Application) {
|
||||
let hamming_code = Wrapper::row_builder()
|
||||
.set_align(Alignment::new(Align::Fill, Align::Fill))
|
||||
.set_margin(MarginData::EqualsMargin(15))
|
||||
@@ -37,7 +33,7 @@ pub fn ui(application: &adw::Application) {
|
||||
.set_transition(SlideLeftRight, 200)
|
||||
.append_items(vec![
|
||||
("Код Хэмминга", "Код Хэмминга", &hamming_code),
|
||||
("Затухание сигнала", "Затухание сигнала", &signal_reducing)
|
||||
("Затухание сигнала", "Затухание сигнала", &signal_reducing),
|
||||
])
|
||||
.build(5)
|
||||
.get();
|
||||
@@ -51,4 +47,4 @@ pub fn ui(application: &adw::Application) {
|
||||
.build();
|
||||
|
||||
window.show();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user