00001 // @(#)root/ged:$Id: TAttLineEditor.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_TAttLineEditor 00013 #define ROOT_TAttLineEditor 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TAttLineEditor // 00018 // // 00019 // Implements GUI for editing line attributes. // // 00020 // // 00021 ////////////////////////////////////////////////////////////////////////// 00022 00023 #ifndef ROOT_TGedFrame 00024 #include "TGedFrame.h" 00025 #endif 00026 00027 class TGLineStyleComboBox; 00028 class TGLineWidthComboBox; 00029 class TGColorSelect; 00030 class TAttLine; 00031 00032 class TAttLineEditor : public TGedFrame { 00033 00034 protected: 00035 TAttLine *fAttLine; // line attribute object 00036 TGLineStyleComboBox *fStyleCombo; // line style combo box 00037 TGLineWidthComboBox *fWidthCombo; // line width combo box 00038 TGColorSelect *fColorSelect; // line color widget 00039 00040 virtual void ConnectSignals2Slots(); 00041 00042 public: 00043 TAttLineEditor(const TGWindow *p = 0, 00044 Int_t width = 140, Int_t height = 30, 00045 UInt_t options = kChildFrame, 00046 Pixel_t back = GetDefaultFrameBackground()); 00047 virtual ~TAttLineEditor(); 00048 00049 virtual void SetModel(TObject* obj); 00050 virtual void DoLineColor(Pixel_t color); 00051 virtual void DoLineStyle(Int_t style); 00052 virtual void DoLineWidth(Int_t width); 00053 00054 ClassDef(TAttLineEditor,0) // GUI for editing line attributes 00055 }; 00056 00057 #endif