CAD Viewer
optiondialog.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------//
9 //---------------------------------------------------------------------------//
10 
11 //---------------------------------------------------------------------------//
12 // preprocessor directives
13 //---------------------------------------------------------------------------//
14 
15 #ifndef OPTIONDIALOG_H
16 #define OPTIONDIALOG_H
17 
18 #include <QDialog>
19 #include <QString>
20 #include <QWidget>
21 #include <QLineEdit>
22 #include <QCheckBox>
23 #include <qmessagebox.h>
24 #include "../Model/ModelPart.h"
25 #include "../Model/ModelPartList.h"
26 
27 namespace Ui
28 {
29  class OptionDialog;
30 }
31 
32 //---------------------------------------------------------------------------//
33 // Class Declarations
34 //---------------------------------------------------------------------------//
35 
40 class OptionDialog : public QDialog
41 {
42  Q_OBJECT
43 
44  public :
47  explicit OptionDialog(QWidget *parent = nullptr);
48 
50  ~OptionDialog();
51 
54  QString getFileName();
55 
57  void placeholderTextName();
58 
62  void setFileName(QString file, QString Path);
63 
66  int getRedValue();
67 
70  void setRedValue(int red_val);
71 
74  int getBlueValue();
75 
78  void setBlueValue(int red_val);
79 
82  int getGreenValue();
83 
86  void setGreenValue(int red_val);
87 
90  bool getCheckBox();
91 
94  void setCheckBox(bool status);
95 
98  QString getFullFileName();
99 
100 private:
101  Ui::OptionDialog *ui;
102 
103  QString FullFileName;
104 };
105 
106 #endif // OPTIONDIALOG_H
Option Dialog class.
Definition: optiondialog.h:41
void placeholderTextName()
Gets the full file name.
Definition: optiondialog.cpp:36
int getGreenValue()
Gets green value.
Definition: optiondialog.cpp:91
OptionDialog(QWidget *parent=nullptr)
< Q_OBJECT macro
Definition: optiondialog.cpp:23
void setFileName(QString file, QString Path)
Sets the name of the part.
Definition: optiondialog.cpp:48
void setGreenValue(int red_val)
Sets green value.
Definition: optiondialog.cpp:97
void setRedValue(int red_val)
Sets red value.
Definition: optiondialog.cpp:73
void setCheckBox(bool status)
Sets the status of the check box.
Definition: optiondialog.cpp:61
~OptionDialog()
Destructor for the Option Dialog.
Definition: optiondialog.cpp:30
Ui::OptionDialog * ui
Pointer to the UI.
Definition: optiondialog.h:101
bool getCheckBox()
Gets the status of the check box.
Definition: optiondialog.cpp:55
QString FullFileName
Full file name.
Definition: optiondialog.h:103
QString getFileName()
Gets the name of the part.
Definition: optiondialog.cpp:42
QString getFullFileName()
Gets the full file name.
Definition: optiondialog.cpp:103
int getRedValue()
Gets red value.
Definition: optiondialog.cpp:67
void setBlueValue(int red_val)
Sets blue value.
Definition: optiondialog.cpp:85
int getBlueValue()
Gets blue value.
Definition: optiondialog.cpp:79
Definition: help.h:25