|
Blender
V2.59
|
#include <string.h>#include <stdlib.h>#include <stdio.h>#include <stddef.h>#include "MEM_guardedalloc.h"#include "BLI_blenlib.h"#include "BLI_utildefines.h"#include "DNA_packedFile_types.h"#include "DNA_scene_types.h"#include "DNA_space_types.h"#include "DNA_sequence_types.h"#include "DNA_sound_types.h"#include "DNA_userdef_types.h"#include "BKE_context.h"#include "BKE_global.h"#include "BKE_main.h"#include "BKE_report.h"#include "BKE_packedFile.h"#include "BKE_sound.h"#include "RNA_access.h"#include "RNA_define.h"#include "RNA_enum_types.h"#include "UI_interface.h"#include "WM_api.h"#include "WM_types.h"#include "ED_sound.h"#include "ED_util.h"#include "sound_intern.h"Go to the source code of this file.
Functions | |
| static void | open_init (bContext *C, wmOperator *op) |
| static int | open_exec (bContext *UNUSED(C), wmOperator *op) |
| static int | open_invoke (bContext *C, wmOperator *op, wmEvent *event) |
| void | SOUND_OT_open (wmOperatorType *ot) |
| static int | sound_poll (bContext *C) |
| static int | pack_exec (bContext *C, wmOperator *op) |
| static void | SOUND_OT_pack (wmOperatorType *ot) |
| static int | sound_unpack_exec (bContext *C, wmOperator *op) |
| static int | sound_unpack_invoke (bContext *C, wmOperator *op, wmEvent *UNUSED(event)) |
| static void | SOUND_OT_unpack (wmOperatorType *ot) |
| void | ED_operatortypes_sound (void) |
Definition in file sound_ops.c.
| void ED_operatortypes_sound | ( | void | ) |
Definition at line 298 of file sound_ops.c.
References SOUND_OT_open(), SOUND_OT_pack(), SOUND_OT_unpack(), and WM_operatortype_append().
Referenced by ED_spacetypes_init().
| static int open_exec | ( | bContext * | UNUSEDC, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 139 of file sound_ops.c.
References BKE_report(), OPERATOR_CANCELLED, wmOperator::reports, and RPT_ERROR.
Referenced by open_invoke(), and SOUND_OT_open().
| static void open_init | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 78 of file sound_ops.c.
References wmOperator::customdata, MEM_callocN(), PropertyPointerRNA::prop, PropertyPointerRNA::ptr, and uiIDContextProperty().
Referenced by open_invoke().
| static int open_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 148 of file sound_ops.c.
References open_exec(), open_init(), wmOperator::ptr, RNA_boolean_set(), RNA_property_is_set(), USER_RELPATHS, and WM_operator_filesel().
Referenced by SOUND_OT_open().
| static int pack_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 193 of file sound_ops.c.
References Editing::act_seq, CTX_data_main(), CTX_data_scene(), Scene::ed, bSound::name, newPackedFile(), OPERATOR_CANCELLED, OPERATOR_FINISHED, bSound::packedfile, wmOperator::reports, SEQ_SOUND, Sequence::sound, sound_load(), and Sequence::type.
Referenced by SOUND_OT_pack().
| void SOUND_OT_open | ( | wmOperatorType * | ot | ) |
Definition at line 161 of file sound_ops.c.
References wmOperatorType::description, wmOperatorType::exec, FALSE, FILE_OPENFILE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, wmOperatorType::invoke, MOVIEFILE, wmOperatorType::name, open_exec(), open_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, RNA_def_boolean(), SOUNDFILE, wmOperatorType::srna, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_sound().
| static void SOUND_OT_pack | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 212 of file sound_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, pack_exec(), wmOperatorType::poll, and sound_poll().
Referenced by ED_operatortypes_sound().
| static void SOUND_OT_unpack | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 276 of file sound_ops.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, MAX_ID_NAME, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, PF_USE_LOCAL, wmOperatorType::poll, RNA_def_enum(), RNA_def_string(), sound_poll(), sound_unpack_exec(), sound_unpack_invoke(), wmOperatorType::srna, and unpack_method_items.
Referenced by ED_operatortypes_sound().
| static int sound_poll | ( | bContext * | C | ) | [static] |
Definition at line 182 of file sound_ops.c.
References Editing::act_seq, CTX_data_scene(), Scene::ed, SEQ_SOUND, and Sequence::type.
Referenced by SOUND_OT_pack(), and SOUND_OT_unpack().
| static int sound_unpack_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 229 of file sound_ops.c.
References BKE_report(), BLI_findstring(), CTX_data_main(), Global::fileflags, G, G_AUTOPACK, MAX_ID_NAME, wmOperatorType::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, bSound::packedfile, wmOperator::ptr, wmOperator::reports, RNA_enum_get(), RNA_property_is_set(), RNA_string_get(), RPT_WARNING, and unpackSound().
Referenced by SOUND_OT_unpack(), and sound_unpack_invoke().
| static int sound_unpack_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 252 of file sound_ops.c.
References Editing::act_seq, BKE_report(), CTX_data_scene(), Scene::ed, Global::fileflags, G, G_AUTOPACK, bSound::id, bSound::name, ID::name, OPERATOR_CANCELLED, OPERATOR_FINISHED, bSound::packedfile, wmOperator::ptr, wmOperator::reports, RNA_property_is_set(), RPT_WARNING, SEQ_SOUND, Sequence::sound, sound_unpack_exec(), Sequence::type, and unpack_menu().
Referenced by SOUND_OT_unpack().