summaryrefslogtreecommitdiffstats
path: root/editor/project_settings_editor.h
diff options
context:
space:
mode:
authorDimOkGamer <salnikov.mine@yandex.ru>2017-10-17 18:27:54 +0300
committerDimOkGamer <salnikov.mine@yandex.ru>2017-10-24 01:07:40 +0300
commit509f6f81ad4b9ff737ab136b20dfd92246e997d7 (patch)
tree9a23fc5cb9ec39e8ce471e35a475eb22131eaca8 /editor/project_settings_editor.h
parent6e960c7d6bbf7481bae41ab0ebb39bc75619272a (diff)
downloadredot-engine-509f6f81ad4b9ff737ab136b20dfd92246e997d7.tar.gz
Added the ability to filter the list of locales in the Remap tab.
Diffstat (limited to 'editor/project_settings_editor.h')
-rw-r--r--editor/project_settings_editor.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/editor/project_settings_editor.h b/editor/project_settings_editor.h
index 7f9b18a968..a86cfee813 100644
--- a/editor/project_settings_editor.h
+++ b/editor/project_settings_editor.h
@@ -49,6 +49,11 @@ class ProjectSettingsEditor : public AcceptDialog {
INPUT_MOUSE_BUTTON
};
+ enum LocaleFilter {
+ SHOW_ALL_LOCALES,
+ SHOW_ONLY_SELECTED_LOCALES,
+ };
+
TabContainer *tab_container;
Timer *timer;
@@ -95,6 +100,11 @@ class ProjectSettingsEditor : public AcceptDialog {
EditorFileDialog *translation_res_option_file_open;
Tree *translation_remap;
Tree *translation_remap_options;
+ Tree *translation_filter;
+ bool translation_locales_list_created;
+ OptionButton *translation_locale_filter_mode;
+ Vector<TreeItem *> translation_filter_treeitems;
+ Vector<int> translation_locales_idxs_remap;
EditorAutoloadSettings *autoload_settings;
@@ -142,6 +152,9 @@ class ProjectSettingsEditor : public AcceptDialog {
void _translation_res_option_changed();
void _translation_res_option_delete(Object *p_item, int p_column, int p_button);
+ void _translation_filter_option_changed();
+ void _translation_filter_mode_changed(int p_mode);
+
void _toggle_search_bar(bool p_pressed);
void _clear_search_box();