ROOT logo
// $Id: NestInfo.h 2088 2008-11-23 20:26:46Z matevz $

// Copyright (C) 1999-2008, Matevz Tadel. All rights reserved.
// This file is part of GLED, released under GNU General Public License version 2.
// For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.

#ifndef GledCore_NestInfo_H
#define GledCore_NestInfo_H

#include <Glasses/SubShellInfo.h>
#include <Eye/Ray.h>

class NestInfo : public SubShellInfo {
  MAC_RNR_FRIENDS(NestInfo);

public:
  enum LeafLayout_e {
    LL_Ants,
    LL_Custom
  };

  enum PrivRayQN_e  { PRQN_offset = RayNS::RQN_user_0,
		      PRQN_layout_change,
		      PRQN_rewidth
  };

private:
  void _init();

protected:
  // Creation parameters.
  Bool_t	bShowSelf;      // X{GS} 7 Bool(-join=>1)
  UInt_t	mMaxChildExp;	// X{GS} 7 Value(-range=>[0,1000,1])

  // Widths of major elements.
  Int_t		mWName;   // X{GS} Ray{Rewidth} 7 Value(-range=>[18,50,1], -join=>1)
  Int_t		mWAnt;    // X{GS} Ray{Rewidth} 7 Value(-range=>[0,40,1])
  Int_t		mWIndent; // X{GS} Ray{Rewidth} 7 Value(-range=>[0,10,1], -join=>1)
  Int_t		mWSepBox; // X{GS} Ray{Rewidth} 7 Value(-range=>[0,5,1])

  // Layout specification.
  ZLink<ZList>	mLayoutList;	// X{GS} L{}
  LeafLayout_e  mLeafLayout;    // X{GS} Ray{Layout} 7 PhonyEnum()
  TString       mLayout;        // X{GS} Ray{Layout} 7 Textor()

public:
  NestInfo(const Text_t* n="NestInfo", const Text_t* t=0) :
    SubShellInfo(n,t) { _init(); }

  void ImportLayout(ZGlass* src); // X{E} C{1} 7 MCWButt()

  void ImportKings(); // X{E} 7 MButt()

  void EmitLayoutRay();  // X{E} 7 MButt(-join=>1)
  void EmitRewidthRay(); // X{E} 7 MButt()

  static const Text_t* sLayoutPath;

#include "NestInfo.h7"
  ClassDef(NestInfo, 1); // Glass representation of GUI browser 'FTW_Nest'.
}; // endclass NestInfo


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