CAD Viewer
|
Option Dialog class. More...
#include "optiondialog.h"
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... | |
Option Dialog class.
This class is responsible for editing a part.
|
explicit |
< Q_OBJECT macro
Constructor for the Option Dialog
parent | is a pointer to the parent widget |
this configures the dialog box.
OptionDialog::~OptionDialog | ( | ) |
Destructor for the Option Dialog.
this deletes the dialog box.
int OptionDialog::getBlueValue | ( | ) |
Gets blue value.
this function gets the value of the SpinBox to determine the blue value
bool OptionDialog::getCheckBox | ( | ) |
Gets the status of the check box.
this function gets the status of checkbox 3
QString OptionDialog::getFileName | ( | ) |
Gets the name of the part.
this function gets the name of the part.
QString OptionDialog::getFullFileName | ( | ) |
Gets the full file name.
this function gets the full file name
int OptionDialog::getGreenValue | ( | ) |
Gets green value.
this function gets the value of the SpinBox to determine the green value
int OptionDialog::getRedValue | ( | ) |
Gets red value.
this function gets the status of the SpinBox
void OptionDialog::placeholderTextName | ( | ) |
Gets the full file name.
this function sets the name of the part when dialog is initially configured.
void OptionDialog::setBlueValue | ( | int | blue_val | ) |
Sets blue value.
red_val | is the blue value |
this function sets the value of the SpinBox to determine the blue value
void OptionDialog::setCheckBox | ( | bool | status | ) |
Sets the status of the check box.
status | is the status of the check box |
this function sets the status of checkbox 3
void OptionDialog::setFileName | ( | QString | filename, |
QString | Path | ||
) |
Sets the name of the part.
file | is the name of the part |
Path | is the path of the part |
this function sets the name of the part.
void OptionDialog::setGreenValue | ( | int | green_val | ) |
Sets green value.
red_val | is the green value |
this function sets the value of the SpinBox to determine the green value
void OptionDialog::setRedValue | ( | int | red_val | ) |
Sets red value.
red_val | is the red value |
this function sets the value of the SpinBox to determine the red value
|
private |
Full file name.
|
private |
Pointer to the UI.