2021-01-02 11:59:55 +01:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, the SerenityOS developers.
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-01-02 11:59:55 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibGUI/EditingEngine.h>
|
|
|
|
|
|
|
|
namespace GUI {
|
|
|
|
|
|
|
|
class RegularEditingEngine final : public EditingEngine {
|
|
|
|
|
|
|
|
public:
|
|
|
|
virtual CursorWidth cursor_width() const override;
|
|
|
|
|
2022-04-01 20:58:27 +03:00
|
|
|
virtual bool on_key(KeyEvent const& event) override;
|
2021-01-02 11:59:55 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void sort_selected_lines();
|
2021-12-08 16:26:20 -06:00
|
|
|
virtual EngineType engine_type() const override { return EngineType::Regular; }
|
2021-01-02 11:59:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|