Changeset 8824 for trunk/MagicSoft/Cosy/main/MStarguider.cc
- Timestamp:
- 01/24/08 09:20:59 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MStarguider.cc
r8821 r8824 248 248 fCaosAnalyse->AddEntry("St&op Analysis", IDM_kCaosAnalStop); 249 249 fCaosAnalyse->DisableEntry(IDM_kCaosAnalStop); 250 // fCaosAnalyse->AddEntry("&Reset Histograms", IDM_kResetHistograms);251 // fCaosAnalyse->AddEntry("Reset &Graph", IDM_kResetGraph);252 250 fCaosAnalyse->Associate(this); 253 251 fList->Add(fCaosAnalyse); 254 252 255 253 fMenu = new TGMenuBar(this, 0, 0, kHorizontalFrame); 256 //fMenu->SetCleanup();257 //fMenu->AddPopup("&Display", fDisplay, NULL);258 //fMenu->AddPopup("&Mode", fMode, NULL);259 //fMenu->AddPopup("&WritePics", fWritePictures, NULL);260 //fMenu->AddPopup("&Setup", fSetup, NULL);261 //fMenu->AddPopup("&Operations", fOperations, NULL);262 254 fDisplay = fMenu->AddPopup("&Display"); 263 255 fMode = fMenu->AddPopup("&Mode"); … … 266 258 fOperations = fMenu->AddPopup("&Operations"); 267 259 fMenu->Resize(fMenu->GetDefaultSize()); 268 //fMenu->BindKeys(this);269 260 AddFrame(fMenu); 270 //fList->Add(fMenu);271 261 272 262 // … … 290 280 fDisplay->CheckEntry(IDM_kStretch); 291 281 fDisplay->Associate(this); 292 //fList->Add(fDisplay); 293 294 //fMode = new MGPopupMenu(p); 282 295 283 fMode->AddEntry("Starguider", IDM_kStarguiderMode); 296 284 fMode->AddEntry("Tpoint", IDM_kTpointMode); 297 285 fMode->Associate(this); 298 //fList->Add(fMode); 299 300 //fWritePictures = new MGPopupMenu(p); 286 301 287 fWritePictures->AddEntry("&Start", IDM_kStart); 302 288 fWritePictures->AddEntry("Sto&p", IDM_kStop); … … 307 293 fWritePictures->DisableEntry(IDM_kStop); 308 294 fWritePictures->Associate(this); 309 //fList->Add(fWritePictures); 310 311 //fSetup = new MGPopupMenu(p); 295 312 296 fSetup->AddPopup("Lim. &Magnitude", fLimMag); 313 297 fSetup->AddPopup("Disp. &Interpolation", fInterpol); 314 //fSetup->AddEntry("Use Ra/Dec from file", IDM_kUseFileRaDec);315 298 fSetup->Associate(this); 316 //fList->Add(fSetup); 317 318 //fOperations = new MGPopupMenu(p); 299 319 300 fOperations->AddEntry("Roque Lamp Analysis", IDM_kRoqueLampAna); 320 301 fOperations->AddEntry("Starguider Analysis", IDM_kStargAnalysis); 321 302 fOperations->DisableEntry(IDM_kStargAnalysis); 322 303 fOperations->Associate(this); 323 //fList->Add(fOperations);324 304 325 305 fCaOs = new TGPopupMenu(p); … … 328 308 fCaOs->AddPopup("&Analyse", fCaosAnalyse); 329 309 fCaOs->Associate(this); 330 //fCaOs->BindKeys(fMenu, this);331 310 fList->Add(fCaOs); 332 /* 333 TGLayoutHints *hints2a = 334 new TGLayoutHints(kLHintsCenterX|kLHintsCenterY| 335 kLHintsExpandX|kLHintsExpandY,1,1); 336 fList->Add(hints2a); 337 */ 311 338 312 fGStarg = new MGStarg(this, 235); 339 313 fGStarg->DrawText("0.75'", "1.50'", "3.00'", "Mispointing [min]"); … … 346 320 fCRaDec->Move(4, fMenu->GetDefaultHeight()+584); 347 321 AddFrame(fCRaDec); 348 //fList->Add(fCRaDec);349 322 350 323 //telescope position … … 352 325 fCZdAz->Move(240+12+28, fMenu->GetDefaultHeight()+597); 353 326 AddFrame(fCZdAz); 354 //fList->Add(fCZdAz);355 327 356 328 //starguider position … … 358 330 fPZdAz->Move(240+12+28, fMenu->GetDefaultHeight()+640); 359 331 AddFrame(fPZdAz); 360 //fList->Add(fPZdAz);361 332 362 333 //mispointing … … 364 335 fDZdAz->Move(240+12+28, fMenu->GetDefaultHeight()+683); 365 336 AddFrame(fDZdAz); 366 //fList->Add(fDZdAz);367 337 368 338 fSZdAz = new MGCoordinates(this, kETypeZdAz, 2); 369 339 fSZdAz->Move(240+12+28, fMenu->GetDefaultHeight()+795); 370 340 AddFrame(fSZdAz); 371 //fList->Add(fSZdAz);372 341 373 342 fGNumStars = new MGNumStars(this, 235); … … 380 349 fTPoint->AllowStayDown(kTRUE); 381 350 AddFrame(fTPoint); 382 //fList->Add(fTPoint);383 351 384 352 fStargTPoint = new TGTextButton(this, "StargTPoint"); … … 386 354 fStargTPoint->AllowStayDown(kTRUE); 387 355 AddFrame(fStargTPoint); 388 //fList->Add(fStargTPoint);389 356 390 357 fFps = new TGLabel(this, "---fps"); … … 392 359 fFps->Move(650-495, fMenu->GetDefaultHeight()+714+23); 393 360 AddFrame(fFps); 394 //fList->Add(fFps);395 361 396 362 fPosZoom = new TGLabel(this, "(----, ----) ----.--d/----.--d"); … … 398 364 fPosZoom->Move(4, fMenu->GetDefaultHeight()+765); 399 365 AddFrame(fPosZoom); 400 //fList->Add(fPosZoom);401 366 402 367 fSkyBright = new TGLabel(this, "Sky Brightness: --- "); … … 404 369 fSkyBright->Move(4, fMenu->GetDefaultHeight()+785); 405 370 AddFrame(fSkyBright); 406 //fList->Add(fSkyBright);407 371 408 372 TGLabel *l = new TGLabel(this, "deg"); … … 410 374 l->Move(606-412, fMenu->GetDefaultHeight()+669); 411 375 AddFrame(l); 412 //fList->Add(l);413 376 414 377 l = new TGLabel(this, "arcsec/pix"); … … 416 379 l->Move(606-412, fMenu->GetDefaultHeight()+692); 417 380 AddFrame(l); 418 //fList->Add(l);419 381 420 382 l = new TGLabel(this, "sigma"); … … 422 384 l->Move(606-412, fMenu->GetDefaultHeight()+715); 423 385 AddFrame(l); 424 //fList->Add(l);425 386 426 387 fCZdAzText = new TGLabel(this, "Zd/Az telescope pointing at"); … … 428 389 fCZdAzText->Move(240+12+20+7, fMenu->GetDefaultHeight()+584-5); 429 390 AddFrame(fCZdAzText); 430 //fList->Add(fCZdAzText);431 391 432 392 fPZdAzText = new TGLabel(this, "Zd/Az starguider pointing at"); … … 434 394 fPZdAzText->Move(240+12+20+7, fMenu->GetDefaultHeight()+630+20-5-23); 435 395 AddFrame(fPZdAzText); 436 //fList->Add(fPZdAzText);437 396 438 397 fDZdAzText = new TGLabel(this, "Zd/Az mispointing"); … … 440 399 fDZdAzText->Move(240+12+20+7, fMenu->GetDefaultHeight()+676+2*20-5-46); 441 400 AddFrame(fDZdAzText); 442 //fList->Add(fDZdAzText);443 401 444 402 #ifdef EXPERT … … 447 405 l->Move(240+12+20, fMenu->GetDefaultHeight()+722+3*20-5); 448 406 AddFrame(l); 449 //fList->Add(l);450 407 #endif 451 408 … … 453 410 const Double_t angle = -0.2; 454 411 fSao->SetRotationAngle(angle); 455 412 456 413 TString txt; 457 414 txt += angle; … … 461 418 fAngle->Move(547-410, fMenu->GetDefaultHeight()+667); 462 419 AddFrame(fAngle); 463 //fList->Add(fAngle);464 420 465 421 // Set input box for pixel size … … 475 431 fPixSize->Move(547-410, fMenu->GetDefaultHeight()+690); 476 432 AddFrame(fPixSize); 477 //fList->Add(fPixSize);478 433 479 434 // Set input box for cleaning cut … … 487 442 fCut->Move(547-410, fMenu->GetDefaultHeight()+713); 488 443 AddFrame(fCut); 489 //fList->Add(fCut);490 444 491 445 // TGHorizontal3DLine *fLineSep = new TGHorizontal3DLine(this); … … 500 454 fZoomImage->Move(4, 700-kZOOM-2+85); 501 455 AddFrame(fZoomImage); 502 //fList->Add(fZoomImage);503 456 504 457 fImage = new MGImage(this, 768, 576); 505 458 fImage->Move(0, fMenu->GetDefaultHeight()); 506 459 AddFrame(fImage); 507 //fList->Add(fImage);508 460 509 461 const Int_t w = 768; … … 1863 1815 for (int x=0; x<768/2-1; x++) 1864 1816 simg[x+y*(768/2-1)] = ((unsigned int)img[2*x+2*y*768]+img[2*x+2*y*768+1]+img[2*x+2*(y+1)*768]+img[2*x+2*(y+1)*768+1])/4; 1865 1817 1866 1818 fCosy->GetWin()->GetImage()->DrawImg(simg); 1867 1819 }
Note:
See TracChangeset
for help on using the changeset viewer.