/********************************/ /* r.le.setup/ask_group.c */ /* */ /* 5.0beta */ /* */ /* 1/1/2001 version */ /* */ /* Programmer: Baker */ /* Univ. of Wyoming */ /********************************/ #include "setup.h" #include "vask.h" #include #include "gis.h" /* PROMPT THE USER TO SELECT THE GROUP/CLASS LIMITS */ int ask_group(sel) char **sel; { /* show the option menu using GRASS VASK library function*/ V_clear(); V_intrpt_msg("EXIT PROGRAM"); V_line(2, "SELECT ATTRIBUTE GROUP OR INDEX CLASS TO SETUP:"); V_line(3, "Type 'x' to select; to go to the next; over to exclude"); V_line(5, "r.le.patch"); V_line(6, " Attribute Groups"); V_line(7, " Size Classes"); V_line(8, " Shape Classes"); V_line(9, " Perim./Area Index"); V_line(10, " Corr. Perim./Area Index"); V_line(11, " Rel. Circum. Circle Index"); V_line(13, "r.le.dist"); V_line(14, " Distance Classes"); V_line(15, " Center to Center"); V_line(16, " Center to Edge"); V_line(17, " Edge to Edge"); V_line(18, " From & To Groups for di1=m7, m8, or m9"); V_ques(sel[0], 's', 6, 50, 1); V_ques(sel[1], 's', 7, 50, 1); V_ques(sel[2], 's', 9, 50, 1); V_ques(sel[3], 's', 10, 50, 1); V_ques(sel[4], 's', 11, 50, 1); V_ques(sel[5], 's', 15, 50, 1); V_ques(sel[6], 's', 16, 50, 1); V_ques(sel[7], 's', 17, 50, 1); V_ques(sel[8], 's', 18, 50, 1); V_intrpt_ok(); if (!V_call()) return(-1); return(1); }