ROOT logo
(UNKNOWN PRODUCT) » INCLUDE » TGMrbButtonFrame

class TGMrbButtonFrame: public TGMrbObject

_________________________________________________[C++ CLASS DEFINITION FILE]

 Name:           gutils/inc/TGMrbButtonFrame.h
 Purpose:        Define utilities to be used with the MARaBOU GUI
 Class:          TGMrbButtonFrame    -- a composite frame containing buttons
 Description:    Graphic utilities for the MARaBOU GUI.
 Author:         R. Lutter
 Revision:       $Id: TGMrbButtonFrame.h,v 1.12 2008-10-14 17:27:06 Marabou Exp $
 Date:
 Keywords:

Function Members (Methods)

public:
TGMrbButtonFrame(const TGMrbButtonFrame&)
TGMrbButtonFrame(const TGWindow* Parent, const Char_t* Label, UInt_t ButtonType, TMrbLofNamedX* Buttons, Int_t BtnId, Int_t NofCL, Int_t Width, Int_t Height, TGMrbLayout* FrameGC, TGMrbLayout* LabelGC, TGMrbLayout* ButtonGC, UInt_t FrameOptions, UInt_t ButtonOptions)
virtual~TGMrbButtonFrame()
voidButtonPressed(Int_t Button)
voidButtonPressed(Int_t FrameId, Int_t Button)SIGNAL
voidChangeButtonBackground(ULong_t Color, Int_t Index = 0)
voidChangedBy(const char* method)
voidCheckButtonClicked(Int_t Button)
static TClass*Class()
voidClearAll()
Bool_tConnect(const char* sig, const char* cl, void* rcvr, const char* slt)
voidDestroyed()
Bool_tDisconnect(const char* sig = 0, void* rcvr = 0, const char* slt = 0)
voidEmit(const char* signal)
voidEmit(const char* signal, const char* params)
voidEmit(const char* signal, Long_t* paramArr)
voidEmit(const char* signal, Double_t param)
voidEmit(const char* signal, Long_t param)
voidEmit(const char* signal, Long64_t param)
voidEmit(const char* signal, ULong64_t param)
voidEmit(const char* signal, Bool_t param)
voidEmit(const char* signal, Char_t param)
voidEmit(const char* signal, UChar_t param)
voidEmit(const char* signal, Short_t param)
voidEmit(const char* signal, UShort_t param)
voidEmit(const char* signal, Int_t param)
voidEmit(const char* signal, UInt_t param)
voidEmit(const char* signal, ULong_t param)
voidEmit(const char* signal, Float_t param)
voidEmitVA(const char* signal, Int_t nargs)
voidFlipState(UInt_t Pattern)
UInt_tGetActive()
TMrbNamedX*GetActiveNx()
TGButton*GetButton(Int_t ButtonIndex) const
Int_tGetButtonWidth(Int_t ButtonIndex = 0) const
TList*GetListOfSignals() const
voidHelp()
voidHighPriority(const char* signal_name, const char* slot_name = 0)
virtual TClass*IsA() const
voidJustifyButton(ETextJustification Justify, Int_t ButtonIndex = 0)
voidLowPriority(const char* signal_name, const char* slot_name = 0)
voidMessage(const char* msg)
voidPictureButtonClicked(Int_t Button)
voidRadioButtonClicked(Int_t Button)
voidSetButtonWidth(Int_t Width, Int_t ButtonIndex = 0)
voidSetState(UInt_t Pattern, EButtonState State = kButtonDown, Bool_t Emit = kFALSE)
TGMrbLayout*TGMrbObject::SetupGC(TGMrbLayout* GC, UInt_t FrameOptions)
virtual voidShowMembers(TMemberInspector&)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
voidTextButtonClicked(Int_t Button)
voidUpdateState(UInt_t Pattern)

Data Members

public:
enum EGMrbButtonType { kGMrbTextButton
kGMrbRadioButton
kGMrbCheckButton
kGMrbPictureButton
};
enum EGMrbButtonFrameType { kGMrbButtonList
kGMrbButtonGroup
};
enum { kFrameIdShift
};
protected:
TGMrbLayout*fButtonGCbutton layout
UInt_tfButtonOptionsbutton options
TMrbLofNamedXfButtonslist of buttons: labels, indices, widgets
TGCompositeFrame*fFrame
TGMrbLayout*fFrameGCframe layout
Int_tfFrameIdframe id to be used with signals/slots
UInt_tfFrameOptionsframe options
TListTGMrbObject::fHeapstore heap objects here
Int_tfHeightframe height
TStringfLabellabel text
TGMrbLayout*fLabelGClabel layout
TObjArray*fLofSpecialButtons! list of special buttons
Int_tfNofCLbutton grid CxL: number of columns/lines
const TGWindow*fParentparent window
TGClient*fParentClient
UInt_tfRBStateradio button settings
UInt_tfTypebutton type: text, radio, check, or picture; list or group
Int_tfWidthframe width
private:
TQObjSenderfQObject

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGMrbButtonFrame(const TGWindow* Parent, const Char_t* Label, UInt_t ButtonType, TMrbLofNamedX* Buttons, Int_t BtnId, Int_t NofCL, Int_t Width, Int_t Height, TGMrbLayout* FrameGC, TGMrbLayout* LabelGC, TGMrbLayout* ButtonGC, UInt_t FrameOptions, UInt_t ButtonOptions)
{}
TGMrbButtonFrame(const TGMrbButtonFrame& )
{}
void SetState(UInt_t Pattern, EButtonState State = kButtonDown, Bool_t Emit = kFALSE)
UInt_t GetActive()
TMrbNamedX * GetActiveNx()
void CheckButtonClicked(Int_t Button)
{ this->UpdateState((UInt_t) Button); }
void RadioButtonClicked(Int_t Button)
{ this->SetState((UInt_t) Button, kButtonDown, kTRUE); }
void TextButtonClicked(Int_t Button)
{ this->UpdateState((UInt_t) Button); }
void PictureButtonClicked(Int_t Button)
{ this->UpdateState((UInt_t) Button); }
void ButtonPressed(Int_t Button)
{ this->ButtonPressed(fFrameId, Button); }
void ButtonPressed(Int_t FrameId, Int_t Button)
void FlipState(UInt_t Pattern)
void UpdateState(UInt_t Pattern)
void ClearAll()
void SetButtonWidth(Int_t Width, Int_t ButtonIndex = 0)
Int_t GetButtonWidth(Int_t ButtonIndex = 0) const
void JustifyButton(ETextJustification Justify, Int_t ButtonIndex = 0)
TGButton * GetButton(Int_t ButtonIndex) const
void ChangeButtonBackground(ULong_t Color, Int_t Index = 0)
void Help()
{ gSystem->Exec("mrbHelp TGMrbButtonFrame"); }
void PlaceButtons()
TGMrbSpecialButton * FindSpecialButton(Int_t Index)