Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ToolInfoPropertyPage.h
Go to the documentation of this file.
1#pragma once
4#include <ipj/sm/toolbase/global.h>
7
8namespace sf::ipj
9{
10namespace Ui
11{
12class ToolInfoPropertyPage;
13}
14
15class _TBSM_CLASS ToolInfoPropertyPage : public PropertyPage
16{
17 Q_OBJECT
18
19 public:
25 explicit ToolInfoPropertyPage(ToolInformation* target, QWidget* parent = nullptr);
26
31
32 void applyPage() override;
33 void afterPageApply(bool was_modified) override;
34 bool isPageModified() const override;
35 void updatePage() override;
36
37 private:
38 Ui::ToolInfoPropertyPage* ui;
39 // Holds pointer to the data.
40 ToolInformation* FData;
41 // Unit conversion engines.
42 UnitConverter FUnitCnvDist;
43 UnitConverter FUnitCnvAngle;
44
45 /*
46 __published:
47 //
48 THelpTarget *HelpTarget;
49 TGroupBox *GroupBoxDisplacement;
50 TGroupBox *GroupBoxDeflection;
51 TLabel *LabelDispX;
52 TLabel *LabelDispY;
53 TLabel *LabelDispZ;
54 TLabel *LabelBeamAngleX;
55 TLabel *LabelBeamAngleY;
56 TLabel *LabelBeamLen;
57 TLabel *LabelDispXUnit;
58 TLabel *LabelDispYUnit;
59 TLabel *LabelDispZUnit;
60 TLabel *LabelBeamAngleXUnit;
61 TLabel *LabelBeamAngleYUnit;
62 TLabel *LabelBeamLengthUnit;
63 TLabel *LabelBeamAngleZ;
64 TLabel *LabelBeamAngleZUnit;
65 TEditExt *EditDispX;
66 TEditExt *EditDispY;
67 TEditExt *EditDispZ;
68 TEditExt *EditBeamAngleX;
69 TEditExt *EditBeamAngleY;
70 TEditExt *EditBeamLength;
71 TEditExt *EditBeamAngleZ;
72 //
73 void TestDirty(TObject *Sender);
74 */
75};
76
78{
79 public:
80 // Constructor.
81 explicit ToolInfoFilerPropertyPage(const IniEnvelope& target, QWidget* parent = nullptr);
82
83 protected:
84 void applyPage() override;
85
86 private:
87 IniEnvelope FIniFile;
88 ToolInformation FToolInfo;
89};
90
91}// namespace sf::ipj
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Holds the needed information on a tool to make calculations.
Definition ToolInformation.h:13
unit conversion class to easy the pain of conversions in dialogs.
Definition UnitConversion.h:90
Definition ToolInfoPropertyPage.h:78
void applyPage() override
Applies the changes made in this page.
ToolInfoFilerPropertyPage(const IniEnvelope &target, QWidget *parent=nullptr)
Definition ToolInfoPropertyPage.h:16
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 updatePage() override
Updates the control widgets of the page. This method is called to initialize the control widgets.
~ToolInfoPropertyPage() override
Virtual destructor.
ToolInfoPropertyPage(ToolInformation *target, QWidget *parent=nullptr)
Constructor.
bool isPageModified() const override
Gets the modified/changed status of the page.
void applyPage() override
Applies the changes made in this page.
Definition ApplicationPropertyPage.h:7
Definition LineScanMethod.h:6