w 579 lib/strutil/strutilutf8.c int w = 0; w 586 lib/strutil/strutilutf8.c w = 1; w 588 lib/strutil/strutilutf8.c w++; w 589 lib/strutil/strutilutf8.c if (tool->ident + w > to_ident) w 600 lib/strutil/strutilutf8.c tool->ident += w; w 754 lib/util.c char *w; /* Current position where the stripped data is written */ w 760 lib/util.c for (w = s, r = s; *r != '\0';) w 822 lib/util.c memmove (w, r, n - r); w 823 lib/util.c w += n - r; w 829 lib/util.c *w = '\0'; w 54 lib/widget/background.c background_get_colors (const Widget *w) w 56 lib/widget/background.c return &(CONST_BACKGROUND (w)->color); w 64 lib/widget/background.c Widget *w = WIDGET (b); w 66 lib/widget/background.c w->rect = WIDGET (w->owner)->rect; w 67 lib/widget/background.c w->pos_flags |= WPOS_KEEP_ALL; w 75 lib/widget/background.c const Widget *w = CONST_WIDGET (b); w 78 lib/widget/background.c tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, b->pattern); w 86 lib/widget/background.c background_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 88 lib/widget/background.c WBackground *b = BACKGROUND (w); w 101 lib/widget/background.c return widget_default_callback (w, sender, msg, parm, data); w 113 lib/widget/background.c Widget *w; w 116 lib/widget/background.c w = WIDGET (b); w 117 lib/widget/background.c widget_init (w, &r, callback != NULL ? callback : background_callback, NULL); w 118 lib/widget/background.c w->get_colors = background_get_colors; w 32 lib/widget/background.h cb_ret_t background_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); w 62 lib/widget/button.c button_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 64 lib/widget/button.c WButton *b = BUTTON (w); w 65 lib/widget/button.c WGroup *g = w->owner; w 78 lib/widget/button.c if (parm == '\n' && WIDGET (g->current->data) == w) w 80 lib/widget/button.c send_message (w, sender, MSG_KEY, ' ', data); w 86 lib/widget/button.c send_message (w, sender, MSG_KEY, ' ', data); w 92 lib/widget/button.c send_message (w, sender, MSG_KEY, ' ', data); w 124 lib/widget/button.c widget_gotoyx (w, 0, b->hotpos + off); w 131 lib/widget/button.c focused = widget_get_state (w, WST_FOCUSED); w 133 lib/widget/button.c widget_selectcolor (w, focused, FALSE); w 134 lib/widget/button.c widget_gotoyx (w, 0, 0); w 152 lib/widget/button.c hotkey_draw (w, b->text, focused); w 177 lib/widget/button.c return widget_default_callback (w, sender, msg, parm, data); w 184 lib/widget/button.c button_mouse_default_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 191 lib/widget/button.c widget_select (w); w 195 lib/widget/button.c send_message (w, NULL, MSG_KEY, ' ', NULL); w 196 lib/widget/button.c send_message (w->owner, w, MSG_POST_KEY, ' ', NULL); w 211 lib/widget/button.c Widget *w; w 214 lib/widget/button.c w = WIDGET (b); w 220 lib/widget/button.c widget_init (w, &r, button_default_callback, button_mouse_default_callback); w 221 lib/widget/button.c w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR | WOP_WANT_HOTKEY; w 241 lib/widget/button.c Widget *w = WIDGET (b); w 254 lib/widget/button.c w->rect.cols = button_get_len (b); w 255 lib/widget/button.c widget_draw (w); w 52 lib/widget/button.h cb_ret_t button_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, w 54 lib/widget/button.h void button_mouse_default_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event); w 151 lib/widget/buttonbar.c Widget *w = WIDGET (bb); w 156 lib/widget/buttonbar.c target = (bb->labels[i].receiver != NULL) ? bb->labels[i].receiver : WIDGET (w->owner); w 157 lib/widget/buttonbar.c ret = send_message (target, w, MSG_ACTION, bb->labels[i].command, NULL); w 165 lib/widget/buttonbar.c buttonbar_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 167 lib/widget/buttonbar.c WButtonBar *bb = BUTTONBAR (w); w 179 lib/widget/buttonbar.c if (widget_get_state (w, WST_VISIBLE)) w 182 lib/widget/buttonbar.c widget_gotoyx (w, 0, 0); w 184 lib/widget/buttonbar.c tty_printf ("%-*s", w->rect.cols, ""); w 185 lib/widget/buttonbar.c widget_gotoyx (w, 0, 0); w 212 lib/widget/buttonbar.c return widget_default_callback (w, sender, msg, parm, data); w 219 lib/widget/buttonbar.c buttonbar_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 225 lib/widget/buttonbar.c WButtonBar *bb = BUTTONBAR (w); w 248 lib/widget/buttonbar.c Widget *w; w 251 lib/widget/buttonbar.c w = WIDGET (bb); w 252 lib/widget/buttonbar.c widget_init (w, &r, buttonbar_callback, buttonbar_mouse_callback); w 254 lib/widget/buttonbar.c w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_BOTTOM; w 255 lib/widget/buttonbar.c w->options |= WOP_WANT_HOTKEY; w 59 lib/widget/check.c check_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 61 lib/widget/check.c WCheck *c = CHECK (w); w 71 lib/widget/check.c send_message (w, sender, MSG_KEY, ' ', data); w 81 lib/widget/check.c widget_draw (w); w 82 lib/widget/check.c send_message (w->owner, w, MSG_NOTIFY, 0, NULL); w 86 lib/widget/check.c widget_gotoyx (w, 0, 1); w 93 lib/widget/check.c focused = widget_get_state (w, WST_FOCUSED); w 94 lib/widget/check.c widget_selectcolor (w, focused, FALSE); w 95 lib/widget/check.c widget_gotoyx (w, 0, 0); w 97 lib/widget/check.c hotkey_draw (w, c->text, focused); w 106 lib/widget/check.c return widget_default_callback (w, sender, msg, parm, data); w 113 lib/widget/check.c check_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 120 lib/widget/check.c widget_select (w); w 124 lib/widget/check.c send_message (w, NULL, MSG_KEY, ' ', NULL); w 125 lib/widget/check.c send_message (w->owner, w, MSG_POST_KEY, ' ', NULL); w 142 lib/widget/check.c Widget *w; w 145 lib/widget/check.c w = WIDGET (c); w 149 lib/widget/check.c widget_init (w, &r, check_callback, check_mouse_callback); w 150 lib/widget/check.c w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR | WOP_WANT_HOTKEY; w 161 lib/widget/check.c Widget *w = WIDGET (check); w 175 lib/widget/check.c w->rect.cols = 3; /* "[ ]" */ w 177 lib/widget/check.c w->rect.cols = 4 + hotkey_width (check->text); /* "[ ] text" */ w 179 lib/widget/check.c widget_draw (w); w 79 lib/widget/dialog.c dlg_default_get_colors (const Widget *w) w 81 lib/widget/dialog.c return CONST_DIALOG (w)->colors; w 223 lib/widget/dialog.c Widget *w = WIDGET (h); w 234 lib/widget/dialog.c if (!widget_get_options (w, WOP_WANT_TAB)) w 252 lib/widget/dialog.c handled = group_default_callback (w, NULL, MSG_KEY, d_key, NULL); w 264 lib/widget/dialog.c dlg_handle_mouse_event (Widget *w, Gpm_Event *event) w 266 lib/widget/dialog.c if (w->mouse_callback != NULL) w 270 lib/widget/dialog.c mou = mouse_handle_event (w, event); w 275 lib/widget/dialog.c return group_handle_mouse_event (w, event); w 331 lib/widget/dialog.c dlg_default_destroy (Widget *w) w 333 lib/widget/dialog.c WDialog *h = DIALOG (w); w 337 lib/widget/dialog.c group_default_callback (w, NULL, MSG_DESTROY, 0, NULL); w 338 lib/widget/dialog.c send_message (w, NULL, MSG_DESTROY, 0, NULL); w 352 lib/widget/dialog.c dlg_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 362 lib/widget/dialog.c widget_idle (w, FALSE); w 370 lib/widget/dialog.c return group_default_callback (w, sender, msg, parm, data); w 377 lib/widget/dialog.c dlg_default_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 382 lib/widget/dialog.c if (event->y < 0 || event->y >= w->rect.lines || event->x < 0 || event->x >= w->rect.cols) w 384 lib/widget/dialog.c DIALOG (w)->ret_value = B_CANCEL; w 385 lib/widget/dialog.c dlg_close (DIALOG (w)); w 405 lib/widget/dialog.c Widget *w; w 409 lib/widget/dialog.c w = WIDGET (new_d); w 415 lib/widget/dialog.c w->pos_flags = pos_flags; w 416 lib/widget/dialog.c w->options |= WOP_SELECTABLE | WOP_TOP_SELECT; w 417 lib/widget/dialog.c w->state |= WST_FOCUSED; w 419 lib/widget/dialog.c w->owner = g; w 421 lib/widget/dialog.c w->keymap = dialog_map; w 423 lib/widget/dialog.c w->mouse_handler = dlg_handle_mouse_event; w 424 lib/widget/dialog.c w->mouse.forced_capture = mouse_close_dialog && (w->pos_flags & WPOS_FULLSCREEN) == 0; w 426 lib/widget/dialog.c w->destroy = dlg_default_destroy; w 427 lib/widget/dialog.c w->get_colors = dlg_default_get_colors; w 436 lib/widget/dialog.c w->state |= WST_MODAL; w 439 lib/widget/dialog.c WIDGET (frame_new (0, 0, w->rect.lines, w->rect.cols, title, FALSE, new_d->compact)); w 532 lib/widget/dialog.c Widget *w = WIDGET (h); w 534 lib/widget/dialog.c GROUP (h)->mouse_status = w->mouse_handler (w, event); w 120 lib/widget/dialog.h cb_ret_t dlg_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); w 121 lib/widget/dialog.h void dlg_default_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event); w 59 lib/widget/frame.c Widget *w = WIDGET (f); w 61 lib/widget/frame.c w->rect = WIDGET (w->owner)->rect; w 62 lib/widget/frame.c w->pos_flags |= WPOS_KEEP_ALL; w 71 lib/widget/frame.c const WRect *w = &wf->rect; w 78 lib/widget/frame.c tty_draw_box_shadow (w->y, w->x, w->lines, w->cols, SHADOW_COLOR); w 81 lib/widget/frame.c tty_fill_region (w->y, w->x, w->lines, w->cols, ' '); w 82 lib/widget/frame.c tty_draw_box (w->y + d, w->x + d, w->lines - 2 * d, w->cols - 2 * d, f->single); w 88 lib/widget/frame.c widget_gotoyx (f, d, (w->cols - str_term_width1 (f->title)) / 2); w 102 lib/widget/frame.c Widget *w; w 105 lib/widget/frame.c w = WIDGET (f); w 106 lib/widget/frame.c widget_init (w, &r, frame_callback, NULL); w 120 lib/widget/frame.c frame_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 122 lib/widget/frame.c WFrame *f = FRAME (w); w 139 lib/widget/frame.c return widget_default_callback (w, sender, msg, parm, data); w 38 lib/widget/frame.h cb_ret_t frame_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); w 62 lib/widget/gauge.c gauge_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 64 lib/widget/gauge.c WGauge *g = GAUGE (w); w 70 lib/widget/gauge.c colors = widget_get_colors (w); w 71 lib/widget/gauge.c widget_gotoyx (w, 0, 0); w 75 lib/widget/gauge.c tty_printf ("%*s", w->rect.cols, ""); w 97 lib/widget/gauge.c gauge_len = w->rect.cols - 7; /* 7 positions for percentage */ w 122 lib/widget/gauge.c return widget_default_callback (w, sender, msg, parm, data); w 135 lib/widget/gauge.c Widget *w; w 138 lib/widget/gauge.c w = WIDGET (g); w 139 lib/widget/gauge.c widget_init (w, &r, gauge_callback, NULL); w 167 lib/widget/group.c Widget *w = WIDGET (p->data); w 171 lib/widget/group.c if (options == WOP_DEFAULT || (options & w->options) != 0) w 173 lib/widget/group.c if (msg != MSG_DRAW || widget_get_state (w, WST_VISIBLE)) w 174 lib/widget/group.c send_message (w, NULL, msg, 0, NULL); w 189 lib/widget/group.c group_default_make_global (Widget *w, const WRect *delta) w 196 lib/widget/group.c widget_default_make_global (w, delta); w 198 lib/widget/group.c for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) w 201 lib/widget/group.c else if (w->owner != NULL) w 203 lib/widget/group.c WRect r = WIDGET (w->owner)->rect; w 208 lib/widget/group.c widget_default_make_global (w, &r); w 210 lib/widget/group.c for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) w 225 lib/widget/group.c group_default_make_local (Widget *w, const WRect *delta) w 232 lib/widget/group.c widget_default_make_local (w, delta); w 234 lib/widget/group.c for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) w 237 lib/widget/group.c else if (w->owner != NULL) w 239 lib/widget/group.c WRect r = WIDGET (w->owner)->rect; w 244 lib/widget/group.c widget_default_make_local (w, &r); w 246 lib/widget/group.c for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) w 263 lib/widget/group.c group_default_find (const Widget *w, const Widget *what) w 267 lib/widget/group.c w0 = widget_default_find (w, what); w 272 lib/widget/group.c for (iter = CONST_GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) w 295 lib/widget/group.c group_default_find_by_type (const Widget *w, widget_cb_fn cb) w 299 lib/widget/group.c w0 = widget_default_find_by_type (w, cb); w 304 lib/widget/group.c for (iter = CONST_GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) w 327 lib/widget/group.c group_default_find_by_id (const Widget *w, unsigned long id) w 331 lib/widget/group.c w0 = widget_default_find_by_id (w, id); w 336 lib/widget/group.c for (iter = CONST_GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) w 364 lib/widget/group.c Widget *w = WIDGET (p->data); w 369 lib/widget/group.c if (widget_get_options (w, WOP_WANT_CURSOR) && widget_get_state (w, WST_VISIBLE) w 370 lib/widget/group.c && !widget_get_state (w, WST_DISABLED) && widget_update_cursor (WIDGET (p->data))) w 427 lib/widget/group.c WRect *w = &WIDGET (g)->rect; w 430 lib/widget/group.c WRect or = *w; w 432 lib/widget/group.c *w = *r; w 442 lib/widget/group.c wss.shift_x = w->x - or.x; w 443 lib/widget/group.c wss.scale_x = w->cols - or.cols; w 444 lib/widget/group.c wss.shift_y = w->y - or.y; w 445 lib/widget/group.c wss.scale_y = w->lines - or.lines; w 462 lib/widget/group.c Widget *w = WIDGET (g); w 465 lib/widget/group.c r0 = r != NULL ? *r : w->rect; w 466 lib/widget/group.c widget_adjust_position (w->pos_flags, &r0); w 522 lib/widget/group.c Widget *w; w 532 lib/widget/group.c w = WIDGET (g->current->data); w 534 lib/widget/group.c if (!widget_get_state (w, WST_VISIBLE) || widget_get_state (w, WST_DISABLED)) w 539 lib/widget/group.c if (widget_get_options (w, WOP_IS_INPUT)) w 551 lib/widget/group.c if (widget_get_options (w, WOP_WANT_HOTKEY)) w 552 lib/widget/group.c handled = send_message (w, NULL, MSG_HOTKEY, key, NULL); w 563 lib/widget/group.c w = WIDGET (current->data); w 565 lib/widget/group.c if (widget_get_options (w, WOP_WANT_HOTKEY) && !widget_get_state (w, WST_DISABLED)) w 566 lib/widget/group.c handled = send_message (w, NULL, MSG_HOTKEY, key, NULL); w 574 lib/widget/group.c w = WIDGET (current->data); w 575 lib/widget/group.c widget_select (w); w 576 lib/widget/group.c send_message (g, w, MSG_HOTKEY_HANDLED, 0, NULL); w 601 lib/widget/group.c Widget *w = WIDGET (g); w 603 lib/widget/group.c widget_init (w, r, callback != NULL ? callback : group_default_callback, mouse_callback); w 605 lib/widget/group.c w->mouse_handler = group_handle_mouse_event; w 607 lib/widget/group.c w->make_global = group_default_make_global; w 608 lib/widget/group.c w->make_local = group_default_make_local; w 610 lib/widget/group.c w->find = group_default_find; w 611 lib/widget/group.c w->find_by_type = group_default_find_by_type; w 612 lib/widget/group.c w->find_by_id = group_default_find_by_id; w 614 lib/widget/group.c w->set_state = group_default_set_state; w 622 lib/widget/group.c group_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 624 lib/widget/group.c WGroup *g = GROUP (w); w 656 lib/widget/group.c return widget_default_callback (w, sender, msg, parm, data); w 672 lib/widget/group.c group_default_set_state (Widget *w, widget_state_t state, gboolean enable) w 675 lib/widget/group.c WGroup *g = GROUP (w); w 681 lib/widget/group.c ret = widget_default_set_state (w, state, enable); w 687 lib/widget/group.c if ((w->state & WST_ACTIVE) != 0) w 689 lib/widget/group.c if ((w->state & WST_FOCUSED) != 0) w 714 lib/widget/group.c group_handle_mouse_event (Widget *w, Gpm_Event *event) w 716 lib/widget/group.c WGroup *g = GROUP (w); w 731 lib/widget/group.c if (widget_get_state (w, WST_VISIBLE) && !widget_get_state (wp, WST_DISABLED)) w 764 lib/widget/group.c group_add_widget_autopos (WGroup *g, void *w, widget_pos_flags_t pos_flags, const void *before) w 767 lib/widget/group.c Widget *ww = WIDGET (w); w 825 lib/widget/group.c group_remove_widget (void *w) w 827 lib/widget/group.c Widget *ww = WIDGET (w); w 832 lib/widget/group.c assert (w != NULL); w 892 lib/widget/group.c group_get_widget_next_of (GList *w) w 894 lib/widget/group.c return group_get_next_or_prev_of (w, TRUE); w 907 lib/widget/group.c group_get_widget_prev_of (GList *w) w 909 lib/widget/group.c return group_get_next_or_prev_of (w, FALSE); w 949 lib/widget/group.c Widget *w; w 951 lib/widget/group.c w = widget_find_by_id (CONST_WIDGET (g), id); w 952 lib/widget/group.c if (w != NULL) w 953 lib/widget/group.c widget_select (w); w 44 lib/widget/group.h cb_ret_t group_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, w 46 lib/widget/group.h cb_ret_t group_default_set_state (Widget * w, widget_state_t state, gboolean enable); w 47 lib/widget/group.h int group_handle_mouse_event (Widget * w, Gpm_Event * event); w 49 lib/widget/group.h unsigned long group_add_widget_autopos (WGroup * g, void *w, widget_pos_flags_t pos_flags, w 51 lib/widget/group.h void group_remove_widget (void *w); w 56 lib/widget/group.h GList *group_get_widget_next_of (GList * w); w 57 lib/widget/group.h GList *group_get_widget_prev_of (GList * w); w 80 lib/widget/group.h group_add_widget (WGroup *g, void *w) w 82 lib/widget/group.h return group_add_widget_autopos (g, w, WPOS_KEEP_DEFAULT, w 98 lib/widget/group.h group_add_widget_before (WGroup *g, void *w, void *before) w 100 lib/widget/group.h return group_add_widget_autopos (g, w, WPOS_KEEP_DEFAULT, before); w 60 lib/widget/groupbox.c groupbox_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 62 lib/widget/groupbox.c WGroupbox *g = GROUPBOX (w); w 71 lib/widget/groupbox.c colors = widget_get_colors (w); w 73 lib/widget/groupbox.c disabled = widget_get_state (w, WST_DISABLED); w 75 lib/widget/groupbox.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, TRUE); w 80 lib/widget/groupbox.c widget_gotoyx (w, 0, 1); w 91 lib/widget/groupbox.c return widget_default_callback (w, sender, msg, parm, data); w 104 lib/widget/groupbox.c Widget *w; w 107 lib/widget/groupbox.c w = WIDGET (g); w 108 lib/widget/groupbox.c widget_init (w, &r, groupbox_callback, NULL); w 118 lib/widget/history.c history_dlg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 123 lib/widget/history.c return history_dlg_reposition (DIALOG (w)); w 128 lib/widget/history.c WDialog *d = DIALOG (w); w 150 lib/widget/history.c return dlg_default_callback (w, sender, msg, parm, data); w 68 lib/widget/hline.c WRect *w = &wl->rect; w 73 lib/widget/hline.c w->x = wo->x; w 74 lib/widget/hline.c w->cols = wo->cols; w 78 lib/widget/hline.c w->x = wo->x + 1; w 79 lib/widget/hline.c w->cols = wo->cols - 2; w 87 lib/widget/hline.c hline_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 89 lib/widget/hline.c WHLine *l = HLINE (w); w 99 lib/widget/hline.c w->rect.y = RECT (data)->y; w 109 lib/widget/hline.c colors = widget_get_colors (w); w 113 lib/widget/hline.c tty_draw_hline (w->rect.y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); w 117 lib/widget/hline.c widget_gotoyx (w, 0, 0); w 119 lib/widget/hline.c widget_gotoyx (w, 0, w->rect.cols - 1); w 128 lib/widget/hline.c widget_gotoyx (w, 0, (w->rect.cols - text_width) / 2); w 138 lib/widget/hline.c return widget_default_callback (w, sender, msg, parm, data); w 151 lib/widget/hline.c Widget *w; w 154 lib/widget/hline.c w = WIDGET (l); w 156 lib/widget/hline.c widget_init (w, &r, hline_callback, NULL); w 898 lib/widget/input.c input_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 902 lib/widget/input.c WInput *in = INPUT (w); w 907 lib/widget/input.c widget_select (w); w 909 lib/widget/input.c if (event->x >= w->rect.cols - HISTORY_BUTTON_WIDTH && should_show_history_button (in)) w 957 lib/widget/input.c Widget *w; w 960 lib/widget/input.c w = WIDGET (in); w 961 lib/widget/input.c widget_init (w, &r, input_callback, input_mouse_callback); w 962 lib/widget/input.c w->options |= WOP_SELECTABLE | WOP_IS_INPUT | WOP_WANT_CURSOR; w 963 lib/widget/input.c w->keymap = input_map; w 1004 lib/widget/input.c input_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 1006 lib/widget/input.c WInput *in = INPUT (w); w 1007 lib/widget/input.c WDialog *h = DIALOG (w->owner); w 1014 lib/widget/input.c mc_event_add (h->event_group, MCEVENT_HISTORY_LOAD, input_load_history, w, NULL); w 1016 lib/widget/input.c mc_event_add (h->event_group, MCEVENT_HISTORY_SAVE, input_save_history, w, NULL); w 1018 lib/widget/input.c widget_set_state (WIDGET (in->label), WST_DISABLED, widget_get_state (w, WST_DISABLED)); w 1065 lib/widget/input.c mc_event_del (h->event_group, MCEVENT_HISTORY_LOAD, input_load_history, w); w 1067 lib/widget/input.c mc_event_del (h->event_group, MCEVENT_HISTORY_SAVE, input_save_history, w); w 1072 lib/widget/input.c return widget_default_callback (w, sender, msg, parm, data); w 1186 lib/widget/input.c const WRect *w = &wi->rect; w 1213 lib/widget/input.c if ((pw < in->term_first_shown) || (pw >= in->term_first_shown + w->cols - has_history)) w 1215 lib/widget/input.c in->term_first_shown = pw - (w->cols / 3); w 1236 lib/widget/input.c w->cols - has_history)); w 1245 lib/widget/input.c w->cols - has_history); w 1261 lib/widget/input.c (w->cols - has_history) - (buf_width - in->term_first_shown)); w 1272 lib/widget/input.c cp = str_term_substring (in->buffer->str, in->term_first_shown, w->cols - has_history); w 1274 lib/widget/input.c for (i = 0; i < w->cols - has_history; i++) w 90 lib/widget/input.h cb_ret_t input_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); w 989 lib/widget/input_complete.c complete_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 993 lib/widget/input_complete.c WGroup *g = GROUP (w); w 994 lib/widget/input_complete.c WDialog *h = DIALOG (w); w 1161 lib/widget/input_complete.c return dlg_default_callback (w, sender, msg, parm, data); w 1199 lib/widget/input_complete.c int x, y, w, h; w 1231 lib/widget/input_complete.c w = maxlen + 4; w 1232 lib/widget/input_complete.c if (x + w > COLS) w 1233 lib/widget/input_complete.c x = COLS - w; w 1236 lib/widget/input_complete.c if (x + w > COLS) w 1237 lib/widget/input_complete.c w = COLS; w 1243 lib/widget/input_complete.c dlg_create (TRUE, y, x, h, w, WPOS_KEEP_DEFAULT, TRUE, w 1245 lib/widget/input_complete.c complete_list = listbox_new (1, 1, h - 2, w - 2, FALSE, NULL); w 64 lib/widget/label.c label_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 66 lib/widget/label.c WLabel *l = LABEL (w); w 80 lib/widget/label.c disabled = widget_get_state (w, WST_DISABLED); w 88 lib/widget/label.c colors = widget_get_colors (w); w 92 lib/widget/label.c align = (w->pos_flags & WPOS_CENTER_HORZ) != 0 ? J_CENTER_LEFT : J_LEFT; w 107 lib/widget/label.c widget_gotoyx (w, y, 0); w 108 lib/widget/label.c tty_print_string (str_fit_to_term (p, w->rect.cols, align)); w 125 lib/widget/label.c return widget_default_callback (w, sender, msg, parm, data); w 138 lib/widget/label.c Widget *w; w 144 lib/widget/label.c w = WIDGET (l); w 145 lib/widget/label.c widget_init (w, &r, label_callback, NULL); w 159 lib/widget/label.c Widget *w = WIDGET (label); w 160 lib/widget/label.c int newcols = w->rect.cols; w 176 lib/widget/label.c w->rect.cols = MAX (newcols, w->rect.cols); w 177 lib/widget/label.c w->rect.lines = MAX (newlines, w->rect.lines); w 181 lib/widget/label.c widget_draw (w); w 183 lib/widget/label.c w->rect.cols = MIN (newcols, w->rect.cols); w 95 lib/widget/listbox.c const WRect *w = &CONST_WIDGET (l)->rect; w 96 lib/widget/listbox.c int max_line = w->lines - 1; w 102 lib/widget/listbox.c widget_gotoyx (l, 0, w->cols); w 111 lib/widget/listbox.c widget_gotoyx (w, max_line, w->cols); w 112 lib/widget/listbox.c if (l->top + w->lines == length || w->lines >= length) w 119 lib/widget/listbox.c line = 1 + ((l->current * (w->lines - 2)) / length); w 123 lib/widget/listbox.c widget_gotoyx (l, i, w->cols); w 137 lib/widget/listbox.c const WRect *w = &CONST_WIDGET (l)->rect; w 162 lib/widget/listbox.c for (i = 0; i < w->lines; i++) w 186 lib/widget/listbox.c tty_print_string (str_fit_to_term (text, w->cols - 2, J_LEFT_FIT)); w 191 lib/widget/listbox.c if (l->scrollbar && length > w->lines) w 279 lib/widget/listbox.c const WRect *w = &CONST_WIDGET (l)->rect; w 299 lib/widget/listbox.c listbox_back_n (l, w->lines - 1); w 302 lib/widget/listbox.c listbox_fwd_n (l, w->lines - 1); w 313 lib/widget/listbox.c is_more = (l->top + w->lines >= length); w 454 lib/widget/listbox.c listbox_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 456 lib/widget/listbox.c WListbox *l = LISTBOX (w); w 491 lib/widget/listbox.c listbox_draw (l, widget_get_state (w, WST_FOCUSED)); w 499 lib/widget/listbox.c return widget_default_callback (w, sender, msg, parm, data); w 506 lib/widget/listbox.c listbox_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 508 lib/widget/listbox.c WListbox *l = LISTBOX (w); w 516 lib/widget/listbox.c widget_select (w); w 557 lib/widget/listbox.c Widget *w; w 560 lib/widget/listbox.c w = WIDGET (l); w 562 lib/widget/listbox.c widget_init (w, &r, listbox_callback, listbox_mouse_callback); w 563 lib/widget/listbox.c w->options |= WOP_SELECTABLE | WOP_WANT_HOTKEY; w 564 lib/widget/listbox.c w->keymap = listbox_map; w 126 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; w 132 lib/widget/menu.c if (x + menu->max_entry_len + 4 > (gsize) w->cols) w 133 lib/widget/menu.c x = w->cols - menu->max_entry_len - 4; w 142 lib/widget/menu.c tty_draw_hline (w->y + y, w->x + x, ACS_HLINE, menu->max_entry_len + 3); w 184 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; w 190 lib/widget/menu.c if (column + menu->max_entry_len + 5 > (gsize) w->cols) w 191 lib/widget/menu.c column = w->cols - menu->max_entry_len - 5; w 194 lib/widget/menu.c tty_draw_box_shadow (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, w 198 lib/widget/menu.c tty_draw_box (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE); w 222 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; w 228 lib/widget/menu.c tty_draw_hline (w->y, w->x, ' ', w->cols); w 315 lib/widget/menu.c Widget *w = WIDGET (menubar); w 318 lib/widget/menu.c w->rect.lines = 1; w 319 lib/widget/menu.c widget_want_hotkey (w, FALSE); w 320 lib/widget/menu.c widget_set_options (w, WOP_SELECTABLE, FALSE); w 323 lib/widget/menu.c widget_hide (w); w 328 lib/widget/menu.c widget_set_bottom (w); w 332 lib/widget/menu.c if (DIALOG (w->owner)->bg != NULL) w 333 lib/widget/menu.c widget_set_bottom (WIDGET (DIALOG (w->owner)->bg)); w 335 lib/widget/menu.c group_select_widget_by_id (w->owner, menubar->previous_widget); w 359 lib/widget/menu.c Widget *w = WIDGET (menubar); w 363 lib/widget/menu.c send_message (w->owner, w, MSG_ACTION, entry->command, NULL); w 632 lib/widget/menu.c Widget *w = WIDGET (menubar); w 634 lib/widget/menu.c if (!widget_get_state (w, WST_FOCUSED)) w 638 lib/widget/menu.c w->rect.lines = LINES; w 641 lib/widget/menu.c widget_want_hotkey (w, TRUE); w 656 lib/widget/menu.c menubar_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 658 lib/widget/menu.c WMenuBar *menubar = MENUBAR (w); w 672 lib/widget/menu.c return widget_get_state (w, WST_FOCUSED) ? MSG_NOT_HANDLED : MSG_HANDLED; w 677 lib/widget/menu.c if (widget_get_state (w, WST_FOCUSED)) w 689 lib/widget/menu.c if (widget_get_state (w, WST_VISIBLE) || menubar_refresh (menubar)) w 695 lib/widget/menu.c widget_default_callback (w, NULL, MSG_RESIZE, 0, data); w 704 lib/widget/menu.c return widget_default_callback (w, sender, msg, parm, data); w 732 lib/widget/menu.c const WRect *w = &CONST_WIDGET (menubar)->rect; w 742 lib/widget/menu.c if (right_x > w->cols) w 744 lib/widget/menu.c left_x = w->cols - (menu->max_entry_len + 3); w 745 lib/widget/menu.c right_x = w->cols; w 776 lib/widget/menu.c menubar_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 780 lib/widget/menu.c WMenuBar *menubar = MENUBAR (w); w 819 lib/widget/menu.c w->mouse.capture = FALSE; w 860 lib/widget/menu.c if (widget_get_state (w, WST_FOCUSED)) w 964 lib/widget/menu.c Widget *w; w 967 lib/widget/menu.c w = WIDGET (menubar); w 968 lib/widget/menu.c widget_init (w, &r, menubar_callback, menubar_mouse_callback); w 969 lib/widget/menu.c w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_TOP; w 970 lib/widget/menu.c w->options |= WOP_TOP_SELECT; w 971 lib/widget/menu.c w->keymap = menu_map; w 1079 lib/widget/menu.c Widget *w = WIDGET (menubar); w 1081 lib/widget/menu.c widget_show (w); w 1083 lib/widget/menu.c if (!widget_get_state (w, WST_FOCUSED)) w 1085 lib/widget/menu.c widget_set_options (w, WOP_SELECTABLE, TRUE); w 1091 lib/widget/menu.c menubar->previous_widget = group_get_current_widget_id (w->owner); w 1095 lib/widget/menu.c widget_select (w); w 63 lib/widget/mouse.c const Widget *w) w 66 lib/widget/mouse.c event->x = global_gpm->x - w->rect.x - 1; /* '-1' because Gpm_Event is 1-based. */ w 67 lib/widget/mouse.c event->y = global_gpm->y - w->rect.y - 1; w 85 lib/widget/mouse.c mouse_translate_event (Widget *w, Gpm_Event *event) w 97 lib/widget/mouse.c in_widget = w->mouse.forced_capture || mouse_global_in_widget (event, w); w 115 lib/widget/mouse.c w->mouse.capture = TRUE; w 118 lib/widget/mouse.c w->mouse.last_buttons_down = event->buttons; w 127 lib/widget/mouse.c if (w->mouse.capture) w 129 lib/widget/mouse.c w->mouse.capture = FALSE; w 141 lib/widget/mouse.c event->buttons = w->mouse.last_buttons_down; w 146 lib/widget/mouse.c if (w->mouse.capture) w 155 lib/widget/mouse.c init_mouse_event (&local, msg, event, w); w 176 lib/widget/mouse.c mouse_process_event (Widget *w, mouse_event_t *event) w 182 lib/widget/mouse.c w->mouse_callback (w, event->msg, event); w 187 lib/widget/mouse.c w->mouse.capture = FALSE; w 191 lib/widget/mouse.c if (event->msg == MSG_MOUSE_UP && w->mouse.last_msg == MSG_MOUSE_DOWN) w 192 lib/widget/mouse.c w->mouse_callback (w, MSG_MOUSE_CLICK, event); w 195 lib/widget/mouse.c w->mouse.last_msg = event->msg; w 218 lib/widget/mouse.c mouse_handle_event (Widget *w, Gpm_Event *event) w 222 lib/widget/mouse.c me = mouse_translate_event (w, event); w 224 lib/widget/mouse.c return mouse_process_event (w, &me); w 61 lib/widget/mouse.h int mouse_handle_event (Widget * w, Gpm_Event * event); w 312 lib/widget/quick.c Widget *w = WIDGET (g); w 315 lib/widget/quick.c w->rect.lines = y + 1 - w->rect.y; w 64 lib/widget/radio.c Widget *w = WIDGET (r); w 77 lib/widget/radio.c widget_draw (w); w 89 lib/widget/radio.c widget_draw (w); w 94 lib/widget/radio.c widget_set_state (w, WST_FOCUSED, TRUE); /* Also draws the widget */ w 95 lib/widget/radio.c send_message (w->owner, w, MSG_NOTIFY, 0, NULL); w 123 lib/widget/radio.c radio_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 125 lib/widget/radio.c WRadio *r = RADIO (w); w 143 lib/widget/radio.c send_message (w, sender, MSG_ACTION, CK_Select, data); w 163 lib/widget/radio.c focused = widget_get_state (w, WST_FOCUSED); w 167 lib/widget/radio.c widget_selectcolor (w, i == r->pos && focused, FALSE); w 168 lib/widget/radio.c widget_gotoyx (w, i, 0); w 169 lib/widget/radio.c tty_draw_hline (w->rect.y + i, w->rect.x, ' ', w->rect.cols); w 171 lib/widget/radio.c hotkey_draw (w, r->texts[i], i == r->pos && focused); w 184 lib/widget/radio.c return widget_default_callback (w, sender, msg, parm, data); w 191 lib/widget/radio.c radio_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 196 lib/widget/radio.c RADIO (w)->pos = event->y; w 197 lib/widget/radio.c widget_select (w); w 201 lib/widget/radio.c RADIO (w)->pos = event->y; w 202 lib/widget/radio.c send_message (w, NULL, MSG_ACTION, CK_Select, NULL); w 203 lib/widget/radio.c send_message (w->owner, w, MSG_POST_KEY, ' ', NULL); w 220 lib/widget/radio.c Widget *w; w 224 lib/widget/radio.c w = WIDGET (r); w 240 lib/widget/radio.c widget_init (w, &r0, radio_callback, radio_mouse_callback); w 241 lib/widget/radio.c w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR | WOP_WANT_HOTKEY; w 242 lib/widget/radio.c w->keymap = radio_map; w 85 lib/widget/widget-common.c widget_default_resize (Widget *w, const WRect *r) w 90 lib/widget/widget-common.c w->rect = *r; w 98 lib/widget/widget-common.c widget_do_focus (Widget *w, gboolean enable) w 100 lib/widget/widget-common.c if (w != NULL && widget_get_state (WIDGET (w->owner), WST_VISIBLE | WST_FOCUSED)) w 101 lib/widget/widget-common.c widget_set_state (w, WST_FOCUSED, enable); w 112 lib/widget/widget-common.c widget_focus (Widget *w) w 114 lib/widget/widget-common.c WGroup *g = w->owner; w 119 lib/widget/widget-common.c if (WIDGET (g->current->data) != w) w 125 lib/widget/widget-common.c widget_do_focus (w, TRUE); w 126 lib/widget/widget-common.c g->current = widget_find (WIDGET (g), w); w 129 lib/widget/widget-common.c else if (!widget_get_state (w, WST_FOCUSED)) w 130 lib/widget/widget-common.c widget_do_focus (w, TRUE); w 172 lib/widget/widget-common.c widget_default_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 175 lib/widget/widget-common.c (void) w; w 183 lib/widget/widget-common.c widget_default_get_colors (const Widget *w) w 185 lib/widget/widget-common.c const Widget *owner = CONST_WIDGET (w->owner); w 265 lib/widget/widget-common.c hotkey_draw (const Widget *w, const hotkey_t hotkey, gboolean focused) w 269 lib/widget/widget-common.c widget_selectcolor (w, focused, FALSE); w 275 lib/widget/widget-common.c widget_selectcolor (w, focused, TRUE); w 281 lib/widget/widget-common.c widget_selectcolor (w, focused, FALSE); w 310 lib/widget/widget-common.c widget_init (Widget *w, const WRect *r, widget_cb_fn callback, widget_mouse_cb_fn mouse_callback) w 312 lib/widget/widget-common.c w->id = widget_set_id (); w 313 lib/widget/widget-common.c w->rect = *r; w 314 lib/widget/widget-common.c w->pos_flags = WPOS_KEEP_DEFAULT; w 315 lib/widget/widget-common.c w->callback = callback; w 317 lib/widget/widget-common.c w->keymap = NULL; w 318 lib/widget/widget-common.c w->ext_keymap = NULL; w 319 lib/widget/widget-common.c w->ext_mode = FALSE; w 321 lib/widget/widget-common.c w->mouse_callback = mouse_callback != NULL ? mouse_callback : widget_default_mouse_callback; w 322 lib/widget/widget-common.c w->owner = NULL; w 323 lib/widget/widget-common.c w->mouse_handler = mouse_handle_event; w 324 lib/widget/widget-common.c w->mouse.forced_capture = FALSE; w 325 lib/widget/widget-common.c w->mouse.capture = FALSE; w 326 lib/widget/widget-common.c w->mouse.last_msg = MSG_MOUSE_NONE; w 327 lib/widget/widget-common.c w->mouse.last_buttons_down = 0; w 329 lib/widget/widget-common.c w->options = WOP_DEFAULT; w 330 lib/widget/widget-common.c w->state = WST_CONSTRUCT | WST_VISIBLE; w 332 lib/widget/widget-common.c w->make_global = widget_default_make_global; w 333 lib/widget/widget-common.c w->make_local = widget_default_make_local; w 335 lib/widget/widget-common.c w->find = widget_default_find; w 336 lib/widget/widget-common.c w->find_by_type = widget_default_find_by_type; w 337 lib/widget/widget-common.c w->find_by_id = widget_default_find_by_id; w 339 lib/widget/widget-common.c w->set_state = widget_default_set_state; w 340 lib/widget/widget-common.c w->destroy = widget_default_destroy; w 341 lib/widget/widget-common.c w->get_colors = widget_default_get_colors; w 348 lib/widget/widget-common.c widget_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 367 lib/widget/widget-common.c return widget_default_resize (w, CONST_RECT (data)); w 384 lib/widget/widget-common.c widget_set_options (Widget *w, widget_options_t options, gboolean enable) w 387 lib/widget/widget-common.c w->options |= options; w 389 lib/widget/widget-common.c w->options &= ~options; w 434 lib/widget/widget-common.c widget_set_size (Widget *w, int y, int x, int lines, int cols) w 438 lib/widget/widget-common.c send_message (w, NULL, MSG_RESIZE, 0, &r); w 439 lib/widget/widget-common.c widget_draw (w); w 451 lib/widget/widget-common.c widget_set_size_rect (Widget *w, WRect *r) w 453 lib/widget/widget-common.c send_message (w, NULL, MSG_RESIZE, 0, r); w 454 lib/widget/widget-common.c widget_draw (w); w 460 lib/widget/widget-common.c widget_selectcolor (const Widget *w, gboolean focused, gboolean hotkey) w 465 lib/widget/widget-common.c colors = widget_get_colors (w); w 467 lib/widget/widget-common.c if (widget_get_state (w, WST_DISABLED)) w 480 lib/widget/widget-common.c widget_erase (Widget *w) w 482 lib/widget/widget-common.c if (w != NULL) w 483 lib/widget/widget-common.c tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, ' '); w 489 lib/widget/widget-common.c widget_set_visibility (Widget *w, gboolean make_visible) w 491 lib/widget/widget-common.c if (widget_get_state (w, WST_VISIBLE) != make_visible) w 492 lib/widget/widget-common.c widget_set_state (w, WST_VISIBLE, make_visible); w 506 lib/widget/widget-common.c widget_is_active (const void *w) w 511 lib/widget/widget-common.c if (w == top_dlg->data) w 514 lib/widget/widget-common.c owner = CONST_WIDGET (w)->owner; w 520 lib/widget/widget-common.c if (w != owner->current->data) w 529 lib/widget/widget-common.c widget_draw (Widget *w) w 533 lib/widget/widget-common.c if (w != NULL && widget_get_state (w, WST_VISIBLE)) w 535 lib/widget/widget-common.c WGroup *g = w->owner; w 538 lib/widget/widget-common.c ret = w->callback (w, NULL, MSG_DRAW, 0, NULL); w 608 lib/widget/widget-common.c widget_is_focusable (const Widget *w) w 610 lib/widget/widget-common.c return (widget_get_options (w, WOP_SELECTABLE) && widget_get_state (w, WST_VISIBLE) && w 611 lib/widget/widget-common.c !widget_get_state (w, WST_DISABLED)); w 625 lib/widget/widget-common.c widget_select (Widget *w) w 629 lib/widget/widget-common.c if (!widget_get_options (w, WOP_SELECTABLE)) w 632 lib/widget/widget-common.c g = GROUP (w->owner); w 635 lib/widget/widget-common.c if (widget_get_options (w, WOP_TOP_SELECT)) w 639 lib/widget/widget-common.c l = widget_find (WIDGET (g), w); w 643 lib/widget/widget-common.c widget_focus (w); w 653 lib/widget/widget-common.c widget_set_bottom (Widget *w) w 655 lib/widget/widget-common.c widget_reorder (widget_find (WIDGET (w->owner), w), FALSE); w 668 lib/widget/widget-common.c widget_lookup_key (Widget *w, int key) w 670 lib/widget/widget-common.c if (w->ext_mode) w 672 lib/widget/widget-common.c w->ext_mode = FALSE; w 673 lib/widget/widget-common.c return keybind_lookup_keymap_command (w->ext_keymap, key); w 676 lib/widget/widget-common.c return keybind_lookup_keymap_command (w->keymap, key); w 690 lib/widget/widget-common.c widget_default_make_global (Widget *w, const WRect *delta) w 693 lib/widget/widget-common.c rect_move (&w->rect, delta->y, delta->x); w 694 lib/widget/widget-common.c else if (w->owner != NULL) w 695 lib/widget/widget-common.c rect_move (&w->rect, WIDGET (w->owner)->rect.y, WIDGET (w->owner)->rect.x); w 709 lib/widget/widget-common.c widget_default_make_local (Widget *w, const WRect *delta) w 712 lib/widget/widget-common.c rect_move (&w->rect, -delta->y, -delta->x); w 713 lib/widget/widget-common.c else if (w->owner != NULL) w 714 lib/widget/widget-common.c rect_move (&w->rect, -WIDGET (w->owner)->rect.y, -WIDGET (w->owner)->rect.x); w 728 lib/widget/widget-common.c widget_default_find (const Widget *w, const Widget *what) w 730 lib/widget/widget-common.c return (w != what w 731 lib/widget/widget-common.c || w->owner == NULL) ? NULL : g_list_find (CONST_GROUP (w->owner)->widgets, what); w 746 lib/widget/widget-common.c widget_default_find_by_type (const Widget *w, widget_cb_fn cb) w 748 lib/widget/widget-common.c return (w->callback == cb ? WIDGET (w) : NULL); w 762 lib/widget/widget-common.c widget_default_find_by_id (const Widget *w, unsigned long id) w 764 lib/widget/widget-common.c return (w->id == id ? WIDGET (w) : NULL); w 780 lib/widget/widget-common.c widget_default_set_state (Widget *w, widget_state_t state, gboolean enable) w 783 lib/widget/widget-common.c Widget *owner = WIDGET (GROUP (w->owner)); w 786 lib/widget/widget-common.c w->state |= state; w 788 lib/widget/widget-common.c w->state &= ~state; w 796 lib/widget/widget-common.c w->state &= ~(WST_ACTIVE | WST_SUSPENDED | WST_CLOSED); w 799 lib/widget/widget-common.c w->state &= ~(WST_CONSTRUCT | WST_SUSPENDED | WST_CLOSED); w 802 lib/widget/widget-common.c w->state &= ~(WST_CONSTRUCT | WST_ACTIVE | WST_CLOSED); w 805 lib/widget/widget-common.c w->state &= ~(WST_CONSTRUCT | WST_ACTIVE | WST_SUSPENDED); w 826 lib/widget/widget-common.c if (w == GROUP (owner)->current->data) w 835 lib/widget/widget-common.c ret = send_message (w, NULL, enable ? MSG_DISABLE : MSG_ENABLE, 0, NULL); w 837 lib/widget/widget-common.c ret = widget_draw (w); w 845 lib/widget/widget-common.c ret = send_message (w, NULL, msg, 0, NULL); w 848 lib/widget/widget-common.c widget_draw (w); w 850 lib/widget/widget-common.c send_message (owner, w, MSG_CHANGED_FOCUS, 0, NULL); w 870 lib/widget/widget-common.c widget_default_destroy (Widget *w) w 872 lib/widget/widget-common.c send_message (w, NULL, MSG_DESTROY, 0, NULL); w 873 lib/widget/widget-common.c g_free (w); w 880 lib/widget/widget-common.c mouse_get_local (const Gpm_Event *global, const Widget *w) w 887 lib/widget/widget-common.c local.x = global->x - w->rect.x; w 888 lib/widget/widget-common.c local.y = global->y - w->rect.y; w 897 lib/widget/widget-common.c mouse_global_in_widget (const Gpm_Event *event, const Widget *w) w 899 lib/widget/widget-common.c const WRect *r = &w->rect; w 18 lib/widget/widget-common.h #define widget_gotoyx(w, _y, _x) tty_gotoyx (CONST_WIDGET(w)->rect.y + (_y), CONST_WIDGET(w)->rect.x + (_x)) w 20 lib/widget/widget-common.h #define widget_want_cursor(w,i) widget_set_options(w, WOP_WANT_CURSOR, i) w 21 lib/widget/widget-common.h #define widget_want_hotkey(w,i) widget_set_options(w, WOP_WANT_HOTKEY, i) w 22 lib/widget/widget-common.h #define widget_want_tab(w,i) widget_set_options(w, WOP_WANT_TAB, i) w 23 lib/widget/widget-common.h #define widget_idle(w,i) widget_set_state(w, WST_IDLE, i) w 24 lib/widget/widget-common.h #define widget_disable(w,i) widget_set_state(w, WST_DISABLED, i) w 126 lib/widget/widget-common.h typedef void (*widget_mouse_cb_fn) (Widget * w, mouse_msg_t msg, mouse_event_t * event); w 128 lib/widget/widget-common.h typedef int (*widget_mouse_handle_fn) (Widget * w, Gpm_Event * event); w 162 lib/widget/widget-common.h void (*make_global) (Widget * w, const WRect * delta); w 163 lib/widget/widget-common.h void (*make_local) (Widget * w, const WRect * delta); w 165 lib/widget/widget-common.h GList *(*find) (const Widget * w, const Widget * what); w 166 lib/widget/widget-common.h Widget *(*find_by_type) (const Widget * w, widget_cb_fn cb); w 167 lib/widget/widget-common.h Widget *(*find_by_id) (const Widget * w, unsigned long id); w 170 lib/widget/widget-common.h cb_ret_t (*set_state) (Widget * w, widget_state_t state, gboolean enable); w 172 lib/widget/widget-common.h void (*destroy) (Widget * w); w 174 lib/widget/widget-common.h const int *(*get_colors) (const Widget * w); w 201 lib/widget/widget-common.h void hotkey_draw (const Widget * w, const hotkey_t hotkey, gboolean focused); w 206 lib/widget/widget-common.h void widget_init (Widget * w, const WRect * r, widget_cb_fn callback, w 209 lib/widget/widget-common.h cb_ret_t widget_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, w 211 lib/widget/widget-common.h void widget_set_options (Widget * w, widget_options_t options, gboolean enable); w 213 lib/widget/widget-common.h void widget_set_size (Widget * w, int y, int x, int lines, int cols); w 214 lib/widget/widget-common.h void widget_set_size_rect (Widget * w, WRect * r); w 216 lib/widget/widget-common.h void widget_selectcolor (const Widget * w, gboolean focused, gboolean hotkey); w 217 lib/widget/widget-common.h cb_ret_t widget_draw (Widget * w); w 218 lib/widget/widget-common.h void widget_erase (Widget * w); w 219 lib/widget/widget-common.h void widget_set_visibility (Widget * w, gboolean make_visible); w 220 lib/widget/widget-common.h gboolean widget_is_active (const void *w); w 222 lib/widget/widget-common.h gboolean widget_is_focusable (const Widget * w); w 223 lib/widget/widget-common.h void widget_select (Widget * w); w 224 lib/widget/widget-common.h void widget_set_bottom (Widget * w); w 226 lib/widget/widget-common.h long widget_lookup_key (Widget * w, int key); w 228 lib/widget/widget-common.h void widget_default_make_global (Widget * w, const WRect * delta); w 229 lib/widget/widget-common.h void widget_default_make_local (Widget * w, const WRect * delta); w 231 lib/widget/widget-common.h GList *widget_default_find (const Widget * w, const Widget * what); w 232 lib/widget/widget-common.h Widget *widget_default_find_by_type (const Widget * w, widget_cb_fn cb); w 233 lib/widget/widget-common.h Widget *widget_default_find_by_id (const Widget * w, unsigned long id); w 235 lib/widget/widget-common.h cb_ret_t widget_default_set_state (Widget * w, widget_state_t state, gboolean enable); w 237 lib/widget/widget-common.h void widget_default_destroy (Widget * w); w 240 lib/widget/widget-common.h Gpm_Event mouse_get_local (const Gpm_Event * global, const Widget * w); w 241 lib/widget/widget-common.h gboolean mouse_global_in_widget (const Gpm_Event * event, const Widget * w); w 248 lib/widget/widget-common.h send_message (void *w, void *sender, widget_msg_t msg, int parm, void *data) w 253 lib/widget/widget-common.h if (w != NULL) /* This must be always true, but... */ w 255 lib/widget/widget-common.h ret = WIDGET (w)->callback (WIDGET (w), WIDGET (sender), msg, parm, data); w 270 lib/widget/widget-common.h widget_get_options (const Widget *w, widget_options_t options) w 272 lib/widget/widget-common.h return ((w->options & options) == options); w 286 lib/widget/widget-common.h widget_get_state (const Widget *w, widget_state_t state) w 288 lib/widget/widget-common.h return ((w->state & state) == state); w 300 lib/widget/widget-common.h widget_make_global (Widget *w) w 302 lib/widget/widget-common.h w->make_global (w, NULL); w 314 lib/widget/widget-common.h widget_make_local (Widget *w) w 316 lib/widget/widget-common.h w->make_local (w, NULL); w 331 lib/widget/widget-common.h widget_find (const Widget *w, const Widget *what) w 333 lib/widget/widget-common.h return w->find (w, what); w 348 lib/widget/widget-common.h widget_find_by_type (const Widget *w, widget_cb_fn cb) w 350 lib/widget/widget-common.h return w->find_by_type (w, cb); w 364 lib/widget/widget-common.h widget_find_by_id (const Widget *w, unsigned long id) w 366 lib/widget/widget-common.h return w->find_by_id (w, id); w 381 lib/widget/widget-common.h widget_set_state (Widget *w, widget_state_t state, gboolean enable) w 383 lib/widget/widget-common.h return w->set_state (w, state, enable); w 394 lib/widget/widget-common.h widget_destroy (Widget *w) w 396 lib/widget/widget-common.h w->destroy (w); w 408 lib/widget/widget-common.h widget_get_colors (const Widget *w) w 410 lib/widget/widget-common.h return w->get_colors (w); w 423 lib/widget/widget-common.h widget_update_cursor (Widget *w) w 425 lib/widget/widget-common.h return (send_message (w, NULL, MSG_CURSOR, 0, NULL) == MSG_HANDLED); w 431 lib/widget/widget-common.h widget_show (Widget *w) w 433 lib/widget/widget-common.h widget_set_visibility (w, TRUE); w 439 lib/widget/widget-common.h widget_hide (Widget *w) w 441 lib/widget/widget-common.h widget_set_visibility (w, FALSE); w 68 lib/widget/wtools.c query_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 70 lib/widget/wtools.c WDialog *h = DIALOG (w); w 75 lib/widget/wtools.c if ((w->pos_flags & WPOS_CENTER) == 0) w 100 lib/widget/wtools.c ypos = LINES / 3 - (w->rect.lines - 3) / 2; w 105 lib/widget/wtools.c if (ypos + w->rect.lines < LINES / 2) w 106 lib/widget/wtools.c w->pos_flags |= WPOS_CENTER; w 108 lib/widget/wtools.c xpos = COLS / 2 - w->rect.cols / 2; w 111 lib/widget/wtools.c rect_init (&r, ypos, xpos, w->rect.lines, w->rect.cols); w 113 lib/widget/wtools.c return dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); w 118 lib/widget/wtools.c return dlg_default_callback (w, sender, msg, parm, data); w 2208 src/diffviewer/ydiff.c Widget *w = WIDGET (dview); w 2210 src/diffviewer/ydiff.c dview->height = w->rect.lines - 1; w 2211 src/diffviewer/ydiff.c dview->half1 = w->rect.cols / 2; w 2212 src/diffviewer/ydiff.c dview->half2 = w->rect.cols - dview->half1; w 3218 src/diffviewer/ydiff.c dview_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 3220 src/diffviewer/ydiff.c WDiff *dview = (WDiff *) w; w 3221 src/diffviewer/ydiff.c WDialog *h = DIALOG (w->owner); w 3253 src/diffviewer/ydiff.c widget_default_callback (w, NULL, MSG_RESIZE, 0, data); w 3263 src/diffviewer/ydiff.c return widget_default_callback (w, sender, msg, parm, data); w 3270 src/diffviewer/ydiff.c dview_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 3272 src/diffviewer/ydiff.c WDiff *dview = (WDiff *) w; w 3297 src/diffviewer/ydiff.c dview_dialog_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 3300 src/diffviewer/ydiff.c WDialog *h = DIALOG (w); w 3314 src/diffviewer/ydiff.c widget_set_state (w, WST_ACTIVE, TRUE); w 3320 src/diffviewer/ydiff.c return dlg_default_callback (w, sender, msg, parm, data); w 3356 src/diffviewer/ydiff.c Widget *w; w 3373 src/diffviewer/ydiff.c w = WIDGET (dview); w 3375 src/diffviewer/ydiff.c widget_init (w, &r, dview_callback, dview_mouse_callback); w 3376 src/diffviewer/ydiff.c w->options |= WOP_SELECTABLE; w 3377 src/diffviewer/ydiff.c w->keymap = diff_map; w 3378 src/diffviewer/ydiff.c group_add_widget_autopos (g, w, WPOS_KEEP_ALL, NULL); w 3380 src/diffviewer/ydiff.c w = WIDGET (buttonbar_new ()); w 3381 src/diffviewer/ydiff.c group_add_widget_autopos (g, w, w->pos_flags, NULL); w 135 src/editor/edit-impl.h gboolean edit_widget_is_editor (const Widget * w); w 2146 src/editor/edit.c Widget *w; w 2151 src/editor/edit.c w = WIDGET (edit); w 2152 src/editor/edit.c widget_init (w, r, NULL, NULL); w 2153 src/editor/edit.c w->options |= WOP_SELECTABLE | WOP_TOP_SELECT | WOP_WANT_CURSOR; w 2154 src/editor/edit.c w->keymap = editor_map; w 2155 src/editor/edit.c w->ext_keymap = editor_x_map; w 2290 src/editor/edit.c Widget *w = WIDGET (edit); w 2294 src/editor/edit.c *WIDGET (e) = *w; w 2299 src/editor/edit.c if (edit_init (e, &w->rect, arg) == NULL) w 3384 src/editor/edit.c WRect *w = &WIDGET (edit)->rect; w 3684 src/editor/edit.c edit_move_up (edit, w->lines - 1, TRUE); w 3691 src/editor/edit.c edit_move_down (edit, w->lines - 1, TRUE); w 3878 src/editor/edit.c if (p->line >= edit->start_line + w->lines || p->line < edit->start_line) w 3879 src/editor/edit.c edit_move_display (edit, p->line - w->lines / 2); w 3895 src/editor/edit.c if (p->line >= edit->start_line + w->lines || p->line < edit->start_line) w 3896 src/editor/edit.c edit_move_display (edit, p->line - w->lines / 2); w 97 src/editor/editcmd.c edit_save_mode_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 106 src/editor/editcmd.c ww = widget_find_by_id (w, edit_save_mode_input_id); w 113 src/editor/editcmd.c return dlg_default_callback (w, sender, msg, parm, data); w 759 src/editor/editcmd.c editcmd_dialog_raw_key_query_cb (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 761 src/editor/editcmd.c WDialog *h = DIALOG (w); w 770 src/editor/editcmd.c return dlg_default_callback (w, sender, msg, parm, data); w 1259 src/editor/editcmd.c Widget *w = WIDGET (edit); w 1260 src/editor/editcmd.c WGroup *g = w->owner; w 1265 src/editor/editcmd.c group_remove_widget (w); w 1266 src/editor/editcmd.c widget_destroy (w); w 2036 src/editor/editcmd.c int w, wq; w 2041 src/editor/editcmd.c w = str_term_width1 (heading) + 6; w 2043 src/editor/editcmd.c w = MAX (w, wq + 3 * 2 + 1 + 2); w 2046 src/editor/editcmd.c dlg_create (TRUE, 0, 0, cancel ? 7 : 5, w, WPOS_CENTER | WPOS_TRYUP, FALSE, dialog_colors, w 2053 src/editor/editcmd.c input_new (y++, 3 + wq + 1, input_colors, w - (6 + wq + 1), "", 0, w 2063 src/editor/editcmd.c w = dlg_run (raw_dlg); w 2066 src/editor/editcmd.c return (cancel && (w == ESC_CHAR || w == B_CANCEL)) ? 0 : w; w 273 src/editor/editcomplete.c GList *w; w 279 src/editor/editcomplete.c for (w = owner->widgets; w != NULL; w = g_list_next (w)) w 281 src/editor/editcomplete.c Widget *ww = WIDGET (w->data); w 101 src/editor/editdraw.c status_string (WEdit *edit, char *s, int w) w 140 src/editor/editdraw.c g_snprintf (s, w, w 155 src/editor/editdraw.c g_snprintf (s, w, w 185 src/editor/editdraw.c const int w = h->rect.cols; w 195 src/editor/editdraw.c status_size = w + 1; w 212 src/editor/editdraw.c if (fname_len + gap + status_len + right_gap >= w) w 214 src/editor/editdraw.c if (preferred_fname_len + gap + status_len + right_gap >= w) w 217 src/editor/editdraw.c fname_len = w - (gap + status_len + right_gap); w 224 src/editor/editdraw.c printwstr (status, w - (fname_len + gap)); w 226 src/editor/editdraw.c if (edit_options.simple_statusbar && w > EDITOR_MINIMUM_TERMINAL_WIDTH) w 231 src/editor/editdraw.c widget_gotoyx (h, 0, w - 6 - 6); w 248 src/editor/editdraw.c Widget *w = WIDGET (edit); w 250 src/editor/editdraw.c int cols = w->rect.cols; w 271 src/editor/editdraw.c tty_printf ("[%s]", str_term_trim (fname, w->rect.cols - 8 - 6)); w 275 src/editor/editdraw.c x -= w->rect.x; w 288 src/editor/editdraw.c edit_move (2, w->rect.lines - 1); w 302 src/editor/editdraw.c edit_move (32, w->rect.lines - 1); w 339 src/editor/editdraw.c const Widget *w = CONST_WIDGET (edit); w 344 src/editor/editdraw.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, !active); w 349 src/editor/editdraw.c widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 1); w 365 src/editor/editdraw.c const Widget *w = CONST_WIDGET (edit); w 370 src/editor/editdraw.c widget_gotoyx (w->owner, 0, WIDGET (w->owner)->rect.cols - 6); w 372 src/editor/editdraw.c widget_gotoyx (w, 0, w->rect.cols - 8); w 383 src/editor/editdraw.c Widget *w = WIDGET (edit); w 408 src/editor/editdraw.c if (len > 0 && w->rect.y + y >= 0) w 411 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1, ' ', len); w 415 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1, ' ', len); w 420 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1, ' ', wrap_start); w 426 src/editor/editdraw.c tty_draw_hline (w->rect.y + y, w->rect.x + x1 + wrap_start, ' ', len); w 497 src/editor/editdraw.c Widget *w = WIDGET (edit); w 506 src/editor/editdraw.c if (row > w->rect.lines - 1 - EDIT_TEXT_VERTICAL_OFFSET - 2 * (edit->fullscreen ? 0 : 1)) w 523 src/editor/editdraw.c if (w->rect.x + w->rect.cols <= WIDGET (w->owner)->rect.cols) w 839 src/editor/editdraw.c WRect *w = &we->rect; w 849 src/editor/editdraw.c y1 = w->y; w 855 src/editor/editdraw.c x1 = w->x; w 859 src/editor/editdraw.c y2 = w->y + w->lines - 1; w 863 src/editor/editdraw.c x2 = w->x + w->cols - 1; w 873 src/editor/editdraw.c end_row = w->lines - 1; w 880 src/editor/editdraw.c end_column = w->cols - 1; w 960 src/editor/editdraw.c if ((force & REDRAW_LINE_BELOW) != 0 && row < w->lines - 1) w 1042 src/editor/editdraw.c WRect *w = &WIDGET (edit)->rect; w 1048 src/editor/editdraw.c if (w->lines <= 0 || w->cols <= 0) w 1051 src/editor/editdraw.c rect_resize (w, -EDIT_TEXT_VERTICAL_OFFSET, w 1055 src/editor/editdraw.c rect_grow (w, -1, -1); w 1063 src/editor/editdraw.c b_extreme = MAX (w->lines / 4, b_extreme); w 1064 src/editor/editdraw.c t_extreme = MAX (w->lines / 4, t_extreme); w 1066 src/editor/editdraw.c if (b_extreme + t_extreme + 1 > w->lines) w 1073 src/editor/editdraw.c b_extreme = (b_extreme * (w->lines - 1)) / n; w 1074 src/editor/editdraw.c t_extreme = (t_extreme * (w->lines - 1)) / n; w 1076 src/editor/editdraw.c if (l_extreme + r_extreme + 1 > w->cols) w 1083 src/editor/editdraw.c l_extreme = (l_extreme * (w->cols - 1)) / n; w 1084 src/editor/editdraw.c r_extreme = (r_extreme * (w->cols - 1)) / n; w 1088 src/editor/editdraw.c outby = p + edit->start_col - w->cols + 1 + (r_extreme + edit->found_len); w 1095 src/editor/editdraw.c outby = p - w->lines + 1 + b_extreme; w 1103 src/editor/editdraw.c rect_resize (w, EDIT_TEXT_VERTICAL_OFFSET, w 1106 src/editor/editdraw.c rect_grow (w, 1, 1); w 216 src/editor/editsearch.c Widget *w = WIDGET (edit); w 227 src/editor/editsearch.c xpos = w->rect.x + edit_options.line_state_width + 1; w 229 src/editor/editsearch.c ypos = w->rect.y + w->rect.lines / 2; w 234 src/editor/editsearch.c dlg_width = WIDGET (w->owner)->rect.cols - xpos - 1; w 201 src/editor/editwidget.c Widget *w = WIDGET (edit); w 204 src/editor/editwidget.c w->mouse.forced_capture = FALSE; w 205 src/editor/editwidget.c widget_set_size_rect (w, &edit->loc_prev); w 206 src/editor/editwidget.c widget_draw (WIDGET (w->owner)); w 222 src/editor/editwidget.c WRect *w = &we->rect; w 228 src/editor/editwidget.c if (w->y > wh->y + 1) /* menubar */ w 229 src/editor/editwidget.c w->y--; w 232 src/editor/editwidget.c if (w->y < wh->y + wh->lines - 2) /* buttonbar */ w 233 src/editor/editwidget.c w->y++; w 236 src/editor/editwidget.c if (w->x + wh->cols > wh->x) w 237 src/editor/editwidget.c w->x--; w 240 src/editor/editwidget.c if (w->x < wh->x + wh->cols) w 241 src/editor/editwidget.c w->x++; w 264 src/editor/editwidget.c WRect *w = &we->rect; w 270 src/editor/editwidget.c if (w->lines > WINDOW_MIN_LINES) w 271 src/editor/editwidget.c w->lines--; w 274 src/editor/editwidget.c if (w->y + w->lines < wh->y + wh->lines - 1) /* buttonbar */ w 275 src/editor/editwidget.c w->lines++; w 278 src/editor/editwidget.c if (w->cols > WINDOW_MIN_COLS) w 279 src/editor/editwidget.c w->cols--; w 282 src/editor/editwidget.c if (w->x + w->cols < wh->x + wh->cols) w 283 src/editor/editwidget.c w->cols++; w 317 src/editor/editwidget.c GList *w; w 326 src/editor/editwidget.c for (w = g->widgets; w != NULL; w = g_list_next (w)) w 327 src/editor/editwidget.c if (edit_widget_is_editor (CONST_WIDGET (w->data))) w 329 src/editor/editwidget.c WEdit *e = EDIT (w->data); w 438 src/editor/editwidget.c Widget *w = WIDGET (g->current->data); w 440 src/editor/editwidget.c if (edit_widget_is_editor (w) && EDIT (w)->drag_state != MCEDIT_DRAG_NONE) w 441 src/editor/editwidget.c edit_restore_size (EDIT (w)); w 510 src/editor/editwidget.c Widget *w = WIDGET (edit); w 515 src/editor/editwidget.c if (!w->ext_mode && x_key < 256) w 608 src/editor/editwidget.c command = widget_lookup_key (w, x_key); w 674 src/editor/editwidget.c Widget *w = WIDGET (edit); w 676 src/editor/editwidget.c buttonbar_set_label (bb, 1, Q_ ("ButtonBar|Help"), w->keymap, NULL); w 677 src/editor/editwidget.c buttonbar_set_label (bb, 2, Q_ ("ButtonBar|Save"), w->keymap, w); w 678 src/editor/editwidget.c buttonbar_set_label (bb, 3, Q_ ("ButtonBar|Mark"), w->keymap, w); w 679 src/editor/editwidget.c buttonbar_set_label (bb, 4, Q_ ("ButtonBar|Replac"), w->keymap, w); w 680 src/editor/editwidget.c buttonbar_set_label (bb, 5, Q_ ("ButtonBar|Copy"), w->keymap, w); w 681 src/editor/editwidget.c buttonbar_set_label (bb, 6, Q_ ("ButtonBar|Move"), w->keymap, w); w 682 src/editor/editwidget.c buttonbar_set_label (bb, 7, Q_ ("ButtonBar|Search"), w->keymap, w); w 683 src/editor/editwidget.c buttonbar_set_label (bb, 8, Q_ ("ButtonBar|Delete"), w->keymap, w); w 684 src/editor/editwidget.c buttonbar_set_label (bb, 9, Q_ ("ButtonBar|PullDn"), w->keymap, NULL); w 685 src/editor/editwidget.c buttonbar_set_label (bb, 10, Q_ ("ButtonBar|Quit"), w->keymap, NULL); w 762 src/editor/editwidget.c edit_dialog_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 764 src/editor/editwidget.c WGroup *g = GROUP (w); w 765 src/editor/editwidget.c WDialog *h = DIALOG (w); w 774 src/editor/editwidget.c dlg_default_callback (w, NULL, MSG_RESIZE, 0, NULL); w 829 src/editor/editwidget.c widget_idle (w, TRUE); w 846 src/editor/editwidget.c widget_idle (w, FALSE); w 850 src/editor/editwidget.c return dlg_default_callback (w, sender, msg, parm, data); w 864 src/editor/editwidget.c edit_dialog_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 870 src/editor/editwidget.c WGroup *g = GROUP (w); w 871 src/editor/editwidget.c WDialog *h = DIALOG (w); w 890 src/editor/editwidget.c x = w->rect.cols - 6; w 923 src/editor/editwidget.c edit_dialog_bg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 928 src/editor/editwidget.c w->rect = WIDGET (w->owner)->rect; w 929 src/editor/editwidget.c rect_grow (&w->rect, -1, 0); w 930 src/editor/editwidget.c w->pos_flags |= WPOS_KEEP_ALL; w 934 src/editor/editwidget.c return background_callback (w, sender, msg, parm, data); w 941 src/editor/editwidget.c edit_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 943 src/editor/editwidget.c WEdit *e = EDIT (w); w 948 src/editor/editwidget.c edit_set_buttonbar (e, buttonbar_find (DIALOG (w->owner))); w 991 src/editor/editwidget.c widget_gotoyx (w, y, x); w 1004 src/editor/editwidget.c return widget_default_callback (w, sender, msg, parm, data); w 1014 src/editor/editwidget.c edit_mouse_handle_move_resize (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 1016 src/editor/editwidget.c WEdit *edit = EDIT (w); w 1017 src/editor/editwidget.c WRect *r = &w->rect; w 1018 src/editor/editwidget.c const WRect *h = &CONST_WIDGET (w->owner)->rect; w 1061 src/editor/editwidget.c widget_draw (WIDGET (w->owner)); w 1074 src/editor/editwidget.c edit_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 1076 src/editor/editwidget.c WEdit *edit = EDIT (w); w 1082 src/editor/editwidget.c close_x = (w->rect.cols - 1) - dx - 1; w 1088 src/editor/editwidget.c edit_mouse_handle_move_resize (w, msg, event); w 1096 src/editor/editwidget.c if (msg == MSG_MOUSE_DOWN && (event->y + w->rect.y == LINES - 1)) w 1105 src/editor/editwidget.c widget_select (w); w 1127 src/editor/editwidget.c if (event->y == w->rect.lines - 1 && event->x == w->rect.cols - 1) w 1146 src/editor/editwidget.c send_message (w->owner, NULL, MSG_ACTION, CK_Close, NULL); w 1220 src/editor/editwidget.c Widget *w, *wd; w 1262 src/editor/editwidget.c w = WIDGET (menubar); w 1263 src/editor/editwidget.c group_add_widget_autopos (g, w, w->pos_flags, NULL); w 1266 src/editor/editwidget.c w = WIDGET (buttonbar_new ()); w 1267 src/editor/editwidget.c group_add_widget_autopos (g, w, w->pos_flags, NULL); w 1308 src/editor/editwidget.c edit_widget_is_editor (const Widget *w) w 1310 src/editor/editwidget.c return (w != NULL && w->callback == edit_callback); w 1367 src/editor/editwidget.c Widget *w; w 1373 src/editor/editwidget.c w = WIDGET (edit); w 1374 src/editor/editwidget.c w->callback = edit_callback; w 1375 src/editor/editwidget.c w->mouse_callback = edit_mouse_callback; w 1377 src/editor/editwidget.c group_add_widget_autopos (GROUP (h), w, WPOS_KEEP_ALL, NULL); w 1396 src/editor/editwidget.c Widget *w = WIDGET (edit); w 1402 src/editor/editwidget.c w->mouse.forced_capture = FALSE; w 1421 src/editor/editwidget.c edit->drag_state_start = w->rect.cols / 2; w 1498 src/editor/editwidget.c w->mouse.forced_capture = (edit->drag_state != MCEDIT_DRAG_NONE); w 1513 src/editor/editwidget.c Widget *w = WIDGET (edit); w 1522 src/editor/editwidget.c w->pos_flags = WPOS_KEEP_DEFAULT; w 1529 src/editor/editwidget.c r = WIDGET (w->owner)->rect; w 1531 src/editor/editwidget.c widget_set_size_rect (w, &r); w 1533 src/editor/editwidget.c w->pos_flags = WPOS_KEEP_ALL; w 317 src/editor/etags.c const WRect *w = &CONST_WIDGET (edit)->rect; w 328 src/editor/etags.c start_x = w->x + edit->curs_col + edit->start_col + EDIT_TEXT_HORIZONTAL_OFFSET + w 330 src/editor/etags.c start_y = w->y + edit->curs_row + EDIT_TEXT_VERTICAL_OFFSET + (edit->fullscreen ? 0 : 1) + 1; w 334 src/editor/etags.c if (start_x < w->x + 1) w 335 src/editor/etags.c start_x = w->x + 1 + edit_options.line_state_width; w 208 src/file_history.c show_file_history (const Widget *w, int *action) w 222 src/file_history.c history_descriptor_init (&hd, w->rect.y, w->rect.x, file_list, 0); w 14 src/file_history.h char *show_file_history (const Widget * w, int *action); w 327 src/filemanager/achown.c perm_button_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 329 src/filemanager/achown.c WButton *b = BUTTON (w); w 330 src/filemanager/achown.c WGroup *g = w->owner; w 364 src/filemanager/achown.c send_message (w, NULL, MSG_KEY, KEY_RIGHT, NULL); w 409 src/filemanager/achown.c update_mode (w->owner); w 434 src/filemanager/achown.c return button_default_callback (w, sender, msg, parm, data); w 441 src/filemanager/achown.c perm_button_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 447 src/filemanager/achown.c BUTTON (w)->hotpos = CLAMP (event->x - 1, 0, 2); w 451 src/filemanager/achown.c button_mouse_default_callback (w, msg, event); w 463 src/filemanager/achown.c Widget *w; w 467 src/filemanager/achown.c w = WIDGET (b); w 470 src/filemanager/achown.c widget_want_hotkey (w, FALSE); w 472 src/filemanager/achown.c w->callback = perm_button_callback; w 473 src/filemanager/achown.c w->mouse_callback = perm_button_mouse_callback; w 481 src/filemanager/achown.c chl_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 491 src/filemanager/achown.c WDialog *h = DIALOG (w); w 503 src/filemanager/achown.c return dlg_default_callback (w, sender, msg, parm, data); w 512 src/filemanager/achown.c Widget *w = WIDGET (button); w 527 src/filemanager/achown.c WGroup *g = w->owner; w 656 src/filemanager/achown.c advanced_chown_bg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 661 src/filemanager/achown.c frame_callback (w, NULL, MSG_DRAW, 0, NULL); w 662 src/filemanager/achown.c advanced_chown_refresh (DIALOG (w->owner)); w 667 src/filemanager/achown.c return frame_callback (w, sender, msg, parm, data); w 674 src/filemanager/achown.c advanced_chown_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 676 src/filemanager/achown.c WGroup *g = GROUP (w); w 698 src/filemanager/achown.c widget_draw (w); w 715 src/filemanager/achown.c widget_draw (w); w 724 src/filemanager/achown.c return dlg_default_callback (w, sender, msg, parm, data); w 128 src/filemanager/boxes.c configure_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 140 src/filemanager/boxes.c ww = widget_find_by_id (w, configure_time_out_id); w 148 src/filemanager/boxes.c return dlg_default_callback (w, sender, msg, parm, data); w 187 src/filemanager/boxes.c skin_dlg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 193 src/filemanager/boxes.c WDialog *d = DIALOG (w); w 195 src/filemanager/boxes.c WRect r = w->rect; w 200 src/filemanager/boxes.c return dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); w 204 src/filemanager/boxes.c return dlg_default_callback (w, sender, msg, parm, data); w 275 src/filemanager/boxes.c appearance_box_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 286 src/filemanager/boxes.c shadow = widget_find_by_id (w, shadows_id); w 302 src/filemanager/boxes.c return dlg_default_callback (w, sender, msg, parm, data); w 309 src/filemanager/boxes.c panel_listing_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 319 src/filemanager/boxes.c in1 = INPUT (widget_find_by_id (w, panel_user_format_id)); w 320 src/filemanager/boxes.c in2 = INPUT (widget_find_by_id (w, panel_brief_cols_id)); w 321 src/filemanager/boxes.c ch = CHECK (widget_find_by_id (w, user_mini_status_id)); w 322 src/filemanager/boxes.c in3 = INPUT (widget_find_by_id (w, mini_user_format_id)); w 338 src/filemanager/boxes.c in = INPUT (widget_find_by_id (w, mini_user_format_id)); w 349 src/filemanager/boxes.c r = RADIO (widget_find_by_id (w, panel_list_formats_id)); w 360 src/filemanager/boxes.c return dlg_default_callback (w, sender, msg, parm, data); w 400 src/filemanager/boxes.c tree_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 402 src/filemanager/boxes.c WDialog *h = DIALOG (w); w 408 src/filemanager/boxes.c WRect r = w->rect; w 413 src/filemanager/boxes.c dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); w 425 src/filemanager/boxes.c return dlg_default_callback (w, sender, msg, parm, data); w 433 src/filemanager/boxes.c confvfs_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 445 src/filemanager/boxes.c wi = widget_find_by_id (w, ftpfs_proxy_host_id); w 452 src/filemanager/boxes.c return dlg_default_callback (w, sender, msg, parm, data); w 1220 src/filemanager/boxes.c const Widget *w = CONST_WIDGET (panel); w 1229 src/filemanager/boxes.c WRect r = { w->rect.y + w->rect.lines - 6, w->rect.x, 0, w->rect.cols }; w 283 src/filemanager/chattr.c fileattrtext_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 285 src/filemanager/chattr.c WFileAttrText *fat = (WFileAttrText *) w; w 296 src/filemanager/chattr.c if (w->rect.cols > fat->filename_width) w 298 src/filemanager/chattr.c widget_gotoyx (w, 0, (w->rect.cols - fat->filename_width) / 2); w 303 src/filemanager/chattr.c widget_gotoyx (w, 0, 0); w 304 src/filemanager/chattr.c tty_print_string (str_trunc (fat->filename, w->rect.cols)); w 308 src/filemanager/chattr.c widget_gotoyx (w, 1, (w->rect.cols - check_attr_num) / 2); w 336 src/filemanager/chattr.c const WRect *wo = &CONST_WIDGET (w->owner)->rect; w 338 src/filemanager/chattr.c widget_default_callback (w, sender, msg, parm, data); w 342 src/filemanager/chattr.c w->rect.x = wo->x + wx; w 343 src/filemanager/chattr.c w->rect.cols = wo->cols - wx * 2; w 353 src/filemanager/chattr.c return widget_default_callback (w, sender, msg, parm, data); w 382 src/filemanager/chattr.c chattr_draw_select (const Widget *w, gboolean selected) w 384 src/filemanager/chattr.c widget_gotoyx (w, 0, -1); w 386 src/filemanager/chattr.c widget_gotoyx (w, 0, 1); w 394 src/filemanager/chattr.c Widget *w; w 397 src/filemanager/chattr.c w = WIDGET (g_list_nth_data (CONST_GROUP (cb)->widgets, Id - cb->top)); w 402 src/filemanager/chattr.c chattr_draw_select (w, check_attr[Id].selected); w 410 src/filemanager/chattr.c const Widget *w = CONST_WIDGET (cb); w 416 src/filemanager/chattr.c widget_gotoyx (w, 0, w->rect.cols); w 422 src/filemanager/chattr.c max_line = w->rect.lines - 1; w 425 src/filemanager/chattr.c widget_gotoyx (w, max_line, w->rect.cols); w 426 src/filemanager/chattr.c if (cb->top + w->rect.lines == check_attr_mod_num || w->rect.lines >= check_attr_mod_num) w 432 src/filemanager/chattr.c line = 1 + (cb->pos * (w->rect.lines - 2)) / check_attr_mod_num; w 436 src/filemanager/chattr.c widget_gotoyx (w, i, w->rect.cols); w 449 src/filemanager/chattr.c Widget *w = WIDGET (cb); w 454 src/filemanager/chattr.c colors = widget_get_colors (w); w 456 src/filemanager/chattr.c tty_fill_region (w->rect.y, w->rect.x - 1, w->rect.lines, w->rect.cols + 1, ' '); w 459 src/filemanager/chattr.c group_default_callback (w, NULL, MSG_DRAW, 0, NULL); w 463 src/filemanager/chattr.c if (!mc_global.tty.slow_terminal && check_attr_mod_num > w->rect.lines) w 476 src/filemanager/chattr.c Widget *w = WIDGET (cb); w 481 src/filemanager/chattr.c active = widget_get_state (w, WST_ACTIVE); w 485 src/filemanager/chattr.c widget_set_state (w, WST_SUSPENDED, TRUE); w 500 src/filemanager/chattr.c widget_set_state (w, WST_ACTIVE, TRUE); w 502 src/filemanager/chattr.c widget_draw (w); w 767 src/filemanager/chattr.c chattrboxes_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 769 src/filemanager/chattr.c WChattrBoxes *cb = CHATTRBOXES (w); w 770 src/filemanager/chattr.c WGroup *g = GROUP (w); w 816 src/filemanager/chattr.c ret = group_default_callback (w, NULL, MSG_KEY, parm, NULL); w 830 src/filemanager/chattr.c return group_default_callback (w, sender, msg, parm, data); w 837 src/filemanager/chattr.c chattrboxes_handle_mouse_event (Widget *w, Gpm_Event *event) w 841 src/filemanager/chattr.c mou = mouse_handle_event (w, event); w 843 src/filemanager/chattr.c mou = group_handle_mouse_event (w, event); w 851 src/filemanager/chattr.c chattrboxes_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 853 src/filemanager/chattr.c WChattrBoxes *cb = CHATTRBOXES (w); w 880 src/filemanager/chattr.c Widget *w; w 885 src/filemanager/chattr.c w = WIDGET (cb); w 888 src/filemanager/chattr.c w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR; w 889 src/filemanager/chattr.c w->mouse_handler = chattrboxes_handle_mouse_event; w 890 src/filemanager/chattr.c w->keymap = chattr_map; w 228 src/filemanager/chmod.c chmod_bg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 233 src/filemanager/chmod.c frame_callback (w, NULL, MSG_DRAW, 0, NULL); w 234 src/filemanager/chmod.c chmod_refresh (CONST_DIALOG (w->owner)); w 238 src/filemanager/chmod.c return frame_callback (w, sender, msg, parm, data); w 245 src/filemanager/chmod.c chmod_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 247 src/filemanager/chmod.c WGroup *g = GROUP (w); w 248 src/filemanager/chmod.c WDialog *h = DIALOG (w); w 296 src/filemanager/chmod.c return dlg_default_callback (w, sender, msg, parm, data); w 171 src/filemanager/chown.c chown_bg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 176 src/filemanager/chown.c frame_callback (w, NULL, MSG_DRAW, 0, NULL); w 177 src/filemanager/chown.c chown_refresh (WIDGET (w->owner)); w 181 src/filemanager/chown.c return frame_callback (w, sender, msg, parm, data); w 186 src/filemanager/command.c command_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 193 src/filemanager/command.c return enter (INPUT (w)); w 197 src/filemanager/command.c return input_callback (w, sender, msg, parm, data); w 209 src/filemanager/command.c Widget *w; w 215 src/filemanager/command.c w = WIDGET (cmd); w 217 src/filemanager/command.c widget_set_options (w, WOP_SELECTABLE, FALSE); w 219 src/filemanager/command.c w->callback = command_callback; w 244 src/filemanager/filegui.c Widget *w; w 383 src/filemanager/filegui.c file_ui_op_dlg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 391 src/filemanager/filegui.c DIALOG (w)->ret_value = FILE_ABORT; /* for check_progress_buttons() */ w 397 src/filemanager/filegui.c return dlg_default_callback (w, sender, msg, parm, data); w 517 src/filemanager/filegui.c int w, bw1, bw2; w 610 src/filemanager/filegui.c w = WCOLS (0) + gap + WCOLS (1); w 611 src/filemanager/filegui.c if (w > dlg_width) w 615 src/filemanager/filegui.c w = dlg_width - gap - WCOLS (0); w 616 src/filemanager/filegui.c label_set_text (l, str_trunc (l->text, w)); w 619 src/filemanager/filegui.c w = WCOLS (4) + gap + WCOLS (5); w 620 src/filemanager/filegui.c if (w > dlg_width) w 624 src/filemanager/filegui.c w = dlg_width - gap - WCOLS (4); w 625 src/filemanager/filegui.c label_set_text (l, str_trunc (l->text, w)); w 638 src/filemanager/filegui.c w = dlg_width - (2 + gap); /* right bound */ w 641 src/filemanager/filegui.c WX (3) = w - WCOLS (3); w 642 src/filemanager/filegui.c WX (7) = w - WCOLS (7); w 738 src/filemanager/filegui.c Widget *w = WIDGET (h); w 743 src/filemanager/filegui.c button_set_text (BUTTON (progress_buttons[i].w), progress_buttons[i].text); w 745 src/filemanager/filegui.c progress_buttons[0].w->rect.x = w->rect.x + (w->rect.cols - buttons_width) / 2; w 746 src/filemanager/filegui.c progress_buttons[i].w->rect.x = progress_buttons[0].w->rect.x + progress_buttons[0].len + 1; w 747 src/filemanager/filegui.c progress_buttons[3].w->rect.x = progress_buttons[i].w->rect.x + progress_buttons[i].len + 1; w 823 src/filemanager/filegui.c Widget *w; w 852 src/filemanager/filegui.c w = WIDGET (ui->op_dlg); w 913 src/filemanager/filegui.c progress_buttons[0].w = WIDGET (button_new (y, 0, progress_buttons[0].action, w 917 src/filemanager/filegui.c progress_buttons[0].len = button_get_len (BUTTON (progress_buttons[0].w)); w 919 src/filemanager/filegui.c progress_buttons[1].w = WIDGET (button_new (y, 0, progress_buttons[1].action, w 923 src/filemanager/filegui.c progress_buttons[1].len = button_get_len (BUTTON (progress_buttons[1].w)); w 928 src/filemanager/filegui.c progress_buttons[2].w = WIDGET (button_new (y, 0, progress_buttons[2].action, w 932 src/filemanager/filegui.c progress_buttons[2].len = button_get_len (BUTTON (progress_buttons[2].w)); w 933 src/filemanager/filegui.c widget_destroy (progress_buttons[2].w); w 935 src/filemanager/filegui.c progress_buttons[2].w = progress_buttons[1].w; w 937 src/filemanager/filegui.c progress_buttons[3].w = WIDGET (button_new (y, 0, progress_buttons[3].action, w 941 src/filemanager/filegui.c progress_buttons[3].len = button_get_len (BUTTON (progress_buttons[3].w)); w 943 src/filemanager/filegui.c group_add_widget (g, progress_buttons[0].w); w 944 src/filemanager/filegui.c group_add_widget (g, progress_buttons[1].w); w 945 src/filemanager/filegui.c group_add_widget (g, progress_buttons[3].w); w 952 src/filemanager/filegui.c r = w->rect; w 955 src/filemanager/filegui.c widget_set_size_rect (w, &r); w 959 src/filemanager/filegui.c widget_select (progress_buttons[0].w); w 901 src/filemanager/filemanager.c Widget *w = WIDGET (filemanager); w 904 src/filemanager/filemanager.c w->keymap = filemanager_map; w 905 src/filemanager/filemanager.c w->ext_keymap = filemanager_x_map; w 910 src/filemanager/filemanager.c widget_want_tab (w, TRUE); w 1482 src/filemanager/filemanager.c midnight_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 1495 src/filemanager/filemanager.c group_default_callback (w, NULL, MSG_DRAW, 0, NULL); w 1507 src/filemanager/filemanager.c widget_adjust_position (w->pos_flags, &w->rect); w 1514 src/filemanager/filemanager.c widget_idle (w, FALSE); w 1526 src/filemanager/filemanager.c if (w->ext_mode) w 1528 src/filemanager/filemanager.c command = widget_lookup_key (w, parm); w 1591 src/filemanager/filemanager.c command = widget_lookup_key (w, parm); w 1615 src/filemanager/filemanager.c return dlg_default_callback (w, sender, msg, parm, data); w 1637 src/filemanager/filemanager.c Widget *w = WIDGET (filemanager); w 1639 src/filemanager/filemanager.c buttonbar_set_label (b, 1, Q_ ("ButtonBar|Help"), w->keymap, NULL); w 1640 src/filemanager/filemanager.c buttonbar_set_label (b, 2, Q_ ("ButtonBar|Menu"), w->keymap, NULL); w 1641 src/filemanager/filemanager.c buttonbar_set_label (b, 3, Q_ ("ButtonBar|View"), w->keymap, NULL); w 1642 src/filemanager/filemanager.c buttonbar_set_label (b, 4, Q_ ("ButtonBar|Edit"), w->keymap, NULL); w 1643 src/filemanager/filemanager.c buttonbar_set_label (b, 5, Q_ ("ButtonBar|Copy"), w->keymap, NULL); w 1644 src/filemanager/filemanager.c buttonbar_set_label (b, 6, Q_ ("ButtonBar|RenMov"), w->keymap, NULL); w 1645 src/filemanager/filemanager.c buttonbar_set_label (b, 7, Q_ ("ButtonBar|Mkdir"), w->keymap, NULL); w 1646 src/filemanager/filemanager.c buttonbar_set_label (b, 8, Q_ ("ButtonBar|Delete"), w->keymap, NULL); w 1647 src/filemanager/filemanager.c buttonbar_set_label (b, 9, Q_ ("ButtonBar|PullDn"), w->keymap, NULL); w 1648 src/filemanager/filemanager.c buttonbar_set_label (b, 10, Q_ ("ButtonBar|Quit"), w->keymap, NULL); w 236 src/filemanager/find.c size_t r = 0, w = 0; /* read and write iterators */ w 254 src/filemanager/find.c if (r != w) w 257 src/filemanager/find.c find_ignore_dirs[w] = find_ignore_dirs[r]; w 261 src/filemanager/find.c canonicalize_pathname (find_ignore_dirs[w]); w 262 src/filemanager/find.c if (find_ignore_dirs[w][0] != '\0') w 263 src/filemanager/find.c w++; w 265 src/filemanager/find.c MC_PTR_FREE (find_ignore_dirs[w]); w 476 src/filemanager/find.c find_parm_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 490 src/filemanager/find.c WDialog *h = DIALOG (w); w 495 src/filemanager/find.c group_default_callback (w, NULL, MSG_INIT, 0, NULL); w 517 src/filemanager/find.c widget_set_state (w, WST_ACTIVE, TRUE); w 528 src/filemanager/find.c widget_set_state (w, WST_ACTIVE, TRUE); w 558 src/filemanager/find.c return dlg_default_callback (w, sender, msg, parm, data); w 1260 src/filemanager/find.c const Widget *w = CONST_WIDGET (h); w 1263 src/filemanager/find.c colors = widget_get_colors (w); w 1265 src/filemanager/find.c widget_gotoyx (h, w->rect.lines - 7, w->rect.cols - 4); w 1570 src/filemanager/find.c Widget *w = WIDGET (h); w 1571 src/filemanager/find.c WRect r = w->rect; w 1575 src/filemanager/find.c dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); w 1585 src/filemanager/find.c find_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 1587 src/filemanager/find.c WDialog *h = DIALOG (w); w 1592 src/filemanager/find.c group_default_callback (w, NULL, MSG_INIT, 0, NULL); w 1615 src/filemanager/find.c return dlg_default_callback (w, sender, msg, parm, data); w 1625 src/filemanager/find.c Widget *w = WIDGET (button); w 1636 src/filemanager/find.c find_relocate_buttons (DIALOG (w->owner), FALSE); w 1637 src/filemanager/find.c widget_draw (WIDGET (w->owner)); w 1784 src/filemanager/find.c Widget *w = WIDGET (find_dlg); w 1786 src/filemanager/find.c widget_idle (w, FALSE); w 1787 src/filemanager/find.c widget_destroy (w); w 235 src/filemanager/hotlist.c Widget *w = WIDGET (list); w 258 src/filemanager/hotlist.c groupbox_set_title (movelist_group, str_trunc (p, w->rect.cols - 2)); w 261 src/filemanager/hotlist.c groupbox_set_title (hotlist_group, str_trunc (p, w->rect.cols - 2)); w 262 src/filemanager/hotlist.c label_set_text (pname, str_trunc (text, w->rect.cols)); w 560 src/filemanager/hotlist.c hotlist_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 562 src/filemanager/hotlist.c WDialog *h = DIALOG (w); w 607 src/filemanager/hotlist.c WRect r = w->rect; w 612 src/filemanager/hotlist.c return dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); w 616 src/filemanager/hotlist.c return dlg_default_callback (w, sender, msg, parm, data); w 84 src/filemanager/info.c Widget *w = WIDGET (info); w 91 src/filemanager/info.c widget_erase (w); w 92 src/filemanager/info.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); w 94 src/filemanager/info.c widget_gotoyx (w, 0, (w->rect.cols - len - 2) / 2); w 97 src/filemanager/info.c widget_gotoyx (w, 2, 0); w 99 src/filemanager/info.c widget_gotoyx (w, 2, w->rect.cols - 1); w 101 src/filemanager/info.c tty_draw_hline (w->rect.y + 2, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); w 109 src/filemanager/info.c const WRect *w = &CONST_WIDGET (info)->rect; w 124 src/filemanager/info.c widget_gotoyx (w, 1, 3); w 159 src/filemanager/info.c switch (w->lines - 2) w 166 src/filemanager/info.c widget_gotoyx (w, 17, 3); w 182 src/filemanager/info.c widget_gotoyx (w, 16, 3); w 197 src/filemanager/info.c widget_gotoyx (w, 15, 3); w 204 src/filemanager/info.c widget_gotoyx (w, 14, 3); w 206 src/filemanager/info.c str_trunc (myfs_stats.device, w->cols - i18n_adjust)); w 211 src/filemanager/info.c widget_gotoyx (w, 13, 3); w 213 src/filemanager/info.c str_trunc (myfs_stats.mpoint, w->cols - i18n_adjust)); w 218 src/filemanager/info.c widget_gotoyx (w, 12, 3); w 224 src/filemanager/info.c widget_gotoyx (w, 11, 3); w 230 src/filemanager/info.c widget_gotoyx (w, 10, 3); w 239 src/filemanager/info.c widget_gotoyx (w, 9, 3); w 257 src/filemanager/info.c widget_gotoyx (w, 8, 3); w 261 src/filemanager/info.c widget_gotoyx (w, 7, 3); w 265 src/filemanager/info.c widget_gotoyx (w, 6, 3); w 286 src/filemanager/info.c widget_gotoyx (w, 5, 3); w 291 src/filemanager/info.c widget_gotoyx (w, 4, 3); w 298 src/filemanager/info.c widget_gotoyx (w, 3, 2); w 300 src/filemanager/info.c str_printf (buff, file_label, str_trunc (fname, w->cols - i18n_adjust)); w 335 src/filemanager/info.c info_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 337 src/filemanager/info.c WInfo *info = (WInfo *) w; w 357 src/filemanager/info.c return widget_default_callback (w, sender, msg, parm, data); w 369 src/filemanager/info.c Widget *w; w 372 src/filemanager/info.c w = WIDGET (info); w 373 src/filemanager/info.c widget_init (w, r, info_callback, NULL); w 318 src/filemanager/layout.c layout_bg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 323 src/filemanager/layout.c frame_callback (w, NULL, MSG_DRAW, 0, NULL); w 327 src/filemanager/layout.c update_split (DIALOG (w->owner)); w 333 src/filemanager/layout.c widget_gotoyx (w, 9, 5); w 335 src/filemanager/layout.c widget_gotoyx (w, 9, 5 + 3 + output_lines_label_len); w 341 src/filemanager/layout.c return frame_callback (w, sender, msg, parm, data); w 348 src/filemanager/layout.c layout_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 350 src/filemanager/layout.c WDialog *h = DIALOG (w); w 485 src/filemanager/layout.c return dlg_default_callback (w, sender, msg, parm, data); w 593 src/filemanager/layout.c Widget *w; w 597 src/filemanager/layout.c w = WIDGET (groupbox_new (8, 3, 3, l1, title2)); w 598 src/filemanager/layout.c w->state |= disabled; w 599 src/filemanager/layout.c group_add_widget (g, w); w 601 src/filemanager/layout.c w = WIDGET (button_new (9, output_lines_label_len + 5, B_PLUS, w 603 src/filemanager/layout.c w->state |= disabled; w 604 src/filemanager/layout.c group_add_widget (g, w); w 606 src/filemanager/layout.c w = WIDGET (button_new (9, output_lines_label_len + 5 + 5, B_MINUS, w 608 src/filemanager/layout.c w->state |= disabled; w 609 src/filemanager/layout.c group_add_widget (g, w); w 1062 src/filemanager/layout.c const Widget *w = CONST_WIDGET (filemanager); w 1070 src/filemanager/layout.c widget_gotoyx (w, menubar_visible ? 1 : 0, w->rect.cols - 1); w 1144 src/filemanager/layout.c Widget *w = panels[num].widget; w 1145 src/filemanager/layout.c WPanel *panel = PANEL (w); w 1147 src/filemanager/layout.c r = w->rect; w 1148 src/filemanager/layout.c old_widget = w; w 944 src/filemanager/panel.c Widget *w = WIDGET (panel); w 955 src/filemanager/panel.c width = w->rect.cols - 2; w 965 src/filemanager/panel.c width = w->rect.cols - offset - 2; w 978 src/filemanager/panel.c widget_gotoyx (w, ypos, offset + 1); w 1001 src/filemanager/panel.c widget_gotoyx (w, ypos, offset); w 1011 src/filemanager/panel.c widget_gotoyx (w, ypos, offset); w 1039 src/filemanager/panel.c Widget *w = WIDGET (panel); w 1045 src/filemanager/panel.c widget_gotoyx (w, panel_lines (panel) + 3, 1); w 1052 src/filemanager/panel.c (panel->quick_search.buffer->str, w->rect.cols - 3, J_LEFT)); w 1077 src/filemanager/panel.c tty_print_string (str_fit_to_term (link_target, w->rect.cols - 5, J_LEFT_FIT)); w 1080 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("<readlink failed>"), w->rect.cols - 2, J_LEFT)); w 1088 src/filemanager/panel.c tty_print_string (str_fit_to_term (_("UP--DIR"), w->rect.cols - 2, J_LEFT)); w 1135 src/filemanager/panel.c const Widget *w = CONST_WIDGET (panel); w 1145 src/filemanager/panel.c cols = w->rect.cols - 2; w 1160 src/filemanager/panel.c x = (w->rect.cols - str_term_width1 (buf)) / 2 - 1; w 1166 src/filemanager/panel.c widget_gotoyx (w, y, x); w 1178 src/filemanager/panel.c const Widget *w = CONST_WIDGET (panel); w 1184 src/filemanager/panel.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); w 1221 src/filemanager/panel.c const Widget *w = CONST_WIDGET (panel); w 1231 src/filemanager/panel.c widget_gotoyx (w, w->rect.lines - 1, w->rect.cols - 2 - (int) strlen (tmp)); w 1319 src/filemanager/panel.c const Widget *w = CONST_WIDGET (panel); w 1323 src/filemanager/panel.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); w 1331 src/filemanager/panel.c widget_gotoyx (w, y, 0); w 1333 src/filemanager/panel.c widget_gotoyx (w, y, w->rect.cols - 1); w 1337 src/filemanager/panel.c widget_gotoyx (w, 0, 1); w 1344 src/filemanager/panel.c widget_gotoyx (w, 0, w->rect.cols - 6); w 1349 src/filemanager/panel.c widget_gotoyx (w, 0, 3); w 1360 src/filemanager/panel.c widget_gotoyx (w, 0, 3 + strlen (tmp)); w 1370 src/filemanager/panel.c tty_printf (" %s ", str_term_trim (tmp, MIN (MAX (w->rect.cols - 12, 0), w->rect.cols))); w 1389 src/filemanager/panel.c widget_gotoyx (w, w->rect.lines - 1, 4); w 1397 src/filemanager/panel.c display_total_marked_size (panel, w->rect.lines - 1, 2, TRUE); w 1621 src/filemanager/panel.c const Widget *w = CONST_WIDGET (panel); w 1627 src/filemanager/panel.c widget_gotoyx (w, 1, 1); w 1630 src/filemanager/panel.c tty_draw_hline (y, x, ' ', w->rect.cols - 2); w 3853 src/filemanager/panel.c panel_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 3855 src/filemanager/panel.c WPanel *panel = PANEL (w); w 3856 src/filemanager/panel.c WDialog *h = DIALOG (w->owner); w 3863 src/filemanager/panel.c mc_event_add (h->event_group, MCEVENT_HISTORY_LOAD, panel_load_history, w, NULL); w 3865 src/filemanager/panel.c mc_event_add (h->event_group, MCEVENT_HISTORY_SAVE, panel_save_history, w, NULL); w 3870 src/filemanager/panel.c widget_erase (w); w 3920 src/filemanager/panel.c mc_event_del (h->event_group, MCEVENT_HISTORY_LOAD, panel_load_history, w); w 3922 src/filemanager/panel.c mc_event_del (h->event_group, MCEVENT_HISTORY_SAVE, panel_save_history, w); w 3928 src/filemanager/panel.c return widget_default_callback (w, sender, msg, parm, data); w 4085 src/filemanager/panel.c panel_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 4087 src/filemanager/panel.c WPanel *panel = PANEL (w); w 4090 src/filemanager/panel.c is_active = widget_is_active (w); w 4101 src/filemanager/panel.c else if (event->x == w->rect.cols - 2) w 4104 src/filemanager/panel.c else if (event->x >= w->rect.cols - 5 && event->x <= w->rect.cols - 3) w 4107 src/filemanager/panel.c else if (event->x == w->rect.cols - 6) w 4206 src/filemanager/panel.c widget_draw (w); w 4568 src/filemanager/panel.c Widget *w; w 4573 src/filemanager/panel.c w = WIDGET (panel); w 4574 src/filemanager/panel.c widget_init (w, r, panel_callback, panel_mouse_callback); w 4575 src/filemanager/panel.c w->options |= WOP_SELECTABLE | WOP_TOP_SELECT; w 4576 src/filemanager/panel.c w->keymap = panel_map; w 139 src/filemanager/panelize.c panelize_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 144 src/filemanager/panelize.c group_default_callback (w, NULL, MSG_INIT, 0, NULL); w 152 src/filemanager/panelize.c return dlg_default_callback (w, sender, msg, parm, data); w 224 src/filemanager/tree.c Widget *w = WIDGET (tree); w 241 src/filemanager/tree.c tty_draw_hline (w->rect.y + line, w->rect.x + 1, ' ', tree_cols); w 242 src/filemanager/tree.c widget_gotoyx (w, line, 1); w 253 src/filemanager/tree.c colors = widget_get_colors (w); w 255 src/filemanager/tree.c tty_draw_hline (w->rect.y + line, w->rect.x + 1, ' ', tree_cols); w 256 src/filemanager/tree.c widget_gotoyx (w, line, 1); w 267 src/filemanager/tree.c Widget *w = WIDGET (tree); w 276 src/filemanager/tree.c tree_cols = w->rect.cols; w 278 src/filemanager/tree.c widget_gotoyx (w, y, x); w 339 src/filemanager/tree.c colors = widget_get_colors (w); w 343 src/filemanager/tree.c tty_draw_hline (w->rect.y + y + i, w->rect.x + x, ' ', tree_cols); w 352 src/filemanager/tree.c selected = widget_get_state (w, WST_FOCUSED) && current == tree->selected_ptr; w 974 src/filemanager/tree.c Widget *w = WIDGET (tree); w 979 src/filemanager/tree.c b = buttonbar_find (DIALOG (w->owner)); w 982 src/filemanager/tree.c w->keymap, w); w 1123 src/filemanager/tree.c Widget *w = WIDGET (tree); w 1128 src/filemanager/tree.c widget_erase (w); w 1134 src/filemanager/tree.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); w 1136 src/filemanager/tree.c widget_gotoyx (w, 0, (w->rect.cols - len - 2) / 2); w 1143 src/filemanager/tree.c y = w->rect.lines - 3; w 1144 src/filemanager/tree.c widget_gotoyx (w, y, 0); w 1146 src/filemanager/tree.c widget_gotoyx (w, y, w->rect.cols - 1); w 1148 src/filemanager/tree.c tty_draw_hline (w->rect.y + y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); w 1156 src/filemanager/tree.c tree_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 1158 src/filemanager/tree.c WTree *tree = (WTree *) w; w 1159 src/filemanager/tree.c WDialog *h = DIALOG (w->owner); w 1167 src/filemanager/tree.c if (widget_get_state (w, WST_FOCUSED)) w 1176 src/filemanager/tree.c buttonbar_set_label (b, 1, Q_ ("ButtonBar|Help"), w->keymap, w); w 1177 src/filemanager/tree.c buttonbar_set_label (b, 2, Q_ ("ButtonBar|Rescan"), w->keymap, w); w 1178 src/filemanager/tree.c buttonbar_set_label (b, 3, Q_ ("ButtonBar|Forget"), w->keymap, w); w 1180 src/filemanager/tree.c : Q_ ("ButtonBar|Dynamc"), w->keymap, w); w 1181 src/filemanager/tree.c buttonbar_set_label (b, 5, Q_ ("ButtonBar|Copy"), w->keymap, w); w 1182 src/filemanager/tree.c buttonbar_set_label (b, 6, Q_ ("ButtonBar|RenMov"), w->keymap, w); w 1185 src/filemanager/tree.c buttonbar_set_label (b, 7, Q_ ("ButtonBar|Mkdir"), w->keymap, w); w 1187 src/filemanager/tree.c buttonbar_clear_label (b, 7, w); w 1189 src/filemanager/tree.c buttonbar_set_label (b, 8, Q_ ("ButtonBar|Rmdir"), w->keymap, w); w 1209 src/filemanager/tree.c return widget_default_callback (w, sender, msg, parm, data); w 1219 src/filemanager/tree.c tree_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 1221 src/filemanager/tree.c WTree *tree = (WTree *) w; w 1232 src/filemanager/tree.c if (tree->is_panel && event->y == WIDGET (w->owner)->rect.y) w 1237 src/filemanager/tree.c else if (!widget_get_state (w, WST_FOCUSED)) w 1288 src/filemanager/tree.c Widget *w; w 1292 src/filemanager/tree.c w = WIDGET (tree); w 1293 src/filemanager/tree.c widget_init (w, r, tree_callback, tree_mouse_callback); w 1294 src/filemanager/tree.c w->options |= WOP_SELECTABLE | WOP_TOP_SELECT; w 1295 src/filemanager/tree.c w->keymap = tree_map; w 1304 src/filemanager/tree.c tree->topdiff = w->rect.lines / 2; w 412 src/help.c int w; w 414 src/help.c w = str_term_width1 (word->str); w 415 src/help.c if (*col + w >= HELP_WINDOW_WIDTH) w 428 src/help.c *col += w; w 859 src/help.c Widget *w = WIDGET (h); w 862 src/help.c command = widget_lookup_key (w, key); w 872 src/help.c help_bg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 877 src/help.c frame_callback (w, NULL, MSG_DRAW, 0, NULL); w 878 src/help.c help_show (DIALOG (w->owner), currentpoint); w 882 src/help.c return frame_callback (w, sender, msg, parm, data); w 891 src/help.c Widget *w = WIDGET (h); w 893 src/help.c WRect r = w->rect; w 898 src/help.c dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); w 908 src/help.c help_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 910 src/help.c WDialog *h = DIALOG (w); w 923 src/help.c widget_draw (w); w 933 src/help.c return dlg_default_callback (w, sender, msg, parm, data); w 973 src/help.c md_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 978 src/help.c widget_default_callback (w, NULL, MSG_RESIZE, 0, data); w 979 src/help.c w->rect.lines = help_lines; w 983 src/help.c return widget_default_callback (w, sender, msg, parm, data); w 990 src/help.c help_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 1052 src/help.c widget_draw (WIDGET (w->owner)); w 1060 src/help.c Widget *w; w 1062 src/help.c w = g_new0 (Widget, 1); w 1063 src/help.c widget_init (w, r, md_callback, help_mouse_callback); w 1064 src/help.c w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR; w 1066 src/help.c return w; w 235 src/learn.c learn_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 243 src/learn.c return dlg_default_callback (w, sender, msg, parm, data); w 137 src/vfs/sfs/sfs.c int w; w 151 src/vfs/sfs/sfs.c w = path_element->class->which (path_element->class, path_element->vfs_prefix); w 152 src/vfs/sfs/sfs.c if (w == -1) w 155 src/vfs/sfs/sfs.c if ((sfs_info[w].flags & F_1) == 0 w 163 src/vfs/sfs/sfs.c if ((sfs_info[w].flags & F_NOLOCALCOPY) != 0) w 182 src/vfs/sfs/sfs.c for (s_iter = sfs_info[w].command; *s_iter != '\0'; s_iter++) w 668 src/viewer/actions_cmd.c mcview_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 670 src/viewer/actions_cmd.c WView *view = (WView *) w; w 711 src/viewer/actions_cmd.c widget_default_callback (w, NULL, MSG_RESIZE, 0, data); w 749 src/viewer/actions_cmd.c return widget_default_callback (w, sender, msg, parm, data); w 756 src/viewer/actions_cmd.c mcview_dialog_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 758 src/viewer/actions_cmd.c WDialog *h = DIALOG (w); w 771 src/viewer/actions_cmd.c view = (WView *) widget_find_by_type (w, mcview_callback); w 773 src/viewer/actions_cmd.c widget_set_state (w, WST_ACTIVE, TRUE); w 781 src/viewer/actions_cmd.c return dlg_default_callback (w, sender, msg, parm, data); w 84 src/viewer/display.c Widget *w = WIDGET (view); w 85 src/viewer/display.c WDialog *h = DIALOG (w->owner); w 87 src/viewer/display.c const global_keymap_t *keymap = view->mode_flags.hex ? view->hex_keymap : w->keymap; w 90 src/viewer/display.c buttonbar_set_label (b, 1, Q_ ("ButtonBar|Help"), keymap, w); w 95 src/viewer/display.c buttonbar_set_label (b, 2, Q_ ("ButtonBar|View"), keymap, w); w 97 src/viewer/display.c buttonbar_set_label (b, 2, Q_ ("ButtonBar|Edit"), keymap, w); w 101 src/viewer/display.c buttonbar_set_label (b, 4, Q_ ("ButtonBar|Ascii"), keymap, w); w 102 src/viewer/display.c buttonbar_set_label (b, 6, Q_ ("ButtonBar|Save"), keymap, w); w 103 src/viewer/display.c buttonbar_set_label (b, 7, Q_ ("ButtonBar|HxSrch"), keymap, w); w 109 src/viewer/display.c : Q_ ("ButtonBar|Wrap"), keymap, w); w 110 src/viewer/display.c buttonbar_set_label (b, 4, Q_ ("ButtonBar|Hex"), keymap, w); w 112 src/viewer/display.c buttonbar_set_label (b, 7, Q_ ("ButtonBar|Search"), keymap, w); w 115 src/viewer/display.c buttonbar_set_label (b, 5, Q_ ("ButtonBar|Goto"), keymap, w); w 117 src/viewer/display.c : Q_ ("ButtonBar|Parse"), keymap, w); w 121 src/viewer/display.c buttonbar_set_label (b, 3, Q_ ("ButtonBar|Quit"), keymap, w); w 123 src/viewer/display.c : Q_ ("ButtonBar|Format"), keymap, w); w 124 src/viewer/display.c buttonbar_set_label (b, 10, Q_ ("ButtonBar|Quit"), keymap, w); w 355 src/viewer/display.c Widget *w = WIDGET (view); w 358 src/viewer/display.c widget_erase (w); w 360 src/viewer/display.c tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, FALSE); w 219 src/viewer/internal.h cb_ret_t mcview_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); w 220 src/viewer/internal.h cb_ret_t mcview_dialog_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, w 91 src/viewer/mcviewer.c mcview_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) w 93 src/viewer/mcviewer.c WView *view = (WView *) w; w 102 src/viewer/mcviewer.c if (event->y == WIDGET (w->owner)->rect.y) w 111 src/viewer/mcviewer.c if (!widget_get_state (w, WST_FOCUSED)) w 201 src/viewer/mcviewer.c Widget *w; w 204 src/viewer/mcviewer.c w = WIDGET (view); w 206 src/viewer/mcviewer.c widget_init (w, r, mcview_callback, mcview_mouse_callback); w 207 src/viewer/mcviewer.c w->options |= WOP_SELECTABLE | WOP_TOP_SELECT; w 208 src/viewer/mcviewer.c w->keymap = viewer_map; w 43 tests/lib/widget/group_init_destroy.c widget_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 49 tests/lib/widget/group_init_destroy.c return widget_default_callback (w, NULL, MSG_INIT, 0, NULL); w 53 tests/lib/widget/group_init_destroy.c return widget_default_callback (w, NULL, MSG_DESTROY, 0, NULL); w 56 tests/lib/widget/group_init_destroy.c return widget_default_callback (w, sender, msg, parm, data); w 63 tests/lib/widget/group_init_destroy.c group_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) w 69 tests/lib/widget/group_init_destroy.c return group_default_callback (w, NULL, MSG_INIT, 0, NULL); w 73 tests/lib/widget/group_init_destroy.c return group_default_callback (w, NULL, MSG_DESTROY, 0, NULL); w 76 tests/lib/widget/group_init_destroy.c return group_default_callback (w, sender, msg, parm, data);