24 #include <ArmarXGui/gui-plugins/StatechartEventSenderPlugin/ui_EventSenderOverview.h>
38 lastColumnInsertion = 0;
42 connect(ui->btnAddEventSender, SIGNAL(clicked()),
this, SLOT(
addEventSender()));
51 int size = settings->beginReadArray(
"EventSender");
53 for (
int i = 0; i < size; ++i)
55 settings->setArrayIndex(i);
67 settings->beginWriteArray(
"EventSender");
68 int size = ui->scrollAreaWidgetContents->children().size();
69 int settingsIndex = 0;
71 for (
int i = 0; i < size; ++i)
73 EventSenderComponent* comp = qobject_cast<EventSenderComponent*>(ui->scrollAreaWidgetContents->children().at(i));
80 settings->setArrayIndex(settingsIndex);
90 int size = ui->scrollAreaWidgetContents->children().size();
92 for (
int i = 0; i < size; ++i)
94 EventSenderComponent* comp = qobject_cast<EventSenderComponent*>(ui->scrollAreaWidgetContents->children().at(i));
113 int size = ui->scrollAreaWidgetContents->children().size();
115 for (
int i = 0; i < size; ++i)
117 EventSenderComponent* comp = qobject_cast<EventSenderComponent*>(ui->scrollAreaWidgetContents->children().at(i));
136 ui->scrollAreaVerticalLayout->removeItem(ui->verticalSpacer);
138 ui->scrollAreaVerticalLayout->addWidget(comp);
139 ui->scrollAreaVerticalLayout->addItem(ui->verticalSpacer);
155 RemoteStateOffererInterfacePrx statePrx;
156 statePrx = getProxy<RemoteStateOffererInterfacePrx>(config.
componentName.toStdString());
169 catch (Ice::NotRegisteredException& e)
171 ARMARX_WARNING <<
"Cannot send event - the entered component with name '" << config.
componentName.toStdString() <<
"' was not found - maybe you forgot to start it?" <<
flush;
173 catch (armarx::UserException& e)
175 ARMARX_WARNING <<
"Cannot send event - Found component but cannot communicate correctly with component - probably it is a component of another type\nreason: " << e.reason <<
flush;
177 catch (LocalException& e)
179 ARMARX_WARNING <<
"Cannot send event - the entered component with name '" << config.
componentName.toStdString() <<
"' was not found - maybe you forgot to start it?" <<
flush;
181 catch (std::exception& e)
183 ARMARX_WARNING <<
"Cannot send event - caught exception:\n" << e.what();