mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
TextEditor: Add syntax toggle to View menu
This commit is contained in:
parent
03b1748d3f
commit
cb39327b1c
Notes:
sideshowbarker
2024-07-19 08:47:09 +09:00
Author: https://github.com/oriko1010
Commit: cb39327b1c
Pull-request: https://github.com/SerenityOS/serenity/pull/1414
2 changed files with 33 additions and 1 deletions
|
@ -28,6 +28,7 @@
|
|||
|
||||
#include <AK/FileSystemPath.h>
|
||||
#include <AK/Function.h>
|
||||
#include <LibGUI/ActionGroup.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/TextEditor.h>
|
||||
#include <LibGUI/Widget.h>
|
||||
|
@ -78,6 +79,10 @@ private:
|
|||
RefPtr<GUI::Widget> m_find_widget;
|
||||
RefPtr<GUI::Widget> m_replace_widget;
|
||||
|
||||
GUI::ActionGroup syntax_actions;
|
||||
RefPtr<GUI::Action> m_plain_text_highlight;
|
||||
RefPtr<GUI::Action> m_cpp_highlight;
|
||||
|
||||
bool m_document_dirty { false };
|
||||
bool m_document_opening { false };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue