Blender  V3.3
wm_files.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2007 Blender Foundation. All rights reserved. */
3 
8 #pragma once
9 
10 struct Main;
12 struct wmGenericCallback;
13 struct wmOperatorType;
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 /* wm_files.c */
20 
21 void wm_history_file_read(void);
22 
25  unsigned int use_data : 1;
27  unsigned int use_userdef : 1;
28 
33  unsigned int use_factory_settings : 1;
38  unsigned int use_empty_data : 1;
47  const char *app_template_override;
48 };
49 
60 void wm_homefile_read_ex(struct bContext *C,
61  const struct wmHomeFileRead_Params *params_homefile,
62  struct ReportList *reports,
63  struct wmFileReadPost_Params **r_params_file_read_post);
64 void wm_homefile_read(struct bContext *C,
65  const struct wmHomeFileRead_Params *params_homefile,
66  struct ReportList *reports);
67 
72 void wm_homefile_read_post(struct bContext *C,
73  const struct wmFileReadPost_Params *params_file_read_post);
74 
75 void wm_file_read_report(bContext *C, struct Main *bmain);
76 
77 void wm_close_file_dialog(bContext *C, struct wmGenericCallback *post_action);
83  wmOperator *op,
84  wmGenericCallbackFn exec_fn);
96 
101 void WM_OT_read_history(struct wmOperatorType *ot);
104 
106 
110 
113 
114 /* wm_files_link.c */
115 
116 void WM_OT_link(struct wmOperatorType *ot);
117 void WM_OT_append(struct wmOperatorType *ot);
118 
119 void WM_OT_lib_relocate(struct wmOperatorType *ot);
120 void WM_OT_lib_reload(struct wmOperatorType *ot);
121 
122 #ifdef __cplusplus
123 }
124 #endif
#define C
Definition: RandGen.cpp:25
void(* wmGenericCallbackFn)(struct bContext *C, void *user_data)
Definition: WM_types.h:133
Definition: BKE_main.h:121
const char * app_template_override
Definition: wm_files.h:47
const char * filepath_startup_override
Definition: wm_files.h:42
unsigned int use_factory_settings
Definition: wm_files.h:33
unsigned int use_empty_data
Definition: wm_files.h:38
unsigned int use_data
Definition: wm_files.h:25
unsigned int use_userdef
Definition: wm_files.h:27
wmOperatorType * ot
Definition: wm_files.c:3479
void WM_OT_lib_relocate(struct wmOperatorType *ot)
void WM_OT_recover_last_session(struct wmOperatorType *ot)
Definition: wm_files.c:2931
void wm_close_file_dialog(bContext *C, struct wmGenericCallback *post_action)
Definition: wm_files.c:4038
void WM_OT_lib_reload(struct wmOperatorType *ot)
bool wm_file_or_session_data_has_unsaved_changes(const Main *bmain, const wmWindowManager *wm)
Definition: wm_files.c:160
void wm_homefile_read_ex(struct bContext *C, const struct wmHomeFileRead_Params *params_homefile, struct ReportList *reports, struct wmFileReadPost_Params **r_params_file_read_post)
Definition: wm_files.c:1048
void wm_homefile_read_post(struct bContext *C, const struct wmFileReadPost_Params *params_file_read_post)
Definition: wm_files.c:1378
void WM_OT_link(struct wmOperatorType *ot)
void WM_OT_revert_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:2864
void wm_save_file_forwardcompat_dialog(bContext *C, wmOperator *op)
Definition: wm_files.c:3721
void WM_OT_recover_auto_save(struct wmOperatorType *ot)
Definition: wm_files.c:2990
bool wm_operator_close_file_dialog_if_needed(bContext *C, wmOperator *op, wmGenericCallbackFn exec_fn)
Definition: wm_files.c:4049
void wm_homefile_read(struct bContext *C, const struct wmHomeFileRead_Params *params_homefile, struct ReportList *reports)
Definition: wm_files.c:1371
void WM_OT_read_history(struct wmOperatorType *ot)
Definition: wm_files.c:2328
void WM_OT_save_homefile(struct wmOperatorType *ot)
Definition: wm_files.c:2136
void wm_history_file_read(void)
Definition: wm_files.c:1391
void WM_OT_append(struct wmOperatorType *ot)
void WM_OT_save_as_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:3192
void WM_OT_read_factory_settings(struct wmOperatorType *ot)
Definition: wm_files.c:2501
void wm_file_read_report(bContext *C, struct Main *bmain)
Definition: wm_files.c:574
void WM_OT_save_userpref(struct wmOperatorType *ot)
Definition: wm_files.c:2165
void WM_OT_read_factory_userpref(struct wmOperatorType *ot)
Definition: wm_files.c:2303
void WM_OT_read_userpref(struct wmOperatorType *ot)
Definition: wm_files.c:2293
void WM_OT_read_homefile(struct wmOperatorType *ot)
Definition: wm_files.c:2467
void WM_OT_save_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:3272
void WM_OT_open_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:2800