Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
LineScanMethodPropertyPage.h
Go to the documentation of this file.
1#pragma once
3
4#include <gii/gen/Variable.h>
6
7#include <QWidget>
8
9namespace sf::ipj
10{
11
12namespace Ui
13{
14class LineScanMethodPropertyPage;
15}
16
17class LineScanMethod;
18
20{
21 Q_OBJECT
22
23 public:
29 explicit LineScanMethodPropertyPage(LineScanMethod* target, QWidget* parent = nullptr);
30
32
33 // Overloaded from base class.
34 void applyPage() override;
35 // Overloaded from base class.
36 void afterPageApply(bool was_modified) override;
37 // Returns true when the property page has changed.
38 bool isPageModified() const override;
39 // Updates the controls in the property page.
40 void updatePage() override;
41
42 private:
43 Ui::LineScanMethodPropertyPage* ui;
44 // Holds the passed scan method.
45 LineScanMethod* FScanMethod;
46 // For holding the control variable pointers.
47 Variable::PtrVector FVarList;
48
50 void AxisCoordEditPaste(gmi::AxesCoord& ac);
51 void AxisCoordEditCopy(gmi::AxesCoord& ac);
52 void AxisCoordEditOriginCopy(gmi::AxesCoord& ac);
53 void AxisCoordEditOriginPaste(gmi::AxesCoord& ac);
54
55 /*
56 __published:
57 //
58 TGroupBox *GroupBoxInfo;
59 TImage *ImageInfo;
60 THelpTarget *HelpTarget;
61 TLabel *LabelInfo;
62 TLabel *LabelScanAxis;
63 TGroupBox *GroupBoxScan;
64 TGroupBox *GroupBoxScanVector;
65 TGroupBox *GroupBoxIndex;
66 TGroupBox *GroupBoxStepVector;
67 TGroupBox *GroupBoxOrgVector;
68 TGroupBox *GroupBoxSurface;
69 TVariableEditCombi *VarEditScanDensity;
70 TVariableEditCombi *VarEditScanVelocity;
71 TVariableEditCombi *VarEditIndexDensity;
72 TVariableEditCombi *VarEditIndexCount;
73 TVariableComboBox *VarComboScanAxis;
74 TVariableCheckBox *VarCheckBoxSurfaceBackSide;
75 TAxisCoordEdit *AxisCoordEditScan;
76 TAxisCoordEdit *AxisCoordEditStep;
77 TAxisCoordEdit *AxisCoordEditOrigin;
78 TLabel *LabelSurfaceRotate;
79 TVariableComboBox *VarComboBoxSurfaceRotate;
80 */
81};
82
83}// namespace sf::ipj
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
All axis values in one structure accompanied by some handy manipulation methods.
Definition AxesCoord.h:13
Definition LineScanMethodPropertyPage.h:20
LineScanMethodPropertyPage(LineScanMethod *target, QWidget *parent=nullptr)
Constructor.
void updatePage() override
Updates the control widgets of the page. This method is called to initialize the control widgets.
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.
bool isPageModified() const override
Gets the modified/changed status of the page.
Definition LineScanMethod.h:11
Definition ApplicationPropertyPage.h:7
Definition LineScanMethod.h:6