CAD Viewer
Public Member Functions | Private Attributes | List of all members
OptionDialog Class Reference

Option Dialog class. More...

#include "optiondialog.h"

Inheritance diagram for OptionDialog:
Inheritance graph
[legend]
Collaboration diagram for OptionDialog:
Collaboration graph
[legend]

Public Member Functions

 OptionDialog (QWidget *parent=nullptr)
 < Q_OBJECT macro More...
 
 ~OptionDialog ()
 Destructor for the Option Dialog. More...
 
QString getFileName ()
 Gets the name of the part. More...
 
void placeholderTextName ()
 Gets the full file name. More...
 
void setFileName (QString file, QString Path)
 Sets the name of the part. More...
 
int getRedValue ()
 Gets red value. More...
 
void setRedValue (int red_val)
 Sets red value. More...
 
int getBlueValue ()
 Gets blue value. More...
 
void setBlueValue (int red_val)
 Sets blue value. More...
 
int getGreenValue ()
 Gets green value. More...
 
void setGreenValue (int red_val)
 Sets green value. More...
 
bool getCheckBox ()
 Gets the status of the check box. More...
 
void setCheckBox (bool status)
 Sets the status of the check box. More...
 
QString getFullFileName ()
 Gets the full file name. More...
 

Private Attributes

Ui::OptionDialog * ui
 Pointer to the UI. More...
 
QString FullFileName
 Full file name. More...
 

Detailed Description

Option Dialog class.

This class is responsible for editing a part.

Date
2023-5-5
Author
K.Baskaran, E.Roongwarasopit, J.Moules, N.Srinivasan, G.Downing

Constructor & Destructor Documentation

◆ OptionDialog()

OptionDialog::OptionDialog ( QWidget *  parent = nullptr)
explicit

< Q_OBJECT macro

Constructor for the Option Dialog

Parameters
parentis a pointer to the parent widget

this configures the dialog box.

◆ ~OptionDialog()

OptionDialog::~OptionDialog ( )

Destructor for the Option Dialog.

this deletes the dialog box.

Member Function Documentation

◆ getBlueValue()

int OptionDialog::getBlueValue ( )

Gets blue value.

Returns
int is the blue value

this function gets the value of the SpinBox to determine the blue value

Here is the caller graph for this function:

◆ getCheckBox()

bool OptionDialog::getCheckBox ( )

Gets the status of the check box.

Returns
bool is the status of the check box

this function gets the status of checkbox 3

Here is the caller graph for this function:

◆ getFileName()

QString OptionDialog::getFileName ( )

Gets the name of the part.

Returns
QString is the name of the part

this function gets the name of the part.

Here is the caller graph for this function:

◆ getFullFileName()

QString OptionDialog::getFullFileName ( )

Gets the full file name.

Returns
QString is the full file name

this function gets the full file name

◆ getGreenValue()

int OptionDialog::getGreenValue ( )

Gets green value.

Returns
int is the green value

this function gets the value of the SpinBox to determine the green value

Here is the caller graph for this function:

◆ getRedValue()

int OptionDialog::getRedValue ( )

Gets red value.

Returns
int is the red value

this function gets the status of the SpinBox

Here is the caller graph for this function:

◆ placeholderTextName()

void OptionDialog::placeholderTextName ( )

Gets the full file name.

this function sets the name of the part when dialog is initially configured.

Here is the caller graph for this function:

◆ setBlueValue()

void OptionDialog::setBlueValue ( int  blue_val)

Sets blue value.

Parameters
red_valis the blue value

this function sets the value of the SpinBox to determine the blue value

Here is the caller graph for this function:

◆ setCheckBox()

void OptionDialog::setCheckBox ( bool  status)

Sets the status of the check box.

Parameters
statusis the status of the check box

this function sets the status of checkbox 3

Here is the caller graph for this function:

◆ setFileName()

void OptionDialog::setFileName ( QString  filename,
QString  Path 
)

Sets the name of the part.

Parameters
fileis the name of the part
Pathis the path of the part

this function sets the name of the part.

Here is the caller graph for this function:

◆ setGreenValue()

void OptionDialog::setGreenValue ( int  green_val)

Sets green value.

Parameters
red_valis the green value

this function sets the value of the SpinBox to determine the green value

Here is the caller graph for this function:

◆ setRedValue()

void OptionDialog::setRedValue ( int  red_val)

Sets red value.

Parameters
red_valis the red value

this function sets the value of the SpinBox to determine the red value

Here is the caller graph for this function:

Member Data Documentation

◆ FullFileName

QString OptionDialog::FullFileName
private

Full file name.

◆ ui

Ui::OptionDialog* OptionDialog::ui
private

Pointer to the UI.


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