summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.h
diff options
context:
space:
mode:
authorrileylyman <rileylyman@berkeley.edu>2020-05-26 21:49:05 -0700
committerrileylyman <rileylyman@gmail.com>2020-06-26 16:12:08 -0700
commit4285211f40cf3519237faf08b8fdbf09bc28e954 (patch)
tree94b36fb11e90a0f6f33b50e72f785733993cf0d3 /editor/editor_node.h
parentbcf7e51689442f7fdb369509ccf0738dcc736e96 (diff)
downloadredot-engine-4285211f40cf3519237faf08b8fdbf09bc28e954.tar.gz
implement generic filename disambiguation
A static function is added to EditorNode which allows for filename disambiguation given a list of filenames and the corresponding list of absolute paths for those files. This function is then used to disambiguate scene and script tabs in the editor.
Diffstat (limited to 'editor/editor_node.h')
-rw-r--r--editor/editor_node.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_node.h b/editor/editor_node.h
index b0e0c5614c..413e228e2a 100644
--- a/editor/editor_node.h
+++ b/editor/editor_node.h
@@ -687,6 +687,8 @@ public:
static void add_editor_plugin(EditorPlugin *p_editor, bool p_config_changed = false);
static void remove_editor_plugin(EditorPlugin *p_editor, bool p_config_changed = false);
+ static void disambiguate_filenames(const Vector<String> p_full_paths, Vector<String> &r_filenames);
+
void new_inherited_scene() { _menu_option_confirm(FILE_NEW_INHERITED_SCENE, false); }
void set_docks_visible(bool p_show);