00001 // @(#)root/ged:$Id: TFrameEditor.h 20882 2007-11-19 11:31:26Z rdm $ 00002 // Author: Ilka Antcheva 08/03/05 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_TFrameEditor 00013 #define ROOT_TFrameEditor 00014 00015 ////////////////////////////////////////////////////////////////////////// 00016 // // 00017 // TFrameEditor // 00018 // // 00019 // Editor of frame objects. // 00020 // // 00021 // Frame border can be set to sunken, raised or no border. // 00022 // Border size can be set for sunken or rized frames (1-15 pixels). // 00023 // // 00024 ////////////////////////////////////////////////////////////////////////// 00025 00026 #ifndef ROOT_TGedFrame 00027 #include "TGedFrame.h" 00028 #endif 00029 00030 class TGRadioButton; 00031 class TGLineWidthComboBox; 00032 class TGLayoutHints; 00033 class TFrame; 00034 00035 class TFrameEditor : public TGedFrame { 00036 00037 protected: 00038 TFrame *fFrame; 00039 TGRadioButton *fBmode; // set sinken frame border mode 00040 TGRadioButton *fBmode0; // set no border 00041 TGRadioButton *fBmode1; // set raised frame border mode 00042 TGLayoutHints *fBmodelh; // layout hints for border mode buttons 00043 TGLineWidthComboBox *fBsize; // set frame border size 00044 00045 virtual void ConnectSignals2Slots(); 00046 00047 public: 00048 TFrameEditor(const TGWindow *p =0, 00049 Int_t width = 140, Int_t height = 30, 00050 UInt_t options = kChildFrame, 00051 Pixel_t back = GetDefaultFrameBackground()); 00052 virtual ~TFrameEditor(); 00053 00054 virtual void SetModel(TObject* obj); 00055 virtual void DoBorderMode(); 00056 virtual void DoBorderSize(Int_t size); 00057 00058 ClassDef(TFrameEditor,0) //editor of TFrame objects 00059 }; 00060 00061 #endif