mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibGUI: Make class final and seperate from GML Playground
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 11:49:41 +09:00
Author: https://github.com/SimonFJ20 Commit: https://github.com/SerenityOS/serenity/commit/399202f1d3 Pull-request: https://github.com/SerenityOS/serenity/pull/13633 Issue: https://github.com/SerenityOS/serenity/issues/11810 Reviewed-by: https://github.com/awesomekling
@@ -236,10 +236,10 @@ private:
|
||||
TextRange m_range;
|
||||
};
|
||||
|
||||
class ReplaceAllTextCommand : public GUI::TextDocumentUndoCommand {
|
||||
class ReplaceAllTextCommand final : public GUI::TextDocumentUndoCommand {
|
||||
|
||||
public:
|
||||
ReplaceAllTextCommand(GUI::TextDocument& document, String const& text, GUI::TextRange const& range);
|
||||
ReplaceAllTextCommand(GUI::TextDocument& document, String const& text, GUI::TextRange const& range, String const& action_text);
|
||||
void redo() override;
|
||||
void undo() override;
|
||||
bool merge_with(GUI::Command const&) override;
|
||||
@@ -250,6 +250,7 @@ public:
|
||||
private:
|
||||
String m_text;
|
||||
GUI::TextRange m_range;
|
||||
String m_action_text;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user