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

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

#include <StoreProjectDialog.h>

Inheritance diagram for sf::StoreProjectDialog:
Collaboration diagram for sf::StoreProjectDialog:

Public Types

enum  EOption : int {
  opSave = 1 << 0 , opMustExist = 1 << 1 , opOverwritePrompt = 1 << 2 , opNoPartChange = 1 << 3 ,
  opPartSelect = 1 << 4 , opShowHelp = 1 << 5
}
 Options flags for behavior of this dialog. More...
 
typedef QFlags< EOptionOptions
 Options type.
 

Public Member Functions

 StoreProjectDialog (QWidget *parent=nullptr)
 Default Qt constructor.
 
 ~StoreProjectDialog () 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 setPartProject (const PartProject *part_project)
 Assigns the data from the given part project to teh local one.
 
const PartProjectgetPartProject () 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
opSave 

Dialog is for saving.

opMustExist 

Project must exist when opening.

opOverwritePrompt 

Displays message when saving and using an existing name.

opNoPartChange 

Allows no change of the current selected part.

opPartSelect 

Only select a part.

opShowHelp 

Shows the help button.

Constructor & Destructor Documentation

◆ StoreProjectDialog()

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

Default Qt constructor.

◆ ~StoreProjectDialog()

sf::StoreProjectDialog::~StoreProjectDialog ( )
override

Overridden destructor.

Member Function Documentation

◆ exec()

int sf::StoreProjectDialog::exec ( )
override

Overridden from base class.

◆ getPartProject()

const PartProject * sf::StoreProjectDialog::getPartProject ( ) const

Gets the local part project pointer.

◆ options()

Options sf::StoreProjectDialog::options ( ) const

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

◆ setOptions()

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

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

Parameters
options

◆ setPartProject()

void sf::StoreProjectDialog::setPartProject ( const PartProject part_project)

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

Parameters
part_project

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