Dialog::Dialog(QWidget *parent) :
    QDialog(parent),
    dialog_ui(new Ui::Dialog)
{
    dialog_ui->setupUi(this);
    dialog_ui->usbStatus->setText("Status: USB port isn't established.");
    dialog_ui->connectUSB->setText("Connect to USB port.");
    dialog_ui->startPressurePlot->setText("Start Plotting");
    dialog_ui->startPressurePlot->setDisabled(true);
    rtpUSB_is_available = false;
    rtpUSB_cancel_enable = false;
    connect(&pressure_time, SIGNAL(timeout()), this, SLOT(request_pressure_slot()));
}