Blender V2.61 - r43446
Defines | Functions | Variables

info_ops.c File Reference

#include <string.h>
#include <stdio.h>
#include "DNA_packedFile_types.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_bpath.h"
#include "BLI_utildefines.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_packedFile.h"
#include "BKE_report.h"
#include "WM_api.h"
#include "WM_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "IMB_imbuf_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "info_intern.h"

Go to the source code of this file.

Defines

#define INFO_TIMEOUT   5.0f
#define INFO_COLOR_TIMEOUT   3.0f
#define ERROR_TIMEOUT   10.0f
#define ERROR_COLOR_TIMEOUT   6.0f
#define COLLAPSE_TIMEOUT   0.25f

Functions

static int pack_all_exec (bContext *C, wmOperator *op)
static int pack_all_invoke (bContext *C, wmOperator *op, 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, wmEvent *UNUSED(event))
void FILE_OT_unpack_all (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, wmEvent *UNUSED(event))
void FILE_OT_find_missing_files (wmOperatorType *ot)
static int update_reports_display_invoke (bContext *C, wmOperator *UNUSED(op), wmEvent *event)
void INFO_OT_reports_display_update (wmOperatorType *ot)

Variables

static const EnumPropertyItem unpack_all_method_items []

Detailed Description

Definition in file info_ops.c.


Define Documentation

#define COLLAPSE_TIMEOUT   0.25f

Definition at line 328 of file info_ops.c.

Referenced by update_reports_display_invoke().

#define ERROR_COLOR_TIMEOUT   6.0f

Definition at line 327 of file info_ops.c.

Referenced by update_reports_display_invoke().

#define ERROR_TIMEOUT   10.0f

Definition at line 326 of file info_ops.c.

Referenced by update_reports_display_invoke().

#define INFO_COLOR_TIMEOUT   3.0f

Definition at line 325 of file info_ops.c.

Referenced by update_reports_display_invoke().

#define INFO_TIMEOUT   5.0f

Definition at line 324 of file info_ops.c.

Referenced by update_reports_display_invoke().


Function Documentation

void FILE_OT_find_missing_files ( wmOperatorType ot)
void FILE_OT_make_paths_absolute ( wmOperatorType ot)
void FILE_OT_make_paths_relative ( wmOperatorType ot)
void FILE_OT_pack_all ( wmOperatorType ot)
void FILE_OT_report_missing_files ( wmOperatorType ot)
void FILE_OT_unpack_all ( wmOperatorType ot)
static int find_missing_files_exec ( bContext C,
wmOperator op 
) [static]
static int find_missing_files_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]

Definition at line 291 of file info_ops.c.

References OPERATOR_RUNNING_MODAL, and WM_event_add_fileselect().

Referenced by FILE_OT_find_missing_files().

void INFO_OT_reports_display_update ( wmOperatorType ot)
static int make_paths_absolute_exec ( bContext C,
wmOperator op 
) [static]
static int make_paths_relative_exec ( bContext C,
wmOperator op 
) [static]
static int pack_all_exec ( bContext C,
wmOperator op 
) [static]

Definition at line 71 of file info_ops.c.

References CTX_data_main(), G, G_AUTOPACK, OPERATOR_FINISHED, packAll(), and wmOperator::reports.

Referenced by FILE_OT_pack_all(), and pack_all_invoke().

static int pack_all_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int report_missing_files_exec ( bContext C,
wmOperator op 
) [static]
static int unpack_all_exec ( bContext C,
wmOperator op 
) [static]
static int unpack_all_invoke ( bContext C,
wmOperator op,
wmEvent UNUSEDevent 
) [static]
static int update_reports_display_invoke ( bContext C,
wmOperator UNUSEDop,
wmEvent event 
) [static]

Variable Documentation

Initial value:
 {
    {PF_USE_LOCAL, "USE_LOCAL", 0, "Use files in current directory (create when necessary)", ""},
    {PF_WRITE_LOCAL, "WRITE_LOCAL", 0, "Write files to current directory (overwrite existing files)", ""},
    {PF_USE_ORIGINAL, "USE_ORIGINAL", 0, "Use files in original location (create when necessary)", ""},
    {PF_WRITE_ORIGINAL, "WRITE_ORIGINAL", 0, "Write files to original location (overwrite existing files)", ""},
    {PF_KEEP, "KEEP", 0, "Disable AutoPack, keep all packed files", ""},
    {PF_ASK, "ASK", 0, "Ask for each file", ""},
    {0, NULL, 0, NULL, NULL}}

Definition at line 121 of file info_ops.c.