Logo ROOT   6.30.04
Reference Guide
 All Namespaces Files Pages
TFrameEditor.h
Go to the documentation of this file.
1 // @(#)root/ged:$Id$
2 // Author: Ilka Antcheva 08/03/05
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2002, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TFrameEditor
13 #define ROOT_TFrameEditor
14 
15 //////////////////////////////////////////////////////////////////////////
16 // //
17 // TFrameEditor //
18 // //
19 // Editor of frame objects. //
20 // //
21 // Frame border can be set to sunken, raised or no border. //
22 // Border size can be set for sunken or rized frames (1-15 pixels). //
23 // //
24 //////////////////////////////////////////////////////////////////////////
25 
26 #include "TGedFrame.h"
27 
28 class TGRadioButton;
29 class TGLineWidthComboBox;
30 class TGLayoutHints;
31 class TFrame;
32 
33 class TFrameEditor : public TGedFrame {
34 
35 protected:
36  TFrame *fFrame;
37  TGRadioButton *fBmode; // set sinken frame border mode
38  TGRadioButton *fBmode0; // set no border
39  TGRadioButton *fBmode1; // set raised frame border mode
40  TGLayoutHints *fBmodelh; // layout hints for border mode buttons
41  TGLineWidthComboBox *fBsize; // set frame border size
42 
43  virtual void ConnectSignals2Slots();
44 
45 public:
46  TFrameEditor(const TGWindow *p =0,
47  Int_t width = 140, Int_t height = 30,
48  UInt_t options = kChildFrame,
49  Pixel_t back = GetDefaultFrameBackground());
50  virtual ~TFrameEditor();
51 
52  virtual void SetModel(TObject* obj);
53  virtual void DoBorderMode();
54  virtual void DoBorderSize(Int_t size);
55 
56  ClassDef(TFrameEditor,0) //editor of TFrame objects
57 };
58 
59 #endif