Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
StoreInspectionDialog.h
Go to the documentation of this file.
1#pragma once
2#include <QAbstractButton>
3#include <QDialog>
4
5// #include <ipj/iface/global.h>
6
7namespace sf
8{
9
10// Forward declaration.
11class PartInspection;
12
13namespace Ui
14{
15// Forward definition of auto generated class.
16class StoreInspectionDialog;
17}// namespace Ui
18
22class /*_IPJ_CLASS */ StoreInspectionDialog final : public QDialog
23{
24 // Macro required for Qt's meta-object system (signals/slots)
25 Q_OBJECT
26
27 public:
42
46 typedef QFlags<EOption> Options;
50 explicit StoreInspectionDialog(QWidget* parent = nullptr);
51
56
62
67
72 void setPartInspection(const PartInspection* part_inspection);
73
78
82 int exec() override;
83
84 private:
88 void nameChanged(const QString&);
89
93 bool canClose() const;
94
98 void clicked(QAbstractButton* button);
99
103 Ui::StoreInspectionDialog* ui;
107 Options _options;
111 PartInspection* _partInspection;
112};
113
114}// namespace sf
Definition PartInspection.h:11
Dialog to select a part and project to 'open' or 'save'.
Definition StoreInspectionDialog.h:23
int exec() override
Overridden from base class.
EOption
Options flags for behavior of this dialog.
Definition StoreInspectionDialog.h:32
@ oiSerialSelect
Only select a serial.
Definition StoreInspectionDialog.h:38
@ oiInspectSelect
Only select a specific inspection.
Definition StoreInspectionDialog.h:39
@ oiPartSelect
Only select a part.
Definition StoreInspectionDialog.h:37
@ oiNoPartChange
Part is not allowed to change.
Definition StoreInspectionDialog.h:35
@ oiMustExist
Serial must exist when opening.
Definition StoreInspectionDialog.h:36
@ oiShowHelp
Shows the help button.
Definition StoreInspectionDialog.h:40
@ oiCreate
Special open mode. Source of the part name is taken from the existing projects. The save flag is auto...
Definition StoreInspectionDialog.h:34
@ oiSave
Dialog is for saving.
Definition StoreInspectionDialog.h:33
QFlags< EOption > Options
Options type.
Definition StoreInspectionDialog.h:46
void setPartInspection(const PartInspection *part_inspection)
Assigns the data from the given part project to the local one.
Options options() const
Gets the options set with setOptions and see EOption for the information.
StoreInspectionDialog(QWidget *parent=nullptr)
Default Qt constructor.
void setOptions(Options options)
Sets the options for operation of the dialog and see EOption for the information.
const PartInspection * getPartInspection() const
Gets the local part project pointer.
~StoreInspectionDialog() override
Overridden destructor.
Definition ApplicationPropertyPage.h:7
Definition Application.h:10