// Mainframe macro generated from application: C:\root\bin\root.exe // By ROOT version 5.26/00 on 2014-02-20 10:20:44 #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_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_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_TGButton #include "TGButton.h" #endif #ifndef ROOT_TGFSComboBox #include "TGFSComboBox.h" #endif #ifndef ROOT_TGLabel #include "TGLabel.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_TGuiBldGeometryFrame #include "TGuiBldGeometryFrame.h" #endif #ifndef ROOT_TGToolTip #include "TGToolTip.h" #endif #ifndef ROOT_TGToolBar #include "TGToolBar.h" #endif #ifndef ROOT_TGuiBldDragManager #include "TGuiBldDragManager.h" #endif #include "Riostream.h" static char* path; TGTextButton *fTextButton947; TGLabel *fLabel578; TGMainFrame *fMainFrame1599; TGTextEntry *fTextEntry994; void helpPopUp() { // main frame TGMainFrame *fMainFrame826 = new TGMainFrame(gClient->GetRoot(),10,10,kMainFrame | kVerticalFrame); fMainFrame826->SetLayoutBroken(kTRUE); TGTextButton *fTextButton560 = new TGTextButton(fMainFrame826,"Insert path"); fTextButton560->Connect("Clicked()",0, 0, "popUP()"); fTextButton560->SetTextJustify(36); fTextButton560->SetMargins(0,0,0,0); fTextButton560->SetWrapLength(-1); fTextButton560->Resize(91,24); fMainFrame826->AddFrame(fTextButton560, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fTextButton560->MoveResize(72,8,91,24); TGLabel *fLabel569 = new TGLabel(fMainFrame826,"Path:"); fLabel569->SetTextJustify(36); fLabel569->SetMargins(0,0,0,0); fLabel569->SetWrapLength(-1); fMainFrame826->AddFrame(fLabel569, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fLabel569->MoveResize(8,48,57,18); fLabel578 = new TGLabel(fMainFrame826,""); fLabel578->SetTextJustify(36); fLabel578->SetMargins(0,0,0,0); fLabel578->SetWrapLength(-1); fMainFrame826->AddFrame(fLabel578, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fLabel578->MoveResize(72,48,57,18); fMainFrame826->SetMWMHints(kMWMDecorAll, kMWMFuncAll, kMWMInputModeless); fMainFrame826->MapSubwindows(); fMainFrame826->Resize(fMainFrame826->GetDefaultSize()); fMainFrame826->MapWindow(); fMainFrame826->Resize(243,76); } void popUP() { // main frame fMainFrame1599 = new TGMainFrame(gClient->GetRoot(),10,10,kMainFrame | kVerticalFrame); fMainFrame1599->SetLayoutBroken(kTRUE); TGLabel *fLabel1003 = new TGLabel(fMainFrame1599,"Please enter the path:"); fLabel1003->SetTextJustify(36); fLabel1003->SetMargins(0,0,0,0); fLabel1003->SetWrapLength(-1); fMainFrame1599->AddFrame(fLabel1003, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fLabel1003->MoveResize(8,9,128,18); fTextButton947 = new TGTextButton(fMainFrame1599,"OK"); fTextButton947->Connect("Clicked()",0, 0, "OK()"); fTextButton947->SetTextJustify(36); fTextButton947->SetMargins(0,0,0,0); fTextButton947->SetWrapLength(-1); fTextButton947->Resize(91,24); fMainFrame1599->AddFrame(fTextButton947, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fTextButton947->MoveResize(168,64,91,24); 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 valEntry994; valEntry994.fMask = kGCForeground | kGCBackground | kGCFillStyle | kGCFont | kGCGraphicsExposures; gClient->GetColorByName("#000000",valEntry994.fForeground); gClient->GetColorByName("#c0c0c0",valEntry994.fBackground); valEntry994.fFillStyle = kFillSolid; valEntry994.fFont = ufont->GetFontHandle(); valEntry994.fGraphicsExposures = kFALSE; uGC = gClient->GetGC(&valEntry994, kTRUE); fTextEntry994 = new TGTextEntry(fMainFrame1599, new TGTextBuffer(15),-1,uGC->GetGC(),ufont->GetFontStruct(),kSunkenFrame | kDoubleBorder | kOwnBackground); fTextEntry994->SetMaxLength(4096); fTextEntry994->SetAlignment(kTextLeft); fTextEntry994->SetText(""); fTextEntry994->Resize(256,fTextEntry994->GetDefaultHeight()); fMainFrame1599->AddFrame(fTextEntry994, new TGLayoutHints(kLHintsLeft | kLHintsTop,2,2,2,2)); fTextEntry994->MoveResize(8,34,256,22); fMainFrame1599->SetMWMHints(kMWMDecorAll, kMWMFuncAll, kMWMInputModeless); fMainFrame1599->MapSubwindows(); fMainFrame1599->Resize(fMainFrame1599->GetDefaultSize()); fMainFrame1599->MapWindow(); fMainFrame1599->Resize(271,95); } void OK() { path=fTextEntry994->GetText(); fLabel578->SetText(path); fMainFrame1599->CloseWindow(); }