3 /**************************************************************************
4 * This file is property of and copyright by the Experimental Nuclear *
5 * Physics Group, Dep. of Physics *
6 * University of Oslo, Norway, 2006 *
8 * Author: Per Thomas Hille perthi@fys.uio.no for the ALICE DCS Project. *
9 * Contributors are mentioned in the code where appropriate. *
10 * Please report bugs to perthi@fys.uio.no *
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 **************************************************************************/
22 #include "AliHLTPHOSOnlineDisplayNumberEntry.h"
23 //#include "MainGui.h"
25 AliHLTPHOSOnlineDisplayNumberEntry::AliHLTPHOSOnlineDisplayNumberEntry()
30 AliHLTPHOSOnlineDisplayNumberEntry::~AliHLTPHOSOnlineDisplayNumberEntry()
35 AliHLTPHOSOnlineDisplayNumberEntry::AliHLTPHOSOnlineDisplayNumberEntry(const TGWindow* parent, Double_t val, Int_t digitwidth, Int_t id,
36 TGNumberFormat::EStyle style, TGNumberFormat::EAttribute attr,
37 TGNumberFormat::ELimit limits,
38 Double_t min, Double_t max):
39 TGNumberEntry(parent , val, digitwidth, id, style, attr, limits, min, max)
41 // buttonType = buttType; //c = config Id, r = readout region entry
42 fButtonToNum = kFALSE;
46 AliHLTPHOSOnlineDisplayNumberEntry::ValueChanged(Long_t t)
48 int tmp = GetIntNumber();
49 // printf("\nnumberentry:ValueChanged: walue gotten was: %d\n", tmp);
77 AliHLTPHOSOnlineDisplayNumberEntry::ValueSet(Long_t t)
79 int tmp = GetIntNumber();
81 // printf("\nnumberentry:ValueSet: walue gotten was: %d\n", tmp);
87 SetIntNumber(highLimit);
90 else if(tmp < lowLimit)
92 SetIntNumber(lowLimit);
100 SetIntNumber(highLimit);
103 else if(tmp < lowLimit)
105 SetIntNumber(lowLimit);
111 // if(buttonType == 'c')
113 // MainGui::GetConfigInfo(tmp);
118 AliHLTPHOSOnlineDisplayNumberEntry::SetButtonType(char c)
127 AliHLTPHOSOnlineDisplayNumberEntry::SetLimits(int low, int high)