Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
ElementInfoPropertyPage.h
Go to the documentation of this file.
1#pragma once
4#include <ipj/sm/toolbase/global.h>
7
8namespace sf::ipj
9{
10
11namespace Ui
12{
13class ElementInfoPropertyPage;
14}
15
16class _TBSM_CLASS ElementInfoPropertyPage : public PropertyPage
17{
18 Q_OBJECT
19
20 public:
26 explicit ElementInfoPropertyPage(ElementInformation* target, QWidget* parent = nullptr);
27
32
36 void applyPage() override;
37
41 void afterPageApply(bool was_modified) override;
42
46 bool isPageModified() const override;
47
51 void updatePage() override;
52
53 private:
54 Ui::ElementInfoPropertyPage* ui;
55 ElementInformation* _data;
56 UnitConverter _unitConverterDistance;
57 int _displacementPrecision;
58};
59
61{
62 public:
63 // Constructor.
64 explicit ElementInfoFilerPropertyPage(const IniEnvelope& target, QWidget* parent = nullptr);
65
66 protected:
67 // Overloaded from base class.
68 void applyPage() override;
69
70 private:
71 IniEnvelope _iniFile;
72 ElementInformation _elementInfo;
73};
74
75}// namespace sf::ipj
Holds the information on the transducer.
Definition ElementInformation.h:12
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
unit conversion class to easy the pain of conversions in dialogs.
Definition UnitConversion.h:90
Definition ElementInfoPropertyPage.h:61
ElementInfoFilerPropertyPage(const IniEnvelope &target, QWidget *parent=nullptr)
void applyPage() override
Applies the changes made in this page.
Definition ElementInfoPropertyPage.h:17
bool isPageModified() const override
Overridden from base class.
void afterPageApply(bool was_modified) override
Overridden from base class.
~ElementInfoPropertyPage() override
Virtual destructor.
ElementInfoPropertyPage(ElementInformation *target, QWidget *parent=nullptr)
// Precision of float numbers.
void updatePage() override
Overridden from base class.
void applyPage() override
Overridden from base class.
Definition ApplicationPropertyPage.h:7
Definition LineScanMethod.h:6