Changeset 251 for anr


Ignore:
Timestamp:
Feb 17, 2010, 3:46:49 PM (15 years ago)
Author:
coach
Message:

IA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anr/gantt.l

    r151 r251  
    66#define PICT_TOPSEP   0.0
    77#define PICT_BOTSEP   3.0
    8 #define PICT_LEFTSEP  3.0
     8#define PICT_LEFTSEP  2.0
    99#define PICT_RIGHTSEP 3.0
    1010#define PICT_VSEP     2.0
     
    2222#define DELIVRABLE_VSEP   1
    2323#define DELIVRABLE_HEIGHT 3
    24 #define DELIVRABLE_LABELWIDTH  10
     24#define DELIVRABLE_LABELWIDTH  7.5
    2525#define DELIVRABLE_LABELHEIGHT DELIVRABLE_HEIGHT
    26 #define DELIVRABLE_TITLEWIDTH  35
     26#define DELIVRABLE_TITLEWIDTH  38
    2727#define DELIVRABLE_TITLEHEIGHT DELIVRABLE_HEIGHT
    2828#define DELIVRABLE_BOXHEIGHT   (DELIVRABLE_HEIGHT)
     
    432432    for (stn=0 ; curr->ls[tn][stn][0][0]!=0 ; stn++)
    433433        for (dn=0 ; curr->ls[tn][stn][dn][0]!=0 ; dn++) {
     434            if ( curr->ls[tn][stn][dn][0]->dn<0 ) continue;
    434435            nblivrables += 1;
    435436            height+=curr->ls[tn][stn][dn][0]->height;
     
    480481        double xx= x + milestones[i]*PICT_MONTHWIDTH;
    481482        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);
    482486    }
    483487    fprintf(curr->os,"\\egroup\n");
     
    498502    double boxx,box_dx;
    499503    double box_dy = DELIVRABLE_BOXHEIGHT ;
    500     double title_dx = DELIVRABLE_LABELWIDTH ;
     504    double title_dx = DELIVRABLE_TITLEWIDTH ;
    501505    double title_dy = DELIVRABLE_TITLEHEIGHT ;
    502506   
     
    858862int main()
    859863{
    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 };
    862866
    863867    yylex();
     
    887891    prepare2(curr);
    888892    prepare3(curr);
    889     do_livrable_tables(66);
     893    do_livrable_tables(70);
    890894    return 0;
    891895}
Note: See TracChangeset for help on using the changeset viewer.