Blender V5.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
8
9#pragma once
10
11#include "WM_types.hh"
12
13namespace blender {
14
15struct bContext;
16struct Main;
17struct ReportList;
20struct wmOperator;
21struct wmOperatorType;
22struct wmWindow;
23struct wmWindowManager;
24
25/* `wm_files.cc`. */
26
28
31 unsigned int use_data : 1;
33 unsigned int use_userdef : 1;
34
39 unsigned int use_factory_settings : 1;
46 unsigned int use_empty_data : 1;
51 unsigned int is_first_time : 1;
61};
62
74 const wmHomeFileRead_Params *params_homefile,
75 ReportList *reports,
76 wmFileReadPost_Params **r_params_file_read_post);
78 const wmHomeFileRead_Params *params_homefile,
79 ReportList *reports);
80
85void wm_homefile_read_post(bContext *C, const wmFileReadPost_Params *params_file_read_post);
86
87void wm_file_read_report(Main *bmain, wmWindow *win);
88
95 wmOperator *op,
96 wmGenericCallbackFn post_action_fn);
108
117
119
123
126
129
130/* `wm_files_link.cc` */
131
132void WM_OT_link(wmOperatorType *ot);
135
138
139/* `wm_files_colorspace.cc` */
140
142
143} // namespace blender
#define C
Definition RandGen.cpp:29
BMesh Iterators.
void WM_OT_clear_recent_files(wmOperatorType *ot)
Definition wm_files.cc:4490
void WM_OT_save_as_mainfile(wmOperatorType *ot)
Definition wm_files.cc:4279
void wm_history_file_read()
Definition wm_files.cc:1638
void WM_OT_read_factory_settings(wmOperatorType *ot)
Definition wm_files.cc:3229
bool wm_operator_close_file_dialog_if_needed(bContext *C, wmOperator *op, wmGenericCallbackFn post_action_fn)
Definition wm_files.cc:5331
void WM_OT_link(wmOperatorType *ot)
void WM_OT_set_working_color_space(wmOperatorType *ot)
void WM_OT_lib_reload(wmOperatorType *ot)
void wm_save_file_overwrite_dialog(bContext *C, wmOperator *op)
Definition wm_files.cc:5017
void WM_OT_append(wmOperatorType *ot)
void WM_OT_open_mainfile(wmOperatorType *ot)
Definition wm_files.cc:3534
void WM_OT_save_homefile(wmOperatorType *ot)
Definition wm_files.cc:2735
void wm_file_read_report(Main *bmain, wmWindow *win)
Definition wm_files.cc:631
bool wm_file_or_session_data_has_unsaved_changes(const Main *bmain, const wmWindowManager *wm)
Definition wm_files.cc:198
void WM_OT_read_factory_userpref(wmOperatorType *ot)
Definition wm_files.cc:2952
void WM_OT_recover_last_session(wmOperatorType *ot)
Definition wm_files.cc:3694
void WM_OT_revert_mainfile(wmOperatorType *ot)
Definition wm_files.cc:3617
void WM_OT_id_linked_relocate(wmOperatorType *ot)
void wm_homefile_read_post(bContext *C, const wmFileReadPost_Params *params_file_read_post)
Definition wm_files.cc:1618
void WM_OT_read_userpref(wmOperatorType *ot)
Definition wm_files.cc:2913
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:1233
void WM_OT_clear_recent_projects(wmOperatorType *ot)
Definition wm_files.cc:4523
void WM_OT_save_mainfile(wmOperatorType *ot)
Definition wm_files.cc:4390
void WM_OT_save_userpref(wmOperatorType *ot)
Definition wm_files.cc:2764
void wm_homefile_read(bContext *C, const wmHomeFileRead_Params *params_homefile, ReportList *reports)
Definition wm_files.cc:1611
void WM_OT_read_homefile(wmOperatorType *ot)
Definition wm_files.cc:3153
void WM_OT_save_auto_save(wmOperatorType *ot)
Definition wm_files.cc:2529
void WM_OT_recover_auto_save(wmOperatorType *ot)
Definition wm_files.cc:3756
void wm_close_file_dialog(bContext *C, wmGenericCallback *post_action)
Definition wm_files.cc:5318
void(*)(bContext *C, void *user_data) wmGenericCallbackFn
Definition WM_types.hh:155
void WM_OT_lib_relocate(wmOperatorType *ot)
void WM_OT_read_history(wmOperatorType *ot)
Definition wm_files.cc:2979
unsigned int use_factory_settings
Definition wm_files.hh:39
const char * filepath_startup_override
Definition wm_files.hh:55
unsigned int use_factory_settings_app_template_only
Definition wm_files.hh:41
const char * app_template_override
Definition wm_files.hh:60