GuiHealthClientWidgetController.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 RobotAPI::gui-plugins::GuiHealthClientWidgetController
17 * @author Simon Ottenhaus ( simon dot ottenhaus at kit dot edu )
18 * @date 2018
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22#pragma once
23
24#include <QTimer>
25
28
31
32#include <RobotAPI/gui-plugins/GuiHealthClient/ui_GuiHealthClientWidget.h>
33#include <RobotAPI/interface/components/RobotHealthInterface.h>
34
35namespace armarx
36{
37 /**
38 \page RobotAPI-GuiPlugins-GuiHealthClient GuiHealthClient
39 \brief The GuiHealthClient allows visualizing ...
40
41 \image html GuiHealthClient.png
42 The user can
43
44 API Documentation \ref GuiHealthClientWidgetController
45
46 \see GuiHealthClientGuiPlugin
47 */
48
49 /**
50 * \class GuiHealthClientWidgetController
51 * \brief GuiHealthClientWidgetController brief one line description
52 *
53 * Detailed description
54 */
56 public armarx::ArmarXComponentWidgetControllerTemplate<GuiHealthClientWidgetController>
57 {
58 Q_OBJECT
59
60 public:
61 /**
62 * Controller Constructor
63 */
65
66 /**
67 * Controller destructor
68 */
70
71 /**
72 * @see ArmarXWidgetController::loadSettings()
73 */
74 void loadSettings(QSettings* settings) override;
75
76 /**
77 * @see ArmarXWidgetController::saveSettings()
78 */
79 void saveSettings(QSettings* settings) override;
80
81 /**
82 * Returns the Widget name displayed in the ArmarXGui to create an
83 * instance of this class.
84 */
85 static QString
87 {
88 return "GuiHealthClient";
89 }
90
91 static QIcon
93 {
94 return QIcon("://icons/heart.svg");
95 }
96
97 /**
98 * \see armarx::Component::onInitComponent()
99 */
100 void onInitComponent() override;
101
102 /**
103 * \see armarx::Component::onConnectComponent()
104 */
105 void onConnectComponent() override;
106
107 void onDisconnectComponent() override;
108
109
110 protected slots:
111 void onConnectComponentQt();
112 void onDisconnectComponentQt();
113 void healthTimerClb();
114 void updateSummaryTimerClb();
115 void unrequireAll();
116
117 signals:
118 /* QT signal declarations */
121
122 private:
123 /**
124 * Widget Form
125 */
126 Ui::GuiHealthClientWidget widget;
127
128 RobotHealthInterfacePrx robotHealthTopicPrx;
129 RobotHealthComponentInterfacePrx robotHealthComponentPrx;
130 QTimer* updateSummaryTimer;
131 };
132} // namespace armarx
#define ARMARXCOMPONENT_IMPORT_EXPORT
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
This file offers overloads of toIce() and fromIce() functions for STL container types.