diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-03-05 16:44:50 +0100 |
commit | 5dbf1809c6e3e905b94b8764e99491e608122261 (patch) | |
tree | 5e5a5360db15d86d59ec8c6e4f7eb511388c5a9a /editor/quick_open.h | |
parent | 45438e9918d421b244bfd7776a30e67dc7f2d3e3 (diff) | |
download | redot-engine-5dbf1809c6e3e905b94b8764e99491e608122261.tar.gz |
A Whole New World (clang-format edition)
I can show you the code
Pretty, with proper whitespace
Tell me, coder, now when did
You last write readable code?
I can open your eyes
Make you see your bad indent
Force you to respect the style
The core devs agreed upon
A whole new world
A new fantastic code format
A de facto standard
With some sugar
Enforced with clang-format
A whole new world
A dazzling style we all dreamed of
And when we read it through
It's crystal clear
That now we're in a whole new world of code
Diffstat (limited to 'editor/quick_open.h')
-rw-r--r-- | editor/quick_open.h | 19 |
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(); }; |