Move ProjectListFilter::FilterOption into private section
This commit is contained in:
parent
57ab93bd27
commit
8b31ae491f
1 changed files with 9 additions and 5 deletions
|
@ -94,6 +94,10 @@ class ProjectListFilter : public HBoxContainer {
|
||||||
|
|
||||||
OBJ_TYPE( ProjectListFilter, HBoxContainer );
|
OBJ_TYPE( ProjectListFilter, HBoxContainer );
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
friend class ProjectManager;
|
||||||
|
|
||||||
enum Command {
|
enum Command {
|
||||||
CMD_CLEAR_FILTER,
|
CMD_CLEAR_FILTER,
|
||||||
};
|
};
|
||||||
|
@ -102,7 +106,10 @@ class ProjectListFilter : public HBoxContainer {
|
||||||
LineEdit *search_box;
|
LineEdit *search_box;
|
||||||
Button *clear_search_button;
|
Button *clear_search_button;
|
||||||
|
|
||||||
enum FilterOption;
|
enum FilterOption {
|
||||||
|
FILTER_NAME,
|
||||||
|
FILTER_PATH,
|
||||||
|
};
|
||||||
FilterOption _current_filter;
|
FilterOption _current_filter;
|
||||||
|
|
||||||
void _command(int p_command);
|
void _command(int p_command);
|
||||||
|
@ -111,13 +118,10 @@ class ProjectListFilter : public HBoxContainer {
|
||||||
void _filter_option_selected(int p_idx);
|
void _filter_option_selected(int p_idx);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
enum FilterOption {
|
|
||||||
FILTER_NAME,
|
|
||||||
FILTER_PATH,
|
|
||||||
};
|
|
||||||
|
|
||||||
String get_search_term();
|
String get_search_term();
|
||||||
FilterOption get_filter_option();
|
FilterOption get_filter_option();
|
||||||
|
|
Loading…
Reference in a new issue