- Timestamp:
- May 3, 2010, 8:41:49 AM (16 years ago)
- Location:
- branches/tap_branches
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/tap_branches
- Property svn:mergeinfo changed
-
branches/tap_branches/Ohana
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk/Ohana merged eligible /branches/eam_branches/Ohana.20100407 27635-27772 /branches/pap_delete/Ohana 27530-27595
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/tap_branches/Ohana/src/opihi/cmd.data/section.c
r13479 r27838 1 1 # include "data.h" 2 2 3 enum {NONE, LIST, UP, DOWN, TOP, BOTTOM, TOOL };3 enum {NONE, LIST, UP, DOWN, TOP, BOTTOM, TOOL, BG}; 4 4 5 5 int section (int argc, char **argv) { 6 6 7 int N, action, kapa; 8 char *name, *location; 7 int N, action, kapa, background; 9 8 Graphdata graphmode; 10 9 KapaSection section; 10 char *name = NULL; 11 char *location = NULL; 11 12 12 13 action = NONE; … … 36 37 location = argv[N]; 37 38 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 if (!strcasecmp (argv[N], "NONE")) { 45 background = -1; 46 } else { 47 background = KapaColorByName(argv[N]); 48 } 49 remove_argument (N, &argc, argv); 50 action = BG; 38 51 } 39 52 … … 81 94 break; 82 95 96 case BG: 97 KapaSectionBG (kapa, argv[1], background); 98 break; 99 83 100 case TOOL: 84 101 if (!strcmp(location, "-x")) { … … 120 137 section.dx = atof (argv[4]); 121 138 section.dy = atof (argv[5]); 139 section.bg = background; 122 140 KapaSetSection (kapa, §ion); 123 141 return (TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.
