Searched refs:buttons (Results 1 - 25 of 43) sorted by relevance

12

/freebsd-9.3-release/contrib/dialog/
H A Dyesno.c31 * Display a dialog box with two buttons - Yes and No.
59 const char **buttons = dlg_yes_labels(); local
71 dlg_button_layout(buttons, &min_width);
87 dlg_register_buttons(dialog, "yesno", buttons);
100 buttons, button, FALSE, width);
111 if ((code = dlg_char_to_button(key, buttons)) >= 0) {
119 button = dlg_next_button(buttons, button);
124 buttons, button,
128 button = dlg_prev_button(buttons, button);
133 buttons, butto
[all...]
H A Dmsgbox.c60 const char **buttons = dlg_ok_label(); local
72 dlg_button_layout(buttons, &min_width);
92 dlg_register_buttons(dialog, "msgbox", buttons);
106 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
119 if (!fkey && (check = dlg_char_to_button(key, buttons)) >= 0) {
135 button = dlg_next_button(buttons, button);
140 buttons, button,
144 button = dlg_prev_button(buttons, button);
149 buttons, button,
H A Dpause.c78 const char **buttons = dlg_ok_labels(); local
79 bool have_buttons = (dlg_button_count(buttons) != 0);
102 dlg_button_layout(buttons, &width);
118 dlg_register_buttons(dialog, "pause", buttons);
176 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
202 button = dlg_next_button(buttons, button);
207 buttons, button,
211 button = dlg_prev_button(buttons, button);
216 buttons, button,
H A Dtailbox.c34 const char **buttons; member in struct:__anon935
227 if (!fkey && dlg_char_to_button(ch, obj->buttons) == 0) {
308 const char **buttons = 0; local
345 buttons = dlg_exit_label();
346 dlg_button_layout(buttons, &min_width);
347 dlg_draw_buttons(dialog, height - (2 * MARGIN), 0, buttons, FALSE,
364 obj->buttons = buttons;
368 dlg_register_buttons(dialog, "tailbox", buttons);
390 dlg_button_layout(buttons,
[all...]
H A Dinputbox.c80 const char **buttons = dlg_ok_labels(); local
106 dlg_button_layout(buttons, &width);
115 dlg_register_buttons(dialog, "inputbox", buttons);
150 dlg_draw_buttons(dialog, height - 2, 0, buttons, state, FALSE, width);
185 if (!fkey && (code = dlg_char_to_button(key, buttons)) >= 0) {
H A Dmenubox.c337 const char **buttons = dlg_ok_labels(); local
356 dlg_button_layout(buttons, &width);
365 dlg_register_buttons(dialog, "menubox", buttons);
401 dlg_register_buttons(menu, "menu", buttons);
462 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
520 } else if ((j = dlg_char_to_button(key, buttons)) >= 0) {
680 button = dlg_prev_button(buttons, button);
681 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
685 button = dlg_next_button(buttons, button);
686 dlg_draw_buttons(dialog, height - 2, 0, buttons, butto
[all...]
H A Dprogressbox.c122 const char **buttons = dlg_ok_label(); local
126 dlg_register_buttons(dialog, "progressbox", buttons);
130 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
137 if (!fkey && (check = dlg_char_to_button(key, buttons)) >= 0) {
H A Dtimebox.c188 const char **buttons = dlg_ok_labels(); local
209 dlg_button_layout(buttons, &width);
222 dlg_register_buttons(dialog, "timebox", buttons);
284 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
292 if ((key2 = dlg_char_to_button(key, buttons)) >= 0) {
H A Dchecklist.c192 const char **buttons = dlg_ok_labels(); local
228 dlg_button_layout(buttons, &width);
244 dlg_register_buttons(dialog, "checklist", buttons);
329 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
443 } else if ((j = dlg_char_to_button(key, buttons)) >= 0) {
591 button = dlg_prev_button(buttons, button);
592 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
596 button = dlg_next_button(buttons, button);
597 dlg_draw_buttons(dialog, height - 2, 0, buttons, button,
H A Ddlg_keys.c33 bool buttons; /* true only for dlg_register_buttons() */ variable
101 dlg_register_buttons(WINDOW *win, const char *name, const char **buttons) argument
107 if (buttons == 0)
110 for (n = 0; buttons[n] != 0; ++n) {
111 int curses_key = dlg_button_to_char(buttons[n]);
136 p->buttons = TRUE;
164 /* the user-defined and buttons-bindings all are length=1 */
215 if (p->buttons
235 * buttons on the widget such as "OK".
H A Dtextbox.c36 const char **buttons; member in struct:__anon936
688 obj.buttons = dlg_exit_label();
703 dlg_button_layout(obj.buttons, &min_width);
719 dlg_register_buttons(dialog, "textbox", obj.buttons);
732 dlg_draw_buttons(dialog, PAGE_LENGTH + 2, 0, obj.buttons, button, FALSE, width);
789 if (!fkey && (code = dlg_char_to_button(key, obj.buttons)) >= 0) {
806 button = dlg_next_button(obj.buttons, button);
811 obj.buttons, button,
815 button = dlg_prev_button(obj.buttons, button);
820 obj.buttons, butto
[all...]
H A Dcalendar.c434 const char **buttons = dlg_ok_labels(); local
476 dlg_button_layout(buttons, &mincols);
491 dlg_register_buttons(dialog, "calendar", buttons);
548 dlg_draw_buttons(dialog, height - 2, 0, buttons, button, FALSE, width);
560 if ((key2 = dlg_char_to_button(key, buttons)) >= 0) {
H A Deditbox.c350 const char **buttons = dlg_ok_labels(); local
370 dlg_button_layout(buttons, &mincols);
380 dlg_register_buttons(dialog, "editbox", buttons);
469 buttons,
622 if (!fkey && (code = dlg_char_to_button(key, buttons)) >= 0) {
/freebsd-9.3-release/sys/dev/adb/
H A Dadb_mouse.c82 int buttons; member in struct:adb_mouse_softc
162 sc->hw.buttons = 2;
174 sc->buttons = 0;
220 sc->hw.buttons = r1[7];
223 sc->hw.buttons, sc->mode.resolution,description);
341 int buttons, tmp_buttons; local
351 buttons = 0;
352 buttons |= !(data[0] & 0x80);
353 buttons |= !(data[1] & 0x80) << 1;
360 buttons |
[all...]
/freebsd-9.3-release/usr.sbin/bsdinstall/partedit/
H A Ddiskeditor.c67 const char *buttons[] = local
106 dlg_button_layout(buttons, &min_width);
118 dlg_register_buttons(dialog, "diskeditorbox", buttons);
129 dlg_register_buttons(partitions, "partlist", buttons);
133 dlg_draw_buttons(dialog, height - 2*MARGIN, 0, buttons,
160 if ((i = dlg_char_to_button(key, buttons)) >= 0) {
163 dlg_draw_buttons(dialog, height - 2*MARGIN, 0, buttons,
173 cur_button = dlg_next_button(buttons, cur_button);
177 dlg_draw_buttons(dialog, height - 2*MARGIN, 0, buttons,
181 cur_button = dlg_prev_button(buttons, cur_butto
[all...]
/freebsd-9.3-release/usr.sbin/sade/
H A Ddmenu.c167 dmenuOpenSimple(DMenu *menu, Boolean buttons) argument
172 return dmenuOpen(menu, &choice, &scroll, &curr, &max, buttons);
245 dmenuOpen(DMenu *menu, int *choice, int *scroll, int *curr, int *max, Boolean buttons) argument
251 if (buttons)
268 (char *)(uintptr_t)buttons, choice, scroll);
273 items, (char *)(uintptr_t)buttons);
278 items, (char *)(uintptr_t)buttons);
/freebsd-9.3-release/sys/dev/usb/input/
H A Dums.c188 int32_t buttons = 0; local
272 buttons |= mask;
280 /* keep old button value(s) for non-detected buttons */
281 buttons |= sc->sc_status.button & ~buttons_found;
284 (buttons != sc->sc_status.button)) {
286 DPRINTFN(6, "x:%d y:%d z:%d t:%d w:%d buttons:0x%08x\n",
287 dx, dy, dz, dt, dw, buttons);
291 buttons |= 1UL << 3;
293 buttons |= 1UL << 4;
295 sc->sc_status.button = buttons;
733 ums_put_queue(struct ums_softc *sc, int32_t dx, int32_t dy, int32_t dz, int32_t dt, int32_t buttons) argument
[all...]
/freebsd-9.3-release/usr.sbin/sysinstall/
H A Ddmenu.c211 dmenuOpenSimple(DMenu *menu, Boolean buttons) argument
216 return dmenuOpen(menu, &choice, &scroll, &curr, &max, buttons);
343 dmenuOpen(DMenu *menu, int *choice, int *scroll, int *curr, int *max, Boolean buttons) argument
349 if (buttons)
366 (char *)(uintptr_t)buttons, choice, scroll);
371 items, (char *)(uintptr_t)buttons);
376 items, (char *)(uintptr_t)buttons);
/freebsd-9.3-release/gnu/lib/libdialog/
H A DMakefile7 SRCS= argv.c arrows.c buttons.c calendar.c checklist.c columns.c \
/freebsd-9.3-release/lib/libvgl/
H A Dmouse.c175 VGLMouseButtons = mouseinfo.u.data.buttons;
218 VGLMouseButtons = mouseinfo.u.data.buttons;
224 VGLMouseStatus(int *x, int *y, char *buttons) argument
229 *buttons = VGLMouseButtons;
/freebsd-9.3-release/release/picobsd/tinyware/view/
H A Dview.c118 char buttons; local
159 VGLMouseStatus(&x,&y,&buttons);
171 } while (buttons & MOUSE_BUTTON3DOWN);
478 char buttons; local
606 VGLMouseStatus(&x,&y,&buttons);
607 if(buttons & MOUSE_BUTTON3DOWN) {
/freebsd-9.3-release/tools/sched/
H A Dschedgraph.py280 self.buttons = Frame(self)
284 self.buttons.grid(row=1, column=0, sticky=E+W)
299 self.apply = Button(self.buttons, text="Apply",
301 self.default = Button(self.buttons, text="Revert",
305 self.buttons.columnconfigure(0, weight=1)
306 self.buttons.columnconfigure(1, weight=1)
366 self.buttons = Frame(self)
375 self.buttons.grid(row=1, column=0, sticky=W)
391 self.apply = Button(self.buttons, text="Apply",
393 self.default = Button(self.buttons, tex
[all...]
/freebsd-9.3-release/contrib/ncurses/ncurses/base/
H A Dlib_mouse.c108 #undef buttons /* symbol conflict in consio.h */ macro
234 if (rc) { /* retry with 2 buttons */
271 sprintf(err, "Error setting event mask, buttons=%d, rc=%lu.\r\n",
304 sp->_sysmouse_new_buttons = the_mouse.u.data.buttons & 0x7;
708 if (ev.buttons & GPM_B_LEFT)
710 if (ev.buttons & GPM_B_MIDDLE)
712 if (ev.buttons & GPM_B_RIGHT)
716 if (ev.buttons & GPM_B_LEFT)
718 if (ev.buttons & GPM_B_MIDDLE)
720 if (ev.buttons
[all...]
/freebsd-9.3-release/sys/dev/syscons/
H A Dscmouse.c65 int buttons; member in struct:old_mouse_data
690 mouse->u.data.buttons = swapb[old_mouse->u.data.buttons & 0x7];
695 old_mouse->u.data.buttons = swapb[scp->mouse_buttons & 0x7];
760 mouse->u.data.buttons = scp->mouse_buttons;
779 f = cur_scp->mouse_buttons ^ mouse->u.data.buttons;
780 cur_scp->mouse_buttons = mouse->u.data.buttons;
788 * If any buttons are down or the mouse has moved a lot,
791 if (((mouse->operation == MOUSE_ACTION) && mouse->u.data.buttons)
H A Dsysmouse.c68 hw->buttons = 10; /* XXX unknown */
196 mouse_status.button = info->u.data.buttons;
239 /* buttons 4-10 */

Completed in 403 milliseconds

12