smokes: add curated LLVM runner; archive legacy smokes; PHI-off unified across Bridge/Builder; LLVM resolver tracing; minimal Throw lowering; config env getters; dev profile and root cleaner; docs updated; CI workflow runs curated LLVM (PHI-on/off)
This commit is contained in:
@ -3,14 +3,14 @@ use eframe::egui;
|
||||
|
||||
fn main() -> eframe::Result {
|
||||
env_logger::init(); // Enable logging
|
||||
|
||||
|
||||
let options = eframe::NativeOptions {
|
||||
viewport: egui::ViewportBuilder::default()
|
||||
.with_inner_size([640.0, 480.0])
|
||||
.with_title("Debug Notepad"),
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
|
||||
eframe::run_native(
|
||||
"Debug Notepad",
|
||||
options,
|
||||
@ -29,32 +29,34 @@ impl eframe::App for DebugApp {
|
||||
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
|
||||
egui::CentralPanel::default().show(ctx, |ui| {
|
||||
ui.heading("Debug Text Input Test");
|
||||
|
||||
|
||||
// Single line input
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("Single Line:");
|
||||
let response = ui.text_edit_singleline(&mut self.single_line);
|
||||
if response.changed() {
|
||||
self.event_log.push(format!("Single line changed: '{}'", self.single_line));
|
||||
self.event_log
|
||||
.push(format!("Single line changed: '{}'", self.single_line));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
// Multi line input
|
||||
ui.label("Multi Line:");
|
||||
let response = ui.add(
|
||||
egui::TextEdit::multiline(&mut self.text)
|
||||
.desired_width(f32::INFINITY)
|
||||
.desired_rows(10)
|
||||
.desired_rows(10),
|
||||
);
|
||||
|
||||
|
||||
if response.changed() {
|
||||
self.event_log.push(format!("Multi line changed: {} chars", self.text.len()));
|
||||
self.event_log
|
||||
.push(format!("Multi line changed: {} chars", self.text.len()));
|
||||
}
|
||||
|
||||
|
||||
ui.separator();
|
||||
|
||||
|
||||
// Show input events
|
||||
ui.label("Event Log:");
|
||||
egui::ScrollArea::vertical()
|
||||
@ -64,18 +66,18 @@ impl eframe::App for DebugApp {
|
||||
ui.label(event);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Debug info
|
||||
ui.separator();
|
||||
ui.label(format!("Text length: {}", self.text.len()));
|
||||
ui.label(format!("Single line length: {}", self.single_line.len()));
|
||||
|
||||
|
||||
// Test buttons
|
||||
if ui.button("Add Test Text").clicked() {
|
||||
self.text.push_str("Test ");
|
||||
self.event_log.push("Button: Added test text".to_string());
|
||||
}
|
||||
|
||||
|
||||
if ui.button("Clear All").clicked() {
|
||||
self.text.clear();
|
||||
self.single_line.clear();
|
||||
@ -83,4 +85,4 @@ impl eframe::App for DebugApp {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user