Logo ROOT   6.18/05
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
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
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassDef(name, id)
Definition: Rtypes.h:326
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kChildFrame
Definition: TGFrame.h:57
TFrame * fFrame
Definition: TFrameEditor.h:36
TGRadioButton * fBmode
Definition: TFrameEditor.h:37
TGLineWidthComboBox * fBsize
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.
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
Definition: TFrameEditor.h:38
virtual void SetModel(TObject *obj)
Pick up the frame attributes.
TGLayoutHints * fBmodelh
Definition: TFrameEditor.h:40
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGRadioButton * fBmode1
Definition: TFrameEditor.h:39
Define a Frame.
Definition: TFrame.h:19
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition: TGFrame.cxx:665
Mother of all ROOT objects.
Definition: TObject.h:37