hlp:新增粘度报警界面(未完成)
This commit is contained in:
@@ -168,6 +168,8 @@ void CounterVarSet::handleChange(bool isChange)
|
|||||||
ui->tabWidget->insertTab(1, ui->cnt1Tab, tr("计数器1"));
|
ui->tabWidget->insertTab(1, ui->cnt1Tab, tr("计数器1"));
|
||||||
|
|
||||||
ui->tabWidget->setCurrentWidget(ui->cnt1Tab);
|
ui->tabWidget->setCurrentWidget(ui->cnt1Tab);
|
||||||
|
ui->radioButtonVar1->setEnabled(true);
|
||||||
|
ui->radioButtonVar2->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
// 只显示 cnt2Tab
|
// 只显示 cnt2Tab
|
||||||
if (ui->tabWidget->indexOf(ui->cnt1Tab) >= 0)
|
if (ui->tabWidget->indexOf(ui->cnt1Tab) >= 0)
|
||||||
@@ -176,6 +178,8 @@ void CounterVarSet::handleChange(bool isChange)
|
|||||||
ui->tabWidget->insertTab(1, ui->cnt2Tab, tr("计数器2"));
|
ui->tabWidget->insertTab(1, ui->cnt2Tab, tr("计数器2"));
|
||||||
|
|
||||||
ui->tabWidget->setCurrentWidget(ui->cnt2Tab);
|
ui->tabWidget->setCurrentWidget(ui->cnt2Tab);
|
||||||
|
ui->radioButtonVar1->setEnabled(false);
|
||||||
|
ui->radioButtonVar2->setEnabled(true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// 两个都显示
|
// 两个都显示
|
||||||
@@ -183,6 +187,8 @@ void CounterVarSet::handleChange(bool isChange)
|
|||||||
ui->tabWidget->insertTab(1, ui->cnt1Tab, tr("计数器1"));
|
ui->tabWidget->insertTab(1, ui->cnt1Tab, tr("计数器1"));
|
||||||
if (ui->tabWidget->indexOf(ui->cnt2Tab) < 0)
|
if (ui->tabWidget->indexOf(ui->cnt2Tab) < 0)
|
||||||
ui->tabWidget->insertTab(2, ui->cnt2Tab, tr("计数器2"));
|
ui->tabWidget->insertTab(2, ui->cnt2Tab, tr("计数器2"));
|
||||||
|
ui->radioButtonVar1->setEnabled(true);
|
||||||
|
ui->radioButtonVar2->setEnabled(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -425,3 +425,11 @@ void MainInstruction::applyStyleSheet()
|
|||||||
|
|
||||||
this->setStyleSheet(styleSheet);
|
this->setStyleSheet(styleSheet);
|
||||||
}
|
}
|
||||||
|
void MainInstruction::on_visSetBtn_clicked()
|
||||||
|
{
|
||||||
|
if (dlgVisSetting == nullptr) {
|
||||||
|
dlgVisSetting = new DlgViscositySetting(this);
|
||||||
|
}
|
||||||
|
if (dlgVisSetting)
|
||||||
|
dlgVisSetting->show();
|
||||||
|
}
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
#include "dialogmaintenancetimesetting.h"
|
#include "dialogmaintenancetimesetting.h"
|
||||||
#include "LogInfo.h"
|
#include "LogInfo.h"
|
||||||
#include "TimeSettingDialog.h"
|
#include "TimeSettingDialog.h"
|
||||||
|
#include "dlgviscositysetting.h"
|
||||||
|
|
||||||
class DlgRFIDConfig;
|
class DlgRFIDConfig;
|
||||||
class DlgCanvasHeightEditor;
|
class DlgCanvasHeightEditor;
|
||||||
@@ -60,6 +61,8 @@ private slots:
|
|||||||
|
|
||||||
void onCanvasCfgBtnClicked();
|
void onCanvasCfgBtnClicked();
|
||||||
|
|
||||||
|
void on_visSetBtn_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::MainInstruction *ui;
|
Ui::MainInstruction *ui;
|
||||||
SysPara* sysPara = nullptr;
|
SysPara* sysPara = nullptr;
|
||||||
@@ -75,6 +78,9 @@ private:
|
|||||||
// 时间设置
|
// 时间设置
|
||||||
TimeSettingDialog timeDia;
|
TimeSettingDialog timeDia;
|
||||||
|
|
||||||
|
//
|
||||||
|
DlgViscositySetting* dlgVisSetting = nullptr;
|
||||||
|
|
||||||
void applyStyleSheet(); // 应用样式表
|
void applyStyleSheet(); // 应用样式表
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+14
-1
@@ -98,7 +98,7 @@
|
|||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>2</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabBasic">
|
<widget class="QWidget" name="tabBasic">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
@@ -304,6 +304,19 @@
|
|||||||
<string>窗口点阵设置</string>
|
<string>窗口点阵设置</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QPushButton" name="visSetBtn">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>310</x>
|
||||||
|
<y>230</y>
|
||||||
|
<width>254</width>
|
||||||
|
<height>92</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>粘度设置</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QPushButton" name="closeBtn">
|
<widget class="QPushButton" name="closeBtn">
|
||||||
|
|||||||
@@ -186,7 +186,8 @@ HEADERS += Public.h \
|
|||||||
dump.h \
|
dump.h \
|
||||||
DlgCanvasHeightEditor.h \
|
DlgCanvasHeightEditor.h \
|
||||||
StateMachine/PrinterStateManager.h \
|
StateMachine/PrinterStateManager.h \
|
||||||
CustomDoubleSpinBox.h
|
CustomDoubleSpinBox.h \
|
||||||
|
dlgviscositysetting.h
|
||||||
|
|
||||||
|
|
||||||
FORMS += \
|
FORMS += \
|
||||||
@@ -236,7 +237,8 @@ FORMS += \
|
|||||||
scene/DlgBarcodeFormat.ui \
|
scene/DlgBarcodeFormat.ui \
|
||||||
scene/DlgQrcodeFormat.ui \
|
scene/DlgQrcodeFormat.ui \
|
||||||
dlgQrCode.ui \
|
dlgQrCode.ui \
|
||||||
DlgCanvasHeightEditor.ui
|
DlgCanvasHeightEditor.ui \
|
||||||
|
dlgviscositysetting.ui
|
||||||
|
|
||||||
SOURCES +=\
|
SOURCES +=\
|
||||||
mainwidget.cpp \
|
mainwidget.cpp \
|
||||||
@@ -350,7 +352,8 @@ SOURCES +=\
|
|||||||
loginfoctrl.cpp \
|
loginfoctrl.cpp \
|
||||||
runtimectrl.cpp \
|
runtimectrl.cpp \
|
||||||
DlgCanvasHeightEditor.cpp \
|
DlgCanvasHeightEditor.cpp \
|
||||||
StateMachine/PrinterStateManager.cpp
|
StateMachine/PrinterStateManager.cpp \
|
||||||
|
dlgviscositysetting.cpp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
#include "dlgviscositysetting.h"
|
||||||
|
#include "ui_dlgviscositysetting.h"
|
||||||
|
|
||||||
|
DlgViscositySetting::DlgViscositySetting(QWidget *parent) :
|
||||||
|
QDialog(parent),
|
||||||
|
ui(new Ui::DlgViscositySetting)
|
||||||
|
{
|
||||||
|
ui->setupUi(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
DlgViscositySetting::~DlgViscositySetting()
|
||||||
|
{
|
||||||
|
delete ui;
|
||||||
|
}
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
#ifndef DLGVISCOSITYSETTING_H
|
||||||
|
#define DLGVISCOSITYSETTING_H
|
||||||
|
|
||||||
|
#include <QDialog>
|
||||||
|
|
||||||
|
namespace Ui {
|
||||||
|
class DlgViscositySetting;
|
||||||
|
}
|
||||||
|
|
||||||
|
class DlgViscositySetting : public QDialog
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit DlgViscositySetting(QWidget *parent = 0);
|
||||||
|
~DlgViscositySetting();
|
||||||
|
|
||||||
|
private:
|
||||||
|
Ui::DlgViscositySetting *ui;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // DLGVISCOSITYSETTING_H
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>DlgViscositySetting</class>
|
||||||
|
<widget class="QDialog" name="DlgViscositySetting">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>421</width>
|
||||||
|
<height>266</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Dialog</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections/>
|
||||||
|
</ui>
|
||||||
Reference in New Issue
Block a user