Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TEveGridStepperEditor.h
Go to the documentation of this file.
1 // @(#)root/eve:$Id$
2 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TEveGridStepperEditor
13 #define ROOT_TEveGridStepperEditor
14 
15 #include "TGedFrame.h"
16 
17 class TGButton;
18 class TGCheckButton;
19 class TGNumberEntry;
20 class TGColorSelect;
21 
22 class TEveGridStepper;
23 class TEveGValuator;
24 
25 class TEveGridStepperSubEditor : public TGVerticalFrame
26 {
27 private:
28  TEveGridStepperSubEditor(const TEveGridStepperSubEditor&); // Not implemented
29  TEveGridStepperSubEditor& operator=(const TEveGridStepperSubEditor&); // Not implemented
30 
31 protected:
32  TEveGridStepper *fM; // Model object.
33 
34  TEveGValuator *fNx; // Number of slots along x.
35  TEveGValuator *fNy; // Number of slots along y.
36  TEveGValuator *fNz; // Number of slots along z.
37  TEveGValuator *fDx; // Step in the x direction.
38  TEveGValuator *fDy; // Step in the y direction.
39  TEveGValuator *fDz; // Step in the z direction.
40 
41 public:
42  TEveGridStepperSubEditor(const TGWindow* p);
43  virtual ~TEveGridStepperSubEditor() {}
44 
45  void SetModel(TEveGridStepper* m);
46 
47  void Changed(); //*SIGNAL*
48 
49  void DoNs();
50  void DoDs();
51 
52  ClassDef(TEveGridStepperSubEditor, 0); // Sub-editor for TEveGridStepper class.
53 };
54 
55 
56 class TEveGridStepperEditor : public TGedFrame
57 {
58 private:
59  TEveGridStepperEditor(const TEveGridStepperEditor&); // Not implemented
60  TEveGridStepperEditor& operator=(const TEveGridStepperEditor&); // Not implemented
61 
62 protected:
63  TEveGridStepper *fM; // Model object.
64  TEveGridStepperSubEditor *fSE; // Sub-editor containg GUI controls.
65 
66 public:
67  TEveGridStepperEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
68  virtual ~TEveGridStepperEditor() {}
69 
70  virtual void SetModel(TObject* obj);
71 
72  ClassDef(TEveGridStepperEditor, 0); // Editor for TEveGridStepper class.
73 };
74 
75 #endif