mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI: Make class final and seperate from GML Playground
This commit is contained in:
parent
791e881892
commit
399202f1d3
Notes:
sideshowbarker
2024-07-17 11:49:41 +09:00
Author: https://github.com/SimonFJ20
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
2 changed files with 6 additions and 4 deletions
|
@ -884,10 +884,11 @@ void RemoveTextCommand::undo()
|
|||
m_document.set_all_cursors(new_cursor);
|
||||
}
|
||||
|
||||
ReplaceAllTextCommand::ReplaceAllTextCommand(GUI::TextDocument& document, String const& text, GUI::TextRange const& range)
|
||||
ReplaceAllTextCommand::ReplaceAllTextCommand(GUI::TextDocument& document, String const& text, GUI::TextRange const& range, String const& action_text)
|
||||
: TextDocumentUndoCommand(document)
|
||||
, m_text(text)
|
||||
, m_range(range)
|
||||
, m_action_text(action_text)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -916,7 +917,7 @@ bool ReplaceAllTextCommand::merge_with(GUI::Command const&)
|
|||
|
||||
String ReplaceAllTextCommand::action_text() const
|
||||
{
|
||||
return "Playground format text";
|
||||
return m_action_text;
|
||||
}
|
||||
|
||||
TextPosition TextDocument::insert_at(TextPosition const& position, StringView text, Client const* client)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue