2014-02-10 01:10:30 +00:00
|
|
|
/*************************************************************************/
|
|
|
|
/* script_editor_plugin.h */
|
|
|
|
/*************************************************************************/
|
|
|
|
/* This file is part of: */
|
|
|
|
/* GODOT ENGINE */
|
2017-08-27 12:11:45 +00:00
|
|
|
/* https://godotengine.org */
|
2014-02-10 01:10:30 +00:00
|
|
|
/*************************************************************************/
|
2017-01-01 21:01:57 +00:00
|
|
|
/* Copyright (c) 2007-2017 Juan Linietsky, Ariel Manzur. */
|
2017-04-07 22:45:00 +00:00
|
|
|
/* Copyright (c) 2014-2017 Godot Engine contributors (cf. AUTHORS.md) */
|
2014-02-10 01:10:30 +00:00
|
|
|
/* */
|
|
|
|
/* Permission is hereby granted, free of charge, to any person obtaining */
|
|
|
|
/* a copy of this software and associated documentation files (the */
|
|
|
|
/* "Software"), to deal in the Software without restriction, including */
|
|
|
|
/* without limitation the rights to use, copy, modify, merge, publish, */
|
|
|
|
/* distribute, sublicense, and/or sell copies of the Software, and to */
|
|
|
|
/* permit persons to whom the Software is furnished to do so, subject to */
|
|
|
|
/* the following conditions: */
|
|
|
|
/* */
|
|
|
|
/* The above copyright notice and this permission notice shall be */
|
|
|
|
/* included in all copies or substantial portions of the Software. */
|
|
|
|
/* */
|
|
|
|
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
|
|
|
|
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
|
|
|
|
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
|
|
|
|
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
|
|
|
|
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */
|
|
|
|
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
|
|
|
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
|
|
|
/*************************************************************************/
|
|
|
|
#ifndef SCRIPT_EDITOR_PLUGIN_H
|
|
|
|
#define SCRIPT_EDITOR_PLUGIN_H
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
#include "editor/code_editor.h"
|
|
|
|
#include "editor/editor_help.h"
|
2017-03-18 22:45:45 +00:00
|
|
|
#include "editor/editor_plugin.h"
|
|
|
|
#include "editor/script_create_dialog.h"
|
2017-03-18 23:36:26 +00:00
|
|
|
#include "scene/gui/item_list.h"
|
|
|
|
#include "scene/gui/menu_button.h"
|
|
|
|
#include "scene/gui/split_container.h"
|
2014-02-10 01:10:30 +00:00
|
|
|
#include "scene/gui/tab_container.h"
|
|
|
|
#include "scene/gui/text_edit.h"
|
2015-06-24 21:57:14 +00:00
|
|
|
#include "scene/gui/tool_button.h"
|
2014-02-10 01:10:30 +00:00
|
|
|
#include "scene/gui/tree.h"
|
|
|
|
#include "scene/main/timer.h"
|
|
|
|
#include "script_language.h"
|
|
|
|
|
|
|
|
class ScriptEditorQuickOpen : public ConfirmationDialog {
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
OBJ_TYPE(ScriptEditorQuickOpen, ConfirmationDialog)
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
LineEdit *search_box;
|
|
|
|
Tree *search_options;
|
|
|
|
String function;
|
|
|
|
|
|
|
|
void _update_search();
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void _sbox_input(const InputEvent &p_ie);
|
2014-02-10 01:10:30 +00:00
|
|
|
Vector<String> functions;
|
|
|
|
|
|
|
|
void _confirmed();
|
2017-03-18 23:36:26 +00:00
|
|
|
void _text_changed(const String &p_newtext);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void _notification(int p_what);
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
public:
|
|
|
|
void popup(const Vector<String> &p_base, bool p_dontclear = false);
|
2014-02-10 01:10:30 +00:00
|
|
|
ScriptEditorQuickOpen();
|
|
|
|
};
|
|
|
|
|
|
|
|
class ScriptEditorDebugger;
|
|
|
|
|
|
|
|
class ScriptTextEditor : public CodeTextEditor {
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
OBJ_TYPE(ScriptTextEditor, CodeTextEditor);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
Ref<Script> script;
|
|
|
|
|
|
|
|
Vector<String> functions;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void _validate_script();
|
2017-03-18 23:36:26 +00:00
|
|
|
virtual void _code_complete_script(const String &p_code, List<String> *r_options);
|
2014-02-10 01:10:30 +00:00
|
|
|
virtual void _load_theme_settings();
|
|
|
|
void _notification(int p_what);
|
2015-06-22 03:03:19 +00:00
|
|
|
static void _bind_methods();
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void apply_code();
|
|
|
|
Ref<Script> get_edited_script() const;
|
2017-03-18 23:36:26 +00:00
|
|
|
Vector<String> get_functions();
|
|
|
|
void set_edited_script(const Ref<Script> &p_script);
|
2014-02-10 01:10:30 +00:00
|
|
|
void reload_text();
|
2017-03-18 23:36:26 +00:00
|
|
|
String get_name();
|
|
|
|
Ref<Texture> get_icon();
|
2015-12-09 12:08:41 +00:00
|
|
|
bool is_unsaved();
|
2014-02-10 01:10:30 +00:00
|
|
|
ScriptTextEditor();
|
|
|
|
};
|
|
|
|
|
2015-06-26 04:14:31 +00:00
|
|
|
class EditorScriptCodeCompletionCache;
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
class ScriptEditor : public VBoxContainer {
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
OBJ_TYPE(ScriptEditor, VBoxContainer);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
EditorNode *editor;
|
|
|
|
enum {
|
2015-08-09 23:39:59 +00:00
|
|
|
FILE_NEW,
|
2014-02-10 01:10:30 +00:00
|
|
|
FILE_OPEN,
|
|
|
|
FILE_SAVE,
|
|
|
|
FILE_SAVE_AS,
|
|
|
|
FILE_SAVE_ALL,
|
2016-04-12 14:45:31 +00:00
|
|
|
FILE_IMPORT_THEME,
|
|
|
|
FILE_RELOAD_THEME,
|
|
|
|
FILE_SAVE_THEME,
|
|
|
|
FILE_SAVE_THEME_AS,
|
2015-06-22 03:03:19 +00:00
|
|
|
FILE_CLOSE,
|
2016-07-17 22:18:48 +00:00
|
|
|
CLOSE_DOCS,
|
2014-02-10 01:10:30 +00:00
|
|
|
EDIT_UNDO,
|
|
|
|
EDIT_REDO,
|
|
|
|
EDIT_CUT,
|
|
|
|
EDIT_COPY,
|
|
|
|
EDIT_PASTE,
|
|
|
|
EDIT_SELECT_ALL,
|
|
|
|
EDIT_COMPLETE,
|
2014-05-24 04:35:47 +00:00
|
|
|
EDIT_AUTO_INDENT,
|
2016-04-23 18:21:34 +00:00
|
|
|
EDIT_TRIM_TRAILING_WHITESAPCE,
|
2015-06-22 03:03:19 +00:00
|
|
|
EDIT_TOGGLE_COMMENT,
|
|
|
|
EDIT_MOVE_LINE_UP,
|
|
|
|
EDIT_MOVE_LINE_DOWN,
|
|
|
|
EDIT_INDENT_RIGHT,
|
|
|
|
EDIT_INDENT_LEFT,
|
|
|
|
EDIT_CLONE_DOWN,
|
2016-06-08 23:00:02 +00:00
|
|
|
FILE_TOOL_RELOAD,
|
|
|
|
FILE_TOOL_RELOAD_SOFT,
|
2014-02-10 01:10:30 +00:00
|
|
|
SEARCH_FIND,
|
|
|
|
SEARCH_FIND_NEXT,
|
2016-05-28 16:25:45 +00:00
|
|
|
SEARCH_FIND_PREV,
|
2014-02-10 01:10:30 +00:00
|
|
|
SEARCH_REPLACE,
|
|
|
|
SEARCH_LOCATE_FUNCTION,
|
|
|
|
SEARCH_GOTO_LINE,
|
2015-11-17 12:46:08 +00:00
|
|
|
SEARCH_HELP,
|
|
|
|
SEARCH_CLASSES,
|
|
|
|
SEARCH_WEBSITE,
|
2014-02-10 01:10:30 +00:00
|
|
|
DEBUG_TOGGLE_BREAKPOINT,
|
2016-05-27 14:29:04 +00:00
|
|
|
DEBUG_REMOVE_ALL_BREAKPOINTS,
|
|
|
|
DEBUG_GOTO_NEXT_BREAKPOINT,
|
|
|
|
DEBUG_GOTO_PREV_BREAKPOINT,
|
2014-02-10 01:10:30 +00:00
|
|
|
DEBUG_NEXT,
|
|
|
|
DEBUG_STEP,
|
|
|
|
DEBUG_BREAK,
|
|
|
|
DEBUG_CONTINUE,
|
|
|
|
DEBUG_SHOW,
|
2015-12-12 13:09:50 +00:00
|
|
|
DEBUG_SHOW_KEEP_OPEN,
|
|
|
|
HELP_CONTEXTUAL,
|
2014-02-10 01:10:30 +00:00
|
|
|
WINDOW_MOVE_LEFT,
|
|
|
|
WINDOW_MOVE_RIGHT,
|
2015-11-17 12:46:08 +00:00
|
|
|
WINDOW_NEXT,
|
|
|
|
WINDOW_PREV,
|
2017-03-18 23:36:26 +00:00
|
|
|
WINDOW_SELECT_BASE = 100
|
2014-02-10 01:10:30 +00:00
|
|
|
};
|
2017-03-18 23:36:26 +00:00
|
|
|
|
2017-02-02 12:31:01 +00:00
|
|
|
enum ScriptSortBy {
|
|
|
|
SORT_BY_NAME,
|
|
|
|
SORT_BY_PATH,
|
|
|
|
};
|
2017-03-18 23:36:26 +00:00
|
|
|
|
2017-02-02 12:31:01 +00:00
|
|
|
enum ScriptListName {
|
|
|
|
DISPLAY_NAME,
|
|
|
|
DISPLAY_DIR_AND_NAME,
|
|
|
|
DISPLAY_FULL_PATH,
|
|
|
|
};
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
HBoxContainer *menu_hb;
|
|
|
|
MenuButton *file_menu;
|
|
|
|
MenuButton *edit_menu;
|
|
|
|
MenuButton *search_menu;
|
2015-11-17 12:46:08 +00:00
|
|
|
MenuButton *script_search_menu;
|
2014-02-10 01:10:30 +00:00
|
|
|
MenuButton *debug_menu;
|
2014-05-05 13:59:18 +00:00
|
|
|
MenuButton *help_menu;
|
2015-05-05 02:32:40 +00:00
|
|
|
Timer *autosave_timer;
|
2014-02-10 01:10:30 +00:00
|
|
|
uint64_t idle;
|
|
|
|
|
2015-11-17 12:46:08 +00:00
|
|
|
Button *help_search;
|
|
|
|
Button *site_search;
|
|
|
|
Button *class_search;
|
|
|
|
EditorHelpSearch *help_search_dialog;
|
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
ItemList *script_list;
|
|
|
|
HSplitContainer *script_split;
|
2017-10-07 13:41:46 +00:00
|
|
|
ItemList *members_overview;
|
|
|
|
bool members_overview_enabled;
|
|
|
|
VSplitContainer *list_split;
|
2014-02-10 01:10:30 +00:00
|
|
|
TabContainer *tab_container;
|
2016-04-12 14:45:31 +00:00
|
|
|
EditorFileDialog *file_dialog;
|
2014-02-10 01:10:30 +00:00
|
|
|
GotoLineDialog *goto_line_dialog;
|
|
|
|
ConfirmationDialog *erase_tab_confirm;
|
2015-08-09 23:39:59 +00:00
|
|
|
ScriptCreateDialog *script_create_dialog;
|
2017-03-18 23:36:26 +00:00
|
|
|
ScriptEditorDebugger *debugger;
|
2015-06-24 21:57:14 +00:00
|
|
|
ToolButton *scripts_visible;
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2016-04-12 14:45:31 +00:00
|
|
|
String current_theme;
|
|
|
|
|
2015-11-17 12:46:08 +00:00
|
|
|
TextureFrame *script_icon;
|
|
|
|
Label *script_name_label;
|
|
|
|
|
|
|
|
ToolButton *script_back;
|
|
|
|
ToolButton *script_forward;
|
|
|
|
|
|
|
|
struct ScriptHistory {
|
|
|
|
|
|
|
|
Control *control;
|
|
|
|
int scroll_pos;
|
|
|
|
int cursor_column;
|
|
|
|
int cursor_row;
|
|
|
|
};
|
|
|
|
|
|
|
|
Vector<ScriptHistory> history;
|
|
|
|
int history_pos;
|
|
|
|
|
|
|
|
EditorHelpIndex *help_index;
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
void _tab_changed(int p_which);
|
|
|
|
void _menu_option(int p_optin);
|
|
|
|
|
|
|
|
Tree *disk_changed_list;
|
|
|
|
ConfirmationDialog *disk_changed;
|
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
bool restoring_layout;
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
String _get_debug_tooltip(const String &p_text, Node *_ste);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void _resave_scripts(const String &p_str);
|
2014-02-10 01:10:30 +00:00
|
|
|
void _reload_scripts();
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
bool _test_script_times_on_disk(Ref<Script> p_for_script = Ref<Script>());
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2016-07-06 23:35:49 +00:00
|
|
|
void _close_tab(int p_idx);
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
void _close_current_tab();
|
2016-07-17 22:18:48 +00:00
|
|
|
void _close_docs_tab();
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
bool grab_focus_block;
|
|
|
|
|
2016-06-03 15:34:11 +00:00
|
|
|
bool pending_auto_reload;
|
|
|
|
bool auto_reload_running_scripts;
|
|
|
|
void _live_auto_reload_running_scripts();
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
ScriptEditorQuickOpen *quick_open;
|
|
|
|
|
2015-06-26 04:14:31 +00:00
|
|
|
EditorScriptCodeCompletionCache *completion_cache;
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
void _editor_play();
|
|
|
|
void _editor_pause();
|
|
|
|
void _editor_stop();
|
|
|
|
|
2015-11-17 12:46:08 +00:00
|
|
|
int edit_pass;
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void _add_callback(Object *p_obj, const String &p_function, const StringArray &p_args);
|
|
|
|
void _res_saved_callback(const Ref<Resource> &p_res);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2016-04-23 18:21:34 +00:00
|
|
|
bool trim_trailing_whitespace_on_save;
|
|
|
|
|
|
|
|
void _trim_trailing_whitespace(TextEdit *tx);
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
void _goto_script_line2(int p_line);
|
2017-03-18 23:36:26 +00:00
|
|
|
void _goto_script_line(REF p_script, int p_line);
|
|
|
|
void _breaked(bool p_breaked, bool p_can_debug);
|
2014-02-10 01:10:30 +00:00
|
|
|
void _show_debugger(bool p_show);
|
|
|
|
void _update_window_menu();
|
2015-08-09 23:39:59 +00:00
|
|
|
void _script_created(Ref<Script> p_script);
|
2014-05-06 09:43:14 +00:00
|
|
|
|
2016-07-18 15:30:43 +00:00
|
|
|
void _save_layout();
|
2015-05-05 02:32:40 +00:00
|
|
|
void _editor_settings_changed();
|
|
|
|
void _autosave_scripts();
|
|
|
|
|
2017-10-07 13:41:46 +00:00
|
|
|
void _update_members_overview_visibility();
|
|
|
|
void _update_members_overview();
|
|
|
|
void _members_overview_selected(int p_idx);
|
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
void _update_script_names();
|
|
|
|
|
|
|
|
void _script_selected(int p_idx);
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void _find_scripts(Node *p_base, Node *p_current, Set<Ref<Script> > &used);
|
2015-06-22 03:03:19 +00:00
|
|
|
|
|
|
|
void _tree_changed();
|
|
|
|
|
|
|
|
void _script_split_dragged(float);
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void _unhandled_input(const InputEvent &p_event);
|
2015-11-17 12:46:08 +00:00
|
|
|
|
|
|
|
void _history_forward();
|
|
|
|
void _history_back();
|
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
bool waiting_update_names;
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void _help_class_open(const String &p_class);
|
|
|
|
void _help_class_goto(const String &p_desc);
|
2015-11-17 12:46:08 +00:00
|
|
|
void _update_history_arrows();
|
|
|
|
void _go_to_tab(int p_idx);
|
|
|
|
void _update_history_pos(int p_new_pos);
|
|
|
|
void _update_script_colors();
|
2017-03-18 23:36:26 +00:00
|
|
|
void _update_modified_scripts_for_external_editor(Ref<Script> p_for_script = Ref<Script>());
|
2015-11-17 12:46:08 +00:00
|
|
|
|
2016-04-12 14:45:31 +00:00
|
|
|
int file_dialog_option;
|
|
|
|
void _file_dialog_action(String p_file);
|
2015-11-17 12:46:08 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
static ScriptEditor *script_editor;
|
2017-03-18 23:36:26 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
protected:
|
|
|
|
void _notification(int p_what);
|
|
|
|
static void _bind_methods();
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
public:
|
2014-02-10 01:10:30 +00:00
|
|
|
static ScriptEditor *get_singleton() { return script_editor; }
|
|
|
|
|
|
|
|
void ensure_focus_current();
|
|
|
|
void apply_scripts() const;
|
|
|
|
|
|
|
|
void ensure_select_current();
|
2017-03-18 23:36:26 +00:00
|
|
|
void edit(const Ref<Script> &p_script);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
Dictionary get_state() const;
|
2017-03-18 23:36:26 +00:00
|
|
|
void set_state(const Dictionary &p_state);
|
2014-02-10 01:10:30 +00:00
|
|
|
void clear();
|
|
|
|
|
|
|
|
void get_breakpoints(List<String> *p_breakpoints);
|
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
void swap_lines(TextEdit *tx, int line1, int line2);
|
2016-07-15 14:02:55 +00:00
|
|
|
void _breakpoint_toggled(const int p_row);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2016-02-03 00:10:52 +00:00
|
|
|
void save_all_scripts();
|
2014-02-10 01:10:30 +00:00
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
void set_window_layout(Ref<ConfigFile> p_layout);
|
|
|
|
void get_window_layout(Ref<ConfigFile> p_layout);
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void set_scene_root_script(Ref<Script> p_script);
|
2015-11-17 12:46:08 +00:00
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
bool script_go_to_method(Ref<Script> p_script, const String &p_method);
|
2016-06-11 23:01:17 +00:00
|
|
|
|
2015-12-09 12:08:41 +00:00
|
|
|
virtual void edited_scene_changed();
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void close_builtin_scripts_from_scene(const String &p_scene);
|
2016-07-06 23:35:49 +00:00
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
void goto_help(const String &p_desc) { _help_class_goto(p_desc); }
|
2016-08-24 02:15:16 +00:00
|
|
|
|
2015-08-02 15:29:37 +00:00
|
|
|
ScriptEditorDebugger *get_debugger() { return debugger; }
|
2016-06-03 15:34:11 +00:00
|
|
|
void set_live_auto_reload_running_scripts(bool p_enabled);
|
2015-08-02 15:29:37 +00:00
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
ScriptEditor(EditorNode *p_editor);
|
2015-06-26 04:14:31 +00:00
|
|
|
~ScriptEditor();
|
2014-02-10 01:10:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class ScriptEditorPlugin : public EditorPlugin {
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
OBJ_TYPE(ScriptEditorPlugin, EditorPlugin);
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
ScriptEditor *script_editor;
|
|
|
|
EditorNode *editor;
|
|
|
|
|
2017-03-18 23:36:26 +00:00
|
|
|
public:
|
2014-02-10 01:10:30 +00:00
|
|
|
virtual String get_name() const { return "Script"; }
|
|
|
|
bool has_main_screen() const { return true; }
|
|
|
|
virtual void edit(Object *p_node);
|
|
|
|
virtual bool handles(Object *p_node) const;
|
|
|
|
virtual void make_visible(bool p_visible);
|
|
|
|
virtual void selected_notify();
|
|
|
|
|
|
|
|
Dictionary get_state() const;
|
2017-03-18 23:36:26 +00:00
|
|
|
virtual void set_state(const Dictionary &p_state);
|
2014-02-10 01:10:30 +00:00
|
|
|
virtual void clear();
|
|
|
|
|
|
|
|
virtual void save_external_data();
|
|
|
|
virtual void apply_changes();
|
|
|
|
|
|
|
|
virtual void restore_global_state();
|
|
|
|
virtual void save_global_state();
|
|
|
|
|
2015-06-22 03:03:19 +00:00
|
|
|
virtual void set_window_layout(Ref<ConfigFile> p_layout);
|
|
|
|
virtual void get_window_layout(Ref<ConfigFile> p_layout);
|
|
|
|
|
2014-02-10 01:10:30 +00:00
|
|
|
virtual void get_breakpoints(List<String> *p_breakpoints);
|
|
|
|
|
2015-12-09 12:08:41 +00:00
|
|
|
virtual void edited_scene_changed();
|
2014-02-10 01:10:30 +00:00
|
|
|
|
|
|
|
ScriptEditorPlugin(EditorNode *p_node);
|
|
|
|
~ScriptEditorPlugin();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SCRIPT_EDITOR_PLUGIN_H
|