-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
266 additions
and
38 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use gtk::prelude::*; | ||
|
||
#[derive(Clone)] | ||
pub struct GuiNormalize { | ||
pub radio_button_normalize_everything: gtk::RadioButton, | ||
pub radio_button_normalize_partial: gtk::RadioButton, | ||
} | ||
|
||
impl GuiNormalize { | ||
pub fn create_from_builder(builder: >k::Builder) -> Self { | ||
let radio_button_normalize_everything: gtk::RadioButton = builder.object("radio_button_normalize_everything").unwrap(); | ||
let radio_button_normalize_partial: gtk::RadioButton = builder.object("radio_button_normalize_partial").unwrap(); | ||
|
||
Self { | ||
radio_button_normalize_everything, | ||
radio_button_normalize_partial, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use crate::class_gui_data::GuiData; | ||
use crate::example_fields::update_examples; | ||
use gtk::prelude::*; | ||
|
||
pub fn connect_rule_window_normalize_click(gui_data: &GuiData) { | ||
let window_rules = gui_data.window_rules.clone(); | ||
|
||
let radio_button_normalize_everything = gui_data.window_rules.normalize.radio_button_normalize_everything.clone(); | ||
let radio_button_normalize_partial = gui_data.window_rules.normalize.radio_button_normalize_partial.clone(); | ||
|
||
radio_button_normalize_everything.connect_clicked(move |_e| { | ||
update_examples(&window_rules, None); | ||
}); | ||
let window_rules = gui_data.window_rules.clone(); | ||
radio_button_normalize_partial.connect_clicked(move |_e| { | ||
update_examples(&window_rules, None); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.