TestDialog Class Reference

#include <guitest.h>

Inheritance diagram for TestDialog:

TGTransientFrame TGTransientFrame TGMainFrame TGMainFrame TGMainFrame TGMainFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame List of all members.

Public Member Functions

 TestDialog (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options=kVerticalFrame)
virtual ~TestDialog ()
virtual void CloseWindow ()
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
 TestDialog (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options=kVerticalFrame)
virtual ~TestDialog ()
virtual void CloseWindow ()
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
 TestDialog (const TGWindow *p, const TGWindow *main, UInt_t w, UInt_t h, UInt_t options=kVerticalFrame)
virtual ~TestDialog ()
void DoClose ()
void CloseWindow ()
void DoOK ()
void DoCancel ()
void DoTab (Int_t id)
void HandleButtons (Int_t id=-1)
void HandleEmbeddedCanvas (Int_t event, Int_t x, Int_t y, TObject *sel)

Private Member Functions

void FillHistos ()
void FillHistos ()
void FillHistos ()

Private Attributes

TGCompositeFramefFrame1
TGCompositeFramefF1
TGCompositeFramefF2
TGCompositeFramefF3
TGCompositeFramefF4
TGCompositeFramefF5
TGCompositeFramefF6
TGCompositeFramefF7
TGButtonfOkButton
TGButtonfCancelButton
TGButtonfStartB
TGButtonfStopB
TGButtonfBtn1
TGButtonfBtn2
TGButtonfChk1
TGButtonfChk2
TGButtonfRad1
TGButtonfRad2
TGPictureButtonfPicBut1
TGRadioButtonfRadio1
TGRadioButtonfRadio2
TGCheckButtonfCheck1
TGCheckButtonfCheckMulti
TGListBoxfListBox
TGComboBoxfCombo
TGTabfTab
TGTextEntryfTxt1
TGTextEntryfTxt2
TGLayoutHintsfL1
TGLayoutHintsfL2
TGLayoutHintsfL3
TGLayoutHintsfL4
TRootEmbeddedCanvasfEc1
TRootEmbeddedCanvasfEc2
Int_t fFirstEntry
Int_t fLastEntry
Bool_t fFillHistos
TH1FfHpx
TH2FfHpxpy
TListfCleanup
TGCompositeFramefFrame1
TGGroupFramefF6
TGGroupFramefF7
TGButtonfOkButton
TGButtonfBtn1
TGPictureButtonfPicBut1
TGCheckButtonfCheck1
TGCheckButtonfCheckMulti
TGListBoxfListBox
TGComboBoxfCombo
TGTabfTab
TGTextEntryfTxt1
TGLayoutHintsfL1
TRootEmbeddedCanvasfEc1
TH1FfHpx
TH2FfHpxpy
TGTransientFramefMain
TGCompositeFramefFrame1
TGGroupFramefF6
TGButtonfOkButton
TGButtonfBtn1
TGPictureButtonfPicBut1
TGCheckButtonfCheck1
TGCheckButtonfCheckMulti
TGListBoxfListBox
TGComboBoxfCombo
TGTabfTab
TGTextEntryfTxt1
TGLayoutHintsfL1
TRootEmbeddedCanvasfEc1
TH1FfHpx
TH2FfHpxpy

Detailed Description

Definition at line 119 of file guitest.h.


Constructor & Destructor Documentation

TestDialog::TestDialog ( const TGWindow p,
const TGWindow main,
UInt_t  w,
UInt_t  h,
UInt_t  options = kVerticalFrame 
)

Definition at line 396 of file guitest.cpp.

References TList::Add(), TGListBox::AddEntry(), TGComboBox::AddEntry(), TGCompositeFrame::AddFrame(), TGTab::AddTab(), TGTextBuffer::AddText(), TGWidget::Associate(), TGFrame::ChangeBackground(), fBtn1, fBtn2, fCancelButton, fCheckMulti, fChk1, fChk2, fCleanup, TGObject::fClient, fCombo, fEc1, fEc2, fF1, fF2, fF3, fF4, fF5, fF6, fF7, fFillHistos, fFirstEntry, fFrame1, TGFrame::fHeight, fHpx, fHpxpy, fL1, fL2, fL3, fL4, fLastEntry, fListBox, fOkButton, fRad1, fRad2, fStartB, fStopB, fTab, fTxt1, fTxt2, TGFrame::fWidth, TRootEmbeddedCanvas::GetCanvas(), TGClient::GetColorByName(), TGFrame::GetDefaultHeight(), TGCompositeFrame::GetDefaultSize(), TGFrame::GetHeight(), TGObject::GetId(), TGWindow::GetParent(), TGTab::GetTabTab(), gVirtualX, i, j, kFALSE, kFixedWidth, kHorizontalFrame, kLHintsBottom, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsRight, kLHintsTop, kVerticalFrame, main(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), TGFrame::Move(), TGListBox::Resize(), TGFrame::Resize(), TPad::SetBorderMode(), TGTextEntry::SetFont(), TGCompositeFrame::SetLayoutManager(), TGMainFrame::SetWindowName(), sprintf(), and TGCompositeFrame::TGCompositeFrame().

TestDialog::~TestDialog (  )  [virtual]

Definition at line 604 of file guitest.cpp.

References TList::Delete(), fBtn1, fBtn2, fCancelButton, fCheckMulti, fChk1, fChk2, fCleanup, fCombo, fEc1, fEc2, fF1, fF2, fF3, fF4, fF5, fF6, fF7, fFrame1, fHpx, fHpxpy, fL1, fL2, fL3, fL4, fListBox, fOkButton, fRad1, fRad2, fStartB, fStopB, fTab, fTxt1, and fTxt2.

TestDialog::TestDialog ( const TGWindow p,
const TGWindow main,
UInt_t  w,
UInt_t  h,
UInt_t  options = kVerticalFrame 
)

virtual TestDialog::~TestDialog (  )  [virtual]

TestDialog::TestDialog ( const TGWindow p,
const TGWindow main,
UInt_t  w,
UInt_t  h,
UInt_t  options = kVerticalFrame 
)

virtual TestDialog::~TestDialog (  )  [virtual]


Member Function Documentation

void TestDialog::FillHistos (  )  [private]

Definition at line 629 of file guitest.cpp.

References c1, TCanvas::cd(), xmlio::cnt, TH1::Draw(), fEc1, fEc2, fFillHistos, fHpx, fHpxpy, TH2::Fill(), TH1::Fill(), TRootEmbeddedCanvas::GetCanvas(), gRandom, gSystem, kRed, kUPDATE, TPad::Modified(), TSystem::ProcessEvents(), TRandom::Rannor(), TAttFill::SetFillColor(), and TCanvas::Update().

Referenced by HandleButtons(), and ProcessMessage().

void TestDialog::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

Definition at line 668 of file guitest.cpp.

Referenced by DoClose(), and ProcessMessage().

Bool_t TestDialog::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 675 of file guitest.cpp.

References TGListBox::AddEntry(), TGTab::AddTab(), CloseWindow(), fCheckMulti, fEc1, fEc2, fFillHistos, fFirstEntry, FillHistos(), fLastEntry, fListBox, fRad1, fRad2, fTab, GET_MSG(), GET_SUBMSG(), TGTab::GetNumberOfTabs(), TGButton::GetState(), TGTabElement::GetString(), TGTab::GetTabTab(), i, kButtonUp, kC_COMMAND, kCM_BUTTON, kCM_CHECKBUTTON, kCM_RADIOBUTTON, kCM_TAB, kFALSE, kTRUE, TGListBox::Layout(), TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGListBox::RemoveEntry(), TGTab::RemoveTab(), s, SafeDelete, TGListBox::SetMultipleSelections(), TGButton::SetState(), and sprintf().

void TestDialog::FillHistos (  )  [private]

virtual void TestDialog::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

virtual Bool_t TestDialog::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.

void TestDialog::FillHistos (  )  [private]

void TestDialog::DoClose (  ) 

Definition at line 1208 of file guitest.C.

References CloseWindow(), fFillHistos, TVirtualPadEditor::GetPadEditor(), kFALSE, TTimer::SingleShot(), and TVirtualPadEditor::Terminate().

void TestDialog::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

void TestDialog::DoOK (  ) 

Definition at line 1229 of file guitest.C.

References fCancelButton, fFillHistos, fOkButton, TVirtualPadEditor::GetPadEditor(), kButtonDisabled, kFALSE, TGButton::SetState(), TTimer::SingleShot(), and TVirtualPadEditor::Terminate().

void TestDialog::DoCancel (  ) 

Definition at line 1254 of file guitest.C.

References fCancelButton, fFillHistos, fOkButton, TVirtualPadEditor::GetPadEditor(), kButtonDisabled, kFALSE, TGButton::SetState(), TTimer::SingleShot(), and TVirtualPadEditor::Terminate().

void TestDialog::DoTab ( Int_t  id  ) 

Definition at line 1357 of file guitest.C.

void TestDialog::HandleButtons ( Int_t  id = -1  ) 

Definition at line 1267 of file guitest.C.

References TGListBox::AddEntry(), TGTab::AddTab(), fCheckMulti, fCombo, fEc1, fEc2, fFillHistos, fFirstEntry, FillHistos(), fLastEntry, fListBox, fMain, fRad1, fRad2, fTab, TGTab::GetNumberOfTabs(), TGButton::GetState(), TGTabElement::GetString(), TGTab::GetTabTab(), gTQSender, kButtonUp, kDeepCleanup, kFALSE, kTRUE, TGListBox::Layout(), TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGCompositeFrame::MustCleanup(), TGListBox::RemoveEntry(), TGTab::RemoveTab(), s, TGComboBox::Select(), TGListBox::SetMultipleSelections(), TGButton::SetState(), sprintf(), and TGWidget::WidgetId().

void TestDialog::HandleEmbeddedCanvas ( Int_t  event,
Int_t  x,
Int_t  y,
TObject sel 
)

Definition at line 1362 of file guitest.C.

References kButton3Down, and sel.


Member Data Documentation

TGCompositeFrame* TestDialog::fFrame1 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGCompositeFrame * TestDialog::fF1 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGCompositeFrame * TestDialog::fF2 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGCompositeFrame * TestDialog::fF3 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGCompositeFrame * TestDialog::fF4 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGCompositeFrame * TestDialog::fF5 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGCompositeFrame * TestDialog::fF6 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGGroupFrame * TestDialog::fF7 [private]

Definition at line 122 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGButton* TestDialog::fOkButton [private]

Definition at line 123 of file guitest.h.

Referenced by DoCancel(), DoOK(), TestDialog(), and ~TestDialog().

TGButton * TestDialog::fCancelButton [private]

Definition at line 123 of file guitest.h.

Referenced by DoCancel(), DoOK(), TestDialog(), and ~TestDialog().

TGButton * TestDialog::fStartB [private]

Definition at line 123 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGButton * TestDialog::fStopB [private]

Definition at line 123 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGButton* TestDialog::fBtn1 [private]

Definition at line 124 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGButton * TestDialog::fBtn2 [private]

Definition at line 124 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGButton * TestDialog::fChk1 [private]

Definition at line 124 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGButton * TestDialog::fChk2 [private]

Definition at line 124 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGButton * TestDialog::fRad1 [private]

Definition at line 124 of file guitest.h.

Referenced by HandleButtons(), ProcessMessage(), TestDialog(), and ~TestDialog().

TGButton * TestDialog::fRad2 [private]

Definition at line 124 of file guitest.h.

Referenced by HandleButtons(), ProcessMessage(), TestDialog(), and ~TestDialog().

TGPictureButton* TestDialog::fPicBut1 [private]

Definition at line 125 of file guitest.h.

TGRadioButton* TestDialog::fRadio1 [private]

Definition at line 126 of file guitest.h.

TGRadioButton * TestDialog::fRadio2 [private]

Definition at line 126 of file guitest.h.

TGCheckButton* TestDialog::fCheck1 [private]

Definition at line 127 of file guitest.h.

TGCheckButton* TestDialog::fCheckMulti [private]

Definition at line 128 of file guitest.h.

Referenced by HandleButtons(), ProcessMessage(), TestDialog(), and ~TestDialog().

TGListBox* TestDialog::fListBox [private]

Definition at line 129 of file guitest.h.

Referenced by HandleButtons(), ProcessMessage(), TestDialog(), and ~TestDialog().

TGComboBox* TestDialog::fCombo [private]

Definition at line 130 of file guitest.h.

Referenced by HandleButtons(), TestDialog(), and ~TestDialog().

TGTab* TestDialog::fTab [private]

Definition at line 131 of file guitest.h.

Referenced by HandleButtons(), ProcessMessage(), TestDialog(), and ~TestDialog().

TGTextEntry* TestDialog::fTxt1 [private]

Definition at line 132 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGTextEntry * TestDialog::fTxt2 [private]

Definition at line 132 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGLayoutHints* TestDialog::fL1 [private]

Definition at line 133 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGLayoutHints * TestDialog::fL2 [private]

Definition at line 133 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGLayoutHints * TestDialog::fL3 [private]

Definition at line 133 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGLayoutHints * TestDialog::fL4 [private]

Definition at line 133 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TRootEmbeddedCanvas* TestDialog::fEc1 [private]

Definition at line 134 of file guitest.h.

Referenced by FillHistos(), HandleButtons(), ProcessMessage(), TestDialog(), and ~TestDialog().

TRootEmbeddedCanvas * TestDialog::fEc2 [private]

Definition at line 134 of file guitest.h.

Referenced by FillHistos(), HandleButtons(), ProcessMessage(), TestDialog(), and ~TestDialog().

Int_t TestDialog::fFirstEntry [private]

Definition at line 135 of file guitest.h.

Referenced by HandleButtons(), ProcessMessage(), and TestDialog().

Int_t TestDialog::fLastEntry [private]

Definition at line 136 of file guitest.h.

Referenced by HandleButtons(), ProcessMessage(), and TestDialog().

Bool_t TestDialog::fFillHistos [private]

Definition at line 137 of file guitest.h.

Referenced by DoCancel(), DoClose(), DoOK(), FillHistos(), HandleButtons(), ProcessMessage(), and TestDialog().

TH1F* TestDialog::fHpx [private]

Definition at line 138 of file guitest.h.

Referenced by FillHistos(), TestDialog(), and ~TestDialog().

TH2F* TestDialog::fHpxpy [private]

Definition at line 139 of file guitest.h.

Referenced by FillHistos(), TestDialog(), and ~TestDialog().

TList* TestDialog::fCleanup [private]

Definition at line 140 of file guitest.h.

Referenced by TestDialog(), and ~TestDialog().

TGCompositeFrame* TestDialog::fFrame1 [private]

Definition at line 253 of file guitest.cxx.

TGGroupFrame* TestDialog::fF6 [private]

Definition at line 254 of file guitest.cxx.

TGGroupFrame * TestDialog::fF7 [private]

Definition at line 254 of file guitest.cxx.

TGButton* TestDialog::fOkButton [private]

Definition at line 255 of file guitest.cxx.

TGButton* TestDialog::fBtn1 [private]

Definition at line 256 of file guitest.cxx.

TGPictureButton* TestDialog::fPicBut1 [private]

Definition at line 257 of file guitest.cxx.

TGCheckButton* TestDialog::fCheck1 [private]

Definition at line 258 of file guitest.cxx.

TGCheckButton* TestDialog::fCheckMulti [private]

Definition at line 259 of file guitest.cxx.

TGListBox* TestDialog::fListBox [private]

Definition at line 260 of file guitest.cxx.

TGComboBox* TestDialog::fCombo [private]

Definition at line 261 of file guitest.cxx.

TGTab* TestDialog::fTab [private]

Definition at line 262 of file guitest.cxx.

TGTextEntry* TestDialog::fTxt1 [private]

Definition at line 263 of file guitest.cxx.

TGLayoutHints* TestDialog::fL1 [private]

Definition at line 264 of file guitest.cxx.

TRootEmbeddedCanvas* TestDialog::fEc1 [private]

Definition at line 265 of file guitest.cxx.

TH1F* TestDialog::fHpx [private]

Definition at line 269 of file guitest.cxx.

TH2F* TestDialog::fHpxpy [private]

Definition at line 270 of file guitest.cxx.

TGTransientFrame* TestDialog::fMain [private]

Reimplemented from TGTransientFrame.

Definition at line 272 of file guitest.C.

Referenced by HandleButtons().

TGCompositeFrame* TestDialog::fFrame1 [private]

Definition at line 273 of file guitest.C.

TGGroupFrame* TestDialog::fF6 [private]

Definition at line 274 of file guitest.C.

TGButton* TestDialog::fOkButton [private]

Definition at line 275 of file guitest.C.

TGButton* TestDialog::fBtn1 [private]

Definition at line 276 of file guitest.C.

TGPictureButton* TestDialog::fPicBut1 [private]

Definition at line 277 of file guitest.C.

TGCheckButton* TestDialog::fCheck1 [private]

Definition at line 278 of file guitest.C.

TGCheckButton* TestDialog::fCheckMulti [private]

Definition at line 279 of file guitest.C.

TGListBox* TestDialog::fListBox [private]

Definition at line 280 of file guitest.C.

TGComboBox* TestDialog::fCombo [private]

Definition at line 281 of file guitest.C.

TGTab* TestDialog::fTab [private]

Definition at line 282 of file guitest.C.

TGTextEntry* TestDialog::fTxt1 [private]

Definition at line 283 of file guitest.C.

TGLayoutHints* TestDialog::fL1 [private]

Definition at line 284 of file guitest.C.

TRootEmbeddedCanvas* TestDialog::fEc1 [private]

Definition at line 285 of file guitest.C.

TH1F* TestDialog::fHpx [private]

Definition at line 289 of file guitest.C.

TH2F* TestDialog::fHpxpy [private]

Definition at line 290 of file guitest.C.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:36:21 2011 for ROOT_528-00b_version by  doxygen 1.5.1