API Documentation
Loading...
Searching...
No Matches
BoretrakTable.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: BoretrakTable
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 class NDEVR_API BoretrakTable : public QCustomTableWidget
43 {
44 Q_OBJECT
45 public:
46 enum BoretrakInfo
47 {
48 e_quality_icon
49 , e_heading
50 , e_inclination
51 , e_depth
52 , e_deviation
53 , e_percent_deviation
54 , e_time
55 , e_x
56 , e_y
57 , e_z
58 , e_edit_reading
59 , e_heading_size
60 };
61 TranslatedString HeadingTitle(BoretrakInfo);
62 TranslatedString HeadingTooltip(BoretrakInfo);
63 bool headingVisible(BoretrakInfo info, const Deployment& actual);
64 String headingInfo(BoretrakInfo info, uint04 row, const Deployment& actual, const Deployment& plan, const Matrix<fltp08>& transform);
65 explicit BoretrakTable(QWidget* parent = nullptr);
66 explicit BoretrakTable(const DynamicPointer<QTDesignObject>& deployment, QWidget* parent = nullptr);
67 virtual ~BoretrakTable();
68 void setIsReport(bool is_report);
69 void setDeployment(const DynamicPointer<QTDesignObject>& deployment);
70 void setShowQuality(bool show_quality);
71 void setShowTime(bool show_time);
72 protected:
73 void setup();
74 protected slots:
75 void updateTableView();
76 protected:
77 DynamicPointer<QTDesignObject> m_deployment;
78 QTResourceListener* m_units_listener;
79 bool m_is_report = false;
80 bool m_show_quality = true;
81 bool m_show_time = true;
82 };
83}
84
85#endif
#define NDEVR_API
Definition DLLInfo.h:67
Definition ACIColor.h:37