IceProxyWidgetController.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 ArmarXGui::gui-plugins::IceProxyWidgetController
17  * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18  * @date 2016
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <ArmarXGui/gui-plugins/IceProxy/ui_IceProxyWidget.h>
26 
29 
32 
33 namespace armarx
34 {
35  /**
36  \page ArmarXGui-GuiPlugins-IceProxy IceProxy
37  \brief The IceProxy widget allows you to gather basig information about a proxy (i.e. Its identity / ping / type ids / stringified version.).
38  The proxy can be passed as string or loaded via a proxy finder (requires the proxy to be registered to the ice grid).
39  This widget's main purpose is debugging.
40 
41  \image html IceProxy.png
42 
43  API Documentation \ref IceProxyWidgetController
44 
45  \see IceProxyGuiPlugin
46  */
47 
48  /**
49  * \class IceProxyWidgetController
50  * \brief IceProxyWidgetController brief one line description
51  *
52  * Detailed description
53  */
56  public ArmarXComponentWidgetControllerTemplate<IceProxyWidgetController>
57  {
58  Q_OBJECT
59 
60  public:
61  /**
62  * Controller Constructor
63  */
64  explicit IceProxyWidgetController();
65 
66  /**
67  * Controller destructor
68  */
69  ~IceProxyWidgetController() override = default;
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 GetWidgetName()
86  {
87  return "Meta.IceProxy";
88  }
89 
90  /**
91  * \see armarx::Component::onInitComponent()
92  */
93  void onInitComponent() override;
94 
95  /**
96  * \see armarx::Component::onConnectComponent()
97  */
98  void onConnectComponent() override {}
99 
100  void loadProxy(Ice::ObjectPrx prx);
101 
102  private slots:
103  void on_pushButtonFinder_clicked();
104  void on_pushButtonString_clicked();
105 
106  private:
107  /**
108  * Widget Form
109  */
110  Ui::IceProxyWidget widget;
112  };
113 }
114 
armarx::IceProxyWidgetController::onConnectComponent
void onConnectComponent() override
Definition: IceProxyWidgetController.h:98
armarx::IceProxyWidgetController
IceProxyWidgetController brief one line description.
Definition: IceProxyWidgetController.h:54
armarx::IceProxyWidgetController::GetWidgetName
static QString GetWidgetName()
Returns the Widget name displayed in the ArmarXGui to create an instance of this class.
Definition: IceProxyWidgetController.h:85
armarx::ArmarXComponentWidgetControllerTemplate
Definition: ArmarXComponentWidgetController.h:69
armarx::IceProxyWidgetController::loadSettings
void loadSettings(QSettings *settings) override
Definition: IceProxyWidgetController.h:74
ArmarXGuiPlugin.h
ArmarXComponentWidgetController.h
ARMARXCOMPONENT_IMPORT_EXPORT
#define ARMARXCOMPONENT_IMPORT_EXPORT
Definition: ImportExportComponent.h:38
IceProxyFinder.h
armarx::IceProxyWidgetController::saveSettings
void saveSettings(QSettings *settings) override
Definition: IceProxyWidgetController.h:79
armarx::IceProxyFinder< Ice::ObjectPrx >
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
ImportExportComponent.h