Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
28class TGRadioButton;
30class TGLayoutHints;
31class TFrame;
32
33class TFrameEditor : public TGedFrame {
34
35protected:
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
45public:
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
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDef(name, id)
Definition Rtypes.h:325
include TDocParser_001 C image html pict1_TDocParser_001 png width
TFrame * fFrame
TGRadioButton * fBmode
TGLineWidthComboBox * fBsize
virtual void DoBorderMode()
Slot connected to the border mode settings.
virtual void DoBorderSize(Int_t size)
Slot connected to the border size settings.
virtual ~TFrameEditor()
Destructor of frame editor.
TGRadioButton * fBmode0
virtual void SetModel(TObject *obj)
Pick up the frame attributes.
TGLayoutHints * fBmodelh
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGRadioButton * fBmode1
Define a Frame.
Definition TFrame.h:19
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:668
Mother of all ROOT objects.
Definition TObject.h:37