RemoteGuiBase.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::RemoteGui
17 * @author Fabian Reister ( fabian dot reister at kit dot edu )
18 * @date 2021
19 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20 * GNU General Public License
21 */
22
23#pragma once
24
26
27#include <ArmarXGui/interface/RemoteGuiInterface.h>
29
30namespace armarx::RemoteGui
31{
33 {
34 public:
35 RemoteGuiBase(const RemoteGuiInterfacePrx& remoteGui);
36
37 void shutdown();
38
39 protected:
41 virtual const std::string& tabName() const = 0;
42
45
46 RemoteGuiInterfacePrx& getRemoteGui();
47 const RemoteGuiInterfacePrx& getRemoteGui() const;
48
49 void createTab(const WidgetPtr& widget);
50
51 private:
52 // thread function
53 void run();
54
55 RemoteGuiInterfacePrx remoteGui;
56 TabProxy tab;
57
59 };
60
61} // namespace armarx::RemoteGui
armarx::RemoteGui::TabProxy & getTab()
virtual void handleEvents(armarx::RemoteGui::TabProxy &tab)=0
RemoteGuiBase(const RemoteGuiInterfacePrx &remoteGui)
void createTab(const WidgetPtr &widget)
virtual const std::string & tabName() const =0
RemoteGuiInterfacePrx & getRemoteGui()
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.