25#include <ArmarXGui/gui-plugins/StatechartEventSenderPlugin/ui_EventSenderOverview.h>
37 lastColumnInsertion = 0;
41 connect(ui->btnAddEventSender, SIGNAL(clicked()),
this, SLOT(
addEventSender()));
52 int size = settings->beginReadArray(
"EventSender");
54 for (
int i = 0; i < size; ++i)
56 settings->setArrayIndex(i);
69 settings->beginWriteArray(
"EventSender");
70 int size = ui->scrollAreaWidgetContents->children().size();
71 int settingsIndex = 0;
73 for (
int i = 0; i < size; ++i)
76 qobject_cast<EventSenderComponent*>(ui->scrollAreaWidgetContents->children().at(i));
83 settings->setArrayIndex(settingsIndex);
94 int size = ui->scrollAreaWidgetContents->children().size();
96 for (
int i = 0; i < size; ++i)
99 qobject_cast<EventSenderComponent*>(ui->scrollAreaWidgetContents->children().at(i));
119 int size = ui->scrollAreaWidgetContents->children().size();
121 for (
int i = 0; i < size; ++i)
124 qobject_cast<EventSenderComponent*>(ui->scrollAreaWidgetContents->children().at(i));
144 ui->scrollAreaVerticalLayout->removeItem(ui->verticalSpacer);
146 ui->scrollAreaVerticalLayout->addWidget(comp);
147 ui->scrollAreaVerticalLayout->addItem(ui->verticalSpacer);
165 RemoteStateOffererInterfacePrx statePrx;
182 catch (Ice::NotRegisteredException& e)
184 ARMARX_WARNING <<
"Cannot send event - the entered component with name '"
186 <<
"' was not found - maybe you forgot to start it?" <<
flush;
188 catch (armarx::UserException& e)
190 ARMARX_WARNING <<
"Cannot send event - Found component but cannot communicate correctly "
191 "with component - probably it is a component of another type\nreason: "
192 << e.reason <<
flush;
194 catch (LocalException& e)
196 ARMARX_WARNING <<
"Cannot send event - the entered component with name '"
198 <<
"' was not found - maybe you forgot to start it?" <<
flush;
200 catch (std::exception& e)
202 ARMARX_WARNING <<
"Cannot send event - caught exception:\n" << e.what();
void setConfig(const EventSenderConfig &conf)
void setIceManager(IceManagerPtr iceMan)
void onInitComponent() override
Pure virtual hook for the subclass.
void sendEvent(const EventSenderConfig &config)
void loadSettings(QSettings *settings) override
Implement to load the settings that are part of the GUI configuration.
void saveSettings(QSettings *settings) override
Implement to save the settings as part of the GUI configuration.
~EventSenderOverview() override
IceManagerPtr getIceManager() const
Returns the IceManager.
Ice::ObjectPrx getProxy(long timeoutMs=0, bool waitForScheduler=true) const
Returns the proxy of this object (optionally it waits for the proxy)
#define ARMARX_INFO
The normal logging level.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
std::string getDictionaryString(const StringVariantContainerBaseMap &mymap)
Converts the map into a string-representation.
This file offers overloads of toIce() and fromIce() functions for STL container types.
const LogSender::manipulator flush
std::string globalStateIdentifier
void saveSettings(QSettings *settings)
void loadSettings(QSettings *settings)