GSI Object Oriented Online Offline (Go4)
GO4-5.3.2
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
qt4
Go4GUI
TGo4WidgetProxy.cxx
Go to the documentation of this file.
1
// $Id: TGo4WidgetProxy.cxx 1129 2014-01-21 17:03:57Z 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 für 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 "TPad.h"
17
#include "
TGo4Slot.h
"
18
#include "
QGo4Widget.h
"
19
20
Bool_t
TGo4WidgetProxy::ProcessEvent
(
TGo4Slot
* slot,
TGo4Slot
* source, Int_t
id
,
void
* param)
21
{
22
if
(
fWidget
==0)
return
kTRUE;
23
24
TGo4Slot
* src = (
TGo4Slot
*) source;
25
26
if
((
id
==
TGo4Slot::evObjAssigned
) ||
27
(
id
==
TGo4Slot::evObjUpdated
))
28
fWidget
->
ProcessSignal
(src->GetName(),
true
, src->
GetAssignedObject
(), src);
29
else
30
if
(
id
==
TGo4Slot::evDelete
) {
31
fWidget
->
ProcessSignal
(src->GetName(),
false
, 0, src);
32
}
33
else
34
if
(
id
==
TGo4Slot::evObjDeleted
)
35
fWidget
->
ProcessSignal
(src->GetName(),
false
, (TObject*)param, src);
36
else
37
if
(
id
==
TGo4Slot::evSubslotUpdated
)
38
fWidget
->
ProcessSignal
(
"TGo4Slot::evSubslotUpdated"
,
true
, (TObject*)param, src);
39
40
// process further events which important for data management
41
return
(
id
==
TGo4Slot::evDelete
);
42
}
43
44
void
TGo4WidgetProxy::PadRangeAxisChanged
()
45
{
46
if
(
fWidget
)
47
fWidget
->
ProcessSignal
(
"PadRangeAxisChanged"
,
true
, 0, 0);
48
}
49
50
void
TGo4WidgetProxy::PadModified
()
51
{
52
if
(
fWidget
)
53
fWidget
->
ProcessSignal
(
"PadModified"
,
true
, 0, 0);
54
}
TGo4WidgetProxy.h
TGo4Slot::evObjDeleted
Definition:
TGo4Slot.h:51
TGo4Slot::evObjAssigned
Definition:
TGo4Slot.h:47
QGo4Widget::ProcessSignal
void ProcessSignal(const char *linkname, bool assigned, TObject *obj, TGo4Slot *slot)
Definition:
QGo4Widget.cpp:250
TGo4Slot::GetAssignedObject
TObject * GetAssignedObject()
Definition:
TGo4Slot.cxx:373
TGo4Slot::evDelete
Definition:
TGo4Slot.h:45
QGo4Widget.h
TGo4Slot::evSubslotUpdated
Definition:
TGo4Slot.h:50
TGo4Slot.h
TGo4WidgetProxy::PadRangeAxisChanged
virtual void PadRangeAxisChanged()
Definition:
TGo4WidgetProxy.cxx:44
TGo4WidgetProxy::fWidget
QGo4Widget * fWidget
Definition:
TGo4WidgetProxy.h:42
TGo4Slot
Definition:
TGo4Slot.h:25
TGo4WidgetProxy::PadModified
virtual void PadModified()
Definition:
TGo4WidgetProxy.cxx:50
TGo4WidgetProxy::ProcessEvent
virtual Bool_t ProcessEvent(TGo4Slot *slot, TGo4Slot *source, Int_t id, void *param)
Definition:
TGo4WidgetProxy.cxx:20
TGo4Slot::evObjUpdated
Definition:
TGo4Slot.h:49
Generated on Fri Oct 26 2018 08:34:55 for GSI Object Oriented Online Offline (Go4) by
1.8.8