From fa41211ccae24d75e940721bae68d3abe7f2e1ee Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 10 Dec 2022 13:11:49 +0100 Subject: FLUID event handling and UI changes (#575) * Full support o when() * Making undo suspend nesting * Finally correct undo handling for Label: input * Documentation. * Adding more undo checkpoints for the Widget Panel * Quick selection of default user_data types * Pulldown menu for system colors * Make sure that partially typed text fields are propagated before saving --- fluid/Fl_Window_Type.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fluid/Fl_Window_Type.cxx') diff --git a/fluid/Fl_Window_Type.cxx b/fluid/Fl_Window_Type.cxx index 263306989..13225042f 100644 --- a/fluid/Fl_Window_Type.cxx +++ b/fluid/Fl_Window_Type.cxx @@ -483,6 +483,7 @@ void modal_cb(Fl_Light_Button* i, void* v) { i->show(); i->value(((Fl_Window_Type *)current_widget)->modal); } else { + undo_checkpoint(); ((Fl_Window_Type *)current_widget)->modal = i->value(); set_modflag(1); } @@ -494,6 +495,7 @@ void non_modal_cb(Fl_Light_Button* i, void* v) { i->show(); i->value(((Fl_Window_Type *)current_widget)->non_modal); } else { + undo_checkpoint(); ((Fl_Window_Type *)current_widget)->non_modal = i->value(); set_modflag(1); } @@ -505,6 +507,7 @@ void border_cb(Fl_Light_Button* i, void* v) { i->show(); i->value(((Fl_Window*)(current_widget->o))->border()); } else { + undo_checkpoint(); ((Fl_Window*)(current_widget->o))->border(i->value()); set_modflag(1); } @@ -522,6 +525,7 @@ void xclass_cb(Fl_Input* i, void* v) { i->value(((Fl_Widget_Type *)current_widget)->xclass); } else { int mod = 0; + undo_checkpoint(); for (Fl_Type *o = Fl_Type::first; o; o = o->next) { if (o->selected && o->is_widget()) { mod = 1; -- cgit v1.2.3