1 /**************************************************************************
2 * This file is property of and copyright by the Experimental Nuclear *
3 * Physics Group, Dep. of Physics *
4 * University of Oslo, Norway, 2006 *
6 * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. *
7 * Contributors are mentioned in the code where appropriate. *
8 * Please report bugs to perthi@fys.uio.no *
10 * Permission to use, copy, modify and distribute this software and its *
11 * documentation strictly for non-commercial purposes is hereby granted *
12 * without fee, provided that the above copyright notice appears in all *
13 * copies and that both the copyright notice and this permission notice *
14 * appear in the supporting documentation. The authors make no claims *
15 * about the suitability of this software for any purpose. It is *
16 * provided "as is" without express or implied warranty. *
17 **************************************************************************/
20 #include "AliHLTPHOSOnlineDisplayNumberEntry.h"
21 //#include "MainGui.h"
23 AliHLTPHOSOnlineDisplayNumberEntry::AliHLTPHOSOnlineDisplayNumberEntry()
28 AliHLTPHOSOnlineDisplayNumberEntry::~AliHLTPHOSOnlineDisplayNumberEntry()
33 AliHLTPHOSOnlineDisplayNumberEntry::AliHLTPHOSOnlineDisplayNumberEntry(const TGWindow* parent, Double_t val, Int_t digitwidth, Int_t id,
34 TGNumberFormat::EStyle style, TGNumberFormat::EAttribute attr,
35 TGNumberFormat::ELimit limits,
36 Double_t min, Double_t max):
37 TGNumberEntry(parent , val, digitwidth, id, style, attr, limits, min, max)
39 // buttonType = buttType; //c = config Id, r = readout region entry
40 fButtonToNum = kFALSE;
44 AliHLTPHOSOnlineDisplayNumberEntry::ValueChanged(Long_t t)
46 int tmp = GetIntNumber();
47 // printf("\nnumberentry:ValueChanged: walue gotten was: %d\n", tmp);
75 AliHLTPHOSOnlineDisplayNumberEntry::ValueSet(Long_t t)
77 int tmp = GetIntNumber();
79 // printf("\nnumberentry:ValueSet: walue gotten was: %d\n", tmp);
85 SetIntNumber(highLimit);
88 else if(tmp < lowLimit)
90 SetIntNumber(lowLimit);
98 SetIntNumber(highLimit);
101 else if(tmp < lowLimit)
103 SetIntNumber(lowLimit);
109 // if(buttonType == 'c')
111 // MainGui::GetConfigInfo(tmp);
116 AliHLTPHOSOnlineDisplayNumberEntry::SetButtonType(char c)
125 AliHLTPHOSOnlineDisplayNumberEntry::SetLimits(int low, int high)