Blender  V2.93
Macros | Functions | Variables
info_ops.c File Reference
#include <stdio.h>
#include <string.h>
#include "DNA_space_types.h"
#include "DNA_windowmanager_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BLT_translation.h"
#include "BKE_bpath.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_lib_id.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "info_intern.h"

Go to the source code of this file.

Macros

#define INFO_TIMEOUT   5.0f
 
#define ERROR_TIMEOUT   10.0f
 
#define FLASH_TIMEOUT   1.0f
 
#define COLLAPSE_TIMEOUT   0.25f
 
#define BRIGHTEN_AMOUNT   0.1f
 

Functions

static int pack_libraries_exec (bContext *C, wmOperator *op)
 
void FILE_OT_pack_libraries (wmOperatorType *ot)
 
static int unpack_libraries_exec (bContext *C, wmOperator *op)
 
static int unpack_libraries_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
void FILE_OT_unpack_libraries (wmOperatorType *ot)
 
static int autopack_toggle_exec (bContext *C, wmOperator *op)
 
void FILE_OT_autopack_toggle (wmOperatorType *ot)
 
static int pack_all_exec (bContext *C, wmOperator *op)
 
static int pack_all_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
void FILE_OT_pack_all (wmOperatorType *ot)
 
static int unpack_all_exec (bContext *C, wmOperator *op)
 
static int unpack_all_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
void FILE_OT_unpack_all (wmOperatorType *ot)
 
static int unpack_item_exec (bContext *C, wmOperator *op)
 
static int unpack_item_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
void FILE_OT_unpack_item (wmOperatorType *ot)
 
static int make_paths_relative_exec (bContext *C, wmOperator *op)
 
void FILE_OT_make_paths_relative (wmOperatorType *ot)
 
static int make_paths_absolute_exec (bContext *C, wmOperator *op)
 
void FILE_OT_make_paths_absolute (wmOperatorType *ot)
 
static int report_missing_files_exec (bContext *C, wmOperator *op)
 
void FILE_OT_report_missing_files (wmOperatorType *ot)
 
static int find_missing_files_exec (bContext *C, wmOperator *op)
 
static int find_missing_files_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event))
 
void FILE_OT_find_missing_files (wmOperatorType *ot)
 
static int update_reports_display_invoke (bContext *C, wmOperator *UNUSED(op), const wmEvent *event)
 
void INFO_OT_reports_display_update (wmOperatorType *ot)
 

Variables

static const EnumPropertyItem unpack_all_method_items []
 
static const EnumPropertyItem unpack_item_method_items []
 

Macro Definition Documentation

◆ BRIGHTEN_AMOUNT

#define BRIGHTEN_AMOUNT   0.1f

Definition at line 532 of file info_ops.c.

◆ COLLAPSE_TIMEOUT

#define COLLAPSE_TIMEOUT   0.25f

Definition at line 531 of file info_ops.c.

◆ ERROR_TIMEOUT

#define ERROR_TIMEOUT   10.0f

Definition at line 529 of file info_ops.c.

◆ FLASH_TIMEOUT

#define FLASH_TIMEOUT   1.0f

Definition at line 530 of file info_ops.c.

◆ INFO_TIMEOUT

#define INFO_TIMEOUT   5.0f

Definition at line 528 of file info_ops.c.

Function Documentation

◆ autopack_toggle_exec()

static int autopack_toggle_exec ( bContext C,
wmOperator op 
)
static

◆ FILE_OT_autopack_toggle()

void FILE_OT_autopack_toggle ( wmOperatorType ot)

◆ FILE_OT_find_missing_files()

void FILE_OT_find_missing_files ( wmOperatorType ot)

◆ FILE_OT_make_paths_absolute()

void FILE_OT_make_paths_absolute ( wmOperatorType ot)

◆ FILE_OT_make_paths_relative()

void FILE_OT_make_paths_relative ( wmOperatorType ot)

◆ FILE_OT_pack_all()

void FILE_OT_pack_all ( wmOperatorType ot)

◆ FILE_OT_pack_libraries()

void FILE_OT_pack_libraries ( wmOperatorType ot)

◆ FILE_OT_report_missing_files()

void FILE_OT_report_missing_files ( wmOperatorType ot)

◆ FILE_OT_unpack_all()

void FILE_OT_unpack_all ( wmOperatorType ot)

◆ FILE_OT_unpack_item()

void FILE_OT_unpack_item ( wmOperatorType ot)

◆ FILE_OT_unpack_libraries()

void FILE_OT_unpack_libraries ( wmOperatorType ot)

◆ find_missing_files_exec()

static int find_missing_files_exec ( bContext C,
wmOperator op 
)
static

◆ find_missing_files_invoke()

static int find_missing_files_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

Definition at line 482 of file info_ops.c.

References C, OPERATOR_RUNNING_MODAL, and WM_event_add_fileselect().

Referenced by FILE_OT_find_missing_files().

◆ INFO_OT_reports_display_update()

void INFO_OT_reports_display_update ( wmOperatorType ot)

◆ make_paths_absolute_exec()

static int make_paths_absolute_exec ( bContext C,
wmOperator op 
)
static

◆ make_paths_relative_exec()

static int make_paths_relative_exec ( bContext C,
wmOperator op 
)
static

◆ pack_all_exec()

static int pack_all_exec ( bContext C,
wmOperator op 
)
static

◆ pack_all_invoke()

static int pack_all_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ pack_libraries_exec()

static int pack_libraries_exec ( bContext C,
wmOperator op 
)
static

◆ report_missing_files_exec()

static int report_missing_files_exec ( bContext C,
wmOperator op 
)
static

◆ unpack_all_exec()

static int unpack_all_exec ( bContext C,
wmOperator op 
)
static

◆ unpack_all_invoke()

static int unpack_all_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ unpack_item_exec()

static int unpack_item_exec ( bContext C,
wmOperator op 
)
static

◆ unpack_item_invoke()

static int unpack_item_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

◆ unpack_libraries_exec()

static int unpack_libraries_exec ( bContext C,
wmOperator op 
)
static

◆ unpack_libraries_invoke()

static int unpack_libraries_invoke ( bContext C,
wmOperator op,
const wmEvent UNUSEDevent 
)
static

Definition at line 93 of file info_ops.c.

References C, and WM_operator_confirm_message().

Referenced by FILE_OT_unpack_libraries().

◆ update_reports_display_invoke()

static int update_reports_display_invoke ( bContext C,
wmOperator UNUSEDop,
const wmEvent event 
)
static

Variable Documentation

◆ unpack_all_method_items

const EnumPropertyItem unpack_all_method_items[]
static
Initial value:
= {
{PF_USE_LOCAL, "USE_LOCAL", 0, "Use files in current directory (create when necessary)", ""},
"WRITE_LOCAL",
0,
"Write files to current directory (overwrite existing files)",
""},
"USE_ORIGINAL",
0,
"Use files in original location (create when necessary)",
""},
"WRITE_ORIGINAL",
0,
"Write files to original location (overwrite existing files)",
""},
{PF_KEEP, "KEEP", 0, "Disable auto-pack, keep all packed files", ""},
{PF_REMOVE, "REMOVE", 0, "Remove Pack", ""},
{0, NULL, 0, NULL, NULL},
}
@ PF_USE_ORIGINAL
@ PF_USE_LOCAL
@ PF_KEEP
@ PF_REMOVE
@ PF_WRITE_ORIGINAL
@ PF_WRITE_LOCAL

Definition at line 193 of file info_ops.c.

Referenced by FILE_OT_unpack_all().

◆ unpack_item_method_items

const EnumPropertyItem unpack_item_method_items[]
static
Initial value:
= {
{PF_USE_LOCAL, "USE_LOCAL", 0, "Use file from current directory (create when necessary)", ""},
"WRITE_LOCAL",
0,
"Write file to current directory (overwrite existing file)",
""},
"USE_ORIGINAL",
0,
"Use file in original location (create when necessary)",
""},
"WRITE_ORIGINAL",
0,
"Write file to original location (overwrite existing file)",
""},
{0, NULL, 0, NULL, NULL},
}

Definition at line 284 of file info_ops.c.

Referenced by FILE_OT_unpack_item().