|
Blender V4.3
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_userdef_types.h"#include "BLI_fileops.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_appdir.hh"#include "BKE_context.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_screen.hh"#include "ED_undo.hh"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "UI_resources.hh"#include "buttons_intern.hh"Go to the source code of this file.
Classes | |
| struct | FileBrowseOp |
Functions | |
Start / Clear Search Filter Operators | |
| |
| static int | buttons_start_filter_exec (bContext *C, wmOperator *) |
| void | BUTTONS_OT_start_filter (wmOperatorType *ot) |
| static int | buttons_clear_filter_exec (bContext *C, wmOperator *) |
| void | BUTTONS_OT_clear_filter (wmOperatorType *ot) |
Pin ID Operator | |
| static int | toggle_pin_exec (bContext *C, wmOperator *) |
| void | BUTTONS_OT_toggle_pin (wmOperatorType *ot) |
Context Menu Operator | |
| static int | context_menu_invoke (bContext *C, wmOperator *, const wmEvent *) |
| void | BUTTONS_OT_context_menu (wmOperatorType *ot) |
File Browse Operator | |
| static int | file_browse_exec (bContext *C, wmOperator *op) |
| static void | file_browse_cancel (bContext *, wmOperator *op) |
| static int | file_browse_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| void | BUTTONS_OT_file_browse (wmOperatorType *ot) |
| void | BUTTONS_OT_directory_browse (wmOperatorType *ot) |
|
static |
Definition at line 72 of file buttons_ops.cc.
References CTX_wm_area(), CTX_wm_region(), CTX_wm_space_properties(), ED_area_tag_redraw(), ED_region_search_filter_update(), and OPERATOR_FINISHED.
Referenced by BUTTONS_OT_clear_filter().
| void BUTTONS_OT_clear_filter | ( | wmOperatorType * | ot | ) |
Definition at line 85 of file buttons_ops.cc.
References buttons_clear_filter_exec(), wmOperatorType::description, ED_operator_buttons_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by buttons_operatortypes().
| void BUTTONS_OT_context_menu | ( | wmOperatorType * | ot | ) |
Definition at line 153 of file buttons_ops.cc.
References context_menu_invoke(), wmOperatorType::description, ED_operator_buttons_active(), wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by buttons_operatortypes().
| void BUTTONS_OT_directory_browse | ( | wmOperatorType * | ot | ) |
Second operator, only difference from BUTTONS_OT_file_browse is WM_FILESEL_DIRECTORY.
Definition at line 425 of file buttons_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, file_browse_cancel(), file_browse_exec(), file_browse_invoke(), FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, WM_FILESEL_DIRECTORY, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by buttons_operatortypes().
| void BUTTONS_OT_file_browse | ( | wmOperatorType * | ot | ) |
Definition at line 399 of file buttons_ops.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, file_browse_cancel(), file_browse_exec(), file_browse_invoke(), FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, ot, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by buttons_operatortypes().
| void BUTTONS_OT_start_filter | ( | wmOperatorType * | ot | ) |
Definition at line 60 of file buttons_ops.cc.
References buttons_start_filter_exec(), wmOperatorType::description, ED_operator_buttons_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by buttons_operatortypes().
| void BUTTONS_OT_toggle_pin | ( | wmOperatorType * | ot | ) |
Definition at line 124 of file buttons_ops.cc.
References wmOperatorType::description, ED_operator_buttons_active(), wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::name, ot, wmOperatorType::poll, and toggle_pin_exec().
Referenced by buttons_operatortypes().
|
static |
Definition at line 49 of file buttons_ops.cc.
References BKE_area_find_region_type(), CTX_wm_area(), CTX_wm_space_properties(), OPERATOR_FINISHED, RGN_TYPE_HEADER, and UI_textbutton_activate_rna().
Referenced by BUTTONS_OT_start_filter().
|
static |
Definition at line 142 of file buttons_ops.cc.
References IFACE_, OPERATOR_INTERFACE, UI_popup_menu_begin(), UI_popup_menu_end(), UI_popup_menu_layout(), and uiItemM().
Referenced by BUTTONS_OT_context_menu().
|
static |
Definition at line 253 of file buttons_ops.cc.
References wmOperator::customdata, and MEM_freeN().
Referenced by BUTTONS_OT_directory_browse(), and BUTTONS_OT_file_browse().
|
static |
Definition at line 178 of file buttons_ops.cc.
References BKE_main_blendfile_path(), BLI_is_dir(), BLI_path_abs(), BLI_path_rel(), BLI_path_slash_ensure(), BLI_path_slash_rfind(), CTX_data_main(), wmOperator::customdata, PointerRNA::data, ED_undo_operator_repeat(), ED_undo_push(), FILE_MAX, ID_BLEND_PATH, FileBrowseOp::is_undo, FileBrowseOp::is_userdef, MEM_freeN(), MEM_reallocN, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, FileBrowseOp::prop, PROP_DIRPATH, FileBrowseOp::ptr, wmOperator::ptr, RNA_boolean_get(), RNA_property_identifier(), RNA_property_string_set(), RNA_property_subtype(), RNA_property_update(), RNA_string_get_alloc(), RNA_struct_find_property(), RNA_struct_property_is_set(), STRNCPY, and WM_operator_last_redo().
Referenced by BUTTONS_OT_directory_browse(), and BUTTONS_OT_file_browse().
|
static |
Definition at line 259 of file buttons_ops.cc.
References ARRAY_SIZE, BKE_appdir_folder_default_or_root(), BKE_appdir_font_folder_default(), BKE_report(), BKE_reportf(), BLI_path_is_rel(), BLI_path_slash_ensure(), BLI_path_slash_rfind(), BLI_strdup(), CTX_wm_space_file(), wmOperator::customdata, PointerRNA::data, FILE_IMGDISPLAY, FILE_MAX, FILE_SORT_ALPHA, FileBrowseOp::is_undo, FileBrowseOp::is_userdef, KM_ALT, KM_SHIFT, MEM_callocN, MEM_freeN(), wmEvent::modifier, SpaceFile::op, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, ot, FileBrowseOp::prop, PROP_PATH_OUTPUT, FileBrowseOp::ptr, ptr, wmOperator::ptr, wmOperator::reports, RNA_boolean_set(), RNA_enum_set(), RNA_property_boolean_set(), RNA_property_editable_info(), RNA_property_flag(), RNA_property_identifier(), RNA_property_is_set(), RNA_property_string_get_alloc(), RNA_string_set(), RNA_struct_find_property(), RPT_ERROR, STR_ELEM, STRNCPY, UI_context_active_but_prop_get_filebrowser(), UNLIKELY, USER_RELPATHS, WM_event_add_fileselect(), WM_OP_EXEC_DEFAULT, WM_operator_name_call_ptr(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), and WM_operatortype_find().
Referenced by BUTTONS_OT_directory_browse(), and BUTTONS_OT_file_browse().
|
static |
Definition at line 103 of file buttons_ops.cc.
References buttons_context_id_path(), CTX_wm_area(), CTX_wm_screen(), CTX_wm_space_properties(), ED_area_tag_redraw(), SpaceProperties::flag, OPERATOR_FINISHED, RNA_id_pointer_create(), RNA_pointer_create(), RNA_pointer_set(), and SB_PIN_CONTEXT.
Referenced by BUTTONS_OT_toggle_pin().