ROOT logo
// @(#)root/gl:$Id$
// Author:  Matevz Tadel, Feb 2007

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

#ifndef ROOT_TGLLightSetEditor_H
#define ROOT_TGLLightSetEditor_H

#include <TGedFrame.h>

class TGButton;
class TGLLightSet;

class TGLLightSetSubEditor : public TGVerticalFrame
{
private:
   TGLLightSetSubEditor(const TGLLightSetSubEditor&);            // Not implemented
   TGLLightSetSubEditor& operator=(const TGLLightSetSubEditor&); // Not implemented

protected:
   TGLLightSet      *fM;

   TGGroupFrame     *fLightFrame;
   TGButton         *fTopLight;
   TGButton         *fRightLight;
   TGButton         *fBottomLight;
   TGButton         *fLeftLight;
   TGButton         *fFrontLight;

   TGButton         *fSpecularLight;

   TGButton* MakeLampButton(const char* name, Int_t wid, TGCompositeFrame* parent);

public:
   TGLLightSetSubEditor(const TGWindow* p);
   virtual ~TGLLightSetSubEditor() {}

   void SetModel(TGLLightSet* m);

   void Changed(); //*SIGNAL*

   void DoButton();

   ClassDef(TGLLightSetSubEditor, 0) // Sub-editor for TGLLightSet.
};


class TGLLightSetEditor : public TGedFrame
{
private:
   TGLLightSetEditor(const TGLLightSetEditor&);            // Not implemented
   TGLLightSetEditor& operator=(const TGLLightSetEditor&); // Not implemented

protected:
   TGLLightSet          *fM;  // fModel dynamic-casted to TGLLightSetEditor
   TGLLightSetSubEditor *fSE;

public:
   TGLLightSetEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
   virtual ~TGLLightSetEditor();

   virtual void SetModel(TObject* obj);

   ClassDef(TGLLightSetEditor, 1) // Editor for TGLLightSet.
}; // endclass TGLLightSetEditor

#endif
 TGLLightSetEditor.h:1
 TGLLightSetEditor.h:2
 TGLLightSetEditor.h:3
 TGLLightSetEditor.h:4
 TGLLightSetEditor.h:5
 TGLLightSetEditor.h:6
 TGLLightSetEditor.h:7
 TGLLightSetEditor.h:8
 TGLLightSetEditor.h:9
 TGLLightSetEditor.h:10
 TGLLightSetEditor.h:11
 TGLLightSetEditor.h:12
 TGLLightSetEditor.h:13
 TGLLightSetEditor.h:14
 TGLLightSetEditor.h:15
 TGLLightSetEditor.h:16
 TGLLightSetEditor.h:17
 TGLLightSetEditor.h:18
 TGLLightSetEditor.h:19
 TGLLightSetEditor.h:20
 TGLLightSetEditor.h:21
 TGLLightSetEditor.h:22
 TGLLightSetEditor.h:23
 TGLLightSetEditor.h:24
 TGLLightSetEditor.h:25
 TGLLightSetEditor.h:26
 TGLLightSetEditor.h:27
 TGLLightSetEditor.h:28
 TGLLightSetEditor.h:29
 TGLLightSetEditor.h:30
 TGLLightSetEditor.h:31
 TGLLightSetEditor.h:32
 TGLLightSetEditor.h:33
 TGLLightSetEditor.h:34
 TGLLightSetEditor.h:35
 TGLLightSetEditor.h:36
 TGLLightSetEditor.h:37
 TGLLightSetEditor.h:38
 TGLLightSetEditor.h:39
 TGLLightSetEditor.h:40
 TGLLightSetEditor.h:41
 TGLLightSetEditor.h:42
 TGLLightSetEditor.h:43
 TGLLightSetEditor.h:44
 TGLLightSetEditor.h:45
 TGLLightSetEditor.h:46
 TGLLightSetEditor.h:47
 TGLLightSetEditor.h:48
 TGLLightSetEditor.h:49
 TGLLightSetEditor.h:50
 TGLLightSetEditor.h:51
 TGLLightSetEditor.h:52
 TGLLightSetEditor.h:53
 TGLLightSetEditor.h:54
 TGLLightSetEditor.h:55
 TGLLightSetEditor.h:56
 TGLLightSetEditor.h:57
 TGLLightSetEditor.h:58
 TGLLightSetEditor.h:59
 TGLLightSetEditor.h:60
 TGLLightSetEditor.h:61
 TGLLightSetEditor.h:62
 TGLLightSetEditor.h:63
 TGLLightSetEditor.h:64
 TGLLightSetEditor.h:65
 TGLLightSetEditor.h:66
 TGLLightSetEditor.h:67
 TGLLightSetEditor.h:68
 TGLLightSetEditor.h:69
 TGLLightSetEditor.h:70
 TGLLightSetEditor.h:71
 TGLLightSetEditor.h:72
 TGLLightSetEditor.h:73