]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/PHOS/AliHLTPHOSOnlineDisplayButton.cxx
trick to merge with HEAD
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSOnlineDisplayButton.cxx
CommitLineData
1b41ab20 1// $Id$
2
3f98e623 3/**************************************************************************
4 * This file is property of and copyright by the Experimental Nuclear *
5 * Physics Group, Dep. of Physics *
6 * University of Oslo, Norway, 2007 *
7 * *
8 * Author: Per Thomas Hille <perthi@fys.uio.no> for the ALICE HLT Project.*
9 * Contributors are mentioned in the code where appropriate. *
10 * Please report bugs to perthi@fys.uio.no *
11 * *
12 * Permission to use, copy, modify and distribute this software and its *
13 * documentation strictly for non-commercial purposes is hereby granted *
14 * without fee, provided that the above copyright notice appears in all *
15 * copies and that both the copyright notice and this permission notice *
16 * appear in the supporting documentation. The authors make no claims *
17 * about the suitability of this software for any purpose. It is *
18 * provided "as is" without express or implied warranty. *
19 **************************************************************************/
20#include "AliHLTPHOSOnlineDisplayButton.h"
21#include <iostream>
22#include "AliHLTPHOSOnlineDisplay.h"
23
24using namespace std;
25
26
27AliHLTPHOSOnlineDisplayButton::AliHLTPHOSOnlineDisplayButton()
28{
29
30}
31
32
33//AliHLTPHOSOnlineDisplayButton::AliHLTPHOSOnlineDisplayButton(TGGroupFrame *gfPtr,char opt, char *name)
34AliHLTPHOSOnlineDisplayButton::AliHLTPHOSOnlineDisplayButton(AliHLTPHOSOnlineDisplay *onlineDisplayPtr, TGMainFrame *gfPtr,char opt, char *name)
35 : TGTextButton(gfPtr, name)
36{
37 // fOnlineDisplayPtr;
38 fOnlineDisplayPtr = onlineDisplayPtr;
39 command = opt;
40}
41
42
43
44AliHLTPHOSOnlineDisplayButton::~AliHLTPHOSOnlineDisplayButton()
45{
46
47}
48
49
54276f07 50
3f98e623 51Bool_t
52AliHLTPHOSOnlineDisplayButton::HandleButton(Event_t* event)
53{
54 AllowStayDown(kFALSE);
55
56 if(event->fType == kButtonPress)
57 {
58 AllowStayDown(kFALSE);
59
60 switch(command)
61 {
62 case 'r': //First get configuration comment
63 cout << "AliHLTPHOSOnlineDisplayButton::HandleButton, getting rawdata"<< endl;
54276f07 64 // fOnlineDisplayPtr->ShowRawData();
3f98e623 65 break;
66 default:
67 // MainGui::DisplayMessage("illegal command");
68 cout << "illegal command" << endl;
69 break;
70 }//end switch
71
72 }//end if
73
74}//end HandleButton