// @(#)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
 TEveGridStepperEditor.h:1
 TEveGridStepperEditor.h:2
 TEveGridStepperEditor.h:3
 TEveGridStepperEditor.h:4
 TEveGridStepperEditor.h:5
 TEveGridStepperEditor.h:6
 TEveGridStepperEditor.h:7
 TEveGridStepperEditor.h:8
 TEveGridStepperEditor.h:9
 TEveGridStepperEditor.h:10
 TEveGridStepperEditor.h:11
 TEveGridStepperEditor.h:12
 TEveGridStepperEditor.h:13
 TEveGridStepperEditor.h:14
 TEveGridStepperEditor.h:15
 TEveGridStepperEditor.h:16
 TEveGridStepperEditor.h:17
 TEveGridStepperEditor.h:18
 TEveGridStepperEditor.h:19
 TEveGridStepperEditor.h:20
 TEveGridStepperEditor.h:21
 TEveGridStepperEditor.h:22
 TEveGridStepperEditor.h:23
 TEveGridStepperEditor.h:24
 TEveGridStepperEditor.h:25
 TEveGridStepperEditor.h:26
 TEveGridStepperEditor.h:27
 TEveGridStepperEditor.h:28
 TEveGridStepperEditor.h:29
 TEveGridStepperEditor.h:30
 TEveGridStepperEditor.h:31
 TEveGridStepperEditor.h:32
 TEveGridStepperEditor.h:33
 TEveGridStepperEditor.h:34
 TEveGridStepperEditor.h:35
 TEveGridStepperEditor.h:36
 TEveGridStepperEditor.h:37
 TEveGridStepperEditor.h:38
 TEveGridStepperEditor.h:39
 TEveGridStepperEditor.h:40
 TEveGridStepperEditor.h:41
 TEveGridStepperEditor.h:42
 TEveGridStepperEditor.h:43
 TEveGridStepperEditor.h:44
 TEveGridStepperEditor.h:45
 TEveGridStepperEditor.h:46
 TEveGridStepperEditor.h:47
 TEveGridStepperEditor.h:48
 TEveGridStepperEditor.h:49
 TEveGridStepperEditor.h:50
 TEveGridStepperEditor.h:51
 TEveGridStepperEditor.h:52
 TEveGridStepperEditor.h:53
 TEveGridStepperEditor.h:54
 TEveGridStepperEditor.h:55
 TEveGridStepperEditor.h:56
 TEveGridStepperEditor.h:57
 TEveGridStepperEditor.h:58
 TEveGridStepperEditor.h:59
 TEveGridStepperEditor.h:60
 TEveGridStepperEditor.h:61
 TEveGridStepperEditor.h:62
 TEveGridStepperEditor.h:63
 TEveGridStepperEditor.h:64
 TEveGridStepperEditor.h:65
 TEveGridStepperEditor.h:66
 TEveGridStepperEditor.h:67
 TEveGridStepperEditor.h:68
 TEveGridStepperEditor.h:69
 TEveGridStepperEditor.h:70
 TEveGridStepperEditor.h:71
 TEveGridStepperEditor.h:72
 TEveGridStepperEditor.h:73
 TEveGridStepperEditor.h:74
 TEveGridStepperEditor.h:75