Blender V5.0
buttons_ops.cc File Reference
#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

Functions

Start / Clear Search Filter Operators
Note
Almost a duplicate of the file browser operator FILE_OT_start_filter.
static wmOperatorStatus buttons_start_filter_exec (bContext *C, wmOperator *)
void BUTTONS_OT_start_filter (wmOperatorType *ot)
static wmOperatorStatus buttons_clear_filter_exec (bContext *C, wmOperator *)
void BUTTONS_OT_clear_filter (wmOperatorType *ot)
Pin ID Operator
static wmOperatorStatus toggle_pin_exec (bContext *C, wmOperator *)
void BUTTONS_OT_toggle_pin (wmOperatorType *ot)
Context Menu Operator
static wmOperatorStatus context_menu_invoke (bContext *C, wmOperator *, const wmEvent *)
void BUTTONS_OT_context_menu (wmOperatorType *ot)
File Browse Operator
static bool file_browse_operator_relative_paths_supported (wmOperator *op)
static wmOperatorStatus file_browse_exec (bContext *C, wmOperator *op)
static void file_browse_cancel (bContext *, wmOperator *op)
static wmOperatorStatus file_browse_invoke (bContext *C, wmOperator *op, const wmEvent *event)
static bool file_browse_poll_property (const bContext *, wmOperator *op, const PropertyRNA *prop)
void BUTTONS_OT_file_browse (wmOperatorType *ot)
void BUTTONS_OT_directory_browse (wmOperatorType *ot)

Function Documentation

◆ buttons_clear_filter_exec()

◆ 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().

◆ BUTTONS_OT_context_menu()

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().

◆ BUTTONS_OT_directory_browse()

◆ BUTTONS_OT_file_browse()

◆ BUTTONS_OT_start_filter()

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().

◆ BUTTONS_OT_toggle_pin()

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().

◆ buttons_start_filter_exec()

◆ context_menu_invoke()

wmOperatorStatus context_menu_invoke ( bContext * C,
wmOperator * ,
const wmEvent *  )
static

◆ file_browse_cancel()

void file_browse_cancel ( bContext * ,
wmOperator * op )
static

Definition at line 278 of file buttons_ops.cc.

References wmOperator::customdata.

Referenced by BUTTONS_OT_directory_browse(), and BUTTONS_OT_file_browse().

◆ file_browse_exec()

◆ file_browse_invoke()

wmOperatorStatus file_browse_invoke ( bContext * C,
wmOperator * op,
const wmEvent * event )
static

◆ file_browse_operator_relative_paths_supported()

bool file_browse_operator_relative_paths_supported ( wmOperator * op)
static

◆ file_browse_poll_property()

bool file_browse_poll_property ( const bContext * ,
wmOperator * op,
const PropertyRNA * prop )
static

◆ toggle_pin_exec()