36 if ((report->type & report_mask) && (report->flag &
SELECT)) {
44 if (report->type & report_mask) {
50 report->flag = ~SELECT;
99 sc->type = CONSOLE_TYPE_PYTHON;
101 for (report = reports->
list.
last; report; report = report->
prev) {
112 sc->type = CONSOLE_TYPE_REPORT;
122 ot->
name =
"Replay Operators";
124 ot->
idname =
"INFO_OT_report_replay";
177 ot->
name =
"Select Report";
192 ot->
srna,
"report_index", 0, 0, INT_MAX,
"Report",
"Index of the report", 0, INT_MAX);
214 ot->
name =
"(De)select All";
233 Report *report_min, *report_max;
242 if ((report->type & report_mask) == 0) {
245 report->flag &= ~SELECT;
253 if (report_min ==
nullptr) {
256 if (report->type & report_mask) {
263 if (report_max ==
nullptr) {
266 if (report->type & report_mask) {
273 if (report_min ==
nullptr || report_max ==
nullptr) {
277 for (
Report *report = report_min; (report != report_max->
next); report = report->
next) {
278 if ((report->type & report_mask) == 0) {
320 Report *report, *report_next;
323 report_next = report->
next;
331 report = report_next;
342 ot->
name =
"Delete Reports";
344 ot->
idname =
"INFO_OT_report_delete";
366 if ((report->type & report_mask) && (report->flag &
SELECT)) {
384 ot->
name =
"Copy Reports to Clipboard";
ReportList * CTX_wm_reports(const bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
SpaceInfo * CTX_wm_space_info(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
A dynamically sized string ADT.
char * BLI_dynstr_get_cstring(const DynStr *ds) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
DynStr * BLI_dynstr_new(void) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
void BLI_dynstr_free(DynStr *ds) ATTR_NONNULL()
void BLI_dynstr_append(DynStr *__restrict ds, const char *cstr) ATTR_NONNULL()
#define LISTBASE_FOREACH(type, var, list)
#define LISTBASE_FOREACH_BACKWARD(type, var, list)
void * BLI_findlink(const struct ListBase *listbase, int number) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
void BLI_remlink(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
int BLI_findindex(const struct ListBase *listbase, const void *vlink) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1)
#define SET_FLAG_FROM_TEST(value, test, flag)
void ED_area_tag_redraw(ScrArea *area)
bool ED_operator_info_active(bContext *C)
#define SEL_OP_USE_PRE_DESELECT(sel_op)
Read Guarded memory(de)allocation.
ConsoleLine * console_history_add_str(SpaceConsole *sc, char *str, bool own)
void * info_text_pick(const SpaceInfo *sinfo, const ARegion *region, const ReportList *reports, int mouse_y)
void INFO_OT_select_all(wmOperatorType *ot)
void INFO_OT_report_copy(wmOperatorType *ot)
void INFO_OT_select_pick(wmOperatorType *ot)
static int box_select_exec(bContext *C, wmOperator *op)
static int report_copy_exec(bContext *C, wmOperator *)
int info_report_mask(const SpaceInfo *)
void INFO_OT_report_replay(wmOperatorType *ot)
static int report_replay_exec(bContext *C, wmOperator *)
void INFO_OT_report_delete(wmOperatorType *ot)
static int report_select_all_exec(bContext *C, wmOperator *op)
static void reports_select_all(ReportList *reports, int report_mask, int action)
static int select_report_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
static int report_delete_exec(bContext *C, wmOperator *)
void INFO_OT_select_box(wmOperatorType *ot)
static int select_report_pick_exec(bContext *C, wmOperator *op)
void MEM_freeN(void *vmemh)
ccl_device_inline float4 select(const int4 mask, const float4 a, const float4 b)
void RNA_int_set(PointerRNA *ptr, const char *name, int value)
int RNA_int_get(PointerRNA *ptr, const char *name)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
int RNA_enum_get(PointerRNA *ptr, const char *name)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
PropertyRNA * RNA_def_int(StructOrFunctionRNA *cont_, const char *identifier, const int default_value, const int hardmin, const int hardmax, const char *ui_name, const char *ui_description, const int softmin, const int softmax)
bool(* poll)(bContext *C) ATTR_WARN_UNUSED_RESULT
int(* modal)(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
int(* invoke)(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
int(* exec)(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
void(* cancel)(bContext *C, wmOperator *op)
int WM_operator_name_call(bContext *C, const char *opstring, wmOperatorCallContext context, PointerRNA *properties, const wmEvent *event)
void WM_gesture_box_cancel(bContext *C, wmOperator *op)
int WM_gesture_box_invoke(bContext *C, wmOperator *op, const wmEvent *event)
int WM_gesture_box_modal(bContext *C, wmOperator *op, const wmEvent *event)
void WM_operator_properties_border_to_rcti(wmOperator *op, rcti *r_rect)
void WM_operator_properties_gesture_box(wmOperatorType *ot)
void WM_operator_properties_select_operation_simple(wmOperatorType *ot)
void WM_operator_properties_select_action(wmOperatorType *ot, int default_action, bool hide_gui)
void WM_clipboard_text_set(const char *buf, bool selection)