pandemonium_engine/modules/text_editor/text_editor_preview.h

35 lines
705 B
C++
Raw Normal View History

#ifndef TEXT_EDITOR_PREVIEW_H
#define TEXT_EDITOR_PREVIEW_H
2022-07-15 18:48:35 +02:00
#include "core/ustring.h"
2022-07-15 18:48:35 +02:00
#include "scene/gui/dialogs.h"
2022-07-15 18:48:35 +02:00
class RichTextLabel;
class GridContainer;
class TextEditorPreview : public WindowDialog {
GDCLASS(TextEditorPreview, WindowDialog);
2022-07-15 18:48:35 +02:00
public:
void print_preview(const String &content);
void print_bb(const String &content);
void print_markdown(const String &content);
void print_html(const String &content);
void print_csv(const Array &rows);
void _on_TextEditorPreview_popup_hide();
TextEditorPreview();
~TextEditorPreview();
2022-07-15 18:48:35 +02:00
protected:
void _notification(int p_what);
2022-07-15 18:48:35 +02:00
static void _bind_methods();
2022-07-15 18:48:35 +02:00
RichTextLabel *text_preview;
GridContainer *table_preview;
};
#endif