ADDED: models and controllers for page "signal reducing"\n TODO: done table for page "signal reducing"

This commit is contained in:
2024-04-19 01:30:51 +04:00
parent 6e315907bc
commit b6d0eb0508
11 changed files with 228 additions and 97 deletions

View File

@@ -5,8 +5,10 @@ use gtk::{prelude::*, *};
pub type InputLabel = String;
#[derive(Clone)]
pub struct Input {
component: Box,
input: TextView,
}
pub struct InputBuilder {
@@ -32,6 +34,12 @@ impl Product<InputBuilder, Box> for Input {
}
}
impl Input {
pub fn get_input(self) -> TextView {
self.input
}
}
impl InputBuilder {
pub fn set_label(mut self, label: &str) -> Self {
self.label = String::from(label);
@@ -78,6 +86,7 @@ impl InputBuilder {
Input {
component: input_component,
input: text_view_input,
}
}
}