36 qRegisterMetaType<MediatorPtr>(
"MediatorPtr");
37 qRegisterMetaType<LockableGraphPtr>(
"LockableGraphPtr");
39 graphvizContext = gvContext();
50 bool correctConnect = connect(mediator.get(),
51 SIGNAL(mediatorDeleted()),
54 Qt::QueuedConnection);
58 ARMARX_ERROR_S <<
"Signal mediatorDeleted of mediator " << mediator->getID()
59 <<
" was not successfully connected "
60 <<
"to slot stateDeleted of worker " << id;
63 correctConnect = connect(mediator.get(),
67 Qt::QueuedConnection);
71 ARMARX_ERROR_S <<
"Signal layout of mediator " << mediator->getID()
72 <<
" was not successfully connected "
73 <<
"to slot layout of worker " << id;
76 correctConnect = connect(worker.get(),
80 Qt::QueuedConnection);
84 ARMARX_ERROR_S <<
"Signal buildGraph of worker " <<
id <<
" was not successfully connected "
85 <<
"to slot buildUpGraph of mediator " << mediator->getID();
88 correctConnect = connect(worker.get(),
89 SIGNAL(layoutingFinished()),
91 SLOT(workerFinishedLayouting()),
92 Qt::QueuedConnection);
97 <<
" was not successfully connected "
98 <<
"to slot workerFinishedLayouting of mediator " << mediator->getID();
102 correctConnect = connect(worker.get(),
103 SIGNAL(deleteMe(
size_t)),
105 SLOT(deleteWorker(
size_t)),
106 Qt::QueuedConnection);
110 ARMARX_ERROR_S <<
"Signal deleteMe of worker " <<
id <<
" was not successfully connected "
111 <<
"to slot deleteWorker of workerCreator";
114 correctConnect = connect(
this,
115 SIGNAL(connectedWorkerAndMediator(
size_t)),
117 SLOT(isConnected(
size_t)),
118 Qt::QueuedConnection);
123 <<
"Signal connectedWorkerAndMediator of workerCreator was not successfully connected "
124 <<
"to slot isConnected of worker " << id;
128 emit connectedWorkerAndMediator(
id);
130 workers.insert(std::pair<size_t, LayoutWorkerPtr>(
id, std::move(worker)));