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.
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.
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.
16 * The Original Code is Copyright (C) 2007 Blender Foundation.
17 * All rights reserved.
20 /** \file blender/windowmanager/wm_files.h
24 #ifndef __WM_FILES_H__
25 #define __WM_FILES_H__
28 struct wmOperatorType;
31 void wm_history_file_read(void);
32 void wm_homefile_read(
33 struct bContext *C, struct ReportList *reports,
34 bool use_factory_settings, bool use_empty_data, bool use_userdef,
35 const char *filepath_startup_override, const char *app_template_override,
36 bool *r_is_factory_startup);
37 void wm_file_read_report(bContext *C, struct Main *bmain);
39 void WM_OT_save_homefile(struct wmOperatorType *ot);
40 void WM_OT_userpref_autoexec_path_add(struct wmOperatorType *ot);
41 void WM_OT_userpref_autoexec_path_remove(struct wmOperatorType *ot);
42 void WM_OT_save_userpref(struct wmOperatorType *ot);
43 void WM_OT_read_history(struct wmOperatorType *ot);
44 void WM_OT_read_homefile(struct wmOperatorType *ot);
45 void WM_OT_read_factory_settings(struct wmOperatorType *ot);
47 void WM_OT_open_mainfile(struct wmOperatorType *ot);
49 void WM_OT_revert_mainfile(struct wmOperatorType *ot);
50 void WM_OT_recover_last_session(struct wmOperatorType *ot);
51 void WM_OT_recover_auto_save(struct wmOperatorType *ot);
53 void WM_OT_save_as_mainfile(struct wmOperatorType *ot);
54 void WM_OT_save_mainfile(struct wmOperatorType *ot);
57 void WM_OT_link(struct wmOperatorType *ot);
58 void WM_OT_append(struct wmOperatorType *ot);
60 void WM_OT_lib_relocate(struct wmOperatorType *ot);
61 void WM_OT_lib_reload(struct wmOperatorType *ot);
63 #endif /* __WM_FILES_H__ */