TextEditor: Add syntax toggle to View menu

This commit is contained in:
Oriko 2020-03-11 03:02:37 +02:00 committed by Andreas Kling
commit cb39327b1c
Notes: sideshowbarker 2024-07-19 08:47:09 +09:00
2 changed files with 33 additions and 1 deletions

View file

@ -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 };
};