34 for (
Report *report = reports->
list.
last; report; report = report->prev) {
35 if ((report->type & report_mask) && (report->flag &
SELECT)) {
42 for (
Report *report = reports->
list.
last; report; report = report->prev) {
43 if (report->type & report_mask) {
98 sc->type = CONSOLE_TYPE_PYTHON;
100 for (report = reports->
list.
last; report; report = report->
prev) {
110 sc->type = CONSOLE_TYPE_REPORT;
120 ot->
name =
"Replay Operators";
122 ot->
idname =
"INFO_OT_report_replay";
175 ot->
name =
"Select Report";
190 ot->
srna,
"report_index", 0, 0, INT_MAX,
"Report",
"Index of the report", 0, INT_MAX);
212 ot->
name =
"(De)select All";
231 Report *report_min, *report_max;
240 if ((report->type & report_mask) == 0) {
251 if (report_min ==
NULL) {
254 if (report->type & report_mask) {
261 if (report_max ==
NULL) {
263 for (
Report *report = reports->
list.
last; report; report = report->prev) {
264 if (report->type & report_mask) {
271 if (report_min ==
NULL || report_max ==
NULL) {
275 for (
Report *report = report_min; (report != report_max->
next); report = report->
next) {
276 if ((report->type & report_mask) == 0) {
318 Report *report, *report_next;
320 for (report = reports->
list.
first; report;) {
322 report_next = report->
next;
330 report = report_next;
341 ot->
name =
"Delete Reports";
343 ot->
idname =
"INFO_OT_report_delete";
366 for (report = reports->
list.
first; report; report = report->
next) {
385 ot->
name =
"Copy Reports to Clipboard";
struct ScrArea * CTX_wm_area(const bContext *C)
struct SpaceInfo * CTX_wm_space_info(const bContext *C)
struct ReportList * CTX_wm_reports(const bContext *C)
struct ARegion * CTX_wm_region(const bContext *C)
A dynamically sized string ADT.
DynStr * BLI_dynstr_new(void) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
char * BLI_dynstr_get_cstring(const DynStr *ds) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
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)
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)
void * BLI_findlink(const struct ListBase *listbase, int number) 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(struct bContext *C)
#define SEL_OP_USE_PRE_DESELECT(sel_op)
Read Guarded memory(de)allocation.
__forceinline const avxb select(const avxb &m, const avxb &t, const avxb &f)
ConsoleLine * console_history_add_str(struct 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)
void INFO_OT_report_replay(wmOperatorType *ot)
void INFO_OT_report_delete(wmOperatorType *ot)
static int report_select_all_exec(bContext *C, wmOperator *op)
static int report_replay_exec(bContext *C, wmOperator *UNUSED(op))
int info_report_mask(const SpaceInfo *UNUSED(sinfo))
static void reports_select_all(ReportList *reports, int report_mask, int action)
static int report_copy_exec(bContext *C, wmOperator *UNUSED(op))
static int select_report_pick_invoke(bContext *C, wmOperator *op, const wmEvent *event)
void INFO_OT_select_box(wmOperatorType *ot)
static int select_report_pick_exec(bContext *C, wmOperator *op)
static int report_delete_exec(bContext *C, wmOperator *UNUSED(op))
void(* MEM_freeN)(void *vmemh)
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, 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, int default_value, int hardmin, int hardmax, const char *ui_name, const char *ui_description, int softmin, int softmax)
int(* invoke)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
int(* modal)(struct bContext *, struct wmOperator *, const struct wmEvent *) ATTR_WARN_UNUSED_RESULT
bool(* poll)(struct bContext *) ATTR_WARN_UNUSED_RESULT
void(* cancel)(struct bContext *, struct wmOperator *)
int(* exec)(struct bContext *, struct wmOperator *) ATTR_WARN_UNUSED_RESULT
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(struct wmOperator *op, rcti *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)