37 qRegisterMetaType<MediatorPtr>(
"MediatorPtr");
38 qRegisterMetaType<LockableGraphPtr>(
"LockableGraphPtr");
40 graphvizContext = gvContext();
50 bool correctConnect = connect(mediator.get(), SIGNAL(mediatorDeleted()),
51 worker.get(), SLOT(stateDeleted()), Qt::QueuedConnection);
55 ARMARX_ERROR_S <<
"Signal mediatorDeleted of mediator " << mediator->getID() <<
" was not successfully connected "
56 <<
"to slot stateDeleted of worker " << id;
59 correctConnect = connect(mediator.get(), SIGNAL(layout(
bool)),
60 worker.get(), SLOT(layout(
bool)), Qt::QueuedConnection);
64 ARMARX_ERROR_S <<
"Signal layout of mediator " << mediator->getID() <<
" was not successfully connected "
65 <<
"to slot layout of worker " << id;
73 ARMARX_ERROR_S <<
"Signal buildGraph of worker " <<
id <<
" was not successfully connected "
74 <<
"to slot buildUpGraph of mediator " << mediator->getID();
77 correctConnect = connect(worker.get(), SIGNAL(layoutingFinished()),
78 mediator.get(), SLOT(workerFinishedLayouting()), Qt::QueuedConnection);
82 ARMARX_ERROR_S <<
"Signal layoutingFinished of worker " <<
id <<
" was not successfully connected "
83 <<
"to slot workerFinishedLayouting of mediator " << mediator->getID();
87 correctConnect = connect(worker.get(), SIGNAL(deleteMe(
size_t)),
88 this, SLOT(deleteWorker(
size_t)), Qt::QueuedConnection);
92 ARMARX_ERROR_S <<
"Signal deleteMe of worker " <<
id <<
" was not successfully connected "
93 <<
"to slot deleteWorker of workerCreator";
96 correctConnect = connect(
this, SIGNAL(connectedWorkerAndMediator(
size_t)),
97 worker.get(), SLOT(isConnected(
size_t)), Qt::QueuedConnection);
101 ARMARX_ERROR_S <<
"Signal connectedWorkerAndMediator of workerCreator was not successfully connected "
102 <<
"to slot isConnected of worker " << id;
106 emit connectedWorkerAndMediator(
id);
108 workers.insert(std::pair<size_t, LayoutWorkerPtr>(
id, std::move(worker)));