Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TEveGridStepperEditor.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/eve:$Id$
0002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT_TEveGridStepperEditor
0013 #define ROOT_TEveGridStepperEditor
0014 
0015 #include "TGedFrame.h"
0016 
0017 class TGButton;
0018 class TGCheckButton;
0019 class TGNumberEntry;
0020 class TGColorSelect;
0021 
0022 class TEveGridStepper;
0023 class TEveGValuator;
0024 
0025 class TEveGridStepperSubEditor : public TGVerticalFrame
0026 {
0027 private:
0028    TEveGridStepperSubEditor(const TEveGridStepperSubEditor&);            // Not implemented
0029    TEveGridStepperSubEditor& operator=(const TEveGridStepperSubEditor&); // Not implemented
0030 
0031 protected:
0032    TEveGridStepper  *fM;    // Model object.
0033 
0034    TEveGValuator    *fNx;   // Number of slots along x.
0035    TEveGValuator    *fNy;   // Number of slots along y.
0036    TEveGValuator    *fNz;   // Number of slots along z.
0037    TEveGValuator    *fDx;   // Step in the x direction.
0038    TEveGValuator    *fDy;   // Step in the y direction.
0039    TEveGValuator    *fDz;   // Step in the z direction.
0040 
0041 public:
0042    TEveGridStepperSubEditor(const TGWindow* p);
0043    ~TEveGridStepperSubEditor() override {}
0044 
0045    void SetModel(TEveGridStepper* m);
0046 
0047    void Changed(); //*SIGNAL*
0048 
0049    void DoNs();
0050    void DoDs();
0051 
0052    ClassDefOverride(TEveGridStepperSubEditor, 0); // Sub-editor for TEveGridStepper class.
0053 };
0054 
0055 
0056 class TEveGridStepperEditor : public TGedFrame
0057 {
0058 private:
0059    TEveGridStepperEditor(const TEveGridStepperEditor&);            // Not implemented
0060    TEveGridStepperEditor& operator=(const TEveGridStepperEditor&); // Not implemented
0061 
0062 protected:
0063    TEveGridStepper            *fM;   // Model object.
0064    TEveGridStepperSubEditor   *fSE;  // Sub-editor containg GUI controls.
0065 
0066 public:
0067    TEveGridStepperEditor(const TGWindow *p = nullptr, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
0068    ~TEveGridStepperEditor() override {}
0069 
0070    void SetModel(TObject* obj) override;
0071 
0072    ClassDefOverride(TEveGridStepperEditor, 0); // Editor for TEveGridStepper class.
0073 };
0074 
0075 #endif