759 browser->StartEmbedding(TRootBrowser::kBottom);
760
761 frame =
new TGMainFrame(gClient->GetRoot());
762 frame->SetWindowName(
"XX GUI");
763 frame->SetCleanup(kDeepCleanup);
764
765 TGLabel *fLabel;
766 TGTextButton *fb;
767
768 int posy=10;
769 int posx=10;
770 int dx=0;
771 fLabel =
new TGLabel(
frame,
"For Track :");
772 fLabel->MoveResize(posx,posy,dx=80,20);
773
774 posx+=dx+10;
775 fb =
new TGTextButton(
frame,
"Connect");
776 fb->MoveResize(posx,posy,dx=80,20);
777 fb->Connect("Clicked()","EdbEDAOperationTab",this,"ConnectTracksButton()");
778
779 posx+=dx+10;
780 fb =
new TGTextButton(
frame,
"Disconnect");
781 fb->MoveResize(posx,posy,dx=80,20);
782 fb->Connect("Clicked()","EdbEDAOperationTab",this,"DisconnectTracks()");
783
784 posx+=dx+10;
785 fb =
new TGTextButton(
frame,
"RemoveSegment");
786 fb->MoveResize(posx,posy,dx=100,20);
787 fb->Connect("Clicked()","EdbEDAOperationTab",this,"RemoveSegment()");
788
789 posx+=dx+20;
790 fb =
new TGTextButton(
frame,
"Attach to Vtx");
791 fb->MoveResize(posx,posy,dx=100,20);
792 fb->Connect("Clicked()","EdbEDAOperationTab",this,"AttachToVertexButton()");
793 fb->SetToolTipText( "Attach selected tracks to the selected vertex (red).\n"
794 "the vertex position will not be re-calculated.");
795
796
797 posx+=dx+20;
798 fb =
new TGTextButton(
frame,
"Move to TrackSet");
799 fb->MoveResize(posx,posy,dx=100,20);
800 fb->Connect("Clicked()","EdbEDAOperationTab",this,"MoveToTrackSetButton()");
801 fb->SetToolTipText("Move current selected tracks to a different track set.");
802
803 posx+=dx+30;
804 fb =
new TGTextButton(
frame,
"Dump text");
805 fb->MoveResize(posx,posy,dx=100,20);
806 fb->Connect("Clicked()","EdbEDAOperationTab",this,"DumpTracksButton()");
807 fb->SetToolTipText("Dump all segments of the selected tracks to a text file.\nthis would be usefull when you want to show a volume scan data with another volume scan data.");
808
809
810
811
812
813
814
815
816
817
818
819 posy+=20;
820 posx=10;
821 fb =
new TGTextButton(
frame,
"Redo");
822 fb->MoveResize(posx,posy,dx=80,20);
823 fb->Connect("Clicked()","EdbEDAOperationTab",this,"Redo()");
824
825 frame->MapSubwindows();
828
830 browser->SetTabTitle(
"Operation", 2);
831}
TGMainFrame * frame
Definition: EdbEDATabs.h:162
int eLastOperation
Definition: EdbEDATabs.h:167
TEveBrowser * browser
Definition: EdbEDATabs.h:161