Logo ROOT   6.16/01
Reference Guide
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 "TVirtualPad.h"
16#include "TColor.h"
17
18// Cleanup these includes:
19#include "TGLabel.h"
20#include "TGButton.h"
21#include "TGNumberEntry.h"
22#include "TGColorSelect.h"
23#include "TGDoubleSlider.h"
24
25/** \class TEveWindowEditor
26\ingroup TEve
27GUI editor for TEveWindow.
28*/
29
31
32////////////////////////////////////////////////////////////////////////////////
33/// Constructor.
34
36 UInt_t options, Pixel_t back) :
37 TGedFrame(p, width, height, options | kVerticalFrame, back),
38 fM(0),
39 fShowTitleBar(0)
40{
41 MakeTitle("TEveWindow");
42
43 fShowTitleBar = new TGCheckButton(this, "Show title-bar");
44 AddFrame(fShowTitleBar); // new TGLayoutHints());
45 fShowTitleBar->Connect("Clicked()", "TEveWindowEditor", this,
46 "DoShowTitleBar()");
47}
48
49////////////////////////////////////////////////////////////////////////////////
50/// Set model object.
51
53{
54 fM = dynamic_cast<TEveWindow*>(obj);
55
57}
58
59////////////////////////////////////////////////////////////////////////////////
60/// Slot for ShowTitleBar.
61
63{
65 Update();
66}
ULong_t Pixel_t
Definition: GuiTypes.h:39
int Int_t
Definition: RtypesCore.h:41
unsigned int UInt_t
Definition: RtypesCore.h:42
#define ClassImp(name)
Definition: Rtypes.h:363
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
@ kButtonDown
Definition: TGButton.h:54
@ kButtonUp
Definition: TGButton.h:53
@ kVerticalFrame
Definition: TGFrame.h:59
GUI editor for TEveWindow.
TEveWindowEditor(const TEveWindowEditor &)
virtual void SetModel(TObject *obj)
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.
Definition: TEveWindow.cxx:898
virtual Bool_t IsOn() const
Definition: TGButton.h:311
virtual void SetState(EButtonState state, Bool_t emit=kFALSE)
Set check button state.
Definition: TGButton.cxx:1200
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1099
virtual void MakeTitle(const char *title)
Create attribute frame title.
Definition: TGedFrame.cxx:96
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Definition: TGedFrame.cxx:73
Mother of all ROOT objects.
Definition: TObject.h:37
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:867