OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ViewerToolBar.h
Go to the documentation of this file.
1#pragma once
2
3// OpenTwin header
4#include "OTCore/CoreTypes.h"
5
6// std header
7#include <list>
8
10public:
36
37 static ViewerToolBar& instance(void);
38
40
41 void viewDataModifiedHasChanged(ot::WidgetViewBase::ViewType _type, bool _isModified);
42
43 void setupUIControls3D(void);
44 void setupUIControls1D(void);
45 void setupUIControlsText(void);
46 void setupUIControlsTable(void);
47
48 void removeUIControls(void);
49
50 void updateViewEnabledState(const ot::UIDList& _selectedTreeItems);
53
54 void updateTableEnabledState(void);
56
57private:
58 void resetControlsData(void);
59
62
63 std::list<ot::UID> m_removeItemIDList;
64
65 ot::UID m_viewPageID;
66 ot::UID m_operationsGroupID;
67 ot::UID m_visiblityGroupID;
68 ot::UID m_styleGroupID;
69 ot::UID m_resetView1DButtonID;
70 ot::UID m_resetView3DButtonID;
71 ot::UID m_showAllButtonID;
72 ot::UID m_showSelectedButtonID;
73 ot::UID m_hideSelectedButtonID;
74 ot::UID m_hideUnselectedButtonID;
75 ot::UID m_wireframeButtonID;
76 ot::UID m_workingPlaneButtonID;
77 ot::UID m_axisCrossButtonID;
78 ot::UID m_centerAxisCrossButtonID;
79 ot::UID m_cutplaneButtonID;
80
81 ot::UID m_textEditorPageID;
82 ot::UID m_textEditorDataID;
83 ot::UID m_textEditorSaveID;
84 ot::UID m_textEditorExportID;
85
86 ot::UID m_tableSaveID;
87 //ot::UID m_tableExportCSVID;
88 ot::UID m_tableAddRowBeforeID;
89 ot::UID m_tableAddRowAfterID;
90 ot::UID m_tableRemoveRowID;
91 ot::UID m_tableAddColumnBeforeID;
92 ot::UID m_tableAddColumnAfterID;
93 ot::UID m_tableRemoveColumnID;
94};
Definition ViewerToolBar.h:9
void updateTableEnabledState(void)
Definition ViewerToolBar.cpp:212
void setupUIControlsText(void)
Definition ViewerToolBar.cpp:104
static ViewerToolBar & instance(void)
Definition ViewerToolBar.cpp:9
void updateViewEnabledState(const ot::UIDList &_selectedTreeItems)
Definition ViewerToolBar.cpp:171
void updateTextEditorSaveEnabledState(void)
Definition ViewerToolBar.cpp:195
ButtonType
Definition ViewerToolBar.h:11
@ TableRemoveRow
Definition ViewerToolBar.h:29
@ TableSaveButton
Definition ViewerToolBar.h:25
@ NoButton
Definition ViewerToolBar.h:34
@ Reset3DViewButton
Definition ViewerToolBar.h:12
@ Reset1DViewButton
Definition ViewerToolBar.h:13
@ TextEditorSaveButton
Definition ViewerToolBar.h:23
@ TableAddColumnBefore
Definition ViewerToolBar.h:30
@ AxisCrossButton
Definition ViewerToolBar.h:20
@ HideUnselectedButton
Definition ViewerToolBar.h:17
@ WorkingPlaneButton
Definition ViewerToolBar.h:19
@ WireframeButton
Definition ViewerToolBar.h:18
@ CenterAxisCrossButton
Definition ViewerToolBar.h:21
@ TableRemoveColumn
Definition ViewerToolBar.h:32
@ ShowSelectedButton
Definition ViewerToolBar.h:15
@ TableExportCSVButton
Definition ViewerToolBar.h:26
@ HideSelectedButton
Definition ViewerToolBar.h:16
@ TableAddRowAfter
Definition ViewerToolBar.h:28
@ TextEditorExportButton
Definition ViewerToolBar.h:24
@ CutplaneButton
Definition ViewerToolBar.h:22
@ TabbleAddColumnAfter
Definition ViewerToolBar.h:31
@ TableAddRowBefore
Definition ViewerToolBar.h:27
@ ShowAllButton
Definition ViewerToolBar.h:14
ButtonType getButtonTypeFromUID(ot::UID _uid) const
Definition ViewerToolBar.cpp:14
void viewDataModifiedHasChanged(ot::WidgetViewBase::ViewType _type, bool _isModified)
Definition ViewerToolBar.cpp:42
void updateTextEditorEnabledState(void)
Definition ViewerToolBar.cpp:191
void updateTableSaveEnabledState(void)
Definition ViewerToolBar.cpp:216
void removeUIControls(void)
Definition ViewerToolBar.cpp:160
void setupUIControls1D(void)
Definition ViewerToolBar.cpp:85
void setupUIControls3D(void)
Definition ViewerToolBar.cpp:57
void setupUIControlsTable(void)
Definition ViewerToolBar.cpp:124
ViewType
Definition WidgetViewBase.h:49
unsigned long UID
Unique identifier (32 bit unsigned integer)
Definition CoreTypes.h:27
std::list< UID > UIDList
Unique identifier list.
Definition CoreTypes.h:31