TEveGridStepperEditor.h

Go to the documentation of this file.
00001 // @(#)root/eve:$Id: TEveGridStepperEditor.h 21054 2007-11-26 18:00:41Z matevz $
00002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TEveGridStepperEditor
00013 #define ROOT_TEveGridStepperEditor
00014 
00015 #include "TGedFrame.h"
00016 
00017 class TGButton;
00018 class TGCheckButton;
00019 class TGNumberEntry;
00020 class TGColorSelect;
00021 
00022 class TEveGridStepper;
00023 class TEveGValuator;
00024 
00025 class TEveGridStepperSubEditor : public TGVerticalFrame
00026 {
00027 private:
00028    TEveGridStepperSubEditor(const TEveGridStepperSubEditor&);            // Not implemented
00029    TEveGridStepperSubEditor& operator=(const TEveGridStepperSubEditor&); // Not implemented
00030 
00031 protected:
00032    TEveGridStepper  *fM;    // Model object.
00033 
00034    TEveGValuator    *fNx;   // Number of slots along x.
00035    TEveGValuator    *fNy;   // Number of slots along y.
00036    TEveGValuator    *fNz;   // Number of slots along z.
00037    TEveGValuator    *fDx;   // Step in the x direction.
00038    TEveGValuator    *fDy;   // Step in the y direction.
00039    TEveGValuator    *fDz;   // Step in the z direction.
00040 
00041 public:
00042    TEveGridStepperSubEditor(const TGWindow* p);
00043    virtual ~TEveGridStepperSubEditor() {}
00044 
00045    void SetModel(TEveGridStepper* m);
00046 
00047    void Changed(); //*SIGNAL*
00048 
00049    void DoNs();
00050    void DoDs();
00051 
00052    ClassDef(TEveGridStepperSubEditor, 0); // Sub-editor for TEveGridStepper class.
00053 };
00054 
00055 
00056 class TEveGridStepperEditor : public TGedFrame
00057 {
00058 private:
00059    TEveGridStepperEditor(const TEveGridStepperEditor&);            // Not implemented
00060    TEveGridStepperEditor& operator=(const TEveGridStepperEditor&); // Not implemented
00061 
00062 protected:
00063    TEveGridStepper            *fM;   // Model object.
00064    TEveGridStepperSubEditor   *fSE;  // Sub-editor containg GUI controls.
00065 
00066 public:
00067    TEveGridStepperEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
00068    virtual ~TEveGridStepperEditor() {}
00069 
00070    virtual void SetModel(TObject* obj);
00071 
00072    ClassDef(TEveGridStepperEditor, 0); // Editor for TEveGridStepper class.
00073 };
00074 
00075 #endif

Generated on Tue Jul 5 14:14:56 2011 for ROOT_528-00b_version by  doxygen 1.5.1