Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
MaterialPropertyPage.h
Go to the documentation of this file.
1#pragma once
2#include <QAbstractButton>
6
7namespace sf
8{
9
10namespace Ui
11{
12// Forward definition of auto generated class.
13class MaterialPropertyPage;
14}// namespace Ui
15
20{
21 // Macro required for Qt's meta-object system (signals/slots)
22 Q_OBJECT
23
24 public:
25 void handleFormChange(int index = -1);
30 explicit MaterialPropertyPage(QWidget* parent = nullptr);
31
36
41 void setIniFile(const IniEnvelope& ini);
42
44 bool isPageModified() const override;
45
47 void applyPage() override;
48
50 void updatePage() override;
51
52 private:
54 Ui::MaterialPropertyPage* ui;
56 IniEnvelope _iniFile;
58 UnitConverter _unitCnvVel;
60 double _velocityLong;
61 double _velocityShear;
62 //
63 EMaterialType _materialType;
64 //
65 QString _info;
66 //
67 QString _selected;
68};
69
70}// namespace sf
The MaterialPropertyPage class represents a custom dialog window.
Definition MaterialPropertyPage.h:20
bool isPageModified() const override
Gets the modified/changed status of the page.
MaterialPropertyPage(QWidget *parent=nullptr)
Constructor for the MaterialPropertyPage class.
void updatePage() override
Updates the control widgets of the page. This method is called to initialize the control widgets.
~MaterialPropertyPage() override
Destructor for the MaterialPropertyPage class.
void setIniFile(const IniEnvelope &ini)
Assigns the ini-file containing the material information.
void handleFormChange(int index=-1)
void applyPage() override
Applies the changes made in this page.
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:15
unit conversion class to easy the pain of conversions in dialogs.
Definition UnitConversion.h:90
Definition ApplicationPropertyPage.h:7
Definition Application.h:10
EMaterialType
Enumerate type to identify a material.
Definition ipj/iface/Namespace.h:156