Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TEveWindowEditor.cxx
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Author: Matevz Tadel 2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, 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#include "TEveWindowEditor.h"
13#include "TEveWindow.h"
14
15#include "TGButton.h"
16
17/** \class TEveWindowEditor
18\ingroup TEve
19GUI editor for TEveWindow.
20*/
21
23
24////////////////////////////////////////////////////////////////////////////////
25/// Constructor.
26
28 UInt_t options, Pixel_t back) :
29 TGedFrame(p, width, height, options | kVerticalFrame, back),
30 fM(nullptr),
31 fShowTitleBar(nullptr)
32{
33 MakeTitle("TEveWindow");
34
35 fShowTitleBar = new TGCheckButton(this, "Show title-bar");
36 AddFrame(fShowTitleBar); // new TGLayoutHints());
37 fShowTitleBar->Connect("Clicked()", "TEveWindowEditor", this,
38 "DoShowTitleBar()");
39}
40
41////////////////////////////////////////////////////////////////////////////////
42/// Set model object.
43
45{
46 fM = dynamic_cast<TEveWindow*>(obj);
47
49}
50
51////////////////////////////////////////////////////////////////////////////////
52/// Slot for ShowTitleBar.
53
55{
57 Update();
58}
@ kVerticalFrame
Definition GuiTypes.h:381
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassImp(name)
Definition Rtypes.h:382
@ kButtonDown
Definition TGButton.h:54
@ kButtonUp
Definition TGButton.h:53
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
GUI editor for TEveWindow.
TEveWindowEditor(const TEveWindowEditor &)
void SetModel(TObject *obj) override
Set model object.
TGCheckButton * fShowTitleBar
void DoShowTitleBar()
Slot for ShowTitleBar.
Abstract base-class for representing eve-windows.
Definition TEveWindow.h:210
Bool_t GetShowTitleBar() const
Definition TEveWindow.h:261
void SetShowTitleBar(Bool_t x)
Set display state of the title-bar.
Selects different options.
Definition TGButton.h:264
Bool_t IsOn() const override
Definition TGButton.h:310
void SetState(EButtonState state, Bool_t emit=kFALSE) override
Set check button state.
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=nullptr)
Add frame to the composite frame using the specified layout hints.
Definition TGFrame.cxx:1117
ROOT GUI Window base class.
Definition TGWindow.h:23
Base frame for implementing GUI - a service class.
Definition TGedFrame.h:27
virtual void MakeTitle(const char *title)
Create attribute frame title.
Definition TGedFrame.cxx:95
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Definition TGedFrame.cxx:72
Mother of all ROOT objects.
Definition TObject.h:41
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
Definition TQObject.cxx:869