summaryrefslogtreecommitdiffstats
path: root/editor/plugins/shader_editor_plugin.h
diff options
context:
space:
mode:
authortrollodel <33117082+trollodel@users.noreply.github.com>2022-11-02 15:23:25 +0100
committertrollodel <33117082+trollodel@users.noreply.github.com>2023-05-10 09:14:21 +0200
commitb4d6b47c17f76f3d02fc11cc973a373769b19619 (patch)
tree23bc6395aaf2af208f5744580ce7100d74cd9f55 /editor/plugins/shader_editor_plugin.h
parent769d8a7bbe6f59a8a7cae0194b65bf078c9bb2b4 (diff)
downloadredot-engine-b4d6b47c17f76f3d02fc11cc973a373769b19619.tar.gz
Add multi window code and shader editors
Diffstat (limited to 'editor/plugins/shader_editor_plugin.h')
-rw-r--r--editor/plugins/shader_editor_plugin.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/editor/plugins/shader_editor_plugin.h b/editor/plugins/shader_editor_plugin.h
index 299d5975d2..bc508976ca 100644
--- a/editor/plugins/shader_editor_plugin.h
+++ b/editor/plugins/shader_editor_plugin.h
@@ -40,6 +40,7 @@ class ShaderCreateDialog;
class TabContainer;
class TextShaderEditor;
class VisualShaderEditor;
+class WindowWrapper;
class ShaderEditorPlugin : public EditorPlugin {
GDCLASS(ShaderEditorPlugin, EditorPlugin);
@@ -74,6 +75,9 @@ class ShaderEditorPlugin : public EditorPlugin {
Button *button = nullptr;
MenuButton *file_menu = nullptr;
+ WindowWrapper *window_wrapper = nullptr;
+ Button *make_floating = nullptr;
+
ShaderCreateDialog *shader_create_dialog = nullptr;
void _update_shader_list();
@@ -93,6 +97,8 @@ class ShaderEditorPlugin : public EditorPlugin {
bool can_drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from) const;
void drop_data_fw(const Point2 &p_point, const Variant &p_data, Control *p_from);
+ void _window_changed(bool p_visible);
+
protected:
void _notification(int p_what);
@@ -102,6 +108,8 @@ public:
virtual bool handles(Object *p_object) const override;
virtual void make_visible(bool p_visible) override;
virtual void selected_notify() override;
+ virtual void set_window_layout(Ref<ConfigFile> p_layout) override;
+ virtual void get_window_layout(Ref<ConfigFile> p_layout) override;
TextShaderEditor *get_shader_editor(const Ref<Shader> &p_for_shader);
VisualShaderEditor *get_visual_shader_editor(const Ref<Shader> &p_for_shader);