mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:57:35 +00:00
LibGUI: Rename CallOnChange => AllowCallback and implement elsewhere
This is a helpful option to prevent unwanted side effects, distinguish between user and programmatic input, etc. Sliders and SpinBoxes were implementing it idiosyncratically, so let's generalize the API and give Buttons and TextEditors the same ability.
This commit is contained in:
parent
d47e431d54
commit
92fffc3abc
15 changed files with 40 additions and 39 deletions
|
@ -101,8 +101,8 @@ public:
|
|||
virtual void document_did_insert_line(size_t) override {};
|
||||
virtual void document_did_remove_line(size_t) override {};
|
||||
virtual void document_did_remove_all_lines() override {};
|
||||
virtual void document_did_change() override {};
|
||||
virtual void document_did_set_text() override {};
|
||||
virtual void document_did_change(GUI::AllowCallback) override {};
|
||||
virtual void document_did_set_text(GUI::AllowCallback) override {};
|
||||
virtual void document_did_set_cursor(const GUI::TextPosition&) override {};
|
||||
virtual void document_did_update_undo_stack() override { }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue