| 
									
										
										
										
											2011-02-23 10:52:22 +00:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2002-10-12 11:37:38 +00:00
										 |  |  |  * This program is free software; you can redistribute it and/or | 
					
						
							|  |  |  |  * modify it under the terms of the GNU General Public License | 
					
						
							|  |  |  |  * as published by the Free Software Foundation; either version 2 | 
					
						
							| 
									
										
										
										
											2018-06-01 18:19:39 +02:00
										 |  |  |  * of the License, or (at your option) any later version. | 
					
						
							| 
									
										
										
										
											2002-10-12 11:37:38 +00:00
										 |  |  |  * | 
					
						
							|  |  |  |  * This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  * GNU General Public License for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * You should have received a copy of the GNU General Public License | 
					
						
							|  |  |  |  * along with this program; if not, write to the Free Software Foundation, | 
					
						
							| 
									
										
										
										
											2010-02-12 13:34:04 +00:00
										 |  |  |  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | 
					
						
							| 
									
										
										
										
											2002-10-12 11:37:38 +00:00
										 |  |  |  * | 
					
						
							| 
									
										
										
										
											2007-12-24 18:27:28 +00:00
										 |  |  |  * The Original Code is Copyright (C) 2007 Blender Foundation. | 
					
						
							| 
									
										
										
										
											2002-10-12 11:37:38 +00:00
										 |  |  |  * All rights reserved. | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2011-02-25 14:04:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-02-18 08:08:12 +11:00
										 |  |  | /** \file
 | 
					
						
							|  |  |  |  * \ingroup wm | 
					
						
							| 
									
										
										
										
											2011-02-25 14:04:21 +00:00
										 |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-17 18:59:41 +00:00
										 |  |  | #ifndef __WM_FILES_H__
 | 
					
						
							|  |  |  | #define __WM_FILES_H__
 | 
					
						
							| 
									
										
										
										
											2007-12-24 18:27:28 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-14 12:34:13 +02:00
										 |  |  | struct Main; | 
					
						
							| 
									
										
										
										
											2019-05-20 16:52:49 +10:00
										 |  |  | struct wmGenericCallback; | 
					
						
							| 
									
										
										
										
											2016-04-19 17:08:31 +02:00
										 |  |  | struct wmOperatorType; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | /* wm_files.c */ | 
					
						
							| 
									
										
										
										
											2018-11-30 13:21:12 +11:00
										 |  |  | void wm_history_file_read(void); | 
					
						
							| 
									
										
										
										
											2019-04-17 06:17:24 +02:00
										 |  |  | void wm_homefile_read(struct bContext *C, | 
					
						
							|  |  |  |                       struct ReportList *reports, | 
					
						
							|  |  |  |                       bool use_factory_settings, | 
					
						
							|  |  |  |                       bool use_empty_data, | 
					
						
							| 
									
										
										
										
											2019-05-13 12:44:08 +10:00
										 |  |  |                       bool use_data, | 
					
						
							| 
									
										
										
										
											2019-04-17 06:17:24 +02:00
										 |  |  |                       bool use_userdef, | 
					
						
							|  |  |  |                       const char *filepath_startup_override, | 
					
						
							|  |  |  |                       const char *app_template_override, | 
					
						
							|  |  |  |                       bool *r_is_factory_startup); | 
					
						
							|  |  |  | void wm_file_read_report(bContext *C, struct Main *bmain); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-20 16:52:49 +10:00
										 |  |  | void wm_close_file_dialog(bContext *C, struct wmGenericCallback *post_action); | 
					
						
							| 
									
										
										
										
											2019-05-17 17:31:26 +02:00
										 |  |  | bool wm_file_or_image_is_modified(const struct bContext *C); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-17 06:17:24 +02:00
										 |  |  | void WM_OT_save_homefile(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_userpref_autoexec_path_add(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_userpref_autoexec_path_remove(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_save_userpref(struct wmOperatorType *ot); | 
					
						
							| 
									
										
										
										
											2019-05-13 12:44:08 +10:00
										 |  |  | void WM_OT_read_userpref(struct wmOperatorType *ot); | 
					
						
							| 
									
										
										
										
											2019-05-13 13:25:51 +10:00
										 |  |  | void WM_OT_read_factory_userpref(struct wmOperatorType *ot); | 
					
						
							| 
									
										
										
										
											2019-04-17 06:17:24 +02:00
										 |  |  | void WM_OT_read_history(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_read_homefile(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_read_factory_settings(struct wmOperatorType *ot); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void WM_OT_open_mainfile(struct wmOperatorType *ot); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void WM_OT_revert_mainfile(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_recover_last_session(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_recover_auto_save(struct wmOperatorType *ot); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | void WM_OT_save_as_mainfile(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_save_mainfile(struct wmOperatorType *ot); | 
					
						
							| 
									
										
										
										
											2016-04-19 17:08:31 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | /* wm_files_link.c */ | 
					
						
							| 
									
										
										
										
											2019-04-17 06:17:24 +02:00
										 |  |  | void WM_OT_link(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_append(struct wmOperatorType *ot); | 
					
						
							| 
									
										
										
										
											2002-10-12 11:37:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-04-17 06:17:24 +02:00
										 |  |  | void WM_OT_lib_relocate(struct wmOperatorType *ot); | 
					
						
							|  |  |  | void WM_OT_lib_reload(struct wmOperatorType *ot); | 
					
						
							| 
									
										
										
										
											2016-06-22 18:05:55 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-02-17 18:59:41 +00:00
										 |  |  | #endif /* __WM_FILES_H__ */
 |