Blame view

app/gui/oven_control/adjustmentwindow.cpp 704 Bytes
c12e09d9a   고영탁   교정 UI 및 팝업 추가
1
  #include <qdebug.h>
1bb5ed9dc   고영탁   popupwindow 삭제
2
3
  #include "adjustmentwindow.h"
  #include "ui_adjustmentwindow.h"
c12e09d9a   고영탁   교정 UI 및 팝업 추가
4
  #include "yesnopopupdlg.h"
1bb5ed9dc   고영탁   popupwindow 삭제
5
6
7
8
9
10
11
12
13
14
15
16
  
  AdjustmentWindow::AdjustmentWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::AdjustmentWindow)
  {
      ui->setupUi(this);
  }
  
  AdjustmentWindow::~AdjustmentWindow()
  {
      delete ui;
  }
c12e09d9a   고영탁   교정 UI 및 팝업 추가
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
  void AdjustmentWindow::on_btnAdjust_clicked()
  {
      YesNoPopupDlg* w = new YesNoPopupDlg(this,tr("모든 설정 값을 공장(출고)초기화
  값으로 변경 하시겠습니까?"));
      w->raise();
      int dlgrst = w->exec();
      dlgrst = w->result();
      if(dlgrst == QDialog::Accepted) {
          //Process Init Value;
          qDebug() << "Accepted";
      }
      else qDebug() <<"Rejected";
  }