summaryrefslogtreecommitdiff
path: root/tools/editor/filesystem_dock.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-08-29 19:04:33 +0200
committerGitHub <noreply@github.com>2016-08-29 19:04:33 +0200
commit91a5c77282f0d5ce7008737f463c1ad27207b99c (patch)
tree150bbd54b683526dfbe91414c76f126e04a2256b /tools/editor/filesystem_dock.h
parent835ee75d578913fc60c35f16a7d7bc5182c85cd0 (diff)
parentf6b39827b1f68aef52fd87723f0225946eff1551 (diff)
Merge pull request #6185 from TheHX/pr-issue-3496
Better editor settings for the FileSystem dock
Diffstat (limited to 'tools/editor/filesystem_dock.h')
-rw-r--r--tools/editor/filesystem_dock.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/editor/filesystem_dock.h b/tools/editor/filesystem_dock.h
index 171dbd16e9..f5b96760fc 100644
--- a/tools/editor/filesystem_dock.h
+++ b/tools/editor/filesystem_dock.h
@@ -54,6 +54,12 @@ class EditorNode;
class FileSystemDock : public VBoxContainer {
OBJ_TYPE( FileSystemDock, VBoxContainer );
+public:
+ enum DisplayMode {
+ DISPLAY_THUMBNAILS,
+ DISPLAY_LIST
+ };
+private:
enum FileMenu {
FILE_OPEN,
FILE_INSTANCE,
@@ -79,7 +85,7 @@ class FileSystemDock : public VBoxContainer {
Button *button_reload;
Button *button_favorite;
Button *button_back;
- Button *display_mode;
+ Button *button_display_mode;
Button *button_hist_next;
Button *button_hist_prev;
LineEdit *current_path;
@@ -88,6 +94,7 @@ class FileSystemDock : public VBoxContainer {
HBoxContainer *path_hb;
bool split_mode;
+ DisplayMode display_mode;
PopupMenu *file_options;
@@ -182,7 +189,7 @@ public:
void fix_dependencies(const String& p_for_file);
- void set_use_thumbnails(bool p_use);
+ void set_display_mode(int p_mode);
FileSystemDock(EditorNode *p_editor);
~FileSystemDock();