Blender V2.61 - r43446
Defines | Functions

wm_files.c File Reference

#include <stddef.h>
#include <string.h>
#include <errno.h>
#include "zlib.h"
#include <unistd.h>
#include "MEM_guardedalloc.h"
#include "MEM_CacheLimiterC-Api.h"
#include "BLI_blenlib.h"
#include "BLI_linklist.h"
#include "BLI_utildefines.h"
#include "BLI_callbacks.h"
#include "BLF_translation.h"
#include "DNA_anim_types.h"
#include "DNA_ipo_types.h"
#include "DNA_object_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_windowmanager_types.h"
#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_depsgraph.h"
#include "BKE_DerivedMesh.h"
#include "BKE_font.h"
#include "BKE_global.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
#include "BKE_sound.h"
#include "BKE_texture.h"
#include "BLO_readfile.h"
#include "BLO_writefile.h"
#include "RNA_access.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "IMB_thumbs.h"
#include "ED_datafiles.h"
#include "ED_object.h"
#include "ED_screen.h"
#include "ED_sculpt.h"
#include "ED_view3d.h"
#include "ED_util.h"
#include "RE_pipeline.h"
#include "GHOST_C-api.h"
#include "GHOST_Path-api.h"
#include "UI_interface.h"
#include "GPU_draw.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm.h"
#include "wm_files.h"
#include "wm_window.h"
#include "wm_event_system.h"

Go to the source code of this file.

Defines

#define BKE_READ_EXOTIC_FAIL_PATH   -3
#define BKE_READ_EXOTIC_FAIL_FORMAT   -2
#define BKE_READ_EXOTIC_FAIL_OPEN   -1
#define BKE_READ_EXOTIC_OK_BLEND   0
#define BKE_READ_EXOTIC_OK_OTHER   1

Functions

static void write_history (void)
static void wm_window_match_init (bContext *C, ListBase *wmlist)
static void wm_window_match_do (bContext *C, ListBase *oldwmlist)
static void wm_init_userdef (bContext *C)
static int wm_read_exotic (Scene *UNUSED(scene), const char *name)
void WM_read_file (bContext *C, const char *filepath, ReportList *reports)
int WM_read_homefile (bContext *C, ReportList *UNUSED(reports), short from_memory)
int WM_read_homefile_exec (bContext *C, wmOperator *op)
void WM_read_history (void)
static ImBufblend_file_thumb (Scene *scene, int **thumb_pt)
int write_crash_blend (void)
int WM_write_file (bContext *C, const char *target, int fileflags, ReportList *reports, int copy)
int WM_write_homefile (bContext *C, wmOperator *op)
void wm_autosave_location (char *filepath)
void WM_autosave_init (wmWindowManager *wm)
void wm_autosave_timer (const bContext *C, wmWindowManager *wm, wmTimer *UNUSED(wt))
void wm_autosave_timer_ended (wmWindowManager *wm)
void wm_autosave_delete (void)
void wm_autosave_read (bContext *C, ReportList *reports)

Detailed Description

Definition in file wm_files.c.


Define Documentation

#define BKE_READ_EXOTIC_FAIL_FORMAT   -2

Definition at line 302 of file wm_files.c.

Referenced by wm_read_exotic(), and WM_read_file().

#define BKE_READ_EXOTIC_FAIL_OPEN   -1

Definition at line 303 of file wm_files.c.

Referenced by wm_read_exotic(), and WM_read_file().

#define BKE_READ_EXOTIC_FAIL_PATH   -3

Definition at line 301 of file wm_files.c.

Referenced by wm_read_exotic(), and WM_read_file().

#define BKE_READ_EXOTIC_OK_BLEND   0

Definition at line 304 of file wm_files.c.

Referenced by wm_read_exotic(), and WM_read_file().

#define BKE_READ_EXOTIC_OK_OTHER   1

Definition at line 305 of file wm_files.c.

Referenced by WM_read_file().


Function Documentation

static ImBuf* blend_file_thumb ( Scene scene,
int **  thumb_pt 
) [static]
void wm_autosave_delete ( void  )
void WM_autosave_init ( wmWindowManager wm)
void wm_autosave_location ( char *  filepath)
void wm_autosave_read ( bContext C,
ReportList reports 
)

Definition at line 934 of file wm_files.c.

References FILE_MAX, wm_autosave_location(), and WM_read_file().

void wm_autosave_timer ( const bContext C,
wmWindowManager wm,
wmTimer UNUSEDwt 
)
void wm_autosave_timer_ended ( wmWindowManager wm)

Definition at line 910 of file wm_files.c.

References wmWindowManager::autosavetimer, NULL, and WM_event_remove_timer().

Referenced by WM_autosave_init(), and wm_close_and_free().

static void wm_init_userdef ( bContext C) [static]
static int wm_read_exotic ( Scene UNUSEDscene,
const char *  name 
) [static]
void WM_read_file ( bContext C,
const char *  filepath,
ReportList reports 
)
void WM_read_history ( void  )
int WM_read_homefile ( bContext C,
ReportList UNUSEDreports,
short  from_memory 
)
int WM_read_homefile_exec ( bContext C,
wmOperator op 
)
static void wm_window_match_do ( bContext C,
ListBase oldwmlist 
) [static]
static void wm_window_match_init ( bContext C,
ListBase wmlist 
) [static]
int WM_write_file ( bContext C,
const char *  target,
int  fileflags,
ReportList reports,
int  copy 
)
int WM_write_homefile ( bContext C,
wmOperator op 
)
int write_crash_blend ( void  )
static void write_history ( void  ) [static]