pxar
 All Classes Namespaces Functions Variables Typedefs Friends
PixTab.hh
1 #ifndef PIXTAB_H
2 #define PIXTAB_H
3 
4 #include <string>
5 
6 #include <TQObject.h>
7 #include <TGFrame.h>
8 #include <TGTab.h>
9 #include <TRootEmbeddedCanvas.h>
10 #include <TGSlider.h>
11 #include <TSlider.h>
12 #include <TGNumberEntry.h>
13 #include <TGSplitter.h>
14 #include <TGTextBuffer.h>
15 #include <TGTextEntry.h>
16 #include <TGTextView.h>
17 #include <TGStatusBar.h>
18 
19 #include "PixGui.hh"
20 #include "PixTest.hh"
21 
22 class DLLEXPORT PixTab: public TQObject {
23 public:
24  PixTab(PixGui *p, PixTest *test, std::string tabname);
25  PixTab();
26  void init(PixGui *p, PixTest *test, std::string tabname);
27  virtual ~PixTab();
28  std::string getName() {return fTabName;}
29  void statusBarUpdate(Int_t event, Int_t px, Int_t py, TObject *selected);
30 
31  virtual void handleButtons(Int_t id = -1);
32  virtual void buttonClicked();
33  virtual void boxChecked();
34  virtual void setParameter();
35  virtual void yellow();
36  virtual void moveDown();
37  virtual void moveUp();
38 
39  void update();
40  void updateToolTips();
41  void clearCanvas();
42  void nextHistogram();
43  void previousHistogram();
44  void clearHistList();
45 
46 protected:
47 
48  // -- frames and widgets
49  TGCompositeFrame *fTabFrame;
50  TGCompositeFrame *fhFrame;
51  TGVerticalFrame *fV1;
52  TGVerticalFrame *fV2;
53 
54  std::map<std::string, void*> fParTextEntries;
55  std::vector<std::string> fParIds;
56 
57  TRootEmbeddedCanvas *fEc1;
58  TGStatusBar *fStatusBar;
59 
60  TGTextButton *fbDoTest, *fbModMap, *fbBrowser;
61 
62  static const int TESTNUMBER = 0;
63  enum CommandIdentifiers {
64  B_DOTEST = TESTNUMBER + 21,
65  B_DOSTOP,
66  B_CLOSETAB,
67  B_MODMAP,
68  B_BROWSER,
69  B_PRINT
70  };
71 
72  std::string fTabName;
73  int fCount;
74 
75  PixGui *fGui;
76  PixTest *fTest;
77 
78  int fBorderN, fBorderT, fBorderL; // normal, tiny, large
79 
80  ClassDef(PixTab, 1)
81 
82 };
83 
84 #endif
Definition: PixTab.hh:22
Definition: PixGui.hh:43