Scanframe Modular Application
0.1.0
Loading...
Searching...
No Matches
ToolInfoPropertyPage.h
Go to the documentation of this file.
1
#pragma once
2
#include <
gii/gen/UnitConversion.h
>
3
#include <
ipj/iface/Namespace.h
>
4
#include <ipj/sm/toolbase/global.h>
5
#include <
ktm/ToolInformation.h
>
6
#include <
misc/qt/PropertyPage.h
>
7
8
namespace
sf::ipj
9
{
10
namespace
Ui
11
{
12
class
ToolInfoPropertyPage;
13
}
14
15
class
_TBSM_CLASS
ToolInfoPropertyPage
:
public
PropertyPage
16
{
17
Q_OBJECT
18
19
public
:
25
explicit
ToolInfoPropertyPage
(
ToolInformation
* target, QWidget* parent =
nullptr
);
26
30
~ToolInfoPropertyPage
()
override
;
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
77
class
ToolInfoFilerPropertyPage
:
public
ToolInfoPropertyPage
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
PropertyPage.h
ToolInformation.h
UnitConversion.h
sf::PropertyPage
Widget to create a page in a PropertySheet dialog.
Definition
PropertyPage.h:16
sf::TEnvelope< IniProfile >
sf::ToolInformation
Holds the needed information on a tool to make calculations.
Definition
ToolInformation.h:13
sf::UnitConverter
unit conversion class to easy the pain of conversions in dialogs.
Definition
UnitConversion.h:90
sf::ipj::ToolInfoFilerPropertyPage
Definition
ToolInfoPropertyPage.h:78
sf::ipj::ToolInfoFilerPropertyPage::applyPage
void applyPage() override
Applies the changes made in this page.
sf::ipj::ToolInfoFilerPropertyPage::ToolInfoFilerPropertyPage
ToolInfoFilerPropertyPage(const IniEnvelope &target, QWidget *parent=nullptr)
sf::ipj::ToolInfoPropertyPage
Definition
ToolInfoPropertyPage.h:16
sf::ipj::ToolInfoPropertyPage::afterPageApply
void afterPageApply(bool was_modified) override
Called when all pages are applied. Method can be overridden by a derived class to update control widg...
sf::ipj::ToolInfoPropertyPage::updatePage
void updatePage() override
Updates the control widgets of the page. This method is called to initialize the control widgets.
sf::ipj::ToolInfoPropertyPage::~ToolInfoPropertyPage
~ToolInfoPropertyPage() override
Virtual destructor.
sf::ipj::ToolInfoPropertyPage::ToolInfoPropertyPage
ToolInfoPropertyPage(ToolInformation *target, QWidget *parent=nullptr)
Constructor.
sf::ipj::ToolInfoPropertyPage::isPageModified
bool isPageModified() const override
Gets the modified/changed status of the page.
sf::ipj::ToolInfoPropertyPage::applyPage
void applyPage() override
Applies the changes made in this page.
Namespace.h
Ui
Definition
ApplicationPropertyPage.h:7
sf::ipj
Definition
LineScanMethod.h:6
src
com
ipj
sm
toolbase
ToolInfoPropertyPage.h
Generated by
1.9.8