Changeset 210 in Sophya for trunk/SophyaPI/PIext/piacmd.cc


Ignore:
Timestamp:
Mar 3, 1999, 7:32:48 PM (27 years ago)
Author:
ercodmgr
Message:

Positionnement fenetres, nouvelles commandes (piapp), Gestion fenetre des options Histo-2D Reza 03/03/99

File:
1 edited

Legend:

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

    r208 r210  
    139139  cout << "help  shelp  exec  set  listvars  traceon  traceoff \n";
    140140  cout << "timingon  timingoff  shell \n";
    141   cout << "link  call    zone  gratt  stacknext \n" ;
     141  cout << "link  call    zone  grwin  gratt  stacknext \n" ;
    142142  cout << "openppf  saveall  listobjs openfits savefits \n";
    143143  cout << "print rename  del delobjs \n";
     
    156156  cout << "traceon/off  --  timingon/off  --  shell cmdline\n";
    157157  cout << "link fnameso f1 [f2 f3]  --   call userf [arg1 arg2 ...]\n";
    158   cout << "zone nx ny  --  gratt attributes_list  --  stacknext \n";
    159   cout << "openfits file -- openppf file -- saveall file -- listobjs --\n";
     158  cout << "zone nx ny -- newwin nx ny -- gratt attributes_list -- stacknext \n";
     159  cout << "openppf file -- saveall file -- listobjs \n";
     160  cout << "openfits file -- savefits nomobj file \n";
    160161  cout << "print nomobj -- rename nomobj nomnew -- del nomobj -- delobjs pattern (*,?) \n";
    161162  cout << "newh1d nomh xmin xmax nbin  --  newh2d nomh xmin xmax nbinx ymin ymax nbiny\n";
     
    224225  nx = ny = 1;
    225226  nx = atoi(tokens[0].c_str());    ny = atoi(tokens[1].c_str());
    226   mObjMgr->SetGraphicWinZone(nx, ny);
     227  mObjMgr->SetGraphicWinZone(nx, ny, false);
     228  } 
     229else if (kw == "newwin") {
     230  if (tokens.size() < 2) { cout << "PIACmd::Do() Usage: newwin nx ny" << endl;  return(0); }
     231  int nx, ny;
     232  nx = ny = 1;
     233  nx = atoi(tokens[0].c_str());    ny = atoi(tokens[1].c_str());
     234  mObjMgr->SetGraphicWinZone(nx, ny, true);
    227235  } 
    228236else if (kw == "gratt") {
Note: See TracChangeset for help on using the changeset viewer.