Logo ROOT  
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 "TGButton.h"
16 
17 /** \class TEveWindowEditor
18 \ingroup TEve
19 GUI 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(0),
31  fShowTitleBar(0)
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 }
TEveWindow::GetShowTitleBar
Bool_t GetShowTitleBar() const
Definition: TEveWindow.h:261
TGWindow
Definition: TGWindow.h:31
TGCheckButton::SetState
virtual void SetState(EButtonState state, Bool_t emit=kFALSE)
Set check button state.
Definition: TGButton.cxx:1203
kButtonDown
@ kButtonDown
Definition: TGButton.h:60
Pixel_t
ULong_t Pixel_t
Definition: GuiTypes.h:39
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
TGCheckButton::IsOn
virtual Bool_t IsOn() const
Definition: TGButton.h:311
kVerticalFrame
@ kVerticalFrame
Definition: GuiTypes.h:381
kButtonUp
@ kButtonUp
Definition: TGButton.h:59
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TEveWindow.h
TEveWindowEditor::DoShowTitleBar
void DoShowTitleBar()
Slot for ShowTitleBar.
Definition: TEveWindowEditor.cxx:54
TGedFrame::Update
virtual void Update()
Update the current pad when an attribute is changed via GUI.
Definition: TGedFrame.cxx:73
TEveWindowEditor.h
TGCheckButton
Definition: TGButton.h:264
TEveWindow::SetShowTitleBar
void SetShowTitleBar(Bool_t x)
Set display state of the title-bar.
Definition: TEveWindow.cxx:898
TEveWindowEditor::SetModel
virtual void SetModel(TObject *obj)
Set model object.
Definition: TEveWindowEditor.cxx:44
TGedFrame::MakeTitle
virtual void MakeTitle(const char *title)
Create attribute frame title.
Definition: TGedFrame.cxx:96
TEveWindow
Definition: TEveWindow.h:209
TEveWindowEditor::fM
TEveWindow * fM
Definition: TEveWindowEditor.h:31
unsigned int
TGedFrame
Definition: TGedFrame.h:33
TEveWindowEditor::TEveWindowEditor
TEveWindowEditor(const TEveWindowEditor &)
TQObject::Connect
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:864
TObject
Definition: TObject.h:37
TGButton.h
TEveWindowEditor
Definition: TEveWindowEditor.h:24
TGCompositeFrame::AddFrame
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
Definition: TGFrame.cxx:1102
TEveWindowEditor::fShowTitleBar
TGCheckButton * fShowTitleBar
Definition: TEveWindowEditor.h:33
int