Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 51) sorted by relevance

123

/dflybsd-src/contrib/dialog/
H A Dmsgbox.c49 int button; in dialog_msgbox() local
72 button = dlg_default_button(); in dialog_msgbox()
111 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dialog_msgbox()
125 if (!dlg_button_key(result, &button, &key, &fkey)) in dialog_msgbox()
146 button = dlg_next_button(buttons, button); in dialog_msgbox()
147 if (button < 0) in dialog_msgbox()
148 button = 0; in dialog_msgbox()
151 buttons, button, in dialog_msgbox()
155 button = dlg_prev_button(buttons, button); in dialog_msgbox()
156 if (button < 0) in dialog_msgbox()
[all …]
H A Dyesno.c48 int button = dlg_default_button(); in dialog_yesno() local
95 buttons, button, FALSE, width); in dialog_yesno()
108 if (!dlg_button_key(result, &button, &key, &fkey)) in dialog_yesno()
119 button = dlg_next_button(buttons, button); in dialog_yesno()
120 if (button < 0) in dialog_yesno()
121 button = 0; in dialog_yesno()
124 buttons, button, in dialog_yesno()
128 button = dlg_prev_button(buttons, button); in dialog_yesno()
129 if (button < 0) in dialog_yesno()
130 button = 0; in dialog_yesno()
[all …]
H A Dbuttons.c582 dlg_exit_buttoncode(int button) in dlg_exit_buttoncode() argument
590 result = dlg_ok_buttoncode(button); in dlg_exit_buttoncode()
656 dlg_ok_buttoncode(int button) in dlg_ok_buttoncode() argument
661 if (!dialog_vars.nook && (button <= 0)) { in dlg_ok_buttoncode()
663 } else if (dialog_vars.extra_button && (button == n++)) { in dlg_ok_buttoncode()
665 } else if (!dialog_vars.nocancel && (button == n++)) { in dlg_ok_buttoncode()
667 } else if (dialog_vars.help_button && (button == n)) { in dlg_ok_buttoncode()
671 button, result, dlg_exitcode2s(result))); in dlg_ok_buttoncode()
776 dlg_yes_buttoncode(int button) in dlg_yes_buttoncode() argument
781 result = dlg_ok_buttoncode(button); in dlg_yes_buttoncode()
[all …]
H A Dpause.c69 int button = dlg_default_button(); in dialog_pause() local
182 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dialog_pause()
199 if (!dlg_button_key(result, &button, &key, &fkey)) in dialog_pause()
214 button = dlg_next_button(buttons, button); in dialog_pause()
215 if (button < 0) in dialog_pause()
216 button = 0; in dialog_pause()
219 buttons, button, in dialog_pause()
223 button = dlg_prev_button(buttons, button); in dialog_pause()
224 if (button < 0) in dialog_pause()
225 button = 0; in dialog_pause()
[all …]
H A Dmenubox.c362 int button = dialog_state.visit_items ? -1 : dlg_default_button(); in dlg_menu() local
528 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dlg_menu()
535 if (button < 0) /* --visit-items */ in dlg_menu()
542 if (!dlg_button_key(result, &button, &key, &fkey)) in dlg_menu()
565 button = (key - M_EVENT); in dlg_menu()
575 if (button < 0 || !dialog_state.visit_items) { in dlg_menu()
595 button = j; in dlg_menu()
676 button = dlg_prev_button(buttons, button); in dlg_menu()
677 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, in dlg_menu()
682 button = dlg_next_button(buttons, button); in dlg_menu()
[all …]
H A Dprogressbox.c285 int button; in pause_for_ok() local
296 button = dlg_default_button(); in pause_for_ok()
312 if (button < 0) in pause_for_ok()
313 button = 0; in pause_for_ok()
316 buttons, button, in pause_for_ok()
322 if (!dlg_button_key(result, &button, &key, &fkey)) in pause_for_ok()
334 button = dlg_next_button(buttons, button); in pause_for_ok()
338 button = dlg_prev_button(buttons, button); in pause_for_ok()
342 result = dlg_ok_buttoncode(button); in pause_for_ok()
H A Dchecklist.c198 int button = dialog_state.visit_items ? -1 : dlg_default_button(); in dlg_checklist() local
379 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dlg_checklist()
386 if (button < 0) /* --visit-items */ in dlg_checklist()
391 if (!dlg_button_key(result, &button, &key, &fkey)) in dlg_checklist()
467 if (button < 0 || !dialog_state.visit_items) { in dlg_checklist()
487 button = j; in dlg_checklist()
566 result = dlg_enter_buttoncode(button); in dlg_checklist()
569 result = dlg_ok_buttoncode(button); in dlg_checklist()
572 button = dlg_prev_button(buttons, button); in dlg_checklist()
573 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, in dlg_checklist()
[all …]
H A Dtreeview.c203 int button = dialog_state.visit_items ? -1 : dlg_default_button(); in dlg_treeview() local
360 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dlg_treeview()
367 if (button < 0) /* --visit-items */ in dlg_treeview()
372 if (!dlg_button_key(result, &button, &key, &fkey)) in dlg_treeview()
431 if (button < 0 || !dialog_state.visit_items) { in dlg_treeview()
451 button = j; in dlg_treeview()
529 result = dlg_enter_buttoncode(button); in dlg_treeview()
532 result = dlg_ok_buttoncode(button); in dlg_treeview()
535 button = dlg_prev_button(buttons, button); in dlg_treeview()
536 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, in dlg_treeview()
[all …]
H A Dbuildlist.c558 int button; in dlg_buildlist() local
591 button = (dialog_state.visit_items in dlg_buildlist()
738 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dlg_buildlist()
760 if (button < 0) { /* --visit-items */ in dlg_buildlist()
775 if (!dlg_button_key(result, &button, &key, &fkey)) in dlg_buildlist()
874 if (button < 0 || !dialog_state.visit_items) { in dlg_buildlist()
894 button = j; in dlg_buildlist()
915 if ((button == sRIGHT) && dialog_state.visit_items) { in dlg_buildlist()
917 button = sLEFT; in dlg_buildlist()
919 button = dlg_prev_button(buttons, button); in dlg_buildlist()
[all …]
H A Dtextbox.c727 int button = dlg_default_button(); in dialog_textbox() local
787 dlg_draw_buttons(dialog, PAGE_LENGTH + 2, 0, obj.buttons, button, FALSE, width); in dialog_textbox()
843 if (!dlg_ok_button_key(result, &button, &key, &fkey)) in dialog_textbox()
864 button = dlg_next_button(obj.buttons, button); in dialog_textbox()
865 if (button < 0) in dialog_textbox()
866 button = 0; in dialog_textbox()
869 obj.buttons, button, in dialog_textbox()
873 button = dlg_prev_button(obj.buttons, button); in dialog_textbox()
874 if (button < 0) in dialog_textbox()
875 button = 0; in dialog_textbox()
[all …]
H A Drangebox.c200 int button; in dialog_rangebox() local
305 button = (state < 0) ? 0 : state; in dialog_rangebox()
306 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dialog_rangebox()
314 if (!dlg_button_key(result, &button, &key, &fkey)) in dialog_rangebox()
326 result = dlg_enter_buttoncode(button); in dialog_rangebox()
329 result = dlg_ok_buttoncode(button); in dialog_rangebox()
H A Dtimebox.c177 int button; in dialog_timebox() local
292 button = (state < 0) ? 0 : state; in dialog_timebox()
293 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dialog_timebox()
299 if (!dlg_button_key(result, &button, &key, &fkey)) in dialog_timebox()
320 result = dlg_enter_buttoncode(button); in dialog_timebox()
323 result = dlg_ok_buttoncode(button); in dialog_timebox()
H A Ddlg_keys.c390 dlg_button_key(int exit_code, int *button, int *dialog_key, int *fkey) in dlg_button_key() argument
396 *button = 0; in dlg_button_key()
402 *button = dialog_vars.nook ? 0 : 1; in dlg_button_key()
408 *button = dialog_vars.nook ? 1 : 2; in dlg_button_key()
417 *button = okay + extra + cancel; in dlg_button_key()
424 exit_code, dlg_exitcode2s(exit_code), *button)); in dlg_button_key()
431 dlg_ok_button_key(int exit_code, int *button, int *dialog_key, int *fkey) in dlg_ok_button_key() argument
439 result = dlg_button_key(exit_code, button, dialog_key, fkey); in dlg_ok_button_key()
H A DCHANGES53 extra button is used (report by Стрижак Андрей).
106 with the button-box (report by Victor Ananjevsky).
129 + add DIALOG_TIMEOUT to sample scripts, and use report-button more
148 the current dialog by activating the currently-selected button.
196 + tailbox/tailboxbg's exit-button now works with mouse-clicks
241 + modify inputmenu to recognize the "Cancel" button and keys bound to
270 bound to ok/extra/cancel/help to simulate a button-press on the
271 corresponding button (report by "sgewrk").
364 "--help-button" (prompted by discussion with Csanyi Pal).
476 + change mouse initialization to look for button-presses rather than
[all …]
H A Dcalendar.c710 int button; in dialog_calendar() local
868 button = (state < 0) ? 0 : state; in dialog_calendar()
869 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width); in dialog_calendar()
875 if (!dlg_button_key(result, &button, &key, &fkey)) in dialog_calendar()
899 result = dlg_enter_buttoncode(button); in dialog_calendar()
902 result = dlg_ok_buttoncode(button); in dialog_calendar()
/dflybsd-src/usr.sbin/moused/
H A Dmoused.c960 action0.button = action0.obutton; in moused()
966 action.flags, action.button, action.obutton); in moused()
968 action0.obutton = action0.button; in moused()
995 if (action0.button == MOUSE_BUTTON2DOWN) { in moused()
1001 action.flags, action.button, action.obutton); in moused()
1004 action.flags, action.button, action.obutton); in moused()
1020 A(newaction.button & MOUSE_BUTTON1DOWN, in moused()
1021 action0.button & MOUSE_BUTTON3DOWN)); in moused()
1024 newaction.button = MOUSE_BUTTON2DOWN; in moused()
1029 newaction.obutton = newaction.button; in moused()
[all …]
/dflybsd-src/usr.sbin/installer/dfuife_curses/
H A Dcurses_xlat.c146 struct curses_widget *button, *cw; in cb_click_select_option() local
152 button = curses_form_widget_add(cf, 1, in cb_click_select_option()
155 curses_widget_set_click_cb(button, cb_click_close_form); in cb_click_select_option()
258 struct curses_widget *xbox, *button; in curses_form_create_widget_row() local
318 button = curses_form_widget_add(cf, left, in curses_form_create_widget_row()
322 button = curses_form_widget_insert_after(cw, left, in curses_form_create_widget_row()
325 cw = button; in curses_form_create_widget_row()
328 button->user_id = row; in curses_form_create_widget_row()
329 curses_widget_set_click_cb(button, cb_click_insert_row); in curses_form_create_widget_row()
331 left += button->width + 1; in curses_form_create_widget_row()
[all …]
/dflybsd-src/sys/dev/misc/syscons/
H A Dsysmouse.c379 sc->syncstatus.obutton = sc->syncstatus.button; in smioctl()
507 status->obutton = status->button; in sysmouse_updatestatus()
511 status->button = info->u.data.buttons; in sysmouse_updatestatus()
521 status->button |= info->u.event.id; in sysmouse_updatestatus()
523 status->button &= ~info->u.event.id; in sysmouse_updatestatus()
533 | (status->obutton ^ status->button); in sysmouse_updatestatus()
536 smdev_evdev_write(x, y, z, status->button); in sysmouse_updatestatus()
577 | butmap[sc->readstatus.button & MOUSE_STDBUTTONS]; in sysmouse_evtopkt()
590 buf[7] = (~sc->readstatus.button >> 3) & 0x7f; in sysmouse_evtopkt()
/dflybsd-src/sys/bus/u4b/input/
H A Dwsp.c151 uint8_t button; /* left button */ member
925 sc->sc_status.obutton = sc->sc_status.button; in wsp_intr_callback()
926 sc->sc_status.button = 0; in wsp_intr_callback()
930 sc->sc_status.button |= MOUSE_BUTTON3DOWN; in wsp_intr_callback()
932 sc->sc_status.button |= MOUSE_BUTTON2DOWN; in wsp_intr_callback()
934 sc->sc_status.button |= MOUSE_BUTTON1DOWN; in wsp_intr_callback()
967 sc->sc_status.button == 0) { in wsp_intr_callback()
1045 if (sc->ibtn != 0 && sc->sc_status.button == 0) in wsp_intr_callback()
1061 if (ntouch == 2 && sc->sc_status.button != 0) { in wsp_intr_callback()
1070 sc->sc_status.obutton != sc->sc_status.button) { in wsp_intr_callback()
[all …]
H A Dums.c314 buttons |= sc->sc_status.button & ~buttons_found; in ums_intr_callback()
321 (buttons != sc->sc_status.button)) { in ums_intr_callback()
332 sc->sc_status.button = buttons; in ums_intr_callback()
817 sc->sc_status.button = 0; in ums_reset()
1135 sc->sc_status.obutton = sc->sc_status.button; in ums_fifo_ioctl()
1136 sc->sc_status.button = 0; in ums_fifo_ioctl()
1145 if (status->button != status->obutton) { in ums_fifo_ioctl()
/dflybsd-src/contrib/binutils-2.27/binutils/
H A Ddwarf-mode.el79 (defun dwarf-die-button-action (button)
80 (let* ((die (button-get button 'die))
85 (is-ref (button-get button 'die-ref)))
/dflybsd-src/sys/dev/misc/psm/
H A Dpsm.c457 int button; /* the latest button state */ member
2285 sc->status.button = 0;
2290 sc->button = 0;
2446 mapped = status->button & ~MOUSE_BUTTON4DOWN;
2447 if (status->button & MOUSE_BUTTON4DOWN)
2449 status->button = mapped;
2462 butmapmsc[status->button & MOUSE_STDBUTTONS];
2472 buf[7] = (~status->button >> 3) & 0x7f;
2822 sc->status.obutton = sc->status.button;
2823 sc->status.button = 0;
[all …]
/dflybsd-src/share/examples/ppp/
H A Dlogin-auth71 button .b.ok -default active -text "Ok" -takefocus 0 -command {done};
73 button .b.cancel -default normal -text "Cancel" -takefocus 0 -command {exit 1};
H A Dchap-auth94 button .b.ok -default active -text "Ok" -command {done};
96 button .b.cancel -default normal -text "Cancel" -command {exit 1};
/dflybsd-src/nrelease/gui/root/.fvwm/
H A D.fvwm2rc84 # 1 left button
85 # 2 middle button
86 # 3 right button
90 # On title bar button:
115 # 1 left button
117 # 2 rightmost button
319 ################## FvwmButtons button-bar ################################

123