mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
TextEditor: Add syntax toggle to View menu
This commit is contained in:
parent
03b1748d3f
commit
cb39327b1c
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