- Timestamp:
- Feb 17, 2010, 3:46:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anr/gantt.l
r151 r251 6 6 #define PICT_TOPSEP 0.0 7 7 #define PICT_BOTSEP 3.0 8 #define PICT_LEFTSEP 3.08 #define PICT_LEFTSEP 2.0 9 9 #define PICT_RIGHTSEP 3.0 10 10 #define PICT_VSEP 2.0 … … 22 22 #define DELIVRABLE_VSEP 1 23 23 #define DELIVRABLE_HEIGHT 3 24 #define DELIVRABLE_LABELWIDTH 1024 #define DELIVRABLE_LABELWIDTH 7.5 25 25 #define DELIVRABLE_LABELHEIGHT DELIVRABLE_HEIGHT 26 #define DELIVRABLE_TITLEWIDTH 3 526 #define DELIVRABLE_TITLEWIDTH 38 27 27 #define DELIVRABLE_TITLEHEIGHT DELIVRABLE_HEIGHT 28 28 #define DELIVRABLE_BOXHEIGHT (DELIVRABLE_HEIGHT) … … 432 432 for (stn=0 ; curr->ls[tn][stn][0][0]!=0 ; stn++) 433 433 for (dn=0 ; curr->ls[tn][stn][dn][0]!=0 ; dn++) { 434 if ( curr->ls[tn][stn][dn][0]->dn<0 ) continue; 434 435 nblivrables += 1; 435 436 height+=curr->ls[tn][stn][dn][0]->height; … … 480 481 double xx= x + milestones[i]*PICT_MONTHWIDTH; 481 482 print_vline(xx,y,dy-PICT_MONTHWIDTH-PICT_VSEP,0); 483 char tmp[100]; 484 sprintf(tmp,"M%d",i+1); 485 print_put(xx-2,y-3,tmp); 482 486 } 483 487 fprintf(curr->os,"\\egroup\n"); … … 498 502 double boxx,box_dx; 499 503 double box_dy = DELIVRABLE_BOXHEIGHT ; 500 double title_dx = DELIVRABLE_ LABELWIDTH ;504 double title_dx = DELIVRABLE_TITLEWIDTH ; 501 505 double title_dy = DELIVRABLE_TITLEHEIGHT ; 502 506 … … 858 862 int main() 859 863 { 860 int tnplus[10] = { 1, 2, 3, 4, -1 };861 int tnmoins[10] = { 1, 2, 3, 4, -1 };864 int tnplus[10] = { 1, 2, 3, 4, 8, -1 }; 865 int tnmoins[10] = { 1, 2, 3, 4, 8, -1 }; 862 866 863 867 yylex(); … … 887 891 prepare2(curr); 888 892 prepare3(curr); 889 do_livrable_tables( 66);893 do_livrable_tables(70); 890 894 return 0; 891 895 }
Note: See TracChangeset
for help on using the changeset viewer.