Browse Source

-completely rewritten filesystem dock and internal editor filesystem management, fixes #1926
-filesystem dock now tracks objects and directories in real-time, fixes #2009

Juan Linietsky 9 years ago
parent
commit
010e3e0ac7

+ 1 - 1
bin/tests/test_containers.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_containers.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_detailer.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_detailer.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gdscript.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gdscript.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gui.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_gui.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_image.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_image.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_io.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_io.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_main.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_main.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_math.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_math.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_misc.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_misc.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_particles.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_particles.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_physics.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_physics.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_physics_2d.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_physics_2d.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_python.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_python.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_render.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_render.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_shader_lang.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_shader_lang.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_sound.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_sound.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_string.cpp

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

+ 1 - 1
bin/tests/test_string.h

@@ -5,7 +5,7 @@
 /*                           GODOT ENGINE                                */
 /*                           GODOT ENGINE                                */
 /*                    http://www.godotengine.org                         */
 /*                    http://www.godotengine.org                         */
 /*************************************************************************/
 /*************************************************************************/
-/* Copyright (c) 2007-2016 Juan Linietsky, Ariel Manzur.                 */
+/* Copyright (c) 2007-2015 Juan Linietsky, Ariel Manzur.                 */
 /*                                                                       */
 /*                                                                       */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* Permission is hereby granted, free of charge, to any person obtaining */
 /* a copy of this software and associated documentation files (the       */
 /* a copy of this software and associated documentation files (the       */

File diff suppressed because it is too large
+ 473 - 301
tools/editor/editor_file_system.cpp


+ 56 - 31
tools/editor/editor_file_system.h

@@ -42,6 +42,8 @@ class EditorFileSystemDirectory : public Object {
 	OBJ_TYPE( EditorFileSystemDirectory,Object );
 	OBJ_TYPE( EditorFileSystemDirectory,Object );
 
 
 	String name;
 	String name;
+	uint64_t modified_time;
+	bool verified; //used for checking changes
 
 
 	EditorFileSystemDirectory *parent;
 	EditorFileSystemDirectory *parent;
 	Vector<EditorFileSystemDirectory*> subdirs;
 	Vector<EditorFileSystemDirectory*> subdirs;
@@ -68,11 +70,20 @@ class EditorFileSystemDirectory : public Object {
 		String file;
 		String file;
 		StringName type;
 		StringName type;
 		uint64_t modified_time;
 		uint64_t modified_time;
-
 		ImportMeta meta;
 		ImportMeta meta;
+		bool verified; //used for checking changes
+
+	};
+
+	struct FileInfoSort {
+		bool operator()(const FileInfo *p_a,const FileInfo *p_b) const {
+			return p_a->file<p_b->file;
+		}
 	};
 	};
 
 
-	Vector<FileInfo> files;
+	void sort_files();
+
+	Vector<FileInfo*> files;
 
 
 	static void _bind_methods();
 	static void _bind_methods();
 
 
@@ -96,6 +107,9 @@ public:
 
 
 	EditorFileSystemDirectory *get_parent();
 	EditorFileSystemDirectory *get_parent();
 
 
+	int find_file_index(const String& p_file) const;
+	int find_dir_index(const String& p_dir) const;
+
 
 
 	EditorFileSystemDirectory();
 	EditorFileSystemDirectory();
 	~EditorFileSystemDirectory();
 	~EditorFileSystemDirectory();
@@ -107,45 +121,47 @@ class EditorFileSystem : public Node {
 
 
 	_THREAD_SAFE_CLASS_
 	_THREAD_SAFE_CLASS_
 
 
-	struct SceneItem {
 
 
+
+	struct ItemAction {
+
+		enum Action {
+			ACTION_NONE,
+			ACTION_DIR_ADD,
+			ACTION_DIR_REMOVE,
+			ACTION_FILE_ADD,
+			ACTION_FILE_REMOVE,
+			ACTION_FILE_SOURCES_CHANGED
+		};
+
+		Action action;
+		EditorFileSystemDirectory *dir;
 		String file;
 		String file;
-		String path;
-		String type;
-		uint64_t modified_time;
-		EditorFileSystemDirectory::ImportMeta meta;
-	};
+		EditorFileSystemDirectory *new_dir;
+		EditorFileSystemDirectory::FileInfo *new_file;
 
 
-	struct DirItem {
+		ItemAction() { action=ACTION_NONE; dir=NULL; new_dir=NULL; new_file=NULL; }
 
 
-		uint64_t modified_time;
-		String path;
-		String name;
-		Vector<DirItem*> dirs;
-		Vector<SceneItem*> files;		
-		~DirItem();
 	};
 	};
 
 
-	float total;
 	bool use_threads;
 	bool use_threads;
 	Thread *thread;
 	Thread *thread;
 	static void _thread_func(void *_userdata);
 	static void _thread_func(void *_userdata);
 
 
-	DirItem *scandir;
-	DirItem *rootdir;
+	EditorFileSystemDirectory *new_filesystem;
 
 
 	bool abort_scan;
 	bool abort_scan;
 	bool scanning;
 	bool scanning;
+	float scan_total;
 
 
-	EditorFileSystemDirectory* _update_tree(DirItem *p_item);
 
 
-	void _scan_scenes();
-	void _load_type_cache();
+	void _scan_filesystem();
 
 
 	EditorFileSystemDirectory *filesystem;
 	EditorFileSystemDirectory *filesystem;
 
 
 	static EditorFileSystem *singleton;
 	static EditorFileSystem *singleton;
 
 
+	/* Used for reading the filesystem cache file */
 	struct FileCache {
 	struct FileCache {
 
 
 		String type;
 		String type;
@@ -154,34 +170,43 @@ class EditorFileSystem : public Node {
 		Vector<String> deps;
 		Vector<String> deps;
 	};
 	};
 
 
-	struct DirCache {
+	HashMap<String,FileCache> file_cache;
 
 
-		uint64_t modification_time;
-		Set<String> files;
-		Set<String> subdirs;
-	};
+	struct ScanProgress {
 
 
+		float low;
+		float hi;
+		mutable EditorProgressBG *progress;
+		void update(int p_current,int p_total) const;
+		ScanProgress get_sub(int p_current,int p_total) const;
+	};
 
 
 	static EditorFileSystemDirectory::ImportMeta _get_meta(const String& p_path);
 	static EditorFileSystemDirectory::ImportMeta _get_meta(const String& p_path);
 
 
-	bool _check_meta_sources(EditorFileSystemDirectory::ImportMeta & p_meta,EditorProgressBG *ep=NULL);
+	bool _check_meta_sources(EditorFileSystemDirectory::ImportMeta & p_meta);
 
 
-	DirItem* _scan_dir(DirAccess *da,Set<String> &extensions,String p_name,float p_from,float p_range,const String& p_path,HashMap<String,FileCache> &file_cache,HashMap<String,DirCache> &dir_cache,EditorProgressBG& p_prog);
-	void _save_type_cache_fs(DirItem *p_dir,FileAccess *p_file);
+	void _save_filesystem_cache(EditorFileSystemDirectory *p_dir,FileAccess *p_file);
 
 
 	bool _find_file(const String& p_file,EditorFileSystemDirectory ** r_d, int &r_file_pos) const;
 	bool _find_file(const String& p_file,EditorFileSystemDirectory ** r_d, int &r_file_pos) const;
 
 
-	void _scan_sources(EditorFileSystemDirectory *p_dir,EditorProgressBG *ep);
+	void _scan_fs_changes(EditorFileSystemDirectory *p_dir, const ScanProgress &p_progress);
 
 
 	int md_count;
 	int md_count;
 
 
+	Set<String> valid_extensions;
+
+	void _scan_new_dir(EditorFileSystemDirectory *p_dir,DirAccess *da,const ScanProgress& p_progress);
 
 
 	Thread *thread_sources;
 	Thread *thread_sources;
 	bool scanning_sources;
 	bool scanning_sources;
 	bool scanning_sources_done;
 	bool scanning_sources_done;
-	int ss_amount;
+
 	static void _thread_func_sources(void *_userdata);
 	static void _thread_func_sources(void *_userdata);
+
 	List<String> sources_changed;
 	List<String> sources_changed;
+	List<ItemAction> scan_actions;
+
+	bool _update_scan_actions();
 
 
 	static void _resource_saved(const String& p_path);
 	static void _resource_saved(const String& p_path);
 	String _find_first_from_source(EditorFileSystemDirectory* p_dir,const String &p_src) const;
 	String _find_first_from_source(EditorFileSystemDirectory* p_dir,const String &p_src) const;

Some files were not shown because too many files changed in this diff