Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
CheckPositionsPropertyPage.h
Go to the documentation of this file.
1#pragma once
2#include "DefaultScanBinder.h"
3#include <misc/qt/ListModel.h>
5
6namespace sf
7{
8
9namespace Ui
10{
11// Forward definition of auto generated class.
12class CheckPositionsPropertyPage;
13}// namespace Ui
14
19{
20 Q_OBJECT
21
22 public:
26 CheckPositionsPropertyPage(DefaultScanBinder* target, int scan_index, QWidget* parent);
27
32
34 void storeState(ConfigStore& cfg_store, bool save) override;
35
37 void getListData(const QModelIndex& index, int role, QVariant& data);
38
40 void setListData(const QModelIndex& index, int role, const QVariant& data);
41
43 bool isPageModified() const override;
44
46 void applyPage() override;
47
49 void updatePage() override;
50
51 private:
53 QString getStateName(bool) const;
54
56 Ui::CheckPositionsPropertyPage* ui;
58 DefaultScanBinder* _binder;
60 int _scanIndex;
64 ListModel* _listModel;
66 int _precision;
67};
68
69}// namespace sf
Property page for editing check positions.
Definition CheckPositionsPropertyPage.h:19
void applyPage() override
Overridden from base class.
bool isPageModified() const override
Overridden from base class.
~CheckPositionsPropertyPage() override
Virtual overridden destructor.
CheckPositionsPropertyPage(DefaultScanBinder *target, int scan_index, QWidget *parent)
Initializing constructor.
void storeState(ConfigStore &cfg_store, bool save) override
Overridden from base class.
void setListData(const QModelIndex &index, int role, const QVariant &data)
handler for setting listmodel attached data.
void updatePage() override
Overridden from base class.
void getListData(const QModelIndex &index, int role, QVariant &data)
handler for providing listmodel data.
Class to store application configuration. Uses the global application settings or a given ini-file.
Definition ConfigStore.h:17
Definition DefaultScanBinder.h:13
Definition ListModel.h:14
Widget to create a page in a PropertySheet dialog.
Definition PropertyPage.h:15
Definition ApplicationPropertyPage.h:7
Definition Application.h:10
List of approach positions.
Definition DefaultScanBinder.h:558