From 8b31ae491f63a7d8b6fabe099b77ab2bf332d45b Mon Sep 17 00:00:00 2001 From: marynate Date: Sun, 15 Jun 2014 12:15:33 +0800 Subject: [PATCH] Move ProjectListFilter::FilterOption into private section --- tools/editor/project_manager.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tools/editor/project_manager.h b/tools/editor/project_manager.h index 4f9ac1599f9..b2b3144c3d4 100644 --- a/tools/editor/project_manager.h +++ b/tools/editor/project_manager.h @@ -94,6 +94,10 @@ class ProjectListFilter : public HBoxContainer { OBJ_TYPE( ProjectListFilter, HBoxContainer ); +private: + + friend class ProjectManager; + enum Command { CMD_CLEAR_FILTER, }; @@ -102,7 +106,10 @@ class ProjectListFilter : public HBoxContainer { LineEdit *search_box; Button *clear_search_button; - enum FilterOption; + enum FilterOption { + FILTER_NAME, + FILTER_PATH, + }; FilterOption _current_filter; void _command(int p_command); @@ -111,13 +118,10 @@ class ProjectListFilter : public HBoxContainer { void _filter_option_selected(int p_idx); protected: + static void _bind_methods(); public: - enum FilterOption { - FILTER_NAME, - FILTER_PATH, - }; String get_search_term(); FilterOption get_filter_option();