]>
Commit | Line | Data |
---|---|---|
8616d353 | 1 | // $Header$ |
2 | ||
3 | #include "TOFStripEditor.h" | |
4 | #include <Alieve/TOFStrip.h> | |
5 | ||
6 | #include <TVirtualPad.h> | |
7 | #include <TColor.h> | |
8 | ||
9 | #include <TGLabel.h> | |
10 | #include <TGButton.h> | |
11 | #include <TGNumberEntry.h> | |
12 | #include <TGColorSelect.h> | |
13 | #include <TGDoubleSlider.h> | |
8616d353 | 14 | using namespace Alieve; |
15 | ||
16 | //______________________________________________________________________ | |
17 | // TOFStripEditor | |
18 | // | |
19 | ||
20 | ClassImp(TOFStripEditor) | |
21 | ||
22 | TOFStripEditor::TOFStripEditor(const TGWindow *p, Int_t width, Int_t height, | |
23 | UInt_t options, Pixel_t back) : | |
24 | TGedFrame(p, width, height, options | kVerticalFrame, back), | |
25 | fM(0) | |
26 | // Initialize widget pointers to 0 | |
27 | { | |
28 | MakeTitle("TOFStrip"); | |
29 | ||
30 | // Create widgets | |
31 | // fXYZZ = new TGSomeWidget(this, ...); | |
32 | // AddFrame(fXYZZ, new TGLayoutHints(...)); | |
33 | // fXYZZ->Connect("SignalName()", "Alieve::TOFStripEditor", this, "DoXYZZ()"); | |
34 | } | |
35 | ||
36 | TOFStripEditor::~TOFStripEditor() | |
37 | {} | |
38 | ||
39 | /**************************************************************************/ | |
40 | ||
41 | void TOFStripEditor::SetModel(TObject* obj) | |
42 | { | |
43 | fM = dynamic_cast<TOFStrip*>(obj); | |
44 | ||
45 | // Set values of widgets | |
46 | // fXYZZ->SetValue(fM->GetXYZZ()); | |
47 | } | |
48 | ||
49 | /**************************************************************************/ | |
50 | ||
51 | // Implements callback/slot methods | |
52 | ||
53 | // void TOFStripEditor::DoXYZZ() | |
54 | // { | |
55 | // fM->SetXYZZ(fXYZZ->GetValue()); | |
56 | // Update(); | |
57 | // } |