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