Merge pull request #89599 from timothyqiu/vegetate

Fix unexpected auto translation of editor `Tree` content
This commit is contained in:
Rémi Verschelde 2024-03-23 21:15:39 -07:00 committed by GitHub
commit 05372773e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
37 changed files with 54 additions and 0 deletions

View File

@ -7569,6 +7569,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
track_copy_vbox->add_child(select_all_button); track_copy_vbox->add_child(select_all_button);
track_copy_select = memnew(Tree); track_copy_select = memnew(Tree);
track_copy_select->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
track_copy_select->set_h_size_flags(SIZE_EXPAND_FILL); track_copy_select->set_h_size_flags(SIZE_EXPAND_FILL);
track_copy_select->set_v_size_flags(SIZE_EXPAND_FILL); track_copy_select->set_v_size_flags(SIZE_EXPAND_FILL);
track_copy_select->set_hide_root(true); track_copy_select->set_hide_root(true);

View File

@ -751,6 +751,7 @@ ConnectDialog::ConnectDialog() {
method_tree = memnew(Tree); method_tree = memnew(Tree);
method_vbc->add_child(method_tree); method_vbc->add_child(method_tree);
method_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
method_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); method_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
method_tree->set_hide_root(true); method_tree->set_hide_root(true);
method_tree->connect("item_selected", callable_mp(this, &ConnectDialog::_method_selected)); method_tree->connect("item_selected", callable_mp(this, &ConnectDialog::_method_selected));

View File

@ -779,6 +779,7 @@ CreateDialog::CreateDialog() {
vsc->add_child(fav_vb); vsc->add_child(fav_vb);
favorites = memnew(Tree); favorites = memnew(Tree);
favorites->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
favorites->set_hide_root(true); favorites->set_hide_root(true);
favorites->set_hide_folding(true); favorites->set_hide_folding(true);
favorites->set_allow_reselect(true); favorites->set_allow_reselect(true);
@ -823,6 +824,7 @@ CreateDialog::CreateDialog() {
vbc->add_margin_child(TTR("Search:"), search_hb); vbc->add_margin_child(TTR("Search:"), search_hb);
search_options = memnew(Tree); search_options = memnew(Tree);
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
search_options->connect("item_activated", callable_mp(this, &CreateDialog::_confirmed)); search_options->connect("item_activated", callable_mp(this, &CreateDialog::_confirmed));
search_options->connect("cell_selected", callable_mp(this, &CreateDialog::_item_selected)); search_options->connect("cell_selected", callable_mp(this, &CreateDialog::_item_selected));
vbc->add_margin_child(TTR("Matches:"), search_options, true); vbc->add_margin_child(TTR("Matches:"), search_options, true);

View File

@ -670,6 +670,7 @@ EditorProfiler::EditorProfiler() {
h_split->set_v_size_flags(SIZE_EXPAND_FILL); h_split->set_v_size_flags(SIZE_EXPAND_FILL);
variables = memnew(Tree); variables = memnew(Tree);
variables->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
variables->set_custom_minimum_size(Size2(320, 0) * EDSCALE); variables->set_custom_minimum_size(Size2(320, 0) * EDSCALE);
variables->set_hide_folding(true); variables->set_hide_folding(true);
h_split->add_child(variables); h_split->add_child(variables);

View File

@ -246,6 +246,7 @@ DependencyEditor::DependencyEditor() {
add_child(vb); add_child(vb);
tree = memnew(Tree); tree = memnew(Tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(2); tree->set_columns(2);
tree->set_column_titles_visible(true); tree->set_column_titles_visible(true);
tree->set_column_title(0, TTR("Resource")); tree->set_column_title(0, TTR("Resource"));
@ -672,6 +673,7 @@ DependencyRemoveDialog::DependencyRemoveDialog() {
vb->add_child(text); vb->add_child(text);
owners = memnew(Tree); owners = memnew(Tree);
owners->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
owners->set_hide_root(true); owners->set_hide_root(true);
vb->add_child(owners); vb->add_child(owners);
owners->set_v_size_flags(Control::SIZE_EXPAND_FILL); owners->set_v_size_flags(Control::SIZE_EXPAND_FILL);
@ -724,6 +726,7 @@ DependencyErrorDialog::DependencyErrorDialog() {
add_child(vb); add_child(vb);
files = memnew(Tree); files = memnew(Tree);
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
files->set_hide_root(true); files->set_hide_root(true);
vb->add_margin_child(TTR("Load failed due to missing dependencies:"), files, true); vb->add_margin_child(TTR("Load failed due to missing dependencies:"), files, true);
files->set_v_size_flags(Control::SIZE_EXPAND_FILL); files->set_v_size_flags(Control::SIZE_EXPAND_FILL);
@ -879,6 +882,7 @@ OrphanResourcesDialog::OrphanResourcesDialog() {
add_child(vbc); add_child(vbc);
files = memnew(Tree); files = memnew(Tree);
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
files->set_columns(2); files->set_columns(2);
files->set_column_titles_visible(true); files->set_column_titles_visible(true);
files->set_column_custom_minimum_width(1, 100 * EDSCALE); files->set_column_custom_minimum_width(1, 100 * EDSCALE);

View File

@ -304,6 +304,7 @@ EditorAbout::EditorAbout() {
license_thirdparty->add_child(tpl_hbc); license_thirdparty->add_child(tpl_hbc);
_tpl_tree = memnew(Tree); _tpl_tree = memnew(Tree);
_tpl_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
_tpl_tree->set_hide_root(true); _tpl_tree->set_hide_root(true);
TreeItem *root = _tpl_tree->create_item(); TreeItem *root = _tpl_tree->create_item();
TreeItem *tpl_ti_all = _tpl_tree->create_item(root); TreeItem *tpl_ti_all = _tpl_tree->create_item(root);

View File

@ -735,6 +735,7 @@ EditorAssetInstaller::EditorAssetInstaller() {
source_tree_vb->add_child(source_tree_label); source_tree_vb->add_child(source_tree_label);
source_tree = memnew(Tree); source_tree = memnew(Tree);
source_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
source_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); source_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
source_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk)); source_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk));
source_tree_vb->add_child(source_tree); source_tree_vb->add_child(source_tree);
@ -749,6 +750,7 @@ EditorAssetInstaller::EditorAssetInstaller() {
destination_tree_vb->add_child(destination_tree_label); destination_tree_vb->add_child(destination_tree_label);
destination_tree = memnew(Tree); destination_tree = memnew(Tree);
destination_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
destination_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); destination_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
destination_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk)); destination_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk));
destination_tree_vb->add_child(destination_tree); destination_tree_vb->add_child(destination_tree);

View File

@ -854,6 +854,7 @@ EditorBuildProfileManager::EditorBuildProfileManager() {
main_vbc->add_margin_child(TTR("Actions:"), profiles_hbc); main_vbc->add_margin_child(TTR("Actions:"), profiles_hbc);
class_list = memnew(Tree); class_list = memnew(Tree);
class_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
class_list->set_hide_root(true); class_list->set_hide_root(true);
class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true); class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true);
class_list->connect("cell_selected", callable_mp(this, &EditorBuildProfileManager::_class_list_item_selected)); class_list->connect("cell_selected", callable_mp(this, &EditorBuildProfileManager::_class_list_item_selected));

View File

@ -976,6 +976,7 @@ EditorFeatureProfileManager::EditorFeatureProfileManager() {
class_list_vbc->set_h_size_flags(Control::SIZE_EXPAND_FILL); class_list_vbc->set_h_size_flags(Control::SIZE_EXPAND_FILL);
class_list = memnew(Tree); class_list = memnew(Tree);
class_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
class_list_vbc->add_margin_child(TTR("Configure Selected Profile:"), class_list, true); class_list_vbc->add_margin_child(TTR("Configure Selected Profile:"), class_list, true);
class_list->set_hide_root(true); class_list->set_hide_root(true);
class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true); class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true);

View File

@ -356,6 +356,7 @@ EditorHelpSearch::EditorHelpSearch() {
// Create the results tree. // Create the results tree.
results_tree = memnew(Tree); results_tree = memnew(Tree);
results_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
results_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); results_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
results_tree->set_columns(2); results_tree->set_columns(2);
results_tree->set_column_title(0, TTR("Name")); results_tree->set_column_title(0, TTR("Name"));

View File

@ -433,6 +433,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
} }
{ {
lang_list = memnew(Tree); lang_list = memnew(Tree);
lang_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
lang_list->set_v_size_flags(Control::SIZE_EXPAND_FILL); lang_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
lang_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected)); lang_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
lang_list->set_columns(1); lang_list->set_columns(1);
@ -452,6 +453,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
} }
{ {
script_list = memnew(Tree); script_list = memnew(Tree);
script_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
script_list->set_v_size_flags(Control::SIZE_EXPAND_FILL); script_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
script_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected)); script_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
script_list->set_columns(1); script_list->set_columns(1);
@ -470,6 +472,7 @@ EditorLocaleDialog::EditorLocaleDialog() {
} }
{ {
cnt_list = memnew(Tree); cnt_list = memnew(Tree);
cnt_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
cnt_list->set_v_size_flags(Control::SIZE_EXPAND_FILL); cnt_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
cnt_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected)); cnt_list->connect("cell_selected", callable_mp(this, &EditorLocaleDialog::_item_selected));
cnt_list->set_columns(1); cnt_list->set_columns(1);

View File

@ -275,6 +275,7 @@ EditorQuickOpen::EditorQuickOpen() {
register_text_enter(search_box); register_text_enter(search_box);
search_options = memnew(Tree); search_options = memnew(Tree);
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
search_options->connect("item_activated", callable_mp(this, &EditorQuickOpen::_confirmed)); search_options->connect("item_activated", callable_mp(this, &EditorQuickOpen::_confirmed));
search_options->create_item(); search_options->create_item();
search_options->set_hide_root(true); search_options->set_hide_root(true);

View File

@ -382,6 +382,7 @@ void EditorResourcePicker::_edit_menu_cbk(int p_which) {
vb->add_child(label); vb->add_child(label);
duplicate_resources_tree = memnew(Tree); duplicate_resources_tree = memnew(Tree);
duplicate_resources_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
vb->add_child(duplicate_resources_tree); vb->add_child(duplicate_resources_tree);
duplicate_resources_tree->set_columns(2); duplicate_resources_tree->set_columns(2);
duplicate_resources_tree->set_v_size_flags(SIZE_EXPAND_FILL); duplicate_resources_tree->set_v_size_flags(SIZE_EXPAND_FILL);

View File

@ -331,6 +331,7 @@ SectionedInspector::SectionedInspector() :
left_vb->set_custom_minimum_size(Size2(190, 0) * EDSCALE); left_vb->set_custom_minimum_size(Size2(190, 0) * EDSCALE);
add_child(left_vb); add_child(left_vb);
sections->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
sections->set_v_size_flags(SIZE_EXPAND_FILL); sections->set_v_size_flags(SIZE_EXPAND_FILL);
sections->set_hide_root(true); sections->set_hide_root(true);

View File

@ -789,6 +789,7 @@ EditorSettingsDialog::EditorSettingsDialog() {
top_hbox->add_child(clear_all_search); top_hbox->add_child(clear_all_search);
shortcuts = memnew(Tree); shortcuts = memnew(Tree);
shortcuts->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
shortcuts->set_v_size_flags(Control::SIZE_EXPAND_FILL); shortcuts->set_v_size_flags(Control::SIZE_EXPAND_FILL);
shortcuts->set_columns(2); shortcuts->set_columns(2);
shortcuts->set_hide_root(true); shortcuts->set_hide_root(true);

View File

@ -1040,6 +1040,7 @@ ExportTemplateManager::ExportTemplateManager() {
installed_versions_hb->add_child(installed_label); installed_versions_hb->add_child(installed_label);
installed_table = memnew(Tree); installed_table = memnew(Tree);
installed_table->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
installed_table->set_hide_root(true); installed_table->set_hide_root(true);
installed_table->set_custom_minimum_size(Size2(0, 100) * EDSCALE); installed_table->set_custom_minimum_size(Size2(0, 100) * EDSCALE);
installed_table->set_v_size_flags(Control::SIZE_EXPAND_FILL); installed_table->set_v_size_flags(Control::SIZE_EXPAND_FILL);

View File

@ -1321,6 +1321,7 @@ ProjectExportDialog::ProjectExportDialog() {
include_files = memnew(Tree); include_files = memnew(Tree);
include_margin->add_child(include_files); include_margin->add_child(include_files);
include_files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
include_files->connect("item_edited", callable_mp(this, &ProjectExportDialog::_tree_changed)); include_files->connect("item_edited", callable_mp(this, &ProjectExportDialog::_tree_changed));
include_files->connect("check_propagated_to_item", callable_mp(this, &ProjectExportDialog::_check_propagated_to_item)); include_files->connect("check_propagated_to_item", callable_mp(this, &ProjectExportDialog::_check_propagated_to_item));
include_files->connect("custom_popup_edited", callable_mp(this, &ProjectExportDialog::_tree_popup_edited)); include_files->connect("custom_popup_edited", callable_mp(this, &ProjectExportDialog::_tree_popup_edited));

View File

@ -3903,6 +3903,7 @@ FileSystemDock::FileSystemDock() {
tree = memnew(FileSystemTree); tree = memnew(FileSystemTree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_hide_root(true); tree->set_hide_root(true);
SET_DRAG_FORWARDING_GCD(tree, FileSystemDock); SET_DRAG_FORWARDING_GCD(tree, FileSystemDock);
tree->set_allow_rmb_select(true); tree->set_allow_rmb_select(true);

View File

@ -615,6 +615,7 @@ FindInFilesPanel::FindInFilesPanel() {
} }
_results_display = memnew(Tree); _results_display = memnew(Tree);
_results_display->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
_results_display->set_v_size_flags(SIZE_EXPAND_FILL); _results_display->set_v_size_flags(SIZE_EXPAND_FILL);
_results_display->connect("item_selected", callable_mp(this, &FindInFilesPanel::_on_result_selected)); _results_display->connect("item_selected", callable_mp(this, &FindInFilesPanel::_on_result_selected));
_results_display->connect("item_edited", callable_mp(this, &FindInFilesPanel::_on_item_edited)); _results_display->connect("item_edited", callable_mp(this, &FindInFilesPanel::_on_item_edited));

View File

@ -842,6 +842,7 @@ GroupsEditor::GroupsEditor() {
hbc->add_child(filter); hbc->add_child(filter);
tree = memnew(Tree); tree = memnew(Tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_hide_root(true); tree->set_hide_root(true);
tree->set_v_size_flags(SIZE_EXPAND_FILL); tree->set_v_size_flags(SIZE_EXPAND_FILL);
tree->set_allow_rmb_select(true); tree->set_allow_rmb_select(true);

View File

@ -1573,17 +1573,20 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
scene_tree = memnew(Tree); scene_tree = memnew(Tree);
scene_tree->set_name(TTR("Scene")); scene_tree->set_name(TTR("Scene"));
scene_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
data_mode->add_child(scene_tree); data_mode->add_child(scene_tree);
scene_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_scene_tree_selected)); scene_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_scene_tree_selected));
mesh_tree = memnew(Tree); mesh_tree = memnew(Tree);
mesh_tree->set_name(TTR("Meshes")); mesh_tree->set_name(TTR("Meshes"));
mesh_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
data_mode->add_child(mesh_tree); data_mode->add_child(mesh_tree);
mesh_tree->set_hide_root(true); mesh_tree->set_hide_root(true);
mesh_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_mesh_tree_selected)); mesh_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_mesh_tree_selected));
material_tree = memnew(Tree); material_tree = memnew(Tree);
material_tree->set_name(TTR("Materials")); material_tree->set_name(TTR("Materials"));
material_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
data_mode->add_child(material_tree); data_mode->add_child(material_tree);
material_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_material_tree_selected)); material_tree->connect("cell_selected", callable_mp(this, &SceneImportSettingsDialog::_material_tree_selected));
@ -1719,6 +1722,7 @@ SceneImportSettingsDialog::SceneImportSettingsDialog() {
external_paths->add_child(external_path_tree); external_paths->add_child(external_path_tree);
external_path_tree->connect("button_clicked", callable_mp(this, &SceneImportSettingsDialog::_browse_save_callback)); external_path_tree->connect("button_clicked", callable_mp(this, &SceneImportSettingsDialog::_browse_save_callback));
external_paths->connect("confirmed", callable_mp(this, &SceneImportSettingsDialog::_save_dir_confirm)); external_paths->connect("confirmed", callable_mp(this, &SceneImportSettingsDialog::_save_dir_confirm));
external_path_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
external_path_tree->set_columns(3); external_path_tree->set_columns(3);
external_path_tree->set_column_titles_visible(true); external_path_tree->set_column_titles_visible(true);
external_path_tree->set_column_expand(0, true); external_path_tree->set_column_expand(0, true);

View File

@ -1375,6 +1375,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
add_var->connect("pressed", callable_mp(this, &DynamicFontImportSettingsDialog::_variation_add)); add_var->connect("pressed", callable_mp(this, &DynamicFontImportSettingsDialog::_variation_add));
vars_list = memnew(Tree); vars_list = memnew(Tree);
vars_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
vars_list->set_custom_minimum_size(Size2(300 * EDSCALE, 0)); vars_list->set_custom_minimum_size(Size2(300 * EDSCALE, 0));
vars_list->set_hide_root(true); vars_list->set_hide_root(true);
vars_list->set_columns(2); vars_list->set_columns(2);
@ -1427,6 +1428,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
page2_0_vb->add_child(page2_0_description); page2_0_vb->add_child(page2_0_description);
locale_tree = memnew(Tree); locale_tree = memnew(Tree);
locale_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
locale_tree->set_columns(1); locale_tree->set_columns(1);
locale_tree->set_hide_root(true); locale_tree->set_hide_root(true);
locale_tree->set_column_expand(0, true); locale_tree->set_column_expand(0, true);
@ -1502,6 +1504,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
page2_2_vb->add_child(glyphs_split); page2_2_vb->add_child(glyphs_split);
glyph_table = memnew(Tree); glyph_table = memnew(Tree);
glyph_table->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
glyph_table->set_custom_minimum_size(Size2((30 * 16 + 100) * EDSCALE, 0)); glyph_table->set_custom_minimum_size(Size2((30 * 16 + 100) * EDSCALE, 0));
glyph_table->set_columns(17); glyph_table->set_columns(17);
glyph_table->set_column_expand(0, false); glyph_table->set_column_expand(0, false);
@ -1521,6 +1524,7 @@ DynamicFontImportSettingsDialog::DynamicFontImportSettingsDialog() {
glyph_table->connect("item_activated", callable_mp(this, &DynamicFontImportSettingsDialog::_glyph_selected)); glyph_table->connect("item_activated", callable_mp(this, &DynamicFontImportSettingsDialog::_glyph_selected));
glyph_tree = memnew(Tree); glyph_tree = memnew(Tree);
glyph_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
glyph_tree->set_custom_minimum_size(Size2(300 * EDSCALE, 0)); glyph_tree->set_custom_minimum_size(Size2(300 * EDSCALE, 0));
glyph_tree->set_columns(2); glyph_tree->set_columns(2);
glyph_tree->set_hide_root(true); glyph_tree->set_hide_root(true);

View File

@ -668,6 +668,7 @@ InputEventConfigurationDialog::InputEventConfigurationDialog() {
manual_vbox->add_child(input_list_search); manual_vbox->add_child(input_list_search);
input_list_tree = memnew(Tree); input_list_tree = memnew(Tree);
input_list_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
input_list_tree->set_custom_minimum_size(Size2(0, 100 * EDSCALE)); // Min height for tree input_list_tree->set_custom_minimum_size(Size2(0, 100 * EDSCALE)); // Min height for tree
input_list_tree->connect("item_selected", callable_mp(this, &InputEventConfigurationDialog::_input_list_item_selected)); input_list_tree->connect("item_selected", callable_mp(this, &InputEventConfigurationDialog::_input_list_item_selected));
input_list_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); input_list_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);

View File

@ -762,6 +762,7 @@ InspectorDock::InspectorDock(EditorData &p_editor_data) {
container->add_child(unique_resources_label); container->add_child(unique_resources_label);
unique_resources_list_tree = memnew(Tree); unique_resources_list_tree = memnew(Tree);
unique_resources_list_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
unique_resources_list_tree->set_hide_root(true); unique_resources_list_tree->set_hide_root(true);
unique_resources_list_tree->set_columns(1); unique_resources_list_tree->set_columns(1);
unique_resources_list_tree->set_column_title(0, TTR("Property")); unique_resources_list_tree->set_column_title(0, TTR("Property"));

View File

@ -1252,6 +1252,7 @@ AnimationNodeBlendTreeEditor::AnimationNodeBlendTreeEditor() {
filters = memnew(Tree); filters = memnew(Tree);
filter_vbox->add_child(filters); filter_vbox->add_child(filters);
filters->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
filters->set_v_size_flags(SIZE_EXPAND_FILL); filters->set_v_size_flags(SIZE_EXPAND_FILL);
filters->set_hide_root(true); filters->set_hide_root(true);
filters->connect("item_edited", callable_mp(this, &AnimationNodeBlendTreeEditor::_filter_edited)); filters->connect("item_edited", callable_mp(this, &AnimationNodeBlendTreeEditor::_filter_edited));

View File

@ -821,6 +821,7 @@ AnimationLibraryEditor::AnimationLibraryEditor() {
tree = memnew(Tree); tree = memnew(Tree);
vb->add_child(tree); vb->add_child(tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(2); tree->set_columns(2);
tree->set_column_titles_visible(true); tree->set_column_titles_visible(true);
tree->set_column_title(0, TTR("Resource")); tree->set_column_title(0, TTR("Resource"));

View File

@ -2058,6 +2058,7 @@ AnimationPlayerEditor::AnimationPlayerEditor(AnimationPlayerEditorPlugin *p_plug
blend_editor.dialog->add_child(blend_vb); blend_editor.dialog->add_child(blend_vb);
blend_editor.tree = memnew(Tree); blend_editor.tree = memnew(Tree);
blend_editor.tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
blend_editor.tree->set_hide_root(true); blend_editor.tree->set_hide_root(true);
blend_editor.tree->set_columns(2); blend_editor.tree->set_columns(2);
blend_editor.tree->set_column_expand_ratio(0, 10); blend_editor.tree->set_column_expand_ratio(0, 10);

View File

@ -1809,6 +1809,7 @@ AnimationNodeStateMachineEditor::AnimationNodeStateMachineEditor() {
add_child(delete_window); add_child(delete_window);
delete_tree = memnew(Tree); delete_tree = memnew(Tree);
delete_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
delete_tree->set_hide_root(true); delete_tree->set_hide_root(true);
delete_tree->connect("draw", callable_mp(this, &AnimationNodeStateMachineEditor::_delete_tree_draw)); delete_tree->connect("draw", callable_mp(this, &AnimationNodeStateMachineEditor::_delete_tree_draw));
delete_window->add_child(delete_tree); delete_window->add_child(delete_tree);

View File

@ -173,6 +173,7 @@ void BonePicker::create_editors() {
add_child(vbox); add_child(vbox);
bones = memnew(Tree); bones = memnew(Tree);
bones->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
bones->set_select_mode(Tree::SELECT_SINGLE); bones->set_select_mode(Tree::SELECT_SINGLE);
bones->set_v_size_flags(Control::SIZE_EXPAND_FILL); bones->set_v_size_flags(Control::SIZE_EXPAND_FILL);
bones->set_hide_root(true); bones->set_hide_root(true);

View File

@ -369,6 +369,7 @@ ResourcePreloaderEditor::ResourcePreloaderEditor() {
tree = memnew(Tree); tree = memnew(Tree);
tree->connect("button_clicked", callable_mp(this, &ResourcePreloaderEditor::_cell_button_pressed)); tree->connect("button_clicked", callable_mp(this, &ResourcePreloaderEditor::_cell_button_pressed));
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(2); tree->set_columns(2);
tree->set_column_expand_ratio(0, 2); tree->set_column_expand_ratio(0, 2);
tree->set_column_clip_content(0, true); tree->set_column_clip_content(0, true);

View File

@ -216,6 +216,7 @@ EditorPropertyRootMotion::EditorPropertyRootMotion() {
filters = memnew(Tree); filters = memnew(Tree);
filter_dialog->add_child(filters); filter_dialog->add_child(filters);
filters->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
filters->set_v_size_flags(SIZE_EXPAND_FILL); filters->set_v_size_flags(SIZE_EXPAND_FILL);
filters->set_hide_root(true); filters->set_hide_root(true);
filters->connect("item_activated", callable_mp(this, &EditorPropertyRootMotion::_confirmed)); filters->connect("item_activated", callable_mp(this, &EditorPropertyRootMotion::_confirmed));

View File

@ -423,6 +423,7 @@ ScriptEditorQuickOpen::ScriptEditorQuickOpen() {
register_text_enter(search_box); register_text_enter(search_box);
set_hide_on_ok(false); set_hide_on_ok(false);
search_options->connect("item_activated", callable_mp(this, &ScriptEditorQuickOpen::_confirmed)); search_options->connect("item_activated", callable_mp(this, &ScriptEditorQuickOpen::_confirmed));
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
search_options->set_hide_root(true); search_options->set_hide_root(true);
search_options->set_hide_folding(true); search_options->set_hide_folding(true);
search_options->add_theme_constant_override("draw_guides", 1); search_options->add_theme_constant_override("draw_guides", 1);
@ -4167,6 +4168,7 @@ ScriptEditor::ScriptEditor(WindowWrapper *p_wrapper) {
disk_changed_list = memnew(Tree); disk_changed_list = memnew(Tree);
vbc->add_child(disk_changed_list); vbc->add_child(disk_changed_list);
disk_changed_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
disk_changed_list->set_v_size_flags(SIZE_EXPAND_FILL); disk_changed_list->set_v_size_flags(SIZE_EXPAND_FILL);
disk_changed->connect("confirmed", callable_mp(this, &ScriptEditor::reload_scripts).bind(false)); disk_changed->connect("confirmed", callable_mp(this, &ScriptEditor::reload_scripts).bind(false));

View File

@ -99,6 +99,7 @@ ConnectionInfoDialog::ConnectionInfoDialog() {
vbc->add_child(method); vbc->add_child(method);
tree = memnew(Tree); tree = memnew(Tree);
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
tree->set_columns(3); tree->set_columns(3);
tree->set_hide_root(true); tree->set_hide_root(true);
tree->set_column_titles_visible(true); tree->set_column_titles_visible(true);

View File

@ -809,6 +809,7 @@ void Skeleton3DEditor::create_editors() {
bones_section->get_vbox()->add_child(s_con); bones_section->get_vbox()->add_child(s_con);
joint_tree = memnew(Tree); joint_tree = memnew(Tree);
joint_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
joint_tree->set_columns(1); joint_tree->set_columns(1);
joint_tree->set_focus_mode(Control::FOCUS_NONE); joint_tree->set_focus_mode(Control::FOCUS_NONE);
joint_tree->set_select_mode(Tree::SELECT_SINGLE); joint_tree->set_select_mode(Tree::SELECT_SINGLE);

View File

@ -918,6 +918,7 @@ ThemeItemImportTree::ThemeItemImportTree() {
add_child(import_main_hb); add_child(import_main_hb);
import_items_tree = memnew(Tree); import_items_tree = memnew(Tree);
import_items_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
import_items_tree->set_hide_root(true); import_items_tree->set_hide_root(true);
import_items_tree->set_h_size_flags(Control::SIZE_EXPAND_FILL); import_items_tree->set_h_size_flags(Control::SIZE_EXPAND_FILL);
import_main_hb->add_child(import_items_tree); import_main_hb->add_child(import_items_tree);
@ -1928,6 +1929,7 @@ ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_edito
edit_dialog_side_vb->add_child(edit_type_label); edit_dialog_side_vb->add_child(edit_type_label);
edit_type_list = memnew(Tree); edit_type_list = memnew(Tree);
edit_type_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
edit_type_list->set_hide_root(true); edit_type_list->set_hide_root(true);
edit_type_list->set_hide_folding(true); edit_type_list->set_hide_folding(true);
edit_type_list->set_columns(1); edit_type_list->set_columns(1);
@ -2031,6 +2033,7 @@ ThemeItemEditorDialog::ThemeItemEditorDialog(ThemeTypeEditor *p_theme_type_edito
edit_items_remove_all->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_remove_all_items)); edit_items_remove_all->connect("pressed", callable_mp(this, &ThemeItemEditorDialog::_remove_all_items));
edit_items_tree = memnew(Tree); edit_items_tree = memnew(Tree);
edit_items_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
edit_items_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL); edit_items_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
edit_items_tree->set_hide_root(true); edit_items_tree->set_hide_root(true);
edit_items_tree->set_columns(1); edit_items_tree->set_columns(1);

View File

@ -5716,6 +5716,7 @@ VisualShaderEditor::VisualShaderEditor() {
members = memnew(Tree); members = memnew(Tree);
members_vb->add_child(members); members_vb->add_child(members);
SET_DRAG_FORWARDING_GCD(members, VisualShaderEditor); SET_DRAG_FORWARDING_GCD(members, VisualShaderEditor);
members->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED); // TODO: Implement proper translation switch.
members->set_h_size_flags(SIZE_EXPAND_FILL); members->set_h_size_flags(SIZE_EXPAND_FILL);
members->set_v_size_flags(SIZE_EXPAND_FILL); members->set_v_size_flags(SIZE_EXPAND_FILL);
members->set_hide_root(true); members->set_hide_root(true);
@ -5818,6 +5819,7 @@ VisualShaderEditor::VisualShaderEditor() {
varyings = memnew(Tree); varyings = memnew(Tree);
vb->add_child(varyings); vb->add_child(varyings);
varyings->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
varyings->set_h_size_flags(SIZE_EXPAND_FILL); varyings->set_h_size_flags(SIZE_EXPAND_FILL);
varyings->set_v_size_flags(SIZE_EXPAND_FILL); varyings->set_v_size_flags(SIZE_EXPAND_FILL);
varyings->set_hide_root(true); varyings->set_hide_root(true);

View File

@ -557,6 +557,7 @@ PropertySelector::PropertySelector() {
search_box->connect("text_changed", callable_mp(this, &PropertySelector::_text_changed)); search_box->connect("text_changed", callable_mp(this, &PropertySelector::_text_changed));
search_box->connect("gui_input", callable_mp(this, &PropertySelector::_sbox_input)); search_box->connect("gui_input", callable_mp(this, &PropertySelector::_sbox_input));
search_options = memnew(Tree); search_options = memnew(Tree);
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
vbc->add_margin_child(TTR("Matches:"), search_options, true); vbc->add_margin_child(TTR("Matches:"), search_options, true);
set_ok_button_text(TTR("Open")); set_ok_button_text(TTR("Open"));
get_ok_button()->set_disabled(true); get_ok_button()->set_disabled(true);