Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:27:20

0001 // Author: Matevz Tadel 2011
0002 
0003 #include "Fireworks/Core/interface/RootGuiUtils.h"
0004 
0005 #include "TGFrame.h"
0006 #include "TGLabel.h"
0007 #include "TGWidget.h"
0008 
0009 namespace fireworks_root_gui {
0010 
0011   TGHorizontalFrame* makeHorizontalFrame(TGCompositeFrame* p) {
0012     // Make standard horizontal frame.
0013 
0014     TGHorizontalFrame* f = new TGHorizontalFrame(p);
0015     p->AddFrame(f, new TGLayoutHints(kLHintsNormal | kLHintsExpandX));
0016     return f;
0017   }
0018 
0019   TGLabel* makeLabel(TGCompositeFrame* p, const char* txt, int width, int lo, int ro, int to, int bo) {
0020     // Make standard label.
0021 
0022     TGLabel* l = new TGLabel(p, txt);
0023     p->AddFrame(l, new TGLayoutHints(kLHintsNormal, lo, ro, to, bo));
0024     l->SetTextJustify(kTextRight);
0025     l->SetWidth(width);
0026     l->ChangeOptions(l->GetOptions() | kFixedWidth);
0027     return l;
0028   }
0029 
0030 }  // namespace fireworks_root_gui