Logo ROOT   6.10/09
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 #include "TGedFrame.h"
27 
28 class TGRadioButton;
30 class TGLayoutHints;
31 class TFrame;
32 
33 class TFrameEditor : public TGedFrame {
34 
35 protected:
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,
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
TGRadioButton * fBmode
Definition: TFrameEditor.h:37
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:297
ULong_t Pixel_t
Definition: GuiTypes.h:39
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
TGRadioButton * fBmode1
Definition: TFrameEditor.h:39
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:41
unsigned int UInt_t
Definition: RtypesCore.h:42
Define a Frame.
Definition: TFrame.h:19
TGRadioButton * fBmode0
Definition: TFrameEditor.h:38
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:36
TGLayoutHints * fBmodelh
Definition: TFrameEditor.h:40