ROOT logo
#ifndef __TGMrbTextButton_h__
#define __TGMrbTextButton_h__

//_________________________________________________[C++ CLASS DEFINITION FILE]
//////////////////////////////////////////////////////////////////////////////
// Name:           gutils/inc/TGMrbTextButton.h
// Purpose:        Define utilities to be used with the MARaBOU GUI
// Classes:        TGMrbTextButtonList       -- a composite frame containing
//                                              normal push buttons
//                 TGMrbTextButtonGroup      -- a group frame containing
//                                              normal push buttons
// Description:    Graphic utilities for the MARaBOU GUI.
// Author:         R. Lutter
// Revision:       $Id: TGMrbTextButton.h,v 1.6 2008-09-23 10:44:11 Rudolf.Lutter Exp $       
// Date:           
// Keywords:
//////////////////////////////////////////////////////////////////////////////

#include "Rtypes.h"
#include "TSystem.h"
#include "TGWindow.h"
#include "TGFrame.h"

#include "TMrbLofNamedX.h"
#include "TGMrbButtonFrame.h"
#include "TGMrbLayout.h"

//______________________________________________________[C++ CLASS DEFINITION]
//////////////////////////////////////////////////////////////////////////////
// Name:           TGMrbTextButtonList
// Purpose:        Define a list of text buttons and their behaviour
// Description:    Defines a list of text buttons.
//                 Buttons will be arranged in a composite frame.
// Keywords:
//////////////////////////////////////////////////////////////////////////////

class TGMrbTextButtonList: public TGCompositeFrame, public TGMrbButtonFrame {

	public:
		TGMrbTextButtonList(const TGWindow * Parent, const Char_t * Label,
													TMrbLofNamedX * Buttons, Int_t BtnId, Int_t NofCL,
													Int_t Width, Int_t Height,
													TGMrbLayout * FrameGC,
													TGMrbLayout * LabelGC = NULL,
													TGMrbLayout * ButtonGC = NULL,
													UInt_t FrameOptions = kHorizontalFrame,
													UInt_t ButtonOptions = kRaisedFrame | kDoubleBorder);

		~TGMrbTextButtonList() {};				// default dtor

		inline void Help() { gSystem->Exec(Form("mrbHelp %s", this->ClassName())); };

	ClassDef(TGMrbTextButtonList, 1)		// [GraphUtils] A list of text buttons
};

//______________________________________________________[C++ CLASS DEFINITION]
//////////////////////////////////////////////////////////////////////////////
// Name:           TGMrbTextButtonGroup
// Purpose:        Define a group of text buttons and their behaviour
// Description:    Defines a list of text buttons.
//                 Buttons will be arranged in a group frame.
// Keywords:
//////////////////////////////////////////////////////////////////////////////

class TGMrbTextButtonGroup: public TGGroupFrame, public TGMrbButtonFrame {

	public:
		TGMrbTextButtonGroup(const TGWindow * Parent, const Char_t * Label,
													TMrbLofNamedX * Buttons, Int_t BtnId, Int_t NofCL,
													TGMrbLayout * FrameGC,
													TGMrbLayout * ButtonGC = NULL,
													UInt_t FrameOptions = kHorizontalFrame,
													UInt_t ButtonOptions = kRaisedFrame | kDoubleBorder);

		~TGMrbTextButtonGroup() {};				// default dtor

		inline void Help() { gSystem->Exec(Form("mrbHelp %s", this->ClassName())); };

	ClassDef(TGMrbTextButtonGroup, 1)		// [GraphUtils] A group of text buttons
};

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