API Documentation
Loading...
Searching...
No Matches
DeploymentSettingsEditor.h
Go to the documentation of this file.
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;
51 class DeploymentSettingsEditor : public Editor
52 {
53 Q_OBJECT
54 public:
55 DeploymentSettingsEditor(const DynamicPointer<QTDesignObject>& deployment, QWidget *parent = nullptr);
56 ~DeploymentSettingsEditor();
57 void setDeployment(const DynamicPointer<QTDesignObject>& deployment, const DynamicPointer<QTDesignObject>& design = DynamicPointer<QTDesignObject>());
58 void resizeEvent(QResizeEvent *event) override;
59 QSize sizeHint() const override;
60 void updateValues() override;
61 TranslatedString customDialogTitle() const override;
62 virtual bool fullscreenTouch() const override { return true; }
63 Buffer<QWidget*> printableWidgets() override;
64 Buffer<QWidget*> printableWidgetOptions() override { return {}; }
65 void updateLayout();
66 QWidget* viewTabWidget();
67 protected:
68 void adjustFinalSegment();
69 private slots:
70 void UpdateShownData();
71 void DataModified();
72 void updateChartTools();
73 private:
74 fltp04 getDefaultMarkerSize() const;
75 fltp04 getDefaultLineSize() const;
76 private:
77 Ui::BTHoleDetailsUI* ui;
78
79 DynamicPointer<QTDesignObject> m_deployment;
80 DynamicPointer<QTDesignObject> m_design;
81 StationEditor* m_station_editor;
82 StationEditor* m_station_editor_view_only;
83 PlannedDeploymentWidget* m_planned_editor;
84 TopDownDeploymentChart* m_top_down_chart;
85 SideViewDeploymentChart* m_front_chart;
86 SideViewDeploymentChart* m_side_chart;
87
88 DeploymentViewSettingsEditor* m_view_settings;
89 DeploymentReport* m_deployment_report;
90 bool m_has_design = false;
91 };
92}
93#endif
Definition ACIColor.h:37
float fltp04
Defines an alias representing a 4 byte floating-point number.
Definition BaseValues.hpp:152
Definition FontEditor.h:6