Blender  V2.93
wm_files.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2007 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #pragma once
25 
26 struct Main;
27 struct wmGenericCallback;
28 struct wmOperatorType;
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 /* wm_files.c */
35 void wm_history_file_read(void);
36 void wm_homefile_read(struct bContext *C,
37  struct ReportList *reports,
38  bool use_factory_settings,
39  bool use_empty_data,
40  bool use_data,
41  bool use_userdef,
42  const char *filepath_startup_override,
43  const char *app_template_override,
44  bool *r_is_factory_startup);
45 void wm_file_read_report(bContext *C, struct Main *bmain);
46 
47 void wm_close_file_dialog(bContext *C, struct wmGenericCallback *post_action);
48 bool wm_file_or_image_is_modified(const Main *bmain, const wmWindowManager *wm);
49 
57 
59 
63 
66 
67 /* wm_files_link.c */
68 void WM_OT_link(struct wmOperatorType *ot);
69 void WM_OT_append(struct wmOperatorType *ot);
70 
72 void WM_OT_lib_reload(struct wmOperatorType *ot);
73 
74 #ifdef __cplusplus
75 }
76 #endif
#define C
Definition: RandGen.cpp:39
Definition: BKE_main.h:116
wmOperatorType * ot
Definition: wm_files.c:3156
void WM_OT_lib_relocate(struct wmOperatorType *ot)
void WM_OT_recover_last_session(struct wmOperatorType *ot)
Definition: wm_files.c:2648
void wm_close_file_dialog(bContext *C, struct wmGenericCallback *post_action)
Definition: wm_files.c:3448
void WM_OT_lib_reload(struct wmOperatorType *ot)
void wm_homefile_read(struct bContext *C, struct ReportList *reports, bool use_factory_settings, bool use_empty_data, bool use_data, bool use_userdef, const char *filepath_startup_override, const char *app_template_override, bool *r_is_factory_startup)
Definition: wm_files.c:904
void WM_OT_link(struct wmOperatorType *ot)
void WM_OT_revert_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:2594
void WM_OT_recover_auto_save(struct wmOperatorType *ot)
Definition: wm_files.c:2707
void WM_OT_read_history(struct wmOperatorType *ot)
Definition: wm_files.c:2041
bool wm_file_or_image_is_modified(const Main *bmain, const wmWindowManager *wm)
Definition: wm_files.c:168
void WM_OT_save_homefile(struct wmOperatorType *ot)
Definition: wm_files.c:1855
void wm_history_file_read(void)
Definition: wm_files.c:1215
void WM_OT_append(struct wmOperatorType *ot)
void WM_OT_save_as_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:2877
void WM_OT_read_factory_settings(struct wmOperatorType *ot)
Definition: wm_files.c:2225
void wm_file_read_report(bContext *C, struct Main *bmain)
Definition: wm_files.c:551
void WM_OT_save_userpref(struct wmOperatorType *ot)
Definition: wm_files.c:1884
void WM_OT_read_factory_userpref(struct wmOperatorType *ot)
Definition: wm_files.c:2016
void WM_OT_read_userpref(struct wmOperatorType *ot)
Definition: wm_files.c:2006
void WM_OT_read_homefile(struct wmOperatorType *ot)
Definition: wm_files.c:2191
void WM_OT_save_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:2950
void WM_OT_open_mainfile(struct wmOperatorType *ot)
Definition: wm_files.c:2531