Blender V4.3
wm_files.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2007 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#pragma once
10
11#include "WM_types.hh"
12
13struct bContext;
14struct Main;
15struct ReportList;
18struct wmOperator;
19struct wmOperatorType;
20struct wmWindow;
21struct wmWindowManager;
22
23/* `wm_files.cc`. */
24
26
29 unsigned int use_data : 1;
31 unsigned int use_userdef : 1;
32
37 unsigned int use_factory_settings : 1;
44 unsigned int use_empty_data : 1;
49 unsigned int is_first_time : 1;
59};
60
72 const wmHomeFileRead_Params *params_homefile,
73 ReportList *reports,
74 wmFileReadPost_Params **r_params_file_read_post);
76 const wmHomeFileRead_Params *params_homefile,
77 ReportList *reports);
78
83void wm_homefile_read_post(bContext *C, const wmFileReadPost_Params *params_file_read_post);
84
85void wm_file_read_report(Main *bmain, wmWindow *win);
86
93 wmOperator *op,
94 wmGenericCallbackFn post_action_fn);
106
114
116
120
123
125
126/* `wm_files_link.cc` */
127
130
void(*)(bContext *C, void *user_data) wmGenericCallbackFn
Definition WM_types.hh:147
const char * app_template_override
Definition wm_files.hh:58
unsigned int use_factory_settings_app_template_only
Definition wm_files.hh:39
const char * filepath_startup_override
Definition wm_files.hh:53
unsigned int use_factory_settings
Definition wm_files.hh:37
unsigned int is_first_time
Definition wm_files.hh:49
unsigned int use_empty_data
Definition wm_files.hh:44
unsigned int use_data
Definition wm_files.hh:29
unsigned int use_userdef
Definition wm_files.hh:31
wmOperatorType * ot
Definition wm_files.cc:4125
void wm_homefile_read(bContext *C, const wmHomeFileRead_Params *params_homefile, ReportList *reports)
Definition wm_files.cc:1567
bool wm_operator_close_file_dialog_if_needed(bContext *C, wmOperator *op, wmGenericCallbackFn post_action_fn)
Definition wm_files.cc:4763
void WM_OT_read_history(wmOperatorType *ot)
Definition wm_files.cc:2779
bool wm_file_or_session_data_has_unsaved_changes(const Main *bmain, const wmWindowManager *wm)
Definition wm_files.cc:181
void WM_OT_save_as_mainfile(wmOperatorType *ot)
Definition wm_files.cc:3762
void WM_OT_open_mainfile(wmOperatorType *ot)
Definition wm_files.cc:3317
void wm_file_read_report(Main *bmain, wmWindow *win)
Definition wm_files.cc:650
void WM_OT_recover_last_session(wmOperatorType *ot)
Definition wm_files.cc:3464
void wm_history_file_read()
Definition wm_files.cc:1594
void WM_OT_read_userpref(wmOperatorType *ot)
Definition wm_files.cc:2716
void WM_OT_save_homefile(wmOperatorType *ot)
Definition wm_files.cc:2560
void WM_OT_read_factory_userpref(wmOperatorType *ot)
Definition wm_files.cc:2752
void WM_OT_save_mainfile(wmOperatorType *ot)
Definition wm_files.cc:3851
void WM_OT_recover_auto_save(wmOperatorType *ot)
Definition wm_files.cc:3524
void wm_homefile_read_ex(bContext *C, const wmHomeFileRead_Params *params_homefile, ReportList *reports, wmFileReadPost_Params **r_params_file_read_post)
Definition wm_files.cc:1193
void WM_OT_lib_relocate(wmOperatorType *ot)
void wm_homefile_read_post(bContext *C, const wmFileReadPost_Params *params_file_read_post)
Definition wm_files.cc:1574
void WM_OT_read_factory_settings(wmOperatorType *ot)
Definition wm_files.cc:3014
void WM_OT_append(wmOperatorType *ot)
void WM_OT_read_homefile(wmOperatorType *ot)
Definition wm_files.cc:2940
void WM_OT_lib_reload(wmOperatorType *ot)
void WM_OT_save_userpref(wmOperatorType *ot)
Definition wm_files.cc:2589
void WM_OT_clear_recent_files(wmOperatorType *ot)
Definition wm_files.cc:3941
void wm_save_file_overwrite_dialog(bContext *C, wmOperator *op)
Definition wm_files.cc:4428
void WM_OT_link(wmOperatorType *ot)
void WM_OT_revert_mainfile(wmOperatorType *ot)
Definition wm_files.cc:3398
void wm_close_file_dialog(bContext *C, wmGenericCallback *post_action)
Definition wm_files.cc:4752