Blender V5.3
project_ops.cc File Reference
#include <fmt/format.h>
#include "BKE_appdir.hh"
#include "BKE_blender_project.hh"
#include "BKE_context.hh"
#include "BKE_global.hh"
#include "BKE_main.hh"
#include "BKE_report.hh"
#include "BLI_fileops.hh"
#include "BLI_listbase_iterator.hh"
#include "BLI_path_utils.hh"
#include "BLI_string.hh"
#include "BLT_translation.hh"
#include "DNA_userdef_types.h"
#include "DNA_windowmanager_types.h"
#include "ED_userpref.hh"
#include "RNA_access.hh"
#include "RNA_define.hh"
#include "RNA_enum_types.hh"
#include "RNA_prototypes.hh"
#include "UI_interface_c.hh"
#include "UI_interface_layout.hh"
#include "UI_resources.hh"
#include "WM_api.hh"
#include "WM_types.hh"
#include "project_intern.hh"
#include "wm_files.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

static wmOperatorStatus blender::project_config_save_exec (bContext *C, wmOperator *)
void blender::PROJECT_OT_config_save (wmOperatorType *ot)
Utilities
static bool blender::has_vaild_project_poll (bContext *C)
static void blender::project_mark_dirty (Main *bmain)
New Project Operator
static std::string blender::new_project_name_get (PointerRNA *ptr)
static std::string blender::new_project_default_parent ()
static Vector< std::string > blender::new_project_suggested_directories (const Main *bmain)
static bool blender::new_project_use_existing_directory (const Main *bmain, PointerRNA *ptr)
static std::string blender::new_project_root_path (const Main *bmain, PointerRNA *ptr)
static std::string blender::new_project_find_root (const StringRefNull directory)
static void blender::new_project_name_from_directory (PointerRNA *ptr, const StringRefNull directory)
static void blender::new_project_update_directory_from_name_set (PointerRNA *ptr)
static void blender::new_project_name_update (Main *, Scene *, PointerRNA *ptr)
static void blender::new_project_directory_update (Main *, Scene *, PointerRNA *ptr)
static void blender::new_project_existing_directory_update (Main *bmain, Scene *, PointerRNA *ptr)
static const EnumPropertyItem * blender::new_project_existing_directory_itemf (bContext *C, PointerRNA *, PropertyRNA *, bool *r_free)
static bool blender::project_new_poll (bContext *C)
static wmOperatorStatus blender::project_new_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::project_new_invoke (bContext *C, wmOperator *op, const wmEvent *)
static void blender::new_project_draw_folder_info (ui::Layout &layout, const std::string &root_path)
static void blender::project_new_ui (bContext *C, wmOperator *op)
void blender::PROJECT_OT_new (wmOperatorType *ot)
Open Project Operator
static wmOperatorStatus blender::project_open_exec (bContext *C, wmOperator *op)
static void blender::project_open_after_dialog_callback (bContext *C, void *user_data)
static wmOperatorStatus blender::project_open_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::PROJECT_OT_open (wmOperatorType *ot)
Close Project Operator
static wmOperatorStatus blender::project_close_exec (bContext *C, wmOperator *op)
static void blender::project_close_after_dialog_callback (bContext *C, void *user_data)
static wmOperatorStatus blender::project_close_invoke (bContext *C, wmOperator *op, const wmEvent *)
void blender::PROJECT_OT_close (wmOperatorType *ot)
Add Asset Library Operator
static wmOperatorStatus blender::project_asset_library_add_exec (bContext *C, wmOperator *op)
static wmOperatorStatus blender::project_asset_library_add_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static void blender::project_asset_library_add_ui (bContext *, wmOperator *op)
static const EnumPropertyItem * blender::custom_library_type_itemf (bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
void blender::PROJECT_OT_asset_library_add (wmOperatorType *ot)
Remove Asset Library Operator
static bool blender::project_asset_library_remove_poll (bContext *C)
static wmOperatorStatus blender::project_asset_library_remove_exec (bContext *C, wmOperator *op)
void blender::PROJECT_OT_asset_library_remove (wmOperatorType *ot)
Remove Project Variable Operator
static bool blender::project_variable_remove_poll (bContext *C)
static wmOperatorStatus blender::project_variable_remove_exec (bContext *C, wmOperator *)
void blender::PROJECT_OT_variable_remove (wmOperatorType *ot)

Add Project Variable Operator

enum  blender::VariableType { blender::STRING = 0 , blender::FILEPATH = 1 , blender::INTEGER = 2 , blender::FLOAT = 3 }
static constexpr EnumPropertyItem blender::project_variable_type_items []
static wmOperatorStatus blender::project_variable_add_exec (bContext *C, wmOperator *op)
void blender::PROJECT_OT_variable_add (wmOperatorType *ot)

Move Project Variable Operator

enum  blender::DirectionType { blender::UP = 0 , blender::DOWN = 1 }
static constexpr EnumPropertyItem blender::project_variable_move_items []
static wmOperatorStatus blender::project_variable_move_exec (bContext *C, wmOperator *op)
void blender::PROJECT_OT_variable_move (wmOperatorType *ot)