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#include "TGedFrame.h"
17
18class TGRadioButton;
20class TGLayoutHints;
21class TFrame;
22
23class TFrameEditor : public TGedFrame {
24
25protected:
27 TGRadioButton *fBmode; ///< set sinken frame border mode
28 TGRadioButton *fBmode0; ///< set no border
29 TGRadioButton *fBmode1; ///< set raised frame border mode
30 TGLayoutHints *fBmodelh; ///< layout hints for border mode buttons
31 TGLineWidthComboBox *fBsize; ///< set frame border size
32
33 virtual void ConnectSignals2Slots();
34
35public:
36 TFrameEditor(const TGWindow *p = nullptr,
37 Int_t width = 140, Int_t height = 30,
38 UInt_t options = kChildFrame,
40 ~TFrameEditor() override;
41
42 void SetModel(TObject* obj) override;
43 virtual void DoBorderMode();
44 virtual void DoBorderSize(Int_t size);
45
46 ClassDefOverride(TFrameEditor,0) //editor of TFrame objects
47};
48
49#endif
@ kChildFrame
Definition GuiTypes.h:379
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Editor of frame objects.
TFrame * fFrame
TGRadioButton * fBmode
set sinken frame border mode
TGLineWidthComboBox * fBsize
set frame border size
~TFrameEditor() override
Destructor of frame editor.
virtual void DoBorderMode()
Slot connected to the border mode settings.
virtual void DoBorderSize(Int_t size)
Slot connected to the border size settings.
void SetModel(TObject *obj) override
Pick up the frame attributes.
TGRadioButton * fBmode0
set no border
TGLayoutHints * fBmodelh
layout hints for border mode buttons
virtual void ConnectSignals2Slots()
Connect signals to slots.
TGRadioButton * fBmode1
set raised frame border mode
Define a Frame.
Definition TFrame.h:19
static Pixel_t GetDefaultFrameBackground()
Get default frame background.
Definition TGFrame.cxx:683
This class describes layout hints used by the layout classes.
Definition TGLayout.h:50
The TGLineWidthComboBox user callable and it creates a combobox for selecting the line width.
Definition TGComboBox.h:158
Selects different options.
Definition TGButton.h:321
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
Mother of all ROOT objects.
Definition TObject.h:41