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 
34 namespace 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:
55  void sendEvent(const EventSenderConfig& config);
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
armarx::EventSenderComponent::config
EventSenderConfig config
Definition: EventSenderComponent.h:42
armarx::EventSenderComponent::configDone
void configDone()
Definition: EventSenderComponent.cpp:178
armarx::EventSenderComponent::setConfig
void setConfig(const EventSenderConfig &conf)
Definition: EventSenderComponent.cpp:128
armarx::EventSenderComponent::deleteClicked
void deleteClicked()
Definition: EventSenderComponent.cpp:172
armarx::EventSenderComponent::setIceManager
void setIceManager(IceManagerPtr iceMan)
Definition: EventSenderComponent.cpp:141
armarx::EventSenderConfig
Definition: EventSenderConfig.h:52
armarx::EventSenderComponent::sendClicked
void sendClicked()
Definition: EventSenderComponent.cpp:152
armarx::EventSenderComponent
Definition: EventSenderComponent.h:36
armarx::EventSenderComponent::sendEvent
void sendEvent(const EventSenderConfig &config)
armarx::EventSenderComponent::openConfig
void openConfig()
Definition: EventSenderComponent.cpp:158
armarx::EventSenderComponent::~EventSenderComponent
~EventSenderComponent() override
Definition: EventSenderComponent.cpp:40
NotImplementedYetException.h
armarx::EventSenderConfigDialog
Definition: EventSenderConfig.h:87
armarx::Logging
Base Class for all Logging classes.
Definition: Logging.h:239
IceUtil::Handle< IceManager >
armarx::EventSenderComponent::EventSenderComponent
EventSenderComponent(QString eventSenderName, QWidget *parent=0)
Definition: EventSenderComponent.cpp:33
EventSenderConfig.h
armarx::EventSenderComponent::setupUi
void setupUi()
Definition: EventSenderComponent.cpp:52
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:27