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