490 TEveBrowser * browser = gEve->GetBrowser();
491 browser->StartEmbedding(TRootBrowser::kLeft);
493 TGMainFrame* frmMain =
new TGMainFrame(gClient->GetRoot(), 1000, 600);
494 frmMain->SetWindowName(
"XX GUI");
495 frmMain->SetCleanup(kDeepCleanup);
500 TGVerticalFrame* hf =
new TGVerticalFrame(frmMain);
503 TGGroupFrame *fGroupFrame1 =
new TGGroupFrame(hf,
"Cuts");
504 fGroupFrame1->SetLayoutBroken(kTRUE);
506 hf->AddFrame(fGroupFrame1,
new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2));
507 fGroupFrame1->MoveResize(0,0,240,255);
511 TGGroupFrame *fGroupFrame2 =
new TGGroupFrame(hf,
"Selection");
512 fGroupFrame2->SetLayoutBroken(kTRUE);
515 TGLabel *fLabel =
new TGLabel(fGroupFrame2,
"method ");
516 fLabel->MoveResize(10,posy,50,18);
518 eGRBSelSeg =
new TGRadioButton(fGroupFrame2,
"segment");
520 eGRBSelSeg->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetPickSegment()");
525 eGRBSelTrack->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetPickTrack()");
528 fb =
new TGTextButton(fGroupFrame2,
"Only selected");
529 fb->MoveResize(10,posy,90,18);
530 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"DrawOnlySelected()");
532 fb =
new TGTextButton(fGroupFrame2,
"Remove");
533 fb->MoveResize(105,posy,60,18);
534 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"RemoveSelected()");
535 fb->SetToolTipText(
"Remove selected tracks.");
537 fb =
new TGTextButton(fGroupFrame2,
"All");
538 fb->MoveResize(170,posy,60,18);
539 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SelectAll()");
540 fb->SetToolTipText(
"Select all tracks shown in the display.");
545 eGCBExtention->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetExtention()");
547 fb =
new TGTextButton(fGroupFrame2,
"res");
548 fb->MoveResize(100,posy,40,18);
549 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"DrawExtentionResolution()");
550 fb->SetToolTipText(
"Draw extention with measurement error + scattering.");
552 fLabel =
new TGLabel(fGroupFrame2,
"z =");
553 fLabel->MoveResize(145,posy,20,18);
556 eGNEExtentionZ -> Connect(
"TextChanged(char *)",
"EdbEDAMainTab",
this,
"SetExtentionZNumber()");
560 eGSliderExtentionZ =
new TGHSlider(fGroupFrame2,220,kSlider1 | kScaleBoth,-1,kHorizontalFrame);
564 eGSliderExtentionZ->Connect(
"PositionChanged(int)",
"EdbEDAMainTab",
this,
"SetExtentionZSlider()");
567 hf->AddFrame(fGroupFrame2,
new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2));
568 fGroupFrame2->MoveResize(0,200,240,105);
572 TGGroupFrame *fGroupFrame3 =
new TGGroupFrame(hf,
"Analysis");
573 fGroupFrame3->SetLayoutBroken(kTRUE);
575 fb =
new TGTextButton(fGroupFrame3,
"Min distance");
576 fb->MoveResize(10,20,110,18);
577 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"CalcMinimumDistance()");
579 fb =
new TGTextButton(fGroupFrame3,
"Vertex");
580 fb->MoveResize(10,40,68,18);
581 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"CalcVertex()");
582 fb->SetToolTipText(
"Calc vertex using only the selected segments.");
584 fb =
new TGTextButton(fGroupFrame3,
"+");
585 fb->MoveResize(78,40,18,18);
586 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"CalcVertexPlus()");
587 fb->SetToolTipText(
"Calc vertex without clearing existing vertices.");
589 fb =
new TGTextButton(fGroupFrame3,
"clr");
590 fb->MoveResize(98,40,22,18);
591 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"ClearVertices()");
593 fb =
new TGTextButton(fGroupFrame3,
"Momentum");
594 fb->MoveResize(125,20,110,18);
595 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"CalcPSelected()");
597 fb =
new TGTextButton(fGroupFrame3,
"Calc IP");
598 fb->MoveResize(125,40,110,18);
599 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"CalcIP()");
601 hf->AddFrame(fGroupFrame3,
new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2));
602 fGroupFrame3->MoveResize(0,210,240,72);
605 TGGroupFrame *fGroupFrame4 =
new TGGroupFrame(hf,
"Display");
606 fGroupFrame4->SetLayoutBroken(kTRUE);
614 fb->MoveResize(posx,posy,dx,18);
616 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetProjection()");
620 fb->MoveResize(posx,posy,dx,18);
622 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetProjection()");
626 fb->MoveResize(posx,posy,dx,18);
628 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetProjection()");
632 fb->MoveResize(posx,posy,dx=50,18);
634 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetProjection()");
637 fb =
new TGTextButton(fGroupFrame4,
"Pick center");
638 fb->MoveResize(posx,posy,dx=80,18);
639 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"PickCenter()");
643 TGLabel *fLabel =
new TGLabel(fGroupFrame4,
"Track Color");
644 fLabel->MoveResize(10,posy,70,18);
652 eGRBColorPL->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetColorMode()");
657 eGRBColorPH->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetColorMode()");
663 eGRBColorBK->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetColorMode()");
673 if(i==5||i==10||i==15){
678 TGCheckButton *cb =
new TGCheckButton(fGroupFrame4,
set->GetName(),i);
680 cb->MoveResize(posx,posy,dx,20);
681 cb->SetState((EButtonState)1);
682 cb->Connect(
"Toggled(Bool_t)",
"EdbEDAMainTab",
this,
"SetDrawTrackSets(Bool_t)");
688 eGCBDrawArea =
new TGCheckButton(fGroupFrame4,
"Scan area");
691 eGCBDrawArea->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetDrawAreas()");
694 eGCBTrackID =
new TGCheckButton(fGroupFrame4,
"track ID");
697 eGCBTrackID->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetDrawText()");
703 eGCBTrackAngle->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetDrawText()");
710 eGCBAnimation->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetAnimation()");
712 fb =
new TGTextButton(fGroupFrame4,
"op");
713 fb->MoveResize(90,posy,20,18);
714 fb->Connect(
"Clicked()",
"EdbEDA",
gEDA,
"SetAnimationMode()");
716 fb =
new TGTextButton(fGroupFrame4,
"Save animation");
717 fb->MoveResize(125,posy,100,18);
718 fb->Connect(
"Clicked()",
"EdbEDA",
gEDA,
"SaveAnimation()");
721 fb =
new TGTextButton(fGroupFrame4,
"Snapshot");
722 fb->MoveResize(10,posy,100,18);
723 fb->Connect(
"Clicked()",
"EdbEDA",
gEDA,
"Snapshot()");
725 fb =
new TGTextButton(fGroupFrame4,
"Save projections");
726 fb->MoveResize(125,posy,100,18);
727 fb->Connect(
"Clicked()",
"EdbEDA",
gEDA,
"SavePictures()");
730 fb =
new TGTextButton(fGroupFrame4,
"Write track list");
731 fb->MoveResize(10,posy,100,18);
732 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"WriteListFile()");
734 fb =
new TGTextButton(fGroupFrame4,
"Read track list");
735 fb->MoveResize(125,posy,100,18);
736 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"ReadListFile()");
749 fb =
new TGTextButton(fGroupFrame4,
"Write feedback");
750 fb->MoveResize(10,posy,90,18);
751 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"WriteFeedback()");
753 fb =
new TGTextButton(fGroupFrame4,
"op");
754 fb->MoveResize(102,posy,20,18);
755 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"SetOutputFileModeButton()");
757 fb =
new TGTextButton(fGroupFrame4,
"Read feedback");
758 fb->MoveResize(125,posy,100,18);
759 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"ReadFeedback()");
764 fb =
new TGTextButton(fGroupFrame4,
"Write Mxx.all");
765 fb->MoveResize(10,posy,90,18);
766 fb->Connect(
"Clicked()",
"EdbEDAMainTab",
this,
"WriteMxxFile()");
773 hf->AddFrame(fGroupFrame4,
new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2));
774 fGroupFrame4->MoveResize(0,260,240,240);
778 frmMain->AddFrame(hf);
780 frmMain->MapSubwindows();
782 frmMain->MapWindow();
784 browser->StopEmbedding();
785 browser->SetTabTitle(
"Main", 0);
@ Z
Definition: EdbEDA.h:139
@ B
Definition: EdbEDA.h:139
@ Y
Definition: EdbEDA.h:139
@ X
Definition: EdbEDA.h:139
double GetZ()
Definition: EdbEDASets.h:246
TGRadioButton * eGRBColorPL
Definition: EdbEDAMainTab.h:57
TGNumberEntryField * eGNEExtentionZ
Definition: EdbEDAMainTab.h:54
void MakeGUICuts(TGGroupFrame *fGroupFrame1)
Definition: EdbEDAMainTab.C:318
TGHSlider * eGSliderExtentionZ
Definition: EdbEDAMainTab.h:52
TGCheckButton * eGCBTrackAngle
Definition: EdbEDAMainTab.h:12
TGCheckButton * eGCBExtention
Definition: EdbEDAMainTab.h:48
TGCheckButton * eGCBDrawArea
Definition: EdbEDAMainTab.h:62
TGRadioButton * eGRBColorPH
Definition: EdbEDAMainTab.h:56
TObjArray * eDrawChecks
Definition: EdbEDAMainTab.h:59
TGCheckButton * eGCBTrackID
Definition: EdbEDAMainTab.h:11
TGCheckButton * eGCBAnimation
Definition: EdbEDAMainTab.h:61
TGRadioButton * eGRBColorBK
Definition: EdbEDAMainTab.h:58
TGRadioButton * eGRBSelSeg
Definition: EdbEDAMainTab.h:13
TGRadioButton * eGRBSelTrack
Definition: EdbEDAMainTab.h:14
Definition: EdbEDATrackSet.h:178
int NTrackSets()
Definition: EdbEDA.h:616
EdbEDATrackSet * GetTrackSet(int i)
Definition: EdbEDA.h:617
EdbScanSet * set
Definition: emtraceback.cpp:14
@ kBLACKWHITE
Definition: EdbEDAUtil.h:86
@ kCOLOR_BY_PH
Definition: EdbEDAUtil.h:82
@ kCOLOR_BY_PLATE
Definition: EdbEDAUtil.h:81