24 #include <ArmarXGui/gui-plugins/StatechartEventSenderPlugin/ui_EventSenderConfig.h>
26 #include <IceUtil/IceUtil.h>
28 #include <QSpacerItem>
64 this->setObjectName(QString::fromUtf8(
"this"));
65 this->setMinimumSize(QSize(0, 40));
66 horizontalLayout =
new QHBoxLayout(
this);
67 horizontalLayout->setSpacing(2);
68 horizontalLayout->setObjectName(QString::fromUtf8(
"horizontalLayout"));
69 horizontalLayout->setContentsMargins(2, 3, 2, -1);
70 tbSend =
new QToolButton(
this);
71 tbSend->setObjectName(QString::fromUtf8(
"tbSend"));
72 tbSend->setMinimumSize(QSize(60, 20));
74 icon.addFile(QString::fromUtf8(
":/icons/media-playback-start.ico"), QSize(), QIcon::Normal,
QIcon::Off);
75 tbSend->setIcon(icon);
76 tbSend->setIconSize(QSize(16, 16));
77 tbSend->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
78 horizontalLayout->addWidget(tbSend);
80 tbConfig =
new QToolButton(
this);
81 tbConfig->setObjectName(QString::fromUtf8(
"tbConfig"));
82 tbConfig->setMinimumSize(QSize(20, 20));
85 icon2.addFile(QString::fromUtf8(
":/icons/configure-3.png"), QSize(), QIcon::Normal,
QIcon::Off);
86 tbConfig->setIcon(icon2);
87 tbConfig->setIconSize(QSize(16, 16));
88 horizontalLayout->addWidget(tbConfig);
90 tbDelete =
new QToolButton(
this);
91 tbDelete->setObjectName(QString::fromUtf8(
"tbDelete"));
92 tbDelete->setMinimumSize(QSize(20, 20));
95 iconClose.addFile(QString::fromUtf8(
":/icons/dialog-close.ico"), QSize(), QIcon::Normal,
QIcon::Off);
96 tbDelete->setIcon(iconClose);
97 tbDelete->setIconSize(QSize(16, 16));
98 tbDelete->setToolButtonStyle(Qt::ToolButtonIconOnly);
99 horizontalLayout->addWidget(tbDelete);
101 QSpacerItem* spacer =
new QSpacerItem(1, 20, QSizePolicy::MinimumExpanding, QSizePolicy::Minimum);
102 horizontalLayout->addItem(spacer);
104 this->setTitle(QApplication::translate(
"EventSenderOverview",
config.
eventSenderName.toStdString().c_str(), 0));
105 #ifndef QT_NO_TOOLTIP
106 tbSend->setToolTip(QApplication::translate(
"EventSenderOverview",
"Send Event", 0));
107 tbDelete->setToolTip(QApplication::translate(
"EventSenderOverview",
"Delete this EventSender", 0));
108 tbConfig->setToolTip(QApplication::translate(
"EventSenderOverview",
"Configure this EventSender", 0));
109 #endif // QT_NO_TOOLTIP
110 tbSend->setText(QApplication::translate(
"EventSenderOverview",
"Send", 0));
111 tbConfig->setText(QApplication::translate(
"EventSenderOverview",
"...", 0));
119 connect(tbSend, SIGNAL(clicked()),
this, SLOT(
sendClicked()));
120 connect(tbConfig, SIGNAL(clicked()),
this, SLOT(
openConfig()));
121 connect(tbDelete, SIGNAL(clicked()),
this, SLOT(
deleteClicked()));
123 connect(dialog, SIGNAL(accepted()),
this, SLOT(
configDone()));
146 this->iceManager = iceMan;
161 dialog->setModal(
true);
164 dialog->activateWindow();
165 dialog->setParent(0);