Drag & drop feature:
[blender.git] / source / blender / editors / space_file / filelist.h
index dd3c2c766c181b4cbb424cb2716e180fb22af1c0..6ea91746b855b348c1ba812cf02b5e97e8ad457d 100644 (file)
@@ -18,7 +18,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  *
  * The Original Code is Copyright (C) 2007 Blender Foundation.
  * All rights reserved.
@@ -42,12 +42,13 @@ struct FolderList;
 struct direntry;
 struct BlendHandle;
 struct Scene;
+struct Main;
 struct rcti;
+struct ReportList;
 
-struct FileList *      filelist_new();
-void                           filelist_init_icons();
-void                           filelist_free_icons();
-struct FileList *      filelist_copy(struct FileList* filelist);
+struct FileList *      filelist_new(short type);
+void                           filelist_init_icons(void);
+void                           filelist_free_icons(void);
 int                                    filelist_find(struct FileList* filelist, char *file);
 void                           filelist_free(struct FileList* filelist);
 void                           filelist_sort(struct FileList* filelist, short sort);
@@ -57,11 +58,10 @@ void                                filelist_setdir(struct FileList* filelist, const char *dir);
 struct direntry *      filelist_file(struct FileList* filelist, int index);
 void                           filelist_hidedot(struct FileList* filelist, short hide);
 void                           filelist_setfilter(struct FileList* filelist, unsigned int filter);
+void                           filelist_setfilter_types(struct FileList* filelist, const char *filter_glob);
 void                           filelist_filter(struct FileList* filelist);
 void                           filelist_swapselect(struct FileList* filelist);
 void                           filelist_imgsize(struct FileList* filelist, short w, short h);
-void                           filelist_loadimage(struct FileList* filelist, int index);
-void                           filelist_loadimage_timer(struct FileList* filelist);
 struct ImBuf *         filelist_getimage(struct FileList* filelist, int index);
 struct ImBuf *         filelist_geticon(struct FileList* filelist, int index);
 short                          filelist_changed(struct FileList* filelist);
@@ -69,14 +69,25 @@ void                                filelist_readdir(struct FileList* filelist);
 
 int                                    filelist_empty(struct FileList* filelist);
 void                           filelist_parent(struct FileList* filelist);
-void                           filelist_setfiletypes(struct FileList* filelist, short has_quicktime);
 
-struct ListBase *      folderlist_new();
+
+int                                    filelist_islibrary (struct FileList* filelist, char* dir, char* group);
+void                           filelist_from_main(struct FileList* filelist);
+void                           filelist_from_library(struct FileList* filelist);
+void                           filelist_freelib(struct FileList* filelist);
+void                           filelist_hideparent(struct FileList* filelist, short hide);
+
+struct ListBase *      folderlist_new(void);
 void                           folderlist_free(struct ListBase* folderlist);
+struct ListBase        *       folderlist_duplicate(ListBase* folderlist);
 void                           folderlist_popdir(struct ListBase* folderlist, char *dir);
 void                           folderlist_pushdir(struct ListBase* folderlist, const char *dir);
 int                                    folderlist_clear_next(struct SpaceFile* sfile);
 
+void                           thumbnails_stop(struct FileList* filelist, const struct bContext* C);
+void                           thumbnails_start(struct FileList* filelist, const struct bContext* C);
+int                                    thumbnails_running(struct FileList* filelist, const struct bContext* C);
+
 #ifdef __cplusplus
 }
 #endif