ROOT logo
// @(#)root/eve:$Id: TEveWindowEditor.cxx 26561 2008-12-01 17:35:55Z matevz $
// Author: Matevz Tadel 2007

/*************************************************************************
 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#include "TEveWindowEditor.h"
#include "TEveWindow.h"

#include "TVirtualPad.h"
#include "TColor.h"

// Cleanup these includes:
#include "TGLabel.h"
#include "TGButton.h"
#include "TGNumberEntry.h"
#include "TGColorSelect.h"
#include "TGDoubleSlider.h"


//______________________________________________________________________________
// GUI editor for TEveWindow.
//

ClassImp(TEveWindowEditor);

//______________________________________________________________________________
TEveWindowEditor::TEveWindowEditor(const TGWindow *p, Int_t width, Int_t height,
             UInt_t options, Pixel_t back) :
   TGedFrame(p, width, height, options | kVerticalFrame, back),
   fM(0),
   fShowTitleBar(0)
{
   // Constructor.

   MakeTitle("TEveWindow");

   fShowTitleBar = new TGCheckButton(this, "Show title-bar");
   AddFrame(fShowTitleBar); // new TGLayoutHints());
   fShowTitleBar->Connect("Clicked()", "TEveWindowEditor", this,
                          "DoShowTitleBar()");
}

/******************************************************************************/

//______________________________________________________________________________
void TEveWindowEditor::SetModel(TObject* obj)
{
   // Set model object.

   fM = dynamic_cast<TEveWindow*>(obj);

   fShowTitleBar->SetState(fM->GetShowTitleBar() ? kButtonDown : kButtonUp);
}

//______________________________________________________________________________
void TEveWindowEditor::DoShowTitleBar()
{
   // Slot for ShowTitleBar.

   fM->SetShowTitleBar(fShowTitleBar->IsOn());
   Update();
}
 TEveWindowEditor.cxx:1
 TEveWindowEditor.cxx:2
 TEveWindowEditor.cxx:3
 TEveWindowEditor.cxx:4
 TEveWindowEditor.cxx:5
 TEveWindowEditor.cxx:6
 TEveWindowEditor.cxx:7
 TEveWindowEditor.cxx:8
 TEveWindowEditor.cxx:9
 TEveWindowEditor.cxx:10
 TEveWindowEditor.cxx:11
 TEveWindowEditor.cxx:12
 TEveWindowEditor.cxx:13
 TEveWindowEditor.cxx:14
 TEveWindowEditor.cxx:15
 TEveWindowEditor.cxx:16
 TEveWindowEditor.cxx:17
 TEveWindowEditor.cxx:18
 TEveWindowEditor.cxx:19
 TEveWindowEditor.cxx:20
 TEveWindowEditor.cxx:21
 TEveWindowEditor.cxx:22
 TEveWindowEditor.cxx:23
 TEveWindowEditor.cxx:24
 TEveWindowEditor.cxx:25
 TEveWindowEditor.cxx:26
 TEveWindowEditor.cxx:27
 TEveWindowEditor.cxx:28
 TEveWindowEditor.cxx:29
 TEveWindowEditor.cxx:30
 TEveWindowEditor.cxx:31
 TEveWindowEditor.cxx:32
 TEveWindowEditor.cxx:33
 TEveWindowEditor.cxx:34
 TEveWindowEditor.cxx:35
 TEveWindowEditor.cxx:36
 TEveWindowEditor.cxx:37
 TEveWindowEditor.cxx:38
 TEveWindowEditor.cxx:39
 TEveWindowEditor.cxx:40
 TEveWindowEditor.cxx:41
 TEveWindowEditor.cxx:42
 TEveWindowEditor.cxx:43
 TEveWindowEditor.cxx:44
 TEveWindowEditor.cxx:45
 TEveWindowEditor.cxx:46
 TEveWindowEditor.cxx:47
 TEveWindowEditor.cxx:48
 TEveWindowEditor.cxx:49
 TEveWindowEditor.cxx:50
 TEveWindowEditor.cxx:51
 TEveWindowEditor.cxx:52
 TEveWindowEditor.cxx:53
 TEveWindowEditor.cxx:54
 TEveWindowEditor.cxx:55
 TEveWindowEditor.cxx:56
 TEveWindowEditor.cxx:57
 TEveWindowEditor.cxx:58
 TEveWindowEditor.cxx:59
 TEveWindowEditor.cxx:60
 TEveWindowEditor.cxx:61
 TEveWindowEditor.cxx:62
 TEveWindowEditor.cxx:63
 TEveWindowEditor.cxx:64
 TEveWindowEditor.cxx:65
 TEveWindowEditor.cxx:66
 TEveWindowEditor.cxx:67
 TEveWindowEditor.cxx:68