// Mainframe macro generated from application: /opt/root/root_v5.17.02/bin/root.exe // By ROOT version 5.17/02 on 2008-03-13 06:46:41 #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_TGuiBldHintsButton #include "TGuiBldHintsButton.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_TGuiBldHintsEditor #include "TGuiBldHintsEditor.h" #endif #ifndef ROOT_TRootBrowser #include "TRootBrowser.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_TGCanvas #include "TGCanvas.h" #endif #ifndef ROOT_TGFSContainer #include "TGFSContainer.h" #endif #ifndef ROOT_TGButton #include "TGButton.h" #endif #ifndef ROOT_TGuiBldEditor #include "TGuiBldEditor.h" #endif #ifndef ROOT_TGTextEdit #include "TGTextEdit.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_TRootGuiBuilder #include "TRootGuiBuilder.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_TGStatusBar #include "TGStatusBar.h" #endif #ifndef ROOT_TGListTree #include "TGListTree.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 #include "Riostream.h" void gui() { // main frame TGMainFrame *fMainFrame1332 = new TGMainFrame(0,10,10,kMainFrame | kVerticalFrame); fMainFrame1332->SetLayoutBroken(kTRUE); TGCheckButton *fTextButton710 = new TGCheckButton(fMainFrame1332,"Debug"); fTextButton710->SetTextJustify(36); fTextButton710->SetMargins(0,0,0,0); fTextButton710->SetWrapLength(-1); fMainFrame1332->AddFrame(fTextButton710, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fTextButton710->MoveResize(168,0,62,17); TGFont *ufont; // will reflect user font changes ufont = gClient->GetFont("-*-helvetica-medium-r-*-*-12-*-*-*-*-*-iso8859-1"); TGGC *uGC; // will reflect user GC changes // graphics context changes GCValues_t valEntry749; valEntry749.fMask = kGCForeground | kGCBackground | kGCFillStyle | kGCFont | kGCGraphicsExposures; gClient->GetColorByName("#000000",valEntry749.fForeground); gClient->GetColorByName("#c0c0c0",valEntry749.fBackground); valEntry749.fFillStyle = kFillSolid; valEntry749.fFont = ufont->GetFontHandle(); valEntry749.fGraphicsExposures = kFALSE; uGC = gClient->GetGC(&valEntry749, kTRUE); TGTextEntry *fTextEntry749 = new TGTextEntry(fMainFrame1332, new TGTextBuffer(15),-1,uGC->GetGC(),ufont->GetFontStruct(),kSunkenFrame | kDoubleBorder | kOwnBackground); fTextEntry749->SetMaxLength(255); fTextEntry749->SetAlignment(kTextLeft); fTextEntry749->SetText("path"); fTextEntry749->Resize(112,fTextEntry749->GetDefaultHeight()); fMainFrame1332->AddFrame(fTextEntry749, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fTextEntry749->MoveResize(2,49,112,22); // embedded canvas TRootEmbeddedCanvas *fRootEmbeddedCanvas790 = new TRootEmbeddedCanvas(0,fMainFrame1332,432,288); Int_t wfRootEmbeddedCanvas790 = fRootEmbeddedCanvas790->GetCanvasWindowId(); TCanvas *c123 = new TCanvas("c123", 10, 10, wfRootEmbeddedCanvas790); fRootEmbeddedCanvas790->AdoptCanvas(c123); fMainFrame1332->AddFrame(fRootEmbeddedCanvas790, new TGLayoutHints(kLHintsLeft | kLHintsTop,6,9,1,-5)); fRootEmbeddedCanvas790->MoveResize(144,72,432,288); // status bar TGStatusBar *fStatusBar813 = new TGStatusBar(fMainFrame1332,663,22); fMainFrame1332->AddFrame(fStatusBar813, new TGLayoutHints(kLHintsBottom | kLHintsExpandX)); fStatusBar813->MoveResize(0,542,663,22); TGNumberEntry *fNumberEntry817 = new TGNumberEntry(fMainFrame1332, (Double_t) 0,11,-1,(TGNumberFormat::EStyle) 5); fMainFrame1332->AddFrame(fNumberEntry817, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fNumberEntry817->MoveResize(2,359,96,22); TGNumberEntry *fNumberEntry823 = new TGNumberEntry(fMainFrame1332, (Double_t) 0,11,-1,(TGNumberFormat::EStyle) 5); fMainFrame1332->AddFrame(fNumberEntry823, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fNumberEntry823->MoveResize(2,385,96,22); TGNumberEntry *fNumberEntry829 = new TGNumberEntry(fMainFrame1332, (Double_t) 0,11,-1,(TGNumberFormat::EStyle) 5); fMainFrame1332->AddFrame(fNumberEntry829, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fNumberEntry829->MoveResize(2,411,96,22); // composite frame TGCompositeFrame *fCompositeFrame1133 = new TGCompositeFrame(fMainFrame1332,75,130); fCompositeFrame1133->SetLayoutManager(new TGVerticalLayout(fCompositeFrame1133)); fCompositeFrame1133->SetLayoutBroken(kTRUE); TGTextButton *fTextButton843 = new TGTextButton(fCompositeFrame1133,"Start"); fTextButton843->SetTextJustify(36); fTextButton843->SetMargins(0,0,0,0); fTextButton843->SetWrapLength(-1); fTextButton843->Resize(71,22); fCompositeFrame1133->AddFrame(fTextButton843, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX,2,2,2,2)); fTextButton843->MoveResize(2,2,71,22); TGTextButton *fTextButton680 = new TGTextButton(fCompositeFrame1133,"Connect"); fTextButton680->SetTextJustify(36); fTextButton680->SetMargins(0,0,0,0); fTextButton680->SetWrapLength(-1); fTextButton680->Resize(71,22); fCompositeFrame1133->AddFrame(fTextButton680, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX,2,2,2,2)); fTextButton680->MoveResize(2,28,71,22); TGTextButton *fTextButton1076 = new TGTextButton(fCompositeFrame1133,"Disconnect"); fTextButton1076->SetTextJustify(36); fTextButton1076->SetMargins(0,0,0,0); fTextButton1076->SetWrapLength(-1); fTextButton1076->Resize(71,22); fCompositeFrame1133->AddFrame(fTextButton1076, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fTextButton1076->MoveResize(2,54,71,22); TGTextButton *fTextButton858 = new TGTextButton(fCompositeFrame1133,"Exit"); fTextButton858->SetTextJustify(36); fTextButton858->SetMargins(0,0,0,0); fTextButton858->SetWrapLength(-1); fTextButton858->Resize(71,22); fCompositeFrame1133->AddFrame(fTextButton858, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX,2,2,2,2)); fTextButton858->MoveResize(2,80,71,22); TGTextButton *fTextButton879 = new TGTextButton(fCompositeFrame1133,"Stop"); fTextButton879->SetTextJustify(36); fTextButton879->SetMargins(0,0,0,0); fTextButton879->SetWrapLength(-1); fTextButton879->Resize(71,22); fCompositeFrame1133->AddFrame(fTextButton879, new TGLayoutHints(kLHintsLeft | kLHintsTop | kLHintsExpandX | kLHintsExpandY,2,2,2,2)); fTextButton879->MoveResize(2,106,71,22); fMainFrame1332->AddFrame(fCompositeFrame1133, new TGLayoutHints(kLHintsNormal)); fCompositeFrame1133->MoveResize(0,80,75,130); fMainFrame1332->SetMWMHints(kMWMDecorAll, kMWMFuncAll, kMWMInputModeless); fMainFrame1332->MapSubwindows(); fMainFrame1332->Resize(fMainFrame1332->GetDefaultSize()); fMainFrame1332->MapWindow(); fMainFrame1332->Resize(665,566); }