OSDN Git Service

REF AIR display bug
[kods/KODS_GUI.git] / nkdialog.cpp
1 #include "nkdialog.h"
2 #include "ui_nkdialog.h"
3
4 nkDialog::nkDialog(QWidget *parent) :
5     QDialog(parent),
6     ui(new Ui::nkDialog)
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 nkDialog::onAccept()
14 {
15
16     GlassName = ui->lineEdit->text();
17     Index = ui->lineEdit_2->text();
18     Abbe = ui->lineEdit_3->text();
19
20     Button1 = ui->buttonBox->Ok;
21
22 }
23
24 void nkDialog::onReject()
25 {
26   reject();
27 }
28
29
30 nkDialog::~nkDialog()
31 {
32     delete ui;
33 }