mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-24 10:12:25 -05:00
82d9410226
Instead of saving to a temp file, the TextEditorWidget now saves to a path returned by the improved GFilePicker.
20 lines
No EOL
415 B
C++
20 lines
No EOL
415 B
C++
#pragma once
|
|
|
|
#include <AK/Function.h>
|
|
#include <LibGUI/GApplication.h>
|
|
#include <LibGUI/GTextEditor.h>
|
|
#include <LibGUI/GWidget.h>
|
|
#include <LibGUI/GWindow.h>
|
|
|
|
class GTextEditor;
|
|
|
|
class TextEditorWidget final : public GWidget {
|
|
public:
|
|
TextEditorWidget();
|
|
virtual ~TextEditorWidget() override;
|
|
void open_sesame(const String& path);
|
|
|
|
private:
|
|
GTextEditor* m_editor { nullptr };
|
|
String m_path;
|
|
}; |