00001 // @(#)root/ged:$Id: TAttFillEditor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Ilka Antcheva 10/05/04 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2002, 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_TAttFillEditor 00013 #define ROOT_TAttFillEditor 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TAttFillEditor // 00018 // // 00019 // Implements GUI for editing fill attributes. // // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGedFrame 00024 #include "TGedFrame.h" 00025 #endif 00026 00027 class TGColorSelect; 00028 class TGedPatternSelect; 00029 class TAttFill; 00030 00031 00032 class TAttFillEditor : public TGedFrame { 00033 00034 protected: 00035 TAttFill *fAttFill; // fill attribute object 00036 TGColorSelect *fColorSelect; // fill color widget 00037 TGedPatternSelect *fPatternSelect; // fill pattern widget 00038 00039 virtual void ConnectSignals2Slots(); 00040 00041 public: 00042 TAttFillEditor(const TGWindow *p = 0, 00043 Int_t width = 140, Int_t height = 30, 00044 UInt_t options = kChildFrame, 00045 Pixel_t back = GetDefaultFrameBackground()); 00046 virtual ~TAttFillEditor(); 00047 00048 virtual void SetModel(TObject* obj); 00049 virtual void DoFillColor(Pixel_t color); 00050 virtual void DoFillPattern(Style_t color); 00051 00052 ClassDef(TAttFillEditor,0) //GUI for editing fill attributes 00053 }; 00054 00055 #endif