Logo ROOT   6.08/07
Reference Guide
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 #ifndef ROOT_TGedFrame
27 #include "TGedFrame.h"
28 #endif
29 
30 class TGRadioButton;
32 class TGLayoutHints;
33 class TFrame;
34 
35 class TFrameEditor : public TGedFrame {
36 
37 protected:
39  TGRadioButton *fBmode; // set sinken frame border mode
40  TGRadioButton *fBmode0; // set no border
41  TGRadioButton *fBmode1; // set raised frame border mode
42  TGLayoutHints *fBmodelh; // layout hints for border mode buttons
43  TGLineWidthComboBox *fBsize; // set frame border size
44 
45  virtual void ConnectSignals2Slots();
46 
47 public:
48  TFrameEditor(const TGWindow *p =0,
49  Int_t width = 140, Int_t height = 30,
50  UInt_t options = kChildFrame,
52  virtual ~TFrameEditor();
53 
54  virtual void SetModel(TObject* obj);
55  virtual void DoBorderMode();
56  virtual void DoBorderSize(Int_t size);
57 
58  ClassDef(TFrameEditor,0) //editor of TFrame objects
59 };
60 
61 #endif
TGRadioButton * fBmode
Definition: TFrameEditor.h:39
virtual void ConnectSignals2Slots()
Connect signals to slots.
virtual ~TFrameEditor()
Destructor of frame editor.
virtual void SetModel(TObject *obj)
Pick up the frame attributes.
int Int_t
Definition: RtypesCore.h:41
virtual void DoBorderMode()
Slot connected to the border mode settings.
#define ClassDef(name, id)
Definition: Rtypes.h:254
ULong_t Pixel_t
Definition: GuiTypes.h:41
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGRadioButton * fBmode1
Definition: TFrameEditor.h:41
TFrameEditor(const TGWindow *p=0, Int_t width=140, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground())
Constructor of TFrame editor GUI.
TGLineWidthComboBox * fBsize
Definition: TFrameEditor.h:43
unsigned int UInt_t
Definition: RtypesCore.h:42
Define a Frame.
Definition: TFrame.h:21
TGRadioButton * fBmode0
Definition: TFrameEditor.h:40
virtual void DoBorderSize(Int_t size)
Slot connected to the border size settings.
Mother of all ROOT objects.
Definition: TObject.h:37
TFrame * fFrame
Definition: TFrameEditor.h:38
TGLayoutHints * fBmodelh
Definition: TFrameEditor.h:42