NDEVR
API Documentation
DeploymentSettingsEditor.h
1/*--------------------------------------------------------------------------------------------
2Copyright (c) 2019, NDEVR LLC
3tyler.parke@ndevr.org
4 __ __ ____ _____ __ __ _______
5 | \ | | | __ \ | ___|\ \ / / | __ \
6 | \ | | | | \ \ | |___ \ \ / / | |__) |
7 | . \| | | |__/ / | |___ \ V / | _ /
8 | |\ |_|_____/__|_____|___\_/____| | \ \
9 |__| \__________________________________| \__\
10
11Subject to the terms of the Enterprise+ Agreement, NDEVR hereby grants
12Licensee a limited, non-exclusive, non-transferable, royalty-free license
13(without the right to sublicense) to use the API solely for the purpose of
14Licensee's internal development efforts to develop applications for which
15the API was provided.
16
17The above copyright notice and this permission notice shall be included in all
18copies or substantial portions of the Software.
19
20THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
21INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
22PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
23FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25DEALINGS IN THE SOFTWARE.
26
27Library: NDEVR
28File: BTHoleDetailsDialog
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include "DLLInfo.h"
34#if NDEVR_DEPLOYMENT
35#include <NDEVR/Editor.h>
36#include <NDEVR/QTDesignObject.h>
37namespace Ui{
38 class BTHoleDetailsUI;
39}
40namespace NDEVR
41{
42 class Deployment;
43 class QTModelManager;
44 struct DeploymentRecord;
45 class StationEditor;
46 class DeploymentViewSettingsEditor;
47 class TopDownDeploymentChart;
48 class DeploymentReport;
49 class SideViewDeploymentChart;
50 class PlannedDeploymentWidget;
54 class DeploymentSettingsEditor : public Editor
55 {
56 Q_OBJECT
57 public:
58 DeploymentSettingsEditor(const DynamicPointer<QTDesignObject>& deployment, QWidget *parent = nullptr);
59 ~DeploymentSettingsEditor();
60 void setDeployment(const DynamicPointer<QTDesignObject>& deployment, const DynamicPointer<QTDesignObject>& design = DynamicPointer<QTDesignObject>());
61 void resizeEvent(QResizeEvent *event) override;
62 QSize sizeHint() const override;
63 void updateValues() override;
64 TranslatedString customDialogTitle() const override;
65 EditorShowMode showMode() const override;
66 Buffer<QWidget*> printableWidgets() override;
67 Buffer<QWidget*> printableWidgetOptions() override { return {}; }
68 void updateLayout();
69 QWidget* viewTabWidget();
70 protected:
71 void adjustFinalSegment();
72 private slots:
73 void UpdateShownData();
74 void DataModified();
75 void updateChartTools();
76 private:
77 fltp04 getDefaultMarkerSize() const;
78 fltp04 getDefaultLineSize() const;
79 private:
80 Ui::BTHoleDetailsUI* ui;
81 DynamicPointer<QTDesignObject> m_deployment;
82 DynamicPointer<QTDesignObject> m_design;
83 StationEditor* m_station_editor;
84 StationEditor* m_station_editor_view_only;
85 PlannedDeploymentWidget* m_planned_editor;
86 TopDownDeploymentChart* m_top_down_chart;
87 SideViewDeploymentChart* m_front_chart;
88 SideViewDeploymentChart* m_side_chart;
89 DeploymentViewSettingsEditor* m_view_settings;
90 DeploymentReport* m_deployment_report;
91 bool m_has_design = false;
92 };
93}
94#endif
A base class for displaying options for editing a single DesignObject, typically a Model.
Definition Editor.h:58
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
A popup Editor dialog for showing options or information related to StationModel objects.
The primary namespace for the NDEVR SDK.
float fltp04
Defines an alias representing a 4 byte floating-point number Bit layout is as follows: -Sign: 1 bit a...
EditorShowMode
Describes how an Editor should be displayed within the application UI.
Definition Editor.h:48