2 // Author: Matevz Tadel 2007
4 /**************************************************************************
5 * Copyright(c) 1998-2008, ALICE Experiment at CERN, all rights reserved. *
6 * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
7 * full copyright notice. *
8 **************************************************************************/
10 #include "AliTestChildProc.h"
20 //==============================================================================
22 //==============================================================================
24 //______________________________________________________________________________
25 // Full description of AliTestChildProc
28 ClassImp(AliTestChildProc)
30 AliTestChildProc::AliTestChildProc(Int_t run) :
31 TGMainFrame(gClient->GetRoot(), 400, 200)
35 b = new TGTextButton(this, "Exit");
36 AddFrame(b, new TGLayoutHints(kLHintsNormal | kLHintsExpandX | kLHintsExpandY));
37 b->Connect("Clicked()", "AliTestChildProc", this, "DoExit()");
39 b = new TGTextButton(this, "Crash");
40 AddFrame(b, new TGLayoutHints(kLHintsNormal | kLHintsExpandX | kLHintsExpandY));
41 b->Connect("Clicked()", "AliTestChildProc", this, "DoCrash()");
43 b = new TGTextButton(this, "Xyzz");
44 AddFrame(b, new TGLayoutHints(kLHintsNormal | kLHintsExpandX | kLHintsExpandY));
45 b->Connect("Clicked()", "AliTestChildProc", this, "DoXyzz()");
49 SetWindowName(TString::Format("Test window %d", run));
52 void AliTestChildProc::DoExit()
54 printf("doing exit ...\n");
58 void AliTestChildProc::DoCrash()
60 printf("doing crash ...\n");
65 void AliTestChildProc::DoXyzz()
67 printf("doing xyzz ...\n");