1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:18:12 +00:00

TextEditor: Use ArgsParser and allow the user to specify preview mode

This makes looking at HTML files that somehow fail a little less
painful by allowing the user to actually _see_ the html.
This commit is contained in:
AnotherTest 2020-07-06 18:48:49 +04:30 committed by Andreas Kling
parent 5cdb0ef2e5
commit a163ee8b3b
3 changed files with 36 additions and 8 deletions

View file

@ -51,6 +51,7 @@ public:
};
void set_preview_mode(PreviewMode);
void set_auto_detect_preview_mode(bool value) { m_auto_detect_preview_mode = value; }
private:
TextEditorWidget();
@ -107,6 +108,7 @@ private:
bool m_document_dirty { false };
bool m_document_opening { false };
bool m_auto_detect_preview_mode { false };
PreviewMode m_preview_mode { PreviewMode::None };
};