Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ScanDepthPropertyPage.h
Go to the documentation of this file.
1#pragma once
2#include <gii/gen/Variable.h>
3#include <ipj/sm/toolbase/global.h>
5
6namespace sf::ipj
7{
8
9namespace Ui
10{
11class ScanDepthPropertyPage;
12}
13
14// Forward definitions.
15class ToolBaseScanMethod;
16
17class _TBSM_CLASS ScanDepthPropertyPage final : public PropertyPage
18{
19 Q_OBJECT
20
21 public:
22 // Constructor.
23 ScanDepthPropertyPage(ToolBaseScanMethod* target, QWidget* parent);
25 // Overloaded from base class.
26 void applyPage() override;
27 // Overloaded from base class.
28 void afterPageApply(bool was_modified) override;
29 // Returns true when the property page has changed.
30 bool isPageModified() const override;
31 // Updates the controls in the property page.
32 void updatePage() override;
33
34 private:
35 Ui::ScanDepthPropertyPage* ui;
36 // Holds pointer to the data instance.
37 ToolBaseScanMethod* FScanMethod;
38 // For holding the control variable pointers.
39 Variable::PtrVector FVarList;
40 //
41 void EnableControls();
42 //
43 void BitBtnCalculateClick();
44 /*
45 __published:
46 //
47 //
48 THelpTarget *HelpTarget;
49 TImage *ImageInfo;
50 TBitBtn *BitBtnCalculate;
51 TLabel *LabelInfo;
52 TLabel *LabelStartingPoint;
53 TLabel *LabelGateMode;
54 TGroupBox *GroupBoxDepth;
55 TGroupBox *GroupBoxInfo;
56 TGroupBox *GroupBoxControl;
57 TGroupBox *GroupBoxAngles;
58 TGroupBox *GroupBoxMaterialAngles;
59 TGroupBox *GroupBoxSurfaceAngles;
60 TVariableEditCombi *VarEditDepthOffset;
61 TVariableEditCombi *VarEditDepthMax;
62 TVariableEditCombi *VarEditDepth;
63 TVariableEditCombi *VarEditMaterialAngleB;
64 TVariableEditCombi *VarEditMaterialAngleA;
65 TVariableEditCombi *VarEditSurfaceAngleB;
66 TVariableEditCombi *VarEditSurfaceAngleA;
67 TVariableComboBox *VarComboBoxAngleCalculation;
68 TVariableComboBox *VarComboBoxGateMode;
69 TCheckBox *CheckBoxControlAscan;
70 */
71};
72
73}// namespace sf::ipj
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Definition ScanDepthPropertyPage.h:18
ScanDepthPropertyPage(ToolBaseScanMethod *target, QWidget *parent)
void updatePage() override
Updates the control widgets of the page. This method is called to initialize the control widgets.
bool isPageModified() const override
Gets the modified/changed status of the page.
void afterPageApply(bool was_modified) override
Called when all pages are applied. Method can be overridden by a derived class to update control widg...
void applyPage() override
Applies the changes made in this page.
Base class for scan methods using a common tool description.
Definition ToolBaseScanMethod.h:35
Definition ApplicationPropertyPage.h:7
Definition LineScanMethod.h:6