Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::StoreInspectionDialog Class Referencefinal

Dialog to select a part and project to 'open' or 'save'. More...

#include <StoreInspectionDialog.h>

Inheritance diagram for sf::StoreInspectionDialog:
Collaboration diagram for sf::StoreInspectionDialog:

Public Types

enum  EOption {
  oiSave , oiCreate , oiNoPartChange , oiMustExist ,
  oiPartSelect , oiSerialSelect , oiInspectSelect , oiShowHelp
}
 Options flags for behavior of this dialog. More...
 
typedef QFlags< EOptionOptions
 Options type.
 

Public Member Functions

 StoreInspectionDialog (QWidget *parent=nullptr)
 Default Qt constructor.
 
 ~StoreInspectionDialog () override
 Overridden destructor.
 
void setOptions (Options options)
 Sets the options for operation of the dialog and see EOption for the information.
 
Options options () const
 Gets the options set with setOptions and see EOption for the information.
 
void setPartInspection (const TPartInspection *part_inspection)
 Assigns the data from the given part project to the local one.
 
const TPartInspectiongetPartInspection () const
 Gets the local part project pointer.
 
int exec () override
 Overridden from base class.
 

Detailed Description

Dialog to select a part and project to 'open' or 'save'.

Member Typedef Documentation

◆ Options

Options type.

Member Enumeration Documentation

◆ EOption

Options flags for behavior of this dialog.

Enumerator
oiSave 

Dialog is for saving.

oiCreate 

Special open mode. Source of the part name is taken from the existing projects. The save flag is automatically set.

oiNoPartChange 

Part is not allowed to change.

oiMustExist 

Serial must exist when opening.

oiPartSelect 

Only select a part.

oiSerialSelect 

Only select a serial.

oiInspectSelect 

Only select a specific inspection.

oiShowHelp 

Shows the help button.

Constructor & Destructor Documentation

◆ StoreInspectionDialog()

sf::StoreInspectionDialog::StoreInspectionDialog ( QWidget *  parent = nullptr)
explicit

Default Qt constructor.

◆ ~StoreInspectionDialog()

sf::StoreInspectionDialog::~StoreInspectionDialog ( )
override

Overridden destructor.

Member Function Documentation

◆ exec()

int sf::StoreInspectionDialog::exec ( )
override

Overridden from base class.

◆ getPartInspection()

const TPartInspection * sf::StoreInspectionDialog::getPartInspection ( ) const

Gets the local part project pointer.

◆ options()

Options sf::StoreInspectionDialog::options ( ) const

Gets the options set with setOptions and see EOption for the information.

◆ setOptions()

void sf::StoreInspectionDialog::setOptions ( Options  options)

Sets the options for operation of the dialog and see EOption for the information.

Parameters
options

◆ setPartInspection()

void sf::StoreInspectionDialog::setPartInspection ( const TPartInspection part_inspection)

Assigns the data from the given part project to the local one.

Parameters
part_inspection

The documentation for this class was generated from the following file: