Changeset 2383 in Sophya for trunk/SophyaPI/PIext/pistdimgapp.cc


Ignore:
Timestamp:
May 16, 2003, 5:15:55 PM (22 years ago)
Author:
ansari
Message:

Ajout methode GetInfoString() aux ObjAdapter + attributs de gestion de position de stat pour PINtuple/PIHisto + positionnement par defaut de stat (statposoff=) lors de disp same - Reza 16/5/2003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/pistdimgapp.cc

    r2350 r2383  
    4444static void hideInfoWindow(PIStdImgApp* app);
    4545
     46// Pour compter le nombre de display same a la suite
     47static int nb_disp_same = 0;
    4648
    4749/* ........................................................... */
     
    628630  // Les options
    629631  scd->DecodeOptionString(mDefaultAtt, false);
     632  if (nb_disp_same > 0) {
     633    vector<string> ostatpos;
     634    int spo = nb_disp_same%4;
     635    if (spo == 1) ostatpos.push_back("statposoff=-0.01,-0.26");
     636    else if (spo == 2)  ostatpos.push_back("statposoff=-0.36,-0.01");
     637    else  ostatpos.push_back("statposoff=-0.36,-0.26");
     638    scd->DecodeOptionString(ostatpos, true);
     639  }
    630640  scd->DecodeOptionString(opts, true);
    631641
     
    720730  // Les options
    721731  dr3->DecodeOptionString(mDefaultAtt, false);
     732  if (nb_disp_same > 1) {
     733    vector<string> ostatpos;
     734    int spo = nb_disp_same%4;
     735    if (spo == 1) ostatpos.push_back("statposoff=-0.01,-0.26");
     736    else if (spo == 2)  ostatpos.push_back("statposoff=-0.36,-0.01");
     737    else  ostatpos.push_back("statposoff=-0.36,-0.26");
     738    dr3->DecodeOptionString(ostatpos, true);
     739  }
     740
    722741  dr3->DecodeOptionString(opts, true);
    723742
     
    14441463
    14451464  //DBG  cerr << " DBG-Parse-B opts.size()=" << opts.size() << endl;
     1465  if (rc == Disp_Same) nb_disp_same++;
     1466  else nb_disp_same = 0;
    14461467  return (rc);
    14471468}
Note: See TracChangeset for help on using the changeset viewer.