OSDN Git Service

Added GRAOUT PDF command
[kods/KODS_GUI.git] / optimize.cpp
1 #include "optimize.h"
2 #include "ui_optimize.h"
3
4 Optimize::Optimize(QWidget *parent) :
5     QDialog(parent),
6     ui(new Ui::Optimize)
7 {
8     ui->setupUi(this);
9     connect( ui->buttonBox, SIGNAL(accepted()), this, SLOT(onAccept()) );
10     connect( ui->buttonBox, SIGNAL(rejected()), this, SLOT(onReject()) );
11 }
12
13 void Optimize::onAccept()
14 {
15
16     FocalLength = ui->lineEdit->text();
17     Target = ui->comboBox_6->currentText();
18
19     Parameter1 = ui->comboBox->currentText();
20     Parameter2 = ui->comboBox_2->currentText();
21     Parameter3 = ui->comboBox_3->currentText();
22     Parameter4 = ui->comboBox_4->currentText();
23     Parameter5 = ui->comboBox_5->currentText();
24
25     ParamValue1 = ui->lineEdit_2->text();
26     ParamValue2 = ui->lineEdit_3->text();
27     ParamValue3 = ui->lineEdit_4->text();
28     ParamValue4 = ui->lineEdit_5->text();
29     ParamValue5 = ui->lineEdit_6->text();
30
31     Button2 = ui->buttonBox->Ok;
32
33 }
34
35 void Optimize::onReject()
36 {
37   reject();
38 }
39
40
41 Optimize::~Optimize()
42 {
43     delete ui;
44 }