summaryrefslogtreecommitdiff
path: root/editor/find_in_files.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/find_in_files.h')
-rw-r--r--editor/find_in_files.h54
1 files changed, 27 insertions, 27 deletions
diff --git a/editor/find_in_files.h b/editor/find_in_files.h
index cf14f3d5c3..8bc7b506d0 100644
--- a/editor/find_in_files.h
+++ b/editor/find_in_files.h
@@ -46,7 +46,7 @@ public:
void set_whole_words(bool p_whole_word);
void set_match_case(bool p_match_case);
void set_folder(String folder);
- void set_filter(const Set<String> &exts);
+ void set_filter(const RBSet<String> &exts);
String get_search_text() const { return _pattern; }
@@ -72,7 +72,7 @@ private:
// Config
String _pattern;
- Set<String> _extension_filter;
+ RBSet<String> _extension_filter;
String _root_dir;
bool _whole_words = true;
bool _match_case = true;
@@ -115,7 +115,7 @@ public:
bool is_match_case() const;
bool is_whole_words() const;
String get_folder() const;
- Set<String> get_filter() const;
+ RBSet<String> get_filter() const;
protected:
void _notification(int p_what);
@@ -132,18 +132,18 @@ private:
void _on_replace_text_submitted(String text);
FindInFilesMode _mode;
- LineEdit *_search_text_line_edit;
-
- Label *_replace_label;
- LineEdit *_replace_text_line_edit;
-
- LineEdit *_folder_line_edit;
- CheckBox *_match_case_checkbox;
- CheckBox *_whole_words_checkbox;
- Button *_find_button;
- Button *_replace_button;
- FileDialog *_folder_dialog;
- HBoxContainer *_filters_container;
+ LineEdit *_search_text_line_edit = nullptr;
+
+ Label *_replace_label = nullptr;
+ LineEdit *_replace_text_line_edit = nullptr;
+
+ LineEdit *_folder_line_edit = nullptr;
+ CheckBox *_match_case_checkbox = nullptr;
+ CheckBox *_whole_words_checkbox = nullptr;
+ Button *_find_button = nullptr;
+ Button *_replace_button = nullptr;
+ FileDialog *_folder_dialog = nullptr;
+ HBoxContainer *_filters_container = nullptr;
HashMap<String, bool> _filters_preferences;
};
@@ -201,20 +201,20 @@ private:
void set_progress_visible(bool visible);
void clear();
- FindInFiles *_finder;
- Label *_search_text_label;
- Tree *_results_display;
- Label *_status_label;
- Button *_refresh_button;
- Button *_cancel_button;
- ProgressBar *_progress_bar;
- Map<String, TreeItem *> _file_items;
- Map<TreeItem *, Result> _result_items;
+ FindInFiles *_finder = nullptr;
+ Label *_search_text_label = nullptr;
+ Tree *_results_display = nullptr;
+ Label *_status_label = nullptr;
+ Button *_refresh_button = nullptr;
+ Button *_cancel_button = nullptr;
+ ProgressBar *_progress_bar = nullptr;
+ HashMap<String, TreeItem *> _file_items;
+ HashMap<TreeItem *, Result> _result_items;
bool _with_replace = false;
- HBoxContainer *_replace_container;
- LineEdit *_replace_line_edit;
- Button *_replace_all_button;
+ HBoxContainer *_replace_container = nullptr;
+ LineEdit *_replace_line_edit = nullptr;
+ Button *_replace_all_button = nullptr;
};
#endif // FIND_IN_FILES_H