// Mainframe macro generated from application: /group/halld/Software/ExternalPackages/ROOT/v5.34.01/root_Linux_CentOS6-x86_64-gcc4.4.6/bin/root.exe // By ROOT version 5.34/01 on 2014-12-07 08:31:59 #ifndef ROOT_TGDockableFrame #include "TGDockableFrame.h" #endif #ifndef ROOT_TGMenu #include "TGMenu.h" #endif #ifndef ROOT_TGMdiDecorFrame #include "TGMdiDecorFrame.h" #endif #ifndef ROOT_TG3DLine #include "TG3DLine.h" #endif #ifndef ROOT_TGMdiFrame #include "TGMdiFrame.h" #endif #ifndef ROOT_TGMdiMainFrame #include "TGMdiMainFrame.h" #endif #ifndef ROOT_TGMdiMenu #include "TGMdiMenu.h" #endif #ifndef ROOT_TGListBox #include "TGListBox.h" #endif #ifndef ROOT_TGNumberEntry #include "TGNumberEntry.h" #endif #ifndef ROOT_TGScrollBar #include "TGScrollBar.h" #endif #ifndef ROOT_TGComboBox #include "TGComboBox.h" #endif #ifndef ROOT_TGuiBldHintsEditor #include "TGuiBldHintsEditor.h" #endif #ifndef ROOT_TRootBrowser #include "TRootBrowser.h" #endif #ifndef ROOT_TGuiBldNameFrame #include "TGuiBldNameFrame.h" #endif #ifndef ROOT_TGFrame #include "TGFrame.h" #endif #ifndef ROOT_TGFileDialog #include "TGFileDialog.h" #endif #ifndef ROOT_TGShutter #include "TGShutter.h" #endif #ifndef ROOT_TGButtonGroup #include "TGButtonGroup.h" #endif #ifndef ROOT_TGCommandPlugin #include "TGCommandPlugin.h" #endif #ifndef ROOT_TGCanvas #include "TGCanvas.h" #endif #ifndef ROOT_TGFSContainer #include "TGFSContainer.h" #endif #ifndef ROOT_TGuiBldEditor #include "TGuiBldEditor.h" #endif #ifndef ROOT_TGColorSelect #include "TGColorSelect.h" #endif #ifndef ROOT_TGTextEdit #include "TGTextEdit.h" #endif #ifndef ROOT_TGButton #include "TGButton.h" #endif #ifndef ROOT_TGFSComboBox #include "TGFSComboBox.h" #endif #ifndef ROOT_TGLabel #include "TGLabel.h" #endif #ifndef ROOT_TGView #include "TGView.h" #endif #ifndef ROOT_TGMsgBox #include "TGMsgBox.h" #endif #ifndef ROOT_TRootGuiBuilder #include "TRootGuiBuilder.h" #endif #ifndef ROOT_TGFileBrowser #include "TGFileBrowser.h" #endif #ifndef ROOT_TGTab #include "TGTab.h" #endif #ifndef ROOT_TGListView #include "TGListView.h" #endif #ifndef ROOT_TGSplitter #include "TGSplitter.h" #endif #ifndef ROOT_TGTextEditor #include "TGTextEditor.h" #endif #ifndef ROOT_TRootCanvas #include "TRootCanvas.h" #endif #ifndef ROOT_TGStatusBar #include "TGStatusBar.h" #endif #ifndef ROOT_TGListTree #include "TGListTree.h" #endif #ifndef ROOT_TGuiBldGeometryFrame #include "TGuiBldGeometryFrame.h" #endif #ifndef ROOT_TGToolTip #include "TGToolTip.h" #endif #ifndef ROOT_TGToolBar #include "TGToolBar.h" #endif #ifndef ROOT_TRootEmbeddedCanvas #include "TRootEmbeddedCanvas.h" #endif #ifndef ROOT_TCanvas #include "TCanvas.h" #endif #ifndef ROOT_TGuiBldDragManager #include "TGuiBldDragManager.h" #endif #ifndef ROOT_TGHtmlBrowser #include "TGHtmlBrowser.h" #endif #include "Riostream.h" void TestBenchLayout() { // main frame TGMainFrame *fMainFrame3557 = new TGMainFrame(gClient->GetRoot(),10,10,kMainFrame | kVerticalFrame); fMainFrame3557->SetName("fMainFrame3557"); // horizontal frame TGHorizontalFrame *fMainFrame = new TGHorizontalFrame(fMainFrame3557,1410,852,kHorizontalFrame); fMainFrame->SetName("fMainFrame"); // vertical frame TGVerticalFrame *fCanvasFrame = new TGVerticalFrame(fMainFrame,1144,848,kVerticalFrame); fCanvasFrame->SetName("fCanvasFrame"); // embedded canvas TRootEmbeddedCanvas *fRawDataFrame = new TRootEmbeddedCanvas(0,fCanvasFrame,1140,512); fRawDataFrame->SetName("fRawDataFrame"); Int_t wfRawDataFrame = fRawDataFrame->GetCanvasWindowId(); TCanvas *c163 = new TCanvas("c163", 10, 10, wfRawDataFrame); fRawDataFrame->AdoptCanvas(c163); fCanvasFrame->AddFrame(fRawDataFrame, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX,2,2,2,2)); // horizontal frame TGHorizontalFrame *fBitsFrame1 = new TGHorizontalFrame(fCanvasFrame,1140,162,kHorizontalFrame); fBitsFrame1->SetName("fBitsFrame1"); // embedded canvas TRootEmbeddedCanvas *fBit1Canvas = new TRootEmbeddedCanvas(0,fBitsFrame1,186,158); fBit1Canvas->SetName("fBit1Canvas"); Int_t wfBit1Canvas = fBit1Canvas->GetCanvasWindowId(); TCanvas *c164 = new TCanvas("c164", 10, 10, wfBit1Canvas); fBit1Canvas->AdoptCanvas(c164); fBitsFrame1->AddFrame(fBit1Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit2Canvas = new TRootEmbeddedCanvas(0,fBitsFrame1,186,158); fBit2Canvas->SetName("fBit2Canvas"); Int_t wfBit2Canvas = fBit2Canvas->GetCanvasWindowId(); TCanvas *c165 = new TCanvas("c165", 10, 10, wfBit2Canvas); fBit2Canvas->AdoptCanvas(c165); fBitsFrame1->AddFrame(fBit2Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit3Canvas = new TRootEmbeddedCanvas(0,fBitsFrame1,186,158); fBit3Canvas->SetName("fBit3Canvas"); Int_t wfBit3Canvas = fBit3Canvas->GetCanvasWindowId(); TCanvas *c166 = new TCanvas("c166", 10, 10, wfBit3Canvas); fBit3Canvas->AdoptCanvas(c166); fBitsFrame1->AddFrame(fBit3Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit4Canvas = new TRootEmbeddedCanvas(0,fBitsFrame1,186,158); fBit4Canvas->SetName("fBit4Canvas"); Int_t wfBit4Canvas = fBit4Canvas->GetCanvasWindowId(); TCanvas *c167 = new TCanvas("c167", 10, 10, wfBit4Canvas); fBit4Canvas->AdoptCanvas(c167); fBitsFrame1->AddFrame(fBit4Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit5Canvas = new TRootEmbeddedCanvas(0,fBitsFrame1,186,158); fBit5Canvas->SetName("fBit5Canvas"); Int_t wfBit5Canvas = fBit5Canvas->GetCanvasWindowId(); TCanvas *c168 = new TCanvas("c168", 10, 10, wfBit5Canvas); fBit5Canvas->AdoptCanvas(c168); fBitsFrame1->AddFrame(fBit5Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit6Canvas = new TRootEmbeddedCanvas(0,fBitsFrame1,186,158); fBit6Canvas->SetName("fBit6Canvas"); Int_t wfBit6Canvas = fBit6Canvas->GetCanvasWindowId(); TCanvas *c169 = new TCanvas("c169", 10, 10, wfBit6Canvas); fBit6Canvas->AdoptCanvas(c169); fBitsFrame1->AddFrame(fBit6Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); fCanvasFrame->AddFrame(fBitsFrame1, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // horizontal frame TGHorizontalFrame *fBitsFrame2 = new TGHorizontalFrame(fCanvasFrame,1140,162,kHorizontalFrame); fBitsFrame2->SetName("fBitsFrame2"); // embedded canvas TRootEmbeddedCanvas *fBit7Canvas = new TRootEmbeddedCanvas(0,fBitsFrame2,186,158); fBit7Canvas->SetName("fBit7Canvas"); Int_t wfBit7Canvas = fBit7Canvas->GetCanvasWindowId(); TCanvas *c170 = new TCanvas("c170", 10, 10, wfBit7Canvas); fBit7Canvas->AdoptCanvas(c170); fBitsFrame2->AddFrame(fBit7Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit8Canvas = new TRootEmbeddedCanvas(0,fBitsFrame2,186,158); fBit8Canvas->SetName("fBit8Canvas"); Int_t wfBit8Canvas = fBit8Canvas->GetCanvasWindowId(); TCanvas *c171 = new TCanvas("c171", 10, 10, wfBit8Canvas); fBit8Canvas->AdoptCanvas(c171); fBitsFrame2->AddFrame(fBit8Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit9Canvas = new TRootEmbeddedCanvas(0,fBitsFrame2,186,158); fBit9Canvas->SetName("fBit9Canvas"); Int_t wfBit9Canvas = fBit9Canvas->GetCanvasWindowId(); TCanvas *c172 = new TCanvas("c172", 10, 10, wfBit9Canvas); fBit9Canvas->AdoptCanvas(c172); fBitsFrame2->AddFrame(fBit9Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit10Canvas = new TRootEmbeddedCanvas(0,fBitsFrame2,186,158); fBit10Canvas->SetName("fBit10Canvas"); Int_t wfBit10Canvas = fBit10Canvas->GetCanvasWindowId(); TCanvas *c173 = new TCanvas("c173", 10, 10, wfBit10Canvas); fBit10Canvas->AdoptCanvas(c173); fBitsFrame2->AddFrame(fBit10Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit11Canvas = new TRootEmbeddedCanvas(0,fBitsFrame2,186,158); fBit11Canvas->SetName("fBit11Canvas"); Int_t wfBit11Canvas = fBit11Canvas->GetCanvasWindowId(); TCanvas *c174 = new TCanvas("c174", 10, 10, wfBit11Canvas); fBit11Canvas->AdoptCanvas(c174); fBitsFrame2->AddFrame(fBit11Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // embedded canvas TRootEmbeddedCanvas *fBit12Canvas = new TRootEmbeddedCanvas(0,fBitsFrame2,186,158); fBit12Canvas->SetName("fBit12Canvas"); Int_t wfBit12Canvas = fBit12Canvas->GetCanvasWindowId(); TCanvas *c175 = new TCanvas("c175", 10, 10, wfBit12Canvas); fBit12Canvas->AdoptCanvas(c175); fBitsFrame2->AddFrame(fBit12Canvas, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); fCanvasFrame->AddFrame(fBitsFrame2, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); fMainFrame->AddFrame(fCanvasFrame, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // vertical frame TGVerticalFrame *fOptionsFrame = new TGVerticalFrame(fMainFrame,258,848,kVerticalFrame); fOptionsFrame->SetName("fOptionsFrame"); // canvas widget TGCanvas *fChannelSelectFrame = new TGCanvas(fOptionsFrame,254,320); fChannelSelectFrame->SetName("fChannelSelectFrame"); // canvas viewport TGViewPort *fViewPort2520 = fChannelSelectFrame->GetViewPort(); // list tree TGListTree *fListTree2529 = new TGListTree(fChannelSelectFrame,kHorizontalFrame); fListTree2529->SetName("fListTree2529"); const TGPicture *popen; //used for list tree items const TGPicture *pclose; //used for list tree items TGListTreeItem *item15 = fListTree2529->AddItem(NULL,"Entry 1"); item15->SetPictures(popen, pclose); fListTree2529->CloseItem(item15); fListTree2529->SetSelected(item15); TGListTreeItem *item16 = fListTree2529->AddItem(NULL,"Entry 2"); item16->SetPictures(popen, pclose); fListTree2529->CloseItem(item16); TGListTreeItem *item17 = fListTree2529->AddItem(NULL,"Entry 3"); item17->SetPictures(popen, pclose); fListTree2529->CloseItem(item17); TGListTreeItem *item18 = fListTree2529->AddItem(NULL,"Entry 4"); item18->SetPictures(popen, pclose); fListTree2529->CloseItem(item18); TGListTreeItem *item19 = fListTree2529->AddItem(NULL,"Entry 5"); item19->SetPictures(popen, pclose); fListTree2529->CloseItem(item19); fViewPort2520->AddFrame(fListTree2529); fListTree2529->SetLayoutManager(new TGHorizontalLayout(fListTree2529)); fListTree2529->MapSubwindows(); fChannelSelectFrame->SetContainer(fListTree2529); fChannelSelectFrame->MapSubwindows(); fOptionsFrame->AddFrame(fChannelSelectFrame, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX,2,2,2,2)); // "fGroupFrame2629" group frame TGGroupFrame *fADCOptionsFrame = new TGGroupFrame(fOptionsFrame,"fGroupFrame2629"); TGTextButton *fTextButton2708 = new TGTextButton(fADCOptionsFrame,"fTextButton2708"); fTextButton2708->SetTextJustify(36); fTextButton2708->SetMargins(0,0,0,0); fTextButton2708->SetWrapLength(-1); fTextButton2708->Resize(97,22); fADCOptionsFrame->AddFrame(fTextButton2708, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fADCOptionsFrame->SetLayoutManager(new TGVerticalLayout(fADCOptionsFrame)); fADCOptionsFrame->Resize(254,247); fOptionsFrame->AddFrame(fADCOptionsFrame, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop | kLHintsCenterY | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); // "fGroupFrame2636" group frame TGGroupFrame *fPulserOptionsFrame = new TGGroupFrame(fOptionsFrame,"fGroupFrame2636"); TGNumberEntry *fNumberEntry2724 = new TGNumberEntry(fPulserOptionsFrame, (Double_t) 0,6,-1,(TGNumberFormat::EStyle) 5); fPulserOptionsFrame->AddFrame(fNumberEntry2724, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fPulserOptionsFrame->SetLayoutManager(new TGVerticalLayout(fPulserOptionsFrame)); fPulserOptionsFrame->Resize(258,251); fOptionsFrame->AddFrame(fPulserOptionsFrame, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX | kLHintsExpandY)); TGTextButton *fTakeDataButton = new TGTextButton(fOptionsFrame,"fTextButton2715"); fTakeDataButton->SetTextJustify(36); fTakeDataButton->SetMargins(0,0,0,0); fTakeDataButton->SetWrapLength(-1); fTakeDataButton->Resize(97,22); fOptionsFrame->AddFrame(fTakeDataButton, new TGLayoutHints(kLHintsLeft | kLHintsCenterX | kLHintsTop)); fMainFrame->AddFrame(fOptionsFrame, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandY,2,2,2,2)); fMainFrame3557->AddFrame(fMainFrame, new TGLayoutHints(kLHintsExpandX | kLHintsExpandY,1,1,1,1)); fMainFrame3557->SetMWMHints(kMWMDecorAll, kMWMFuncAll, kMWMInputModeless); fMainFrame3557->MapSubwindows(); fMainFrame3557->Resize(fMainFrame3557->GetDefaultSize()); fMainFrame3557->MapWindow(); fMainFrame3557->Resize(1412,854); }