LightweightRemoteGuiComponentPlugin.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::ArmarXObjects::ArmarXGuiComponentPlugins
17  * @author Raphael Grimm ( raphael dot grimm at kit dot edu )
18  * @date 2019
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
27 
29 
31 {
32  class TabProxy;
33 }
34 
35 namespace armarx::plugins
36 {
37  /**
38  * @defgroup Library-ArmarXGuiComponentPlugins ArmarXGuiComponentPlugins
39  * @ingroup ArmarXGui
40  * A description of the library ArmarXGuiComponentPlugins.
41  */
42 
43  /**
44  * @class ArmarXGuiComponentPlugins
45  * @ingroup Library-ArmarXGuiComponentPlugins
46  * @brief Brief description of class ArmarXGuiComponentPlugins.
47  *
48  * Detailed description of class ArmarXGuiComponentPlugins.
49  */
51  {
52  using ComponentPlugin::ComponentPlugin;
53 
54  void preOnInitComponent() override;
55  void preOnConnectComponent() override;
56  void postOnConnectComponent() override;
57  void preOnDisconnectComponent() override;
58  void postOnDisconnectComponent() override;
59 
60  void postCreatePropertyDefinitions(PropertyDefinitionsPtr& properties) override;
61 
62  Ice::ObjectPrx remoteGuiObject;
64  std::map<std::string, RemoteGui::TabProxy*> tabs;
65  };
66 }
67 
68 
70 
71 namespace armarx
72 {
74  {
76 
77  void RemoteGui_createTab(std::string const& name,
78  RemoteGui::Client::Widget const& rootWidget,
80 
82  virtual void RemoteGui_update() = 0;
83 
84  bool RemoteGui_isRunning();
85 
86  void RemoteGui_run();
87 
90  };
91 }
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_isRunning
bool RemoteGui_isRunning()
Definition: LightweightRemoteGuiComponentPlugin.cpp:124
armarx::plugins::LightweightRemoteGuiComponentPlugin::tabs
std::map< std::string, RemoteGui::TabProxy * > tabs
Definition: LightweightRemoteGuiComponentPlugin.h:64
armarx::plugins::LightweightRemoteGuiComponentPlugin::preOnInitComponent
void preOnInitComponent() override
Definition: LightweightRemoteGuiComponentPlugin.cpp:46
armarx::plugins::LightweightRemoteGuiComponentPlugin::remoteGuiObject
Ice::ObjectPrx remoteGuiObject
Definition: LightweightRemoteGuiComponentPlugin.h:62
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_run
void RemoteGui_run()
Definition: LightweightRemoteGuiComponentPlugin.cpp:136
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_updatePeriodInMS
int RemoteGui_updatePeriodInMS
Definition: LightweightRemoteGuiComponentPlugin.h:88
armarx::RemoteGui
Definition: LightweightRemoteGuiComponentPlugin.h:30
armarx::LightweightRemoteGuiComponentPluginUser::plugin
plugins::LightweightRemoteGuiComponentPlugin * plugin
Definition: LightweightRemoteGuiComponentPlugin.h:89
armarx::plugins::LightweightRemoteGuiComponentPlugin::postOnConnectComponent
void postOnConnectComponent() override
Definition: LightweightRemoteGuiComponentPlugin.cpp:61
armarx::RemoteGui::Client::Tab
Definition: Tab.h:15
armarx::plugins::LightweightRemoteGuiComponentPlugin::preOnConnectComponent
void preOnConnectComponent() override
Definition: LightweightRemoteGuiComponentPlugin.cpp:54
Tab.h
armarx::RemoteGui::TabProxy
Definition: WidgetProxy.h:17
armarx::plugins::LightweightRemoteGuiComponentPlugin
Definition: LightweightRemoteGuiComponentPlugin.h:50
armarx::RemoteGui::Client::Widget
Definition: Widgets.h:21
ManagedIceObject.h
armarx::plugins
This file is part of ArmarX.
Definition: DebugObserverComponentPlugin.cpp:28
armarx::ComponentPlugin
Definition: ComponentPlugin.h:38
armarx::plugins::LightweightRemoteGuiComponentPlugin::preOnDisconnectComponent
void preOnDisconnectComponent() override
Definition: LightweightRemoteGuiComponentPlugin.cpp:65
armarx::LightweightRemoteGuiComponentPluginUser
Definition: LightweightRemoteGuiComponentPlugin.h:73
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_update
virtual void RemoteGui_update()=0
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_startRunningTask
void RemoteGui_startRunningTask()
Definition: LightweightRemoteGuiComponentPlugin.cpp:110
armarx::ManagedIceObject
The ManagedIceObject is the base class for all ArmarX objects.
Definition: ManagedIceObject.h:163
armarx::plugins::LightweightRemoteGuiComponentPlugin::postCreatePropertyDefinitions
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
Definition: LightweightRemoteGuiComponentPlugin.cpp:78
armarx::LightweightRemoteGuiComponentPluginUser::RemoteGui_createTab
void RemoteGui_createTab(std::string const &name, RemoteGui::Client::Widget const &rootWidget, RemoteGui::Client::Tab *tab)
Definition: LightweightRemoteGuiComponentPlugin.cpp:95
IceUtil::Handle< class PropertyDefinitionContainer >
Widgets.h
ComponentPlugin.h
armarx::LightweightRemoteGuiComponentPluginUser::LightweightRemoteGuiComponentPluginUser
LightweightRemoteGuiComponentPluginUser()
Definition: LightweightRemoteGuiComponentPlugin.cpp:90
armarx::plugins::LightweightRemoteGuiComponentPlugin::postOnDisconnectComponent
void postOnDisconnectComponent() override
Definition: LightweightRemoteGuiComponentPlugin.cpp:74
armarx::plugins::LightweightRemoteGuiComponentPlugin::runningTask
IceUtil::Handle< IceUtil::Shared > runningTask
Definition: LightweightRemoteGuiComponentPlugin.h:63
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28