ROOT logo
#ifndef __TGMrbRadioButton_h__
#define __TGMrbRadioButton_h__

//_________________________________________________[C++ CLASS DEFINITION FILE]
//////////////////////////////////////////////////////////////////////////////
// Name:           gutils/inc/TGMrbRadioButton.h
// Purpose:        Define utilities to be used with the MARaBOU GUI
// Classes:        TGMrbRadioButtonList    -- a composite frame contaoning
//                                            radio buttons
//                 TGMrbRadioButtonGroup   -- a group frame containing
//                                            radio buttons
// Description:    Graphic utilities for the MARaBOU GUI.
// Author:         R. Lutter
// Revision:       $Id: TGMrbRadioButton.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:           TGMrbRadioButtonList
// Purpose:        Define a list of radio buttons and their behaviour
// Description:    Defines a list of radio buttons.
//                 Buttons will be arranged in a composite frame.
// Keywords:
//////////////////////////////////////////////////////////////////////////////

class TGMrbRadioButtonList: public TGCompositeFrame, public TGMrbButtonFrame {

	public:
		TGMrbRadioButtonList(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 = 0);

		~TGMrbRadioButtonList() {};				// default dtor

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

	ClassDef(TGMrbRadioButtonList, 1)		// [GraphUtils] A list of radio buttons
};

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

class TGMrbRadioButtonGroup: public TGGroupFrame, public TGMrbButtonFrame {

	public:
		TGMrbRadioButtonGroup(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 = 0);

		~TGMrbRadioButtonGroup() {};				// default dtor

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

	ClassDef(TGMrbRadioButtonGroup, 1)		// [GraphUtils] A group of radio buttons
};

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