ADDED: models and controllers for page "signal reducing"\n TODO: done table for page "signal reducing"
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user