Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
UnitConversionPropertyPage.h
Go to the documentation of this file.
1#pragma once
4
5namespace sf
6{
7
8namespace Ui
9{
10class UnitConversionPropertyPage;
11}
12
13class ConversionListModel;
14class FollowersListModel;
15
17{
18 Q_OBJECT
19
20 public:
21 explicit UnitConversionPropertyPage(UnitConversionAppModule& ucm, QWidget* parent);
22
24
25 [[nodiscard]] QString getPageName() const override;
26
27 [[nodiscard]] QString getPageDescription() const override;
28
29 [[nodiscard]] QIcon getPageIcon() const override;
30
31 void updatePage() override;
32
33 void applyPage() override;
34
35 [[nodiscard]] bool isPageModified() const override;
36
37 void afterPageApply(bool was_modified) override;
38
39 void stateSaveRestore(QSettings& settings, bool save) override;
40
41 private:
42 Ui::UnitConversionPropertyPage* ui;
43
45
46 QAction* _actionAddConversion{nullptr};
47 QAction* _actionRemoveConversion{nullptr};
48 QAction* _actionEditConversion{nullptr};
49 QAction* _actionAddFollower{nullptr};
50 QAction* _actionRemoveFollower{nullptr};
51 QAction* _actionEditFollower{nullptr};
52
53 ConversionListModel* _lmConversions{nullptr};
54 FollowersListModel* _lmFollowers{nullptr};
55};
56
57}// namespace sf
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:16
Definition UnitConversionAppModule.h:10
Definition UnitConversionPropertyPage.h:17
QString getPageDescription() const override
Gets the description for hinting of the page in the list view.
QString getPageName() const override
Gets the name of the page for displaying in the list view. When reimplemented the QObject's name is r...
void afterPageApply(bool was_modified) override
Called when all pages are applied. Method can be overridden by a derived class to update control widg...
QIcon getPageIcon() const override
Gets the name of the page for displaying in the list view. When not reimplemented this method returns...
UnitConversionPropertyPage(UnitConversionAppModule &ucm, QWidget *parent)
void updatePage() override
Updates the control widgets of the page.
void applyPage() override
Applies the changes made in this page.
bool isPageModified() const override
Gets the modified/changed status of the page.
void stateSaveRestore(QSettings &settings, bool save) override
Called by sheet to save the state of the page. A call to QSettings::beginGroup() is not needed since ...
Definition ApplicationPropertyPage.h:8
Definition Application.h:10