Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2016-04-19 18:08:31 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2016-04-19 23:53:18 +0300
commit52e09ed4f93b21aee8643de2f8b53e9fa7c99543 (patch)
treea711758277e06071c69abd1c92f24fa540269cd3 /source/blender/windowmanager/wm_files.h
parentdd423a6818cc8132ba073dfbeb66cb40d3f09611 (diff)
Cleanup: move operators & related code of files & append/link to relevant dedicated source files.
This commit adds a new `wm_files_link.c` which contains everything related to append/link code, moved from `wm_operators.c` (rather small currently, but will expand quite a bit with future reload & asset works). It also moves all load/save .bland files (and related userpref/startup stuff) from `wm_operators.c` to `wm_files.c` (some helper funcs were already there). This also makes `wm_operators.c` significantly lighter.
Diffstat (limited to 'source/blender/windowmanager/wm_files.h')
-rw-r--r--source/blender/windowmanager/wm_files.h28
1 files changed, 23 insertions, 5 deletions
diff --git a/source/blender/windowmanager/wm_files.h b/source/blender/windowmanager/wm_files.h
index 4b35f662a99..2eae9cdb012 100644
--- a/source/blender/windowmanager/wm_files.h
+++ b/source/blender/windowmanager/wm_files.h
@@ -31,15 +31,33 @@
#ifndef __WM_FILES_H__
#define __WM_FILES_H__
+struct wmOperatorType;
+
+/* wm_files.c */
void wm_history_file_read(void);
-int wm_history_file_read_exec(bContext *C, wmOperator *op);
-int wm_file_write(struct bContext *C, const char *target, int fileflags, struct ReportList *reports);
-int wm_homefile_read_exec(struct bContext *C, struct wmOperator *op);
int wm_homefile_read(struct bContext *C, struct ReportList *reports, bool from_memory, const char *filepath);
-int wm_homefile_write_exec(struct bContext *C, struct wmOperator *op);
-int wm_userpref_write_exec(struct bContext *C, struct wmOperator *op);
void wm_file_read_report(bContext *C);
+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);
+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);
+
+/* wm_files_link.c */
+void WM_OT_link(struct wmOperatorType *ot);
+void WM_OT_append(struct wmOperatorType *ot);
#endif /* __WM_FILES_H__ */