Public Member Functions | Private Attributes | List of all members
om::GUIMain Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/OnlineMonitoring/viewer/GUIMain.h"

Inheritance diagram for om::GUIMain:

Public Member Functions

 GUIMain ()
 
 ~GUIMain ()
 
void CloseWindow ()
 

Private Attributes

TGTableLayout * fLayoutManager
 
TGTableLayoutHints * fMenuBarHints
 
TGTableLayoutHints * fHeaderBarHints
 
TGTableLayoutHints * fTabsBoxHints
 
TGTableLayoutHints * fCaptionBoxHints
 
TGTableLayoutHints * fHistogramInfoHints
 
TGTableLayoutHints * fButtonBankHints
 
TGTableLayoutHints * fPlotViewerHints
 
TGTableLayoutHints * fLogViewerHints
 
MenuBarfMenuBar
 
HeaderBarfHeaderBar
 
TabsBoxfTabsBox
 
CaptionBoxfCaptionBox
 
HistogramInfofHistogramInfo
 
ButtonBankfButtonBank
 
PlotViewerfPlotViewer
 
LogViewerfLogViewer
 

Detailed Description

Definition at line 18 of file GUIMain.h.

Constructor & Destructor Documentation

GUIMain::GUIMain ( )

Definition at line 17 of file GUIMain.cxx.

References om::cerr, om::cout, fButtonBank, fButtonBankHints, fCaptionBox, fCaptionBoxHints, fHeaderBar, fHeaderBarHints, fHistogramInfo, fHistogramInfoHints, fLayoutManager, fLogViewer, fLogViewerHints, fMenuBar, fMenuBarHints, fPlotViewer, fPlotViewerHints, fTabsBox, fTabsBoxHints, om::Layout::fWindowSizeX, om::Layout::fWindowSizeY, om::OStream::SetLogViewer(), moon_position_table_new3::tl(), make_root_from_grid_output::tr, and xx.

17  :
18  TGMainFrame(gClient->GetRoot(),
21 {
22  int ncol = 3;
23  int nrow = 6;
24  fLayoutManager = new TGTableLayout(this, nrow, ncol);
25  this->SetLayoutManager(fLayoutManager);
26 
27  int tl = kLHintsTop|kLHintsLeft;
28  int tr = kLHintsTop|kLHintsRight;
29  int bl = kLHintsBottom|kLHintsLeft;
30  int xx = kLHintsFillX|kLHintsExpandX;
31  int xy = kLHintsFillY|kLHintsExpandY;
32 
33 
34  // L/R T/B
35  fMenuBarHints = new TGTableLayoutHints(0,3, 0,1, tl|xx, 2, 2, 2, 2);
36  fHeaderBarHints = new TGTableLayoutHints(0,3, 1,2, tl|xx, 2, 2, 2, 2);
37  fButtonBankHints = new TGTableLayoutHints(1,2, 2,3, tl, 2, 2, 2, 2);
38  fHistogramInfoHints = new TGTableLayoutHints(2,3, 2,3, tr|xx, 2, 2, 2, 2);
39  fCaptionBoxHints = new TGTableLayoutHints(0,1, 4,5, bl|xy, 2, 2, 2, 2);
40  fLogViewerHints = new TGTableLayoutHints(0,3, 5,6, bl|xx|xy, 2, 2, 2, 2);
41  fTabsBoxHints = new TGTableLayoutHints(0,1, 3,4, tl|xy, 2, 2, 2, 2);
42  fPlotViewerHints = new TGTableLayoutHints(1,3, 3,5, tl|xx|xy, 2, 2, 2, 2);
43 
44  fMenuBar = new MenuBar(this);
45  this->AddFrame(fMenuBar, fMenuBarHints);
46 
47  fHeaderBar = new HeaderBar(this);
48  this->AddFrame(fHeaderBar, fHeaderBarHints);
49 
50  fCaptionBox = new CaptionBox(this);
51  this->AddFrame(fCaptionBox, fCaptionBoxHints);
52 
53  fHistogramInfo = new HistogramInfo(this);
54  this->AddFrame(fHistogramInfo, fHistogramInfoHints);
55 
56  fLogViewer = new LogViewer(this);
57  this->AddFrame(fLogViewer, fLogViewerHints);
60  om::cout << "Starting online monitoring viewer" << "";
61 
62  fTabsBox = new TabsBox(this);
63  this->AddFrame(fTabsBox, fTabsBoxHints);
64 
65  fButtonBank = new ButtonBank(this);
66  this->AddFrame(fButtonBank, fButtonBankHints);
67 
68  fPlotViewer = new PlotViewer(this);
69  this->AddFrame(fPlotViewer, fPlotViewerHints);
70 
71  this->MapSubwindows();
72  this->Resize(Layout::fWindowSizeX+12,Layout::fWindowSizeY+24);
73  this->MapWindow();
74 
75 }
TGTableLayoutHints * fLogViewerHints
Definition: GUIMain.h:35
TGTableLayoutHints * fPlotViewerHints
Definition: GUIMain.h:34
Double_t xx
Definition: macro.C:12
static const unsigned int fWindowSizeX
Definition: Layout.h:7
TGTableLayoutHints * fTabsBoxHints
Definition: GUIMain.h:30
void SetLogViewer(om::LogViewer *lv)
Definition: OStream.cxx:28
TabsBox * fTabsBox
Definition: GUIMain.h:39
TGTableLayoutHints * fHeaderBarHints
Definition: GUIMain.h:29
OStream cerr
Definition: OStream.cxx:7
ButtonBank * fButtonBank
Definition: GUIMain.h:42
TGTableLayout * fLayoutManager
Definition: GUIMain.h:27
TGTableLayoutHints * fButtonBankHints
Definition: GUIMain.h:33
static const unsigned int fWindowSizeY
Definition: Layout.h:8
TGTableLayoutHints * fHistogramInfoHints
Definition: GUIMain.h:32
OStream cout
Definition: OStream.cxx:6
HistogramInfo * fHistogramInfo
Definition: GUIMain.h:41
LogViewer * fLogViewer
Definition: GUIMain.h:44
HeaderBar * fHeaderBar
Definition: GUIMain.h:38
MenuBar * fMenuBar
Definition: GUIMain.h:37
TGTableLayoutHints * fMenuBarHints
Definition: GUIMain.h:28
CaptionBox * fCaptionBox
Definition: GUIMain.h:40
TGTableLayoutHints * fCaptionBoxHints
Definition: GUIMain.h:31
PlotViewer * fPlotViewer
Definition: GUIMain.h:43
GUIMain::~GUIMain ( )

Definition at line 79 of file GUIMain.cxx.

References fButtonBank, fButtonBankHints, fHeaderBar, fHeaderBarHints, fHistogramInfo, fHistogramInfoHints, fLogViewer, fLogViewerHints, fMenuBar, fMenuBarHints, fPlotViewer, fPlotViewerHints, fTabsBox, and fTabsBoxHints.

80 {
81  if (fLogViewer) { delete fLogViewer; fLogViewer = 0; }
82  if (fPlotViewer) { delete fPlotViewer; fPlotViewer = 0; }
83  if (fButtonBank) { delete fButtonBank; fButtonBank = 0; }
84  if (fHistogramInfo) { delete fHistogramInfo; fHistogramInfo = 0; }
85  if (fTabsBox) { delete fTabsBox; fTabsBox = 0; }
86  if (fHeaderBar) { delete fHeaderBar; fHeaderBar = 0; }
87  if (fMenuBar) { delete fMenuBar; fMenuBar = 0; }
88 
89  if (fLogViewerHints) { delete fLogViewerHints; fLogViewerHints = 0; }
93  if (fTabsBoxHints) { delete fTabsBoxHints; fTabsBoxHints = 0; }
94  if (fHeaderBarHints) { delete fHeaderBarHints; fHeaderBarHints = 0; }
95  if (fMenuBarHints) { delete fMenuBarHints; fMenuBarHints = 0; }
96 }
TGTableLayoutHints * fLogViewerHints
Definition: GUIMain.h:35
TGTableLayoutHints * fPlotViewerHints
Definition: GUIMain.h:34
TGTableLayoutHints * fTabsBoxHints
Definition: GUIMain.h:30
TabsBox * fTabsBox
Definition: GUIMain.h:39
TGTableLayoutHints * fHeaderBarHints
Definition: GUIMain.h:29
ButtonBank * fButtonBank
Definition: GUIMain.h:42
TGTableLayoutHints * fButtonBankHints
Definition: GUIMain.h:33
TGTableLayoutHints * fHistogramInfoHints
Definition: GUIMain.h:32
HistogramInfo * fHistogramInfo
Definition: GUIMain.h:41
LogViewer * fLogViewer
Definition: GUIMain.h:44
HeaderBar * fHeaderBar
Definition: GUIMain.h:38
MenuBar * fMenuBar
Definition: GUIMain.h:37
TGTableLayoutHints * fMenuBarHints
Definition: GUIMain.h:28
PlotViewer * fPlotViewer
Definition: GUIMain.h:43

Member Function Documentation

void GUIMain::CloseWindow ( )

Definition at line 100 of file GUIMain.cxx.

101 {
102  gApplication->Terminate();
103 }

Member Data Documentation

ButtonBank* om::GUIMain::fButtonBank
private

Definition at line 42 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayoutHints* om::GUIMain::fButtonBankHints
private

Definition at line 33 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

CaptionBox* om::GUIMain::fCaptionBox
private

Definition at line 40 of file GUIMain.h.

Referenced by GUIMain().

TGTableLayoutHints* om::GUIMain::fCaptionBoxHints
private

Definition at line 31 of file GUIMain.h.

Referenced by GUIMain().

HeaderBar* om::GUIMain::fHeaderBar
private

Definition at line 38 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayoutHints* om::GUIMain::fHeaderBarHints
private

Definition at line 29 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

HistogramInfo* om::GUIMain::fHistogramInfo
private

Definition at line 41 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayoutHints* om::GUIMain::fHistogramInfoHints
private

Definition at line 32 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayout* om::GUIMain::fLayoutManager
private

Definition at line 27 of file GUIMain.h.

Referenced by GUIMain().

LogViewer* om::GUIMain::fLogViewer
private

Definition at line 44 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayoutHints* om::GUIMain::fLogViewerHints
private

Definition at line 35 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

MenuBar* om::GUIMain::fMenuBar
private

Definition at line 37 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayoutHints* om::GUIMain::fMenuBarHints
private

Definition at line 28 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

PlotViewer* om::GUIMain::fPlotViewer
private

Definition at line 43 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayoutHints* om::GUIMain::fPlotViewerHints
private

Definition at line 34 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TabsBox* om::GUIMain::fTabsBox
private

Definition at line 39 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().

TGTableLayoutHints* om::GUIMain::fTabsBoxHints
private

Definition at line 30 of file GUIMain.h.

Referenced by GUIMain(), and ~GUIMain().


The documentation for this class was generated from the following files: