API Documentation
Loading...
Searching...
No Matches
DeploymentSegmentTable.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: DeploymentSegmentTable
29Included in API: True
30Author(s): Tyler Parke
31 *-----------------------------------------------------------------------------------------**/
32#pragma once
33#include <NDEVR/QTDesignObject.h>
34#if NDEVR_DEPLOYMENT
35#include <NDEVR/QCustomTableWidget.h>
36#include <NDEVR/Pointer.h>
37namespace NDEVR
38{
39 class Deployment;
40 class Time;
41 class QTResourceListener;
42 /**--------------------------------------------------------------------------------------------------
43 \brief A table showing segments of Deployments
44 **/
45 class NDEVR_API DeploymentSegmentTable : public QCustomTableWidget
46 {
47 Q_OBJECT
48 public:
49 enum DeploymentSectionInfo
50 {
51 e_quality_icon
52 , e_heading
53 , e_inclination
54 , e_depth
55 , e_deviation
56 , e_percent_deviation
57 , e_time
58 , e_x
59 , e_y
60 , e_z
61 , e_edit_reading
62 , e_heading_size
63 };
64 explicit DeploymentSegmentTable(QWidget* parent = nullptr);
65 explicit DeploymentSegmentTable(const DynamicPointer<QTDesignObject>& deployment, QWidget* parent = nullptr);
66 virtual ~DeploymentSegmentTable();
67 TranslatedString HeadingTitle(DeploymentSectionInfo);
68 TranslatedString HeadingTooltip(DeploymentSectionInfo);
69 bool headingVisible(DeploymentSectionInfo info, const Deployment& actual);
70 String headingInfo(DeploymentSectionInfo info, uint04 row, const Deployment& actual, const Deployment& plan, const Matrix<fltp08>& transform);
71 void setIsReport(bool is_report);
72 void setDeployment(const DynamicPointer<QTDesignObject>& deployment);
73 void setShowQuality(bool show_quality);
74 void setShowTime(bool show_time);
75 protected:
76 void setup();
77 protected slots:
78 void updateTableView();
79 protected:
80 DynamicPointer<QTDesignObject> m_deployment;
81 QTResourceListener* m_units_listener;
82 bool m_is_report = false;
83 bool m_show_quality = true;
84 bool m_show_time = true;
85 };
86}
87
88#endif
#define NDEVR_API
Definition DLLInfo.h:50
Definition ACIColor.h:37