74 TClass *sender_class,
const char *signal,
75 TClass *receiver_class,
const char *slot);
100 template <
typename... T>
void EmitVA(
const char *signal_name,
Int_t ,
const T&... params)
120 TIter nextSigList(&classSigLists);
121 while ((sigList = (
TList*) nextSigList()) !=
nullptr) {
125 connection->
SetArgs(params...);
136 connection->
SetArgs(params...);
164 template <
typename T>
void Emit(
const char *signal,
const T& arg)
166 Int_t placeholder = 0;
167 EmitVA(signal, placeholder, arg);
177 const char *receiver_class,
182 void *receiver =
nullptr,
183 const char *slot =
nullptr);
186 const char *slot_name =
nullptr);
189 const char *slot_name =
nullptr);
198 {
Emit(
"Destroyed()"); }
200 {
Emit(
"ChangedBy(char*)", method); }
202 {
Emit(
"Message(char*)", msg); }
206 const char *receiver_class,
212 const char *receiver_class,
217 const char *signal =
nullptr,
218 void *receiver =
nullptr,
219 const char *slot =
nullptr);
223 void *receiver =
nullptr,
224 const char *slot =
nullptr);
283#define ClassImpQ(name) \
#define ClassDef(name, id)
#define ClassDefOverride(name, id)
R__EXTERN void * gTQSender
Bool_t ConnectCINT(TQObject *sender, const char *signal, const char *slot)
Global function which simplifies making connection in interpreted ROOT session.
TClass instances represent classes, structs and namespaces in the ROOT type system.
virtual Bool_t IsEmpty() const
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
virtual void SetSender(void *sender)
TQObjSender(const TQObjSender &)=delete
TQObjSender & operator=(const TQObjSender &)=delete
void SetSenderClassName(const char *sclass="")
void * GetSender() override
const char * GetSenderClassName() const override
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
virtual void Disconnected(const char *)
static Int_t CheckConnectArgs(TQObject *sender, TClass *sender_class, const char *signal, TClass *receiver_class, const char *slot)
Checking of consistency of sender/receiver methods/arguments.
virtual Int_t NumberOfConnections() const
Return number of connections for this object.
TQObject()
TQObject Constructor.
void CollectClassSignalLists(TList &list, TClass *cls)
Collect class signal lists from class cls and all its base-classes.
virtual const char * GetSenderClassName() const
TQObject(const TQObject &)=delete
static Bool_t BlockAllSignals(Bool_t b)
Block or unblock all signals. Returns the previous block status.
TList * GetListOfSignals() const
Bool_t fSignalsBlocked
list of connections to this object
static TString CompressName(const char *method_name)
Removes "const" words and blanks from full (with prototype) method name and resolve any typedefs in t...
TList * GetListOfClassSignals() const
Returns pointer to list of signals of this class.
static Bool_t fgAllSignalsBlocked
flag used for suppression of signals
virtual Int_t NumberOfSignals() const
Return number of signals for this object.
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
virtual ~TQObject()
TQObject Destructor.
TList * fListOfConnections
list of signals from this object
Bool_t AreSignalsBlocked() const
Bool_t Connect(const char *signal, const char *receiver_class, void *receiver, const char *slot)
Non-static method is used to connect from the signal of this object to the receiver slot.
virtual void ChangedBy(const char *method)
void Emit(const char *signal)
Activate signal without args.
void EmitVA(const char *signal_name, Int_t, const T &... params)
Emit a signal with a varying number of arguments.
virtual void Message(const char *msg)
virtual Bool_t HasConnection(const char *signal_name) const
Return true if there is any object connected to this signal.
static Bool_t ConnectToClass(TQObject *sender, const char *signal, TClass *receiver_class, void *receiver, const char *slot)
Create connection between sender and receiver.
virtual TClass * IsA() const
virtual void LowPriority(const char *signal_name, const char *slot_name=nullptr)
Bool_t Disconnect(const char *signal=nullptr, void *receiver=nullptr, const char *slot=nullptr)
Disconnects signal of this object from slot of receiver.
static Bool_t AreAllSignalsBlocked()
Returns true if all signals are blocked.
virtual void HighPriority(const char *signal_name, const char *slot_name=nullptr)
TQObject & operator=(const TQObject &)=delete
virtual void * GetSender()
TList * GetListOfConnections() const
Bool_t BlockSignals(Bool_t b)
virtual void Connected(const char *)
const char * Data() const
Mediates the link between the signal and the slot.
void SetArgs(const T &... args)
Unpacks the template parameter type and sets arguments of integral and array (scalar) type.
virtual void SendSignal()=0