EventSenderComponent.h
Go to the documentation of this file.
1/*
2* This file is part of ArmarX.
3*
4* ArmarX is free software; you can redistribute it and/or modify
5* it under the terms of the GNU General Public License version 2 as
6* published by the Free Software Foundation.
7*
8* ArmarX is distributed in the hope that it will be useful, but
9* WITHOUT ANY WARRANTY; without even the implied warranty of
10* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11* GNU General Public License for more details.
12*
13* You should have received a copy of the GNU General Public License
14* along with this program. If not, see <http://www.gnu.org/licenses/>.
15*
16* @package ArmarX::Gui
17* @author Mirko Waechter ( mirko.waechter at kit dot edu)
18* @date 2012
19* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20* GNU General Public License
21*/
22
23#pragma once
24
25#include <QGridLayout>
26#include <QGroupBox>
27#include <QObject>
28#include <QToolButton>
29
31
32#include "EventSenderConfig.h"
33
34namespace armarx
35{
36 class EventSenderComponent : public QGroupBox, virtual public Logging
37 // virtual public Component
38
39 {
40 Q_OBJECT
41 public:
43
44 EventSenderComponent(QString eventSenderName, QWidget* parent = 0);
45 ~EventSenderComponent() override;
46
47
48 // end of inherited from Component
49 // QWidget* getMainWidget();
50 void setupUi();
51 void setConfig(const EventSenderConfig& conf);
52 void setIceManager(IceManagerPtr iceMan);
53
54 signals:
56 public slots:
57 void sendClicked();
58 void openConfig();
59 void deleteClicked();
60 void configDone();
61
62 private:
63 // QGroupBox *gbEventSender;
64 QHBoxLayout* horizontalLayout;
65 QToolButton* tbSend;
66 QToolButton* tbConfig;
67 QToolButton* tbDelete;
69
70 IceManagerPtr iceManager;
71 int mdiId;
72 };
73} // namespace armarx
void sendEvent(const EventSenderConfig &config)
EventSenderComponent(QString eventSenderName, QWidget *parent=0)
void setConfig(const EventSenderConfig &conf)
void setIceManager(IceManagerPtr iceMan)
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< IceManager > IceManagerPtr
IceManager smart pointer.
Definition ArmarXFwd.h:39