TextEditorWidget.h 444 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <AK/Function.h>
  3. #include <LibGUI/GApplication.h>
  4. #include <LibGUI/GTextEditor.h>
  5. #include <LibGUI/GWidget.h>
  6. #include <LibGUI/GWindow.h>
  7. class GTextEditor;
  8. class TextEditorWidget final : public GWidget {
  9. public:
  10. TextEditorWidget();
  11. virtual ~TextEditorWidget() override;
  12. void open_sesame(const String& path);
  13. private:
  14. GTextEditor* m_editor{ nullptr };
  15. String m_path = "/tmp/TextEditor.save.txt";
  16. };