diff options
| author | Matthias Melcher <github@matthiasm.com> | 2022-12-10 13:11:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-10 13:11:49 +0100 |
| commit | fa41211ccae24d75e940721bae68d3abe7f2e1ee (patch) | |
| tree | 406d73ec3b15c01935982300de421393b6a68f0d /fluid/Fl_Window_Type.cxx | |
| parent | 5673072271cdd797de3fa0f3136ca3f1d219484e (diff) | |
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
Diffstat (limited to 'fluid/Fl_Window_Type.cxx')
| -rw-r--r-- | fluid/Fl_Window_Type.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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; |
