GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TGo4WidgetProxy.cxx
Go to the documentation of this file.
1 // $Id: TGo4WidgetProxy.cxx 2752 2020-04-16 10:47:04Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TGo4WidgetProxy.h"
15 
16 #include "TGo4Slot.h"
17 #include "QGo4Widget.h"
18 
19 Bool_t TGo4WidgetProxy::ProcessEvent(TGo4Slot* slot, TGo4Slot* source, Int_t id, void* param)
20 {
21  if (fWidget==0) return kTRUE;
22 
23  TGo4Slot* src = (TGo4Slot*) source;
24 
25  if ((id==TGo4Slot::evObjAssigned) ||
27  fWidget->ProcessSignal(src->GetName(), true, src->GetAssignedObject(), src);
28  else
29  if (id==TGo4Slot::evDelete) {
30  fWidget->ProcessSignal(src->GetName(), false, 0, src);
31  }
32  else
33  if (id==TGo4Slot::evObjDeleted)
34  fWidget->ProcessSignal(src->GetName(), false, (TObject*)param, src);
35  else
37  fWidget->ProcessSignal("TGo4Slot::evSubslotUpdated", true, (TObject*)param, src);
38 
39  // process further events which important for data management
40  return (id==TGo4Slot::evDelete);
41 }
42 
44 {
45  if (fWidget)
46  fWidget->ProcessSignal("PadRangeAxisChanged", true, 0, 0);
47 }
48 
50 {
51  if (fWidget)
52  fWidget->ProcessSignal("PadModified", true, 0, 0);
53 }
void ProcessSignal(const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot)
Definition: QGo4Widget.cpp:251
TObject * GetAssignedObject()
Definition: TGo4Slot.cxx:370
virtual void PadRangeAxisChanged()
QGo4Widget * fWidget
virtual void PadModified()
virtual Bool_t ProcessEvent(TGo4Slot *slot, TGo4Slot *source, Int_t id, void *param)