2022-07-15 14:55:18 +02:00
|
|
|
#ifndef PREVIEW_H
|
|
|
|
#define PREVIEW_H
|
|
|
|
|
2022-07-15 18:48:35 +02:00
|
|
|
#include "core/ustring.h"
|
2022-07-15 14:55:18 +02:00
|
|
|
|
2022-07-15 18:48:35 +02:00
|
|
|
#include "scene/gui/dialogs.h"
|
2022-07-15 14:55:18 +02:00
|
|
|
|
2022-07-15 18:48:35 +02:00
|
|
|
class RichTextLabel;
|
|
|
|
class GridContainer;
|
2022-07-15 14:55:18 +02:00
|
|
|
|
2022-07-15 18:48:35 +02:00
|
|
|
class Preview : public WindowDialog {
|
|
|
|
GDCLASS(Preview, WindowDialog);
|
2022-07-15 14:55:18 +02:00
|
|
|
|
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_Preview_popup_hide();
|
2022-07-15 14:55:18 +02:00
|
|
|
|
2022-07-15 18:48:35 +02:00
|
|
|
Preview();
|
|
|
|
~Preview();
|
2022-07-15 14:55:18 +02:00
|
|
|
|
2022-07-15 18:48:35 +02:00
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
2022-07-15 14:55:18 +02:00
|
|
|
|
2022-07-15 18:48:35 +02:00
|
|
|
RichTextLabel *text_preview;
|
|
|
|
GridContainer *table_preview;
|
2022-07-15 14:55:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|