OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ToolRuntimeHandler.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// API header
9#include "OToolkitAPI/Tool.h"
11
12// OpenTwin header
14
15class ToolManager;
16
19public:
21 virtual ~ToolRuntimeHandler();
22
23 otoolkit::Tool* getTool(void) { return m_tool; };
24
25 void setToolWidgets(const otoolkit::ToolWidgets& _toolWidgets) { m_toolWidgets = _toolWidgets; };
26 const otoolkit::ToolWidgets& getToolWidgets(void) const { return m_toolWidgets; };
27 otoolkit::ToolWidgets& getToolWidgets(void) { return m_toolWidgets; };
28
29 void notifyDataChanged(void);
30
31private:
32 ToolManager* m_manager;
33 otoolkit::Tool* m_tool;
34 otoolkit::ToolWidgets m_toolWidgets;
35
36 ToolRuntimeHandler() = delete;
37};
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
Definition ToolManager.h:32
Definition ToolRuntimeHandler.h:17
void setToolWidgets(const otoolkit::ToolWidgets &_toolWidgets)
Definition ToolRuntimeHandler.h:25
otoolkit::Tool * getTool(void)
Definition ToolRuntimeHandler.h:23
void notifyDataChanged(void)
Definition ToolRuntimeHandler.cpp:23
const otoolkit::ToolWidgets & getToolWidgets(void) const
Definition ToolRuntimeHandler.h:26
virtual ~ToolRuntimeHandler()
Definition ToolRuntimeHandler.cpp:19
otoolkit::ToolWidgets & getToolWidgets(void)
Definition ToolRuntimeHandler.h:27
Definition Tool.h:27
Definition ToolWidgets.h:24