]>
Commit | Line | Data |
---|---|---|
5a5a1232 | 1 | // $Header$ |
2 | ||
3 | #include "CLASS.h" | |
4 | #include <Reve/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 | // CLASS | |
19 | // | |
20 | ||
2aef44c1 | 21 | ClassImp(CLASS) |
5a5a1232 | 22 | |
a8600b56 | 23 | CLASS::CLASS(const TGWindow *p, Int_t width, Int_t height, |
5a5a1232 | 24 | UInt_t options, Pixel_t back) : |
a8600b56 | 25 | TGedFrame(p, width, height, options | kVerticalFrame, back), |
26 | fM(0) | |
27 | // Initialize widget pointers to 0 | |
5a5a1232 | 28 | { |
5a5a1232 | 29 | MakeTitle("STEM"); |
30 | ||
a8600b56 | 31 | // Create widgets |
32 | // fXYZZ = new TGSomeWidget(this, ...); | |
33 | // AddFrame(fXYZZ, new TGLayoutHints(...)); | |
34 | // fXYZZ->Connect("SignalName()", "Reve::CLASS", this, "DoXYZZ()"); | |
5a5a1232 | 35 | } |
36 | ||
37 | CLASS::~CLASS() | |
38 | {} | |
39 | ||
40 | /**************************************************************************/ | |
41 | ||
a8600b56 | 42 | void CLASS::SetModel(TObject* obj) |
5a5a1232 | 43 | { |
a8600b56 | 44 | fM = dynamic_cast<STEM*>(obj); |
5a5a1232 | 45 | |
a8600b56 | 46 | // Set values of widgets |
47 | // fXYZZ->SetValue(fM->GetXYZZ()); | |
5a5a1232 | 48 | } |
49 | ||
50 | /**************************************************************************/ | |
a8600b56 | 51 | |
52 | // Implements callback/slot methods | |
53 | ||
54 | // void CLASS::DoXYZZ() | |
55 | // { | |
56 | // fM->SetXYZZ(fXYZZ->GetValue()); | |
57 | // Update(); | |
58 | // } |