summaryrefslogtreecommitdiff
path: root/editor/quick_open.h
diff options
context:
space:
mode:
Diffstat (limited to 'editor/quick_open.h')
-rw-r--r--editor/quick_open.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/editor/quick_open.h b/editor/quick_open.h
index ef91d910b1..bcb0842c49 100644
--- a/editor/quick_open.h
+++ b/editor/quick_open.h
@@ -29,13 +29,13 @@
#ifndef EDITOR_QUICK_OPEN_H
#define EDITOR_QUICK_OPEN_H
-#include "scene/gui/dialogs.h"
-#include "scene/gui/tree.h"
#include "editor_file_system.h"
#include "pair.h"
+#include "scene/gui/dialogs.h"
+#include "scene/gui/tree.h"
class EditorQuickOpen : public ConfirmationDialog {
- GDCLASS(EditorQuickOpen,ConfirmationDialog )
+ GDCLASS(EditorQuickOpen, ConfirmationDialog)
LineEdit *search_box;
Tree *search_options;
@@ -44,29 +44,26 @@ class EditorQuickOpen : public ConfirmationDialog {
StringName ot;
bool add_directories;
-
void _update_search();
- void _sbox_input(const InputEvent& p_ie);
- void _parse_fs(EditorFileSystemDirectory *efsd, Vector< Pair< String,Ref <Texture> > > &list);
+ void _sbox_input(const InputEvent &p_ie);
+ void _parse_fs(EditorFileSystemDirectory *efsd, Vector<Pair<String, Ref<Texture> > > &list);
float _path_cmp(String search, String path) const;
-
void _confirmed();
- void _text_changed(const String& p_newtext);
+ void _text_changed(const String &p_newtext);
protected:
-
void _notification(int p_what);
static void _bind_methods();
-public:
+public:
StringName get_base_type() const;
String get_selected() const;
Vector<String> get_selected_files() const;
- void popup(const StringName& p_base,bool p_enable_multi=false,bool p_add_dirs=false,bool p_dontclear=false);
+ void popup(const StringName &p_base, bool p_enable_multi = false, bool p_add_dirs = false, bool p_dontclear = false);
EditorQuickOpen();
};