00001 // @(#)root/eve:$Id: TEveDigitSetEditor.h 22539 2008-03-08 14:36:37Z rdm $ 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_TEveDigitSetEditor 00013 #define ROOT_TEveDigitSetEditor 00014 00015 #include "TGedFrame.h" 00016 00017 class TGCheckButton; 00018 class TGNumberEntry; 00019 class TGColorSelect; 00020 00021 class TEveDigitSet; 00022 00023 class TEveGValuator; 00024 class TEveGDoubleValuator; 00025 class TEveTransSubEditor; 00026 00027 // It would be also good to have button to change model to the palette 00028 // object itself. 00029 class TEveRGBAPaletteSubEditor; 00030 00031 class TEveDigitSetEditor : public TGedFrame 00032 { 00033 private: 00034 TEveDigitSetEditor(const TEveDigitSetEditor&); // Not implemented 00035 TEveDigitSetEditor& operator=(const TEveDigitSetEditor&); // Not implemented 00036 00037 void CreateInfoTab(); 00038 protected: 00039 TEveDigitSet *fM; // Model object. 00040 00041 TEveRGBAPaletteSubEditor *fPalette; // Palette sub-editor. 00042 00043 TGHorizontalFrame *fHistoButtFrame; // Frame holding histogram display buttons. 00044 TGVerticalFrame *fInfoFrame; // Frame displaying basic digit statistics. 00045 00046 public: 00047 TEveDigitSetEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, 00048 UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground()); 00049 virtual ~TEveDigitSetEditor() {} 00050 00051 virtual void SetModel(TObject* obj); 00052 00053 // Declare callback/slot methods 00054 void DoHisto(); 00055 void DoRangeHisto(); 00056 void PlotHisto(Int_t min, Int_t max); 00057 00058 ClassDef(TEveDigitSetEditor, 1); // Editor for TEveDigitSet class. 00059 }; 00060 00061 #endif