]>
Commit | Line | Data |
---|---|---|
32e219c2 | 1 | // $Header$ |
2 | ||
3 | #include "CLASS.h" | |
4 | #include <STEM.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> | |
14 | ||
15 | using namespace Reve; | |
16 | ||
17 | //______________________________________________________________________ | |
18 | // XXCLASS | |
19 | // | |
20 | // | |
21 | ||
22 | ClassImp(XXCLASS) | |
23 | ||
24 | //______________________________________________________________________ | |
25 | XXCLASS::XXCLASS(const TGWindow *p) : | |
26 | TGVerticalFrame(p), | |
27 | fM (0) | |
28 | { | |
29 | // Constructor. | |
30 | } | |
31 | ||
32 | //______________________________________________________________________ | |
33 | void XXCLASS::SetModel(STEM* m) | |
34 | { | |
35 | // Set model object. | |
36 | ||
37 | fM = m; | |
38 | } | |
39 | ||
40 | //______________________________________________________________________ | |
41 | void XXCLASS::Changed() | |
42 | { | |
43 | // Emit Changed signal. | |
44 | ||
45 | Emit("Changed()"); | |
46 | } | |
47 | ||
48 | //______________________________________________________________________ | |
49 | //void XXCLASS::DoABCD() | |
50 | //{ | |
51 | // // Set some value from some widget | |
52 | // Changed(); | |
53 | //} | |
54 | ||
55 | ||
56 | //______________________________________________________________________ | |
57 | // CLASS | |
58 | // | |
59 | // | |
60 | ||
61 | ClassImp(CLASS) | |
62 | ||
63 | //______________________________________________________________________ | |
64 | CLASS::CLASS(const TGWindow *p, Int_t width, Int_t height, | |
65 | UInt_t options, Pixel_t back) : | |
66 | TGedFrame(p, width, height, options | kVerticalFrame, back), | |
67 | fM (0), | |
68 | fSE (0) | |
69 | { | |
70 | // Constructor. | |
71 | ||
72 | MakeTitle("STEM"); | |
73 | ||
74 | fSE = new XXCLASS(this); | |
75 | AddFrame(fSE, new TGLayoutHints(kLHintsTop, 2, 0, 2, 2)); | |
76 | fSE->Connect("Changed()", "CLASS", this, "Update()"); | |
77 | } | |
78 | ||
79 | /**************************************************************************/ | |
80 | ||
81 | //______________________________________________________________________ | |
82 | void CLASS::SetModel(TObject* obj) | |
83 | { | |
84 | // Set model object. | |
85 | fM = dynamic_cast<STEM*>(obj); | |
86 | fSE->SetModel(fM); | |
87 | } | |
88 | ||
89 | /**************************************************************************/ | |
90 | ||
91 | // Implements callback/slot methods | |
92 | ||
93 | //______________________________________________________________________ | |
94 | // void CLASS::DoXYZZ() | |
95 | // { | |
96 | // fM->SetXYZZ(fXYZZ->GetValue()); | |
97 | // Update(); | |
98 | // } |