Lines Matching defs:state
514 usable_state(int state, LIST * dirs, LIST * files)
518 switch (state) {
532 #define which_list() ((state == sFILES) \
534 : ((state == sDIRS) \
585 int state = dialog_vars.default_button >= 0 ? dlg_default_button() : sTEXT;
587 int first = (state == sTEXT);
709 if (fill_lists(current, input, &d_list, &f_list, state < sTEXT))
725 button = (state < 0) ? 0 : state;
734 if (state < 0) {
735 switch (state) {
753 key = dlg_mouse_wgetch((state == sTEXT) ? w_text : dialog, &fkey);
766 state = sDIRS;
770 state = sDIRS;
774 state = sFILES;
778 state = sFILES;
794 state = dlg_prev_ok_buttonindex(state, sDIRS);
795 } while (!usable_state(state, &d_list, &f_list));
804 state = dlg_next_ok_buttonindex(state, sDIRS);
805 } while (!usable_state(state, &d_list, &f_list));
813 if (state == sFILES && !dselect) {
815 } else if (state == sDIRS) {
823 state = sTEXT;
834 } else { /* if (state < sTEXT) */
840 result = (state > 0) ? dlg_enter_buttoncode(state) : DLG_EXIT_OK;
859 state = sTEXT;
863 state = sFILES;
870 state = sDIRS;
884 if (state < 0) { /* Input box selected if we're editing */
891 state = sTEXT;
893 } else if (state >= 0 &&