71#include "RConfigure.h"
129 if (arg[
pri] ==
'*' || arg[
pri] ==
'&') {
135 res +=
dt->GetFullTypeName();
140 if (!arg.
AtEnd()) res +=
",";
203 ::Error(
"TQObject::CheckConnectArgs",
"for signal/slot consistency\n"
204 "checking need to specify class name as argument to "
217 ::Error(
"TQObject::CheckConnectArgs",
"signal %s::%s(%s) does not exist",
224#if defined(CHECK_COMMENT_STRING)
225 const char *comment = 0;
229 if (!comment || !comment[0] ||
strstr(comment,
"*SIGNAL")){
230 ::Error(
"TQObject::CheckConnectArgs",
231 "signal %s::%s(%s), to declare signal use comment //*SIGNAL*",
276 ::Error(
"TQObject::CheckConnectArgs",
"slot %s(%s) does not exist",
280 ::Error(
"TQObject::CheckConnectArgs",
"slot %s(%s) does not exist",
288#if defined(CHECK_ARGS_NUMBER)
291 ::Error(
"TQObject::CheckConnectArgs",
292 "inconsistency in numbers of arguments");
380 std::cout <<
"TQConnectionList:" <<
"\t" <<
GetName() << std::endl;
441 return qcl ?
qcl->fListOfSignals :
nullptr;
456 if (
qcl->fListOfSignals)
457 list.Add(
qcl->fListOfSignals);
582 if (!
sender->fListOfSignals)
981 if (
slist->IsEmpty()) {
989 if (
slist->IsEmpty()) {
997 if (
sender->GetListOfSignals() &&
sender->GetListOfSignals()->IsEmpty()) {
1039 if (
R__b.IsReading()) {
1071 TString str =
"ProcessLine(=";
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Bool_t ConnectCINT(TQObject *sender, const char *signal, const char *slot)
Global function which simplifies making connection in interpreted ROOT session.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
#define R__LOCKGUARD2(mutex)
Each class (see TClass) has a linked list of its base class(es).
TClass * GetClassPointer(Bool_t load=kTRUE)
Get pointer to the base class TClass.
Buffer base class used for serializing objects.
TClass instances represent classes, structs and namespaces in the ROOT type system.
TMethod * GetMethod(const char *method, const char *params, Bool_t objectIsConst=kFALSE)
Find the best method (if there is one) matching the parameters.
TMethod * GetMethodWithPrototype(const char *method, const char *proto, Bool_t objectIsConst=kFALSE, ROOT::EFunctionMatchMode mode=ROOT::kConversionMatch)
Find the method with a given prototype.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
const char * GetName() const override
Return name of this collection.
void Print(Option_t *option="") const override
Default print for collections, calls Print(option, 1).
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Basic data type descriptor (datatype information is obtained from CINT).
Global functions class (global functions are obtained from CINT).
THashList implements a hybrid collection class consisting of a hash table and a list to store TObject...
void Clear(Option_t *option="") override
Remove all objects from the list.
TObject * FindObject(const char *name) const override
Find an object in this list using its name.
void Add(TObject *obj) override
TObject * Remove(TObject *obj) override
Remove object from the list.
void AddLast(TObject *obj) override
Add object at the end of the list.
virtual TObjLink * FirstLink() const
void Delete(Option_t *option="") override
Remove all objects from the list AND delete all heap based objects.
void AddFirst(TObject *obj) override
Add object at the beginning of the list.
Each ROOT class (see TClass) has a linked list of methods.
Wrapper around a TObject so it can be stored in a TList.
Wrapper for PCRE library (Perl Compatible Regular Expressions).
TQConnectionList is the named list of connections, see also TQConnection class.
void ls(Option_t *option="") const override
List signal name and list all connections in this signal list.
TQConnectionList(const char *name, Int_t nsigargs)
Bool_t Disconnect(void *receiver=nullptr, const char *slot_name=nullptr)
Remove connection from the list.
virtual ~TQConnectionList()
Destructor.
TQConnection class is an internal class, used in the object communication mechanism.
This is the ROOT implementation of the Qt object communication mechanism (see also http://www....
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.
static Bool_t BlockAllSignals(Bool_t b)
Block or unblock all signals. Returns the previous block status.
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.
virtual ~TQObject()
TQObject Destructor.
virtual void Streamer(TBuffer &)
Stream an object of class TQObject.
TList * fListOfConnections
list of signals from this object
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 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)
virtual void Connected(const char *)
Provides iteration through tokens of a given string.
Bool_t NextToken()
Get the next token, it is stored in this TString.
const char * Data() const
TString & Remove(Ssiz_t pos)
This class implements a mutex interface.
RPY_EXPORTED TCppMethod_t GetMethod(TCppScope_t scope, TCppIndex_t imeth)