IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 7, 2010, 5:00:10 PM (16 years ago)
Author:
eugene
Message:

adding section backgrouns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/Ohana.20100407/src/opihi/cmd.data/section.c

    r27491 r27636  
    11# include "data.h"
    22
    3 enum {NONE, LIST, UP, DOWN, TOP, BOTTOM, TOOL};
     3enum {NONE, LIST, UP, DOWN, TOP, BOTTOM, TOOL, BG};
    44
    55int section (int argc, char **argv) {
     
    3737    location = argv[N];
    3838    remove_argument (N, &argc, argv);
     39  }
     40
     41  background = -1; // invisible
     42  if ((N = get_argument (argc, argv, "-bg"))) {
     43    remove_argument (N, &argc, argv);
     44    background = KapaColorByName(argv[N]);
     45    remove_argument (N, &argc, argv);
     46    action = BG;
    3947  }
    4048
     
    8290        break;
    8391
     92      case BG:
     93        KapaSectionBG (kapa, argv[1], bg);
     94        break;
     95
    8496      case TOOL:
    8597        if (!strcmp(location, "-x")) {
     
    121133    section.dx = atof (argv[4]);
    122134    section.dy = atof (argv[5]);
     135    section.bg = background;
    123136    KapaSetSection (kapa, &section);
    124137    return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.