Changeset 210 in Sophya for trunk/SophyaPI
- Timestamp:
- Mar 3, 1999, 7:32:48 PM (27 years ago)
- Location:
- trunk/SophyaPI/PIext
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/PIext/piacmd.cc
r208 r210 139 139 cout << "help shelp exec set listvars traceon traceoff \n"; 140 140 cout << "timingon timingoff shell \n"; 141 cout << "link call zone gr att stacknext \n" ;141 cout << "link call zone grwin gratt stacknext \n" ; 142 142 cout << "openppf saveall listobjs openfits savefits \n"; 143 143 cout << "print rename del delobjs \n"; … … 156 156 cout << "traceon/off -- timingon/off -- shell cmdline\n"; 157 157 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"; 160 161 cout << "print nomobj -- rename nomobj nomnew -- del nomobj -- delobjs pattern (*,?) \n"; 161 162 cout << "newh1d nomh xmin xmax nbin -- newh2d nomh xmin xmax nbinx ymin ymax nbiny\n"; … … 224 225 nx = ny = 1; 225 226 nx = atoi(tokens[0].c_str()); ny = atoi(tokens[1].c_str()); 226 mObjMgr->SetGraphicWinZone(nx, ny); 227 mObjMgr->SetGraphicWinZone(nx, ny, false); 228 } 229 else 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); 227 235 } 228 236 else if (kw == "gratt") { -
trunk/SophyaPI/PIext/pihisto2d.cc
r205 r210 442 442 443 443 //++ 444 void PIH2DWdg::ActivateSpecializedControls() 445 // Pour activer les contrôles spécifiques pour l'affichage Histo-2D 446 //-- 447 { 448 h2dWinArg->SetPIH2DWdg(this); 449 h2dWinArg->SetMsgParent((PIMsgHandler*)this); 450 if(!h2dWinArg->Visible()) h2dWinArg->Show(); 451 } 452 453 //++ 444 454 void PIH2DWdg::But3Press(int x, int y) 445 455 // … … 451 461 //-- 452 462 { 453 h2dWinArg->SetPIH2DWdg(this); 454 h2dWinArg->SetMsgParent((PIMsgHandler*)this); 455 if(!h2dWinArg->Visible()) h2dWinArg->Show(); 463 ActivateSpecializedControls(); 456 464 if(dbg) printf("PIH2DWdg::But3Press(%d,%d) h2dWinArg=%lx\n" 457 465 ,x,y,(long)h2dWinArg); -
trunk/SophyaPI/PIext/pihisto2d.h
r205 r210 1 // This may look like C code, but it is really -*- C++ -*- 2 // Module PIext : PIHisto2D PIH2DWdg 3 // Traceur Histo-2D C. Magneville 97-98 4 // LAL (Orsay) / IN2P3-CNRS DAPNIA/SPP (Saclay) / CEA 5 1 6 #ifndef PIHISTO2D_H 2 7 #define PIHISTO2D_H … … 65 70 66 71 virtual string GetClickText(double x, double y); 72 virtual void ActivateSpecializedControls(); // Pour activer des controles specifiques 67 73 virtual void But3Press(int x, int y); 68 74 -
trunk/SophyaPI/PIext/pistdimgapp.cc
r205 r210 515 515 char buff[64]; 516 516 mWId++; 517 sprintf(buff, "PI-GraphicWin (%d)",mWId); 518 PIZoneWindow* win = new PIZoneWindow(this, buff, PIWK_normal, nx, ny, sx, sy, 0, 0); 517 int px, py; 518 MainWin()->GetScreenPos(px, py); 519 sprintf(buff, "PI-GraphicWin (%d)",mWId); 520 PIZoneWindow* win = new PIZoneWindow(this, buff, PIWK_normal, nx, ny, sx, sy, px+MainWin()->XSize()+30, 0); 519 521 win->SetUserData(NULL, ny*10+nx); // UserFlag= nY*10 + nX 520 522 mWList[mWId*10+1] = (PIWindow*)win; … … 531 533 char buff[64]; 532 534 mWId++; 535 int px, py; 536 MainWin()->GetScreenPos(px, py); 533 537 sprintf(buff, "PI-StackWin (%d)",mWId); 534 PIStackWindow* win = new PIStackWindow(this, buff, PIWK_normal, sx, sy, 0,0);538 PIStackWindow* win = new PIStackWindow(this, buff, PIWK_normal, sx, sy, px+MainWin()->XSize()+30, 100); 535 539 win->SetUserData(NULL, 9999); // UserFlag= 9999 536 540 mWList[mWId*10+2] = (PIWindow*)win; … … 576 580 default : // Fenetre ordinaire 577 581 { 582 int pwx, pwy; 583 MainWin()->GetScreenPos(pwx, pwy); 578 584 if ( (sx < 50) && (sy < 50) ) sx = sy = 300+mFgScSz*100; 579 rw = new PIWindow(this, nom, PIWK_normal, sx, sy, 0,0);585 rw = new PIWindow(this, nom, PIWK_normal, sx, sy, pwx+MainWin()->XSize()+30, 300); 580 586 rw->SetUserData(NULL, 0); // UserFlag= 0 581 587 mWId++;
Note:
See TracChangeset
for help on using the changeset viewer.