|
Blender V5.0
|
#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_library.hh"#include "BKE_main.hh"#include "BKE_path_templates.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_define.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "UI_interface_layout.hh"#include "UI_resources.hh"#include "buttons_intern.hh"Go to the source code of this file.
Classes | |
| struct | FileBrowseOp |
|
static |
Definition at line 76 of file buttons_ops.cc.
References C, CTX_wm_area(), CTX_wm_region(), CTX_wm_space_properties(), ED_area_tag_redraw(), ED_region_search_filter_update(), OPERATOR_FINISHED, SpaceProperties::runtime, and SpaceProperties_Runtime::search_string.
Referenced by BUTTONS_OT_clear_filter().
| void BUTTONS_OT_clear_filter | ( | wmOperatorType * | ot | ) |
Definition at line 89 of file buttons_ops.cc.
References buttons_clear_filter_exec(), ED_operator_buttons_active(), and ot.
Referenced by buttons_operatortypes().
| void BUTTONS_OT_context_menu | ( | wmOperatorType * | ot | ) |
Definition at line 159 of file buttons_ops.cc.
References context_menu_invoke(), ED_operator_buttons_active(), and ot.
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 484 of file buttons_ops.cc.
References file_browse_cancel(), file_browse_exec(), file_browse_invoke(), file_browse_poll_property(), FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, 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 452 of file buttons_ops.cc.
References file_browse_cancel(), file_browse_exec(), file_browse_invoke(), file_browse_poll_property(), FILE_DEFAULTDISPLAY, FILE_OPENFILE, FILE_SORT_DEFAULT, FILE_SPECIAL, ot, PROP_HIDDEN, PROP_SKIP_SAVE, RNA_def_property_flag(), RNA_def_string(), 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 64 of file buttons_ops.cc.
References buttons_start_filter_exec(), ED_operator_buttons_active(), and ot.
Referenced by buttons_operatortypes().
| void BUTTONS_OT_toggle_pin | ( | wmOperatorType * | ot | ) |
Definition at line 128 of file buttons_ops.cc.
References ED_operator_buttons_active(), ot, and toggle_pin_exec().
Referenced by buttons_operatortypes().
|
static |
Definition at line 53 of file buttons_ops.cc.
References BKE_area_find_region_type(), C, 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 146 of file buttons_ops.cc.
References C, IFACE_, uiLayout::menu(), OPERATOR_INTERFACE, UI_popup_menu_begin(), UI_popup_menu_end(), and UI_popup_menu_layout().
Referenced by BUTTONS_OT_context_menu().
|
static |
Definition at line 278 of file buttons_ops.cc.
References wmOperator::customdata.
Referenced by BUTTONS_OT_directory_browse(), and BUTTONS_OT_file_browse().
|
static |
Definition at line 197 of file buttons_ops.cc.
References BKE_main_blendfile_path(), BLI_assert, BLI_path_abs(), BLI_path_is_rel(), BLI_path_rel(), BLI_path_slash_ensure(), BLI_strdup(), C, CTX_data_main(), wmOperator::customdata, PointerRNA::data, ED_undo_operator_repeat(), ED_undo_push(), file_browse_operator_relative_paths_supported(), FILE_MAX, ID_BLEND_PATH, FileBrowseOp::is_undo, FileBrowseOp::is_userdef, MEM_freeN(), 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(), U, and WM_operator_last_redo().
Referenced by BUTTONS_OT_directory_browse(), and BUTTONS_OT_file_browse().
|
static |
Definition at line 285 of file buttons_ops.cc.
References ARRAY_SIZE, BKE_appdir_folder_default_or_root(), BKE_appdir_font_folder_default(), BKE_build_template_variables_for_prop(), BKE_path_apply_template(), BKE_report(), BKE_report_path_template_errors(), BKE_reportf(), BLI_assert, BLI_path_is_rel(), BLI_path_slash_ensure(), BLI_path_slash_rfind(), BLI_strdup(), C, CTX_wm_space_file(), wmOperator::customdata, blender::wm::ExecDefault, FILE_IMGDISPLAY, FILE_MAX, FILE_SORT_ALPHA, filter, blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), FileBrowseOp::is_undo, FileBrowseOp::is_userdef, KM_ALT, KM_SHIFT, MEM_freeN(), wmEvent::modifier, SpaceFile::op, OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, ot, FileBrowseOp::prop, PROP_PATH_OUTPUT, PROP_PATH_SUPPORTS_TEMPLATES, 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_property_string_path_filter(), RNA_string_set(), RNA_struct_find_property(), RPT_ERROR, STR_ELEM, STRNCPY(), U, UI_context_active_but_prop_get_filebrowser(), UNLIKELY, USER_RELPATHS, WM_event_add_fileselect(), 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 184 of file buttons_ops.cc.
References wmOperator::customdata, ELEM, flag, FileBrowseOp::prop, PROP_DIRPATH, PROP_FILEPATH, PROP_PATH_SUPPORTS_BLEND_RELATIVE, RNA_property_flag(), and RNA_property_subtype().
Referenced by file_browse_exec(), and file_browse_poll_property().
|
static |
Definition at line 439 of file buttons_ops.cc.
References file_browse_operator_relative_paths_supported(), RNA_property_identifier(), and STREQ.
Referenced by BUTTONS_OT_directory_browse(), and BUTTONS_OT_file_browse().
|
static |
Definition at line 107 of file buttons_ops.cc.
References buttons_context_id_path(), C, CTX_wm_area(), CTX_wm_screen(), CTX_wm_space_properties(), ED_area_tag_redraw(), SpaceProperties::flag, bScreen::id, OPERATOR_FINISHED, RNA_id_pointer_create(), RNA_pointer_create_discrete(), RNA_pointer_set(), and SB_PIN_CONTEXT.
Referenced by BUTTONS_OT_toggle_pin().