HistogramBrowser.h
Go to the documentation of this file.
1 #ifndef OM_HISTOGRAMBROWSER_H
2 #define OM_HISTOGRAMBROWSER_H
3 #include <string>
4 #include <map>
6 #include "RQ_OBJECT.h"
7 #include "TGFrame.h"
8 
9 class TGCanvas;
10 class TGListTree;
11 class TGListTreeItem;
12 class TGPicture;
13 class TGTextButton;
14 
15 namespace om { class HistoData; }
16 
17 namespace om {
18  class HistogramBrowser : public TGCompositeFrame, public GUIModelSubscriber {
19  RQ_OBJECT("HistogramBrowser")
20  public:
21  HistogramBrowser(const TGWindow* p,
22  unsigned int w,
23  unsigned int h,
24  unsigned int opt);
26 
27  TGListTreeItem* FindCategory(const char* nm);
28  TGListTreeItem* MakeCategory(const char* nm);
29 
30  void DoubleClicked(TGListTreeItem*, Int_t i);
31 
32  void HandleRefresh();
33 
34  // Complete the GUIModelSubscriber interface
35  void GUIModelDataIssue(const GUIModelData& d, unsigned int which);
36 
37  private:
38  void BuildTree();
39  void ClearBrowser();
40  void MakeCategories();
41  void Populate();
42 
43  private:
44  TGCanvas* fCanvas;
45  TGListTree* fListTree;
46  std::map<std::string,TGListTreeItem*> fCategories;
47  std::map<std::string,TGListTreeItem*> fHistograms;
48 
49  TGTextButton* fRefresh;
50 
51  ClassDef(HistogramBrowser,0)
52  };
53 }
54 #endif
55 ////////////////////////////////////////////////////////////////////////
TGListTreeItem * MakeCategory(const char *nm)
std::map< std::string, TGListTreeItem * > fCategories
const char * p
Definition: xmltok.h:285
static constexpr Double_t nm
Definition: Munits.h:133
void DoubleClicked(TGListTreeItem *, Int_t i)
TGListTreeItem * FindCategory(const char *nm)
TGTextButton * fRefresh
void GUIModelDataIssue(const GUIModelData &d, unsigned int which)
std::map< std::string, TGListTreeItem * > fHistograms
Float_t d
Definition: plot.C:236
HistogramBrowser(const TGWindow *p, unsigned int w, unsigned int h, unsigned int opt)
Float_t w
Definition: plot.C:20
Online Monitoring package header.