|
|
case 'o': ft = FT_ONEOF, limit = scan; break; | case 'o': ft = FT_ONEOF, limit = scan; break; |
case 'n': ft = FT_NUMBER, limit = scan; break; | case 'n': ft = FT_NUMBER, limit = scan; break; |
case 's': ft = FT_STRING; break; | case 's': ft = FT_STRING; break; |
case 'f': ft = FT_FILE; break; |
case 'f': ft = FT_FILEC; break; |
case 'l': ft = FT_LOCKED; break; | case 'l': ft = FT_LOCKED; break; |
} | } |
| |
|
|
break; | break; |
| |
case FT_STRING: | case FT_STRING: |
case FT_FILE: |
case FT_FILEC: |
button = addbutton(dia, "<", 'l', ELVCTRL('L')); | button = addbutton(dia, "<", 'l', ELVCTRL('L')); |
button->y = dia->y0 + dia->rowh * i; | button->y = dia->y0 + dia->rowh * i; |
button->x = dia->x0 + 3; | button->x = dia->x0 + 3; |
|
|
newvalue = keystring(dia, key); | newvalue = keystring(dia, key); |
break; | break; |
| |
case FT_FILE: |
case FT_FILEC: |
#ifdef FEATURE_COMPLETE | #ifdef FEATURE_COMPLETE |
if (key == '\t') | if (key == '\t') |
{ | { |
|
|
switch (dia->field[row].ft) | switch (dia->field[row].ft) |
{ | { |
case FT_STRING: | case FT_STRING: |
case FT_FILE: |
case FT_FILEC: |
case FT_NUMBER: | case FT_NUMBER: |
case FT_LOCKED: | case FT_LOCKED: |
drawtext(dia, row); | drawtext(dia, row); |
|
|
break; | break; |
| |
case FT_STRING: | case FT_STRING: |
case FT_FILE: |
case FT_FILEC: |
if (button->shape == 'l') | if (button->shape == 'l') |
if (row == dia->current | if (row == dia->current |
? dia->shift > 0 | ? dia->shift > 0 |