OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ToolWidgets.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// Toolkit API header
10
11// Qt header
12#include <QtWidgets/qwidget.h>
13#include <QtWidgets/qtoolbar.h>
14
15// std header
16#include <list>
17
18class QWidget;
19
20namespace ot { class WidgetView; };
21
22namespace otoolkit {
23
25 public:
27 ToolWidgets(const ToolWidgets& _other);
28 virtual ~ToolWidgets() {};
29
30 ToolWidgets& operator = (const ToolWidgets& _other);
31
32 void addView(ot::WidgetView* _view) { m_views.push_back(_view); };
33 void setViews(const std::list<ot::WidgetView*>& _views) { m_views = _views; };
34 const std::list<ot::WidgetView*>& getViews(void) const { return m_views; };
35
36 void addStatusWidget(QWidget* _widget) { m_statusWidgets.push_back(_widget); };
37 void setStatusWidgets(const std::list<QWidget*>& _statusWidgets) { m_statusWidgets = _statusWidgets; };
38 const std::list<QWidget*> getStatusWidgets(void) const { return m_statusWidgets; };
39
40 void setToolBar(QToolBar* _toolBar) { m_toolBar = _toolBar; };
41 QToolBar* getToolBar(void) const { return m_toolBar; };
42
43 private:
44 QToolBar* m_toolBar;
45 std::list<ot::WidgetView*> m_views;
46 std::list<QWidget*> m_statusWidgets;
47 };
48
49}
The WidgetView class is used to integrate the Qt-ADS functionallity into open twin.
Definition WidgetView.h:33
Definition ToolWidgets.h:24
void addView(ot::WidgetView *_view)
Definition ToolWidgets.h:32
void setViews(const std::list< ot::WidgetView * > &_views)
Definition ToolWidgets.h:33
void addStatusWidget(QWidget *_widget)
Definition ToolWidgets.h:36
const std::list< ot::WidgetView * > & getViews(void) const
Definition ToolWidgets.h:34
void setStatusWidgets(const std::list< QWidget * > &_statusWidgets)
Definition ToolWidgets.h:37
const std::list< QWidget * > getStatusWidgets(void) const
Definition ToolWidgets.h:38
virtual ~ToolWidgets()
Definition ToolWidgets.h:28
void setToolBar(QToolBar *_toolBar)
Definition ToolWidgets.h:40
QToolBar * getToolBar(void) const
Definition ToolWidgets.h:41
Definition Connector.h:8
Definition ToolManager.h:30
#define OTOOLKITAPI_EXPORT
Definition otoolkitapi_global.h:16