]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/EMCAL/OnlineDisplay/AliHLTEMCALOnlineDisplayButton.cxx
Coverity 17737 solved by non-implemented private copy constructor and assignment...
[u/mrichter/AliRoot.git] / HLT / EMCAL / OnlineDisplay / AliHLTEMCALOnlineDisplayButton.cxx
1 // $Id: AliHLTEMCALOnlineDisplayButton.cxx 29824 2008-11-10 13:43:55Z richterm $
2
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 "AliHLTEMCALOnlineDisplayButton.h"
21 #include <iostream>
22 #include "AliHLTEMCALOnlineDisplay.h"
23
24 using namespace std;
25
26
27 AliHLTEMCALOnlineDisplayButton::AliHLTEMCALOnlineDisplayButton()
28 {
29
30 }
31
32
33 //AliHLTEMCALOnlineDisplayButton::AliHLTEMCALOnlineDisplayButton(TGGroupFrame *gfPtr,char opt, char *name)
34 AliHLTEMCALOnlineDisplayButton::AliHLTEMCALOnlineDisplayButton(AliHLTEMCALOnlineDisplay *onlineDisplayPtr,  TGMainFrame *gfPtr,char opt, char *name)
35  : TGTextButton(gfPtr, name)
36 {
37   //  fOnlineDisplayPtr;
38   fOnlineDisplayPtr = onlineDisplayPtr;
39   command = opt;
40 }
41
42
43
44 AliHLTEMCALOnlineDisplayButton::~AliHLTEMCALOnlineDisplayButton()
45 {
46
47 }
48
49
50
51 Bool_t
52 AliHLTEMCALOnlineDisplayButton::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 << "AliHLTEMCALOnlineDisplayButton::HandleButton,   getting rawdata"<< endl;  
64           //      fOnlineDisplayPtr->ShowRawData();
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