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