Compare commits
16 Commits
v0.6.10bet
...
v0.6.11
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d22dc1512 | ||
|
|
ae89aeffe4 | ||
|
|
6ba9786efb | ||
|
|
a7a5e1e308 | ||
|
|
d18332baed | ||
|
|
f7540385a4 | ||
|
|
1abd387617 | ||
|
|
24f6e4e97c | ||
|
|
2e9fb9960e | ||
|
|
99f19e8b5b | ||
|
|
b1eca40565 | ||
|
|
3ee90afe0f | ||
|
|
593883d980 | ||
|
|
4e09f2eef6 | ||
|
|
27487fdf3c | ||
|
|
7cee364fc3 |
@@ -8,7 +8,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|||||||
# GUI Version
|
# GUI Version
|
||||||
set(GUI_VERSION_MAJOR 0)
|
set(GUI_VERSION_MAJOR 0)
|
||||||
set(GUI_VERSION_MINOR 6)
|
set(GUI_VERSION_MINOR 6)
|
||||||
set(GUI_VERSION_BUILD 10)
|
set(GUI_VERSION_BUILD 11)
|
||||||
set(GUI_VERSION_BETA 1)
|
set(GUI_VERSION_BETA 1)
|
||||||
# use AppVersion.h as a configure file
|
# use AppVersion.h as a configure file
|
||||||
configure_file(
|
configure_file(
|
||||||
@@ -40,7 +40,7 @@ source_group(TREE ${CMAKE_SOURCE_DIR} FILES ${project_c})
|
|||||||
find_package(Qt5 COMPONENTS Core Widgets Gui OpenGL Sql VirtualKeyboard Network REQUIRED)
|
find_package(Qt5 COMPONENTS Core Widgets Gui OpenGL Sql VirtualKeyboard Network REQUIRED)
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
set(CMAKE_AUTORCC ON)
|
set(CMAKE_AUTORCC ON)
|
||||||
file(GLOB project_uis ./src/*.ui)
|
file(GLOB_RECURSE project_uis ./src/*.ui)
|
||||||
qt5_wrap_ui(ui_FILES ${project_uis})
|
qt5_wrap_ui(ui_FILES ${project_uis})
|
||||||
file(GLOB project_res ./src/*.qrc)
|
file(GLOB project_res ./src/*.qrc)
|
||||||
|
|
||||||
|
|||||||
8
docs/v0.6.11.txt
Normal file
8
docs/v0.6.11.txt
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
v0.6.11
|
||||||
|
1. 修复CMake导致的UI构建错误
|
||||||
|
2. ShimLib加入了DEV_OUTPATH(当前Scan的数据存储目录)功能
|
||||||
|
3. 给日期滑块加入了日期限制。
|
||||||
|
4. 修复了TableView列头点击导致的选中行丢失问题。
|
||||||
|
5. Windows下新增了异步仿真逻辑。
|
||||||
|
6. 实现了Scan json的生成。
|
||||||
|
7. 实现了新的分段Scan逻辑。
|
||||||
@@ -4,15 +4,21 @@
|
|||||||
|
|
||||||
#include "DateSelectDialog.h"
|
#include "DateSelectDialog.h"
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
#include "components/DateSlidePickerBox.h"
|
#include <QLabel>
|
||||||
#include <QDate>
|
#include <QDate>
|
||||||
|
#include "components/DateSlidePickerBox.h"
|
||||||
DateSelectDialog::DateSelectDialog(QWidget *parent, Qt::WindowFlags f) : GUIFormBaseDialog(parent, f) {
|
DateSelectDialog::DateSelectDialog(QWidget *parent, Qt::WindowFlags f) : GUIFormBaseDialog(parent, f) {
|
||||||
this->setFixedSize(460, 380);
|
this->setFixedSize(460, 380);
|
||||||
QVBoxLayout* layout = new QVBoxLayout(formWidget);
|
QVBoxLayout* layout = new QVBoxLayout(formWidget);
|
||||||
box = new DateSlidePickerBox(formWidget);
|
box = new DateSlidePickerBox(formWidget);
|
||||||
box->setObjectName("slider_one");
|
box->setObjectName("slider_one");
|
||||||
box->setSelectedValue("1990-01-01");
|
box->setSelectedValue("1990-01-01");
|
||||||
|
lbl_error = new QLabel(this);
|
||||||
|
lbl_error->setObjectName("warn");
|
||||||
|
lbl_error->setVisible(false);
|
||||||
|
lbl_error->setText(tr("Date exceeded!"));
|
||||||
layout->addWidget(box);
|
layout->addWidget(box);
|
||||||
|
layout->addWidget(lbl_error);
|
||||||
}
|
}
|
||||||
|
|
||||||
DateSelectDialog::~DateSelectDialog() {
|
DateSelectDialog::~DateSelectDialog() {
|
||||||
@@ -20,6 +26,7 @@ DateSelectDialog::~DateSelectDialog() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QString DateSelectDialog::getSelectedValue() {
|
QString DateSelectDialog::getSelectedValue() {
|
||||||
|
|
||||||
return box->getSelectedValue();
|
return box->getSelectedValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -29,6 +36,13 @@ void DateSelectDialog::setSelectedValue(const QString &val) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool DateSelectDialog::updateReferenceData() {
|
bool DateSelectDialog::updateReferenceData() {
|
||||||
|
if (onlyBackward){
|
||||||
|
QDate v = QDate::fromString(box->getSelectedValue(),"yyyy-MM-dd");
|
||||||
|
bool flag = QDate::currentDate()>=v;
|
||||||
|
this->setFixedHeight(flag? 380:410);
|
||||||
|
lbl_error->setVisible(!flag);
|
||||||
|
return flag;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
|
|
||||||
#include "dialogs/GUIFormBaseDialog.h"
|
#include "dialogs/GUIFormBaseDialog.h"
|
||||||
class DateSlidePickerBox;
|
class DateSlidePickerBox;
|
||||||
|
class QLabel;
|
||||||
class DateSelectDialog:public GUIFormBaseDialog{
|
class DateSelectDialog:public GUIFormBaseDialog{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -15,9 +16,14 @@ public:
|
|||||||
QString getSelectedValue();
|
QString getSelectedValue();
|
||||||
void setSelectedValue(const QString& val);
|
void setSelectedValue(const QString& val);
|
||||||
void showEvent(QShowEvent *) override;
|
void showEvent(QShowEvent *) override;
|
||||||
|
void setOnlyBackward(bool val){
|
||||||
|
onlyBackward = val;
|
||||||
|
}
|
||||||
protected:
|
protected:
|
||||||
bool updateReferenceData() override;
|
bool updateReferenceData() override;
|
||||||
DateSlidePickerBox* box;
|
DateSlidePickerBox* box;
|
||||||
|
QLabel* lbl_error = nullptr;
|
||||||
|
bool onlyBackward = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
#include "DateSelectDialog.h"
|
#include "DateSelectDialog.h"
|
||||||
#include "components/Listbox.h"
|
#include "components/Listbox.h"
|
||||||
|
|
||||||
int queryValue(QSqlTableModel* model, int colID, QVariant var)
|
int queryValue(QSqlTableModel* model, int colID, const QVariant& var)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < model->rowCount(); ++i) {
|
for (int i = 0; i < model->rowCount(); ++i) {
|
||||||
if (model->data(model->index(i, colID)) == var) return i;
|
if (model->data(model->index(i, colID)) == var) return i;
|
||||||
|
|||||||
@@ -1,80 +1,106 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "ShimLib.h"
|
#include "ShimLib.h"
|
||||||
|
|
||||||
|
#include <Windows.h>
|
||||||
|
#include <process.h>
|
||||||
|
#include <time.h>
|
||||||
|
|
||||||
typedef void(*error_cb)(const char* msg);
|
typedef void(*error_cb)(const char* msg);
|
||||||
|
|
||||||
int statusCountFlag = 0;
|
int statusCountFlag = 0;
|
||||||
error_cb innerCallback = NULL;
|
error_cb innerCallback = NULL;
|
||||||
|
|
||||||
|
void ThreadFunc(void*);
|
||||||
|
HANDLE th;
|
||||||
|
HANDLE e1,e2;
|
||||||
int InitLib(error_cb cb) {
|
int InitLib(error_cb cb) {
|
||||||
innerCallback = cb;
|
innerCallback = cb;
|
||||||
innerCallback("11111");
|
innerCallback("11111");
|
||||||
|
e1 = CreateEvent(NULL, FALSE, FALSE, "e1");
|
||||||
|
e2 = CreateEvent(NULL, FALSE, FALSE, "e2");
|
||||||
|
th = _beginthread(ThreadFunc,0, NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
volatile int running = 1;
|
||||||
|
volatile int progress = 0;
|
||||||
|
volatile int status = READY;
|
||||||
|
volatile int stop_flag = 0;
|
||||||
|
char output_path[256] = {0};
|
||||||
|
|
||||||
|
void ThreadFunc(void* args){
|
||||||
|
while (running){
|
||||||
|
WaitForSingleObject(e1, INFINITE);
|
||||||
|
status = SCANNING;
|
||||||
|
stop_flag = 0;
|
||||||
|
progress = 0;
|
||||||
|
for (int i = 0; i < 50; ++i) {
|
||||||
|
if (stop_flag > 0){
|
||||||
|
stop_flag = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (i == 20){
|
||||||
|
progress = 139;
|
||||||
|
WaitForSingleObject(e2, INFINITE);
|
||||||
|
}
|
||||||
|
else if ( i > 20 && i<35){
|
||||||
|
progress = i * 2 + 100;
|
||||||
|
}
|
||||||
|
else if(i >= 35){
|
||||||
|
progress = i * 2 + 200;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
progress = i *2;
|
||||||
|
}
|
||||||
|
Sleep(300);
|
||||||
|
}
|
||||||
|
status = READY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int ScanControl(ScanAction actionType) {
|
int ScanControl(ScanAction actionType) {
|
||||||
|
|
||||||
switch (actionType) {
|
switch (actionType) {
|
||||||
case SCAN:
|
case SCAN:
|
||||||
printf("Do Scan!\r\n");
|
printf("Do Scan!\r\n");
|
||||||
statusCountFlag = 2;
|
statusCountFlag = 2;
|
||||||
break;
|
SYSTEMTIME st = {0};
|
||||||
case PREVIEW_SCAN:
|
GetLocalTime(&st);
|
||||||
statusCountFlag = 1;
|
sprintf(output_path, "%d%02d%02dT%02d%02d%02d",
|
||||||
printf("Do preview!\r\n");
|
st.wYear,
|
||||||
break;
|
st.wMonth,
|
||||||
case STOP:
|
st.wDay,
|
||||||
statusCountFlag = 0;
|
st.wHour,
|
||||||
printf("Stop everything!\r\n");
|
st.wMinute,
|
||||||
break;
|
st.wSecond);
|
||||||
}
|
SetEvent(e1);
|
||||||
|
break;
|
||||||
|
case PREVIEW_SCAN:
|
||||||
|
statusCountFlag = 1;
|
||||||
|
printf("Do preview!\r\n");
|
||||||
|
break;
|
||||||
|
case STOP:
|
||||||
|
statusCountFlag = 0;
|
||||||
|
stop_flag = 1;
|
||||||
|
progress = 0;
|
||||||
|
status = READY;
|
||||||
|
printf("Stop everything!\r\n");
|
||||||
|
break;
|
||||||
|
case SCAN_CONTINUE:
|
||||||
|
SetEvent(e2);
|
||||||
|
break;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
StatusInfo GetStatus() {
|
StatusInfo GetStatus() {
|
||||||
StatusInfo inf;
|
StatusInfo inf;
|
||||||
switch (statusCountFlag)
|
inf.status = status;
|
||||||
{
|
inf.progress = progress;
|
||||||
case 0:
|
|
||||||
inf.status = READY;
|
|
||||||
break;
|
|
||||||
case 1:
|
|
||||||
inf.status = SCANNING;
|
|
||||||
inf.progress = 0.0f;
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
inf.status = SCANNING;
|
|
||||||
inf.progress = 0.3f;
|
|
||||||
statusCountFlag++;
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
inf.status = SCANNING;
|
|
||||||
inf.progress = 0.6f;
|
|
||||||
statusCountFlag++;
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
inf.status = SCANNING;
|
|
||||||
inf.progress = 0.9f;
|
|
||||||
statusCountFlag++;
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
inf.status = SCANNING;
|
|
||||||
inf.progress = 1.0f;
|
|
||||||
statusCountFlag = 0;
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
// case 7:
|
|
||||||
// inf.status = BUSY;
|
|
||||||
// statusCountFlag++;
|
|
||||||
// break;
|
|
||||||
// case 8:
|
|
||||||
inf.status = BUSY;
|
|
||||||
statusCountFlag = 0;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
inf.status = BUSY;
|
|
||||||
statusCountFlag = 0;
|
|
||||||
}
|
|
||||||
return inf;
|
return inf;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -109,10 +135,19 @@ const char* GetPreviewData() {
|
|||||||
|
|
||||||
const char* GetDeviceInfo(DeviceInfo infoType) {
|
const char* GetDeviceInfo(DeviceInfo infoType) {
|
||||||
switch (infoType) {
|
switch (infoType) {
|
||||||
case MEAN_TEMPERATURE:
|
case MEAN_TEMPERATURE:
|
||||||
return "28";
|
return "28";
|
||||||
case VERSION:
|
case VERSION:
|
||||||
return "6.6.06";
|
return "6.6.06";
|
||||||
|
case DEV_OUTPATH:
|
||||||
|
return output_path;
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
void StopDevice(){
|
||||||
|
CloseHandle(e1);
|
||||||
|
CloseHandle(e2);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ typedef enum {
|
|||||||
|
|
||||||
typedef struct StatusInfo {
|
typedef struct StatusInfo {
|
||||||
DeviceStatus status;// a enum represent device current status
|
DeviceStatus status;// a enum represent device current status
|
||||||
float progress;// percent value of operation
|
int progress;// percent value of operation
|
||||||
} StatusInfo;
|
} StatusInfo;
|
||||||
|
|
||||||
|
|
||||||
@@ -25,12 +25,14 @@ typedef enum {
|
|||||||
SCAN,// Start scan action
|
SCAN,// Start scan action
|
||||||
PREVIEW_SCAN,// Start preview scan action
|
PREVIEW_SCAN,// Start preview scan action
|
||||||
STOP,// Stop current scan
|
STOP,// Stop current scan
|
||||||
|
SCAN_CONTINUE,//Continue pending scan
|
||||||
} ScanAction;
|
} ScanAction;
|
||||||
|
|
||||||
//kinds of device information
|
//kinds of device information
|
||||||
typedef enum {
|
typedef enum {
|
||||||
MEAN_TEMPERATURE,
|
MEAN_TEMPERATURE,
|
||||||
VERSION
|
VERSION,
|
||||||
|
DEV_OUTPATH
|
||||||
} DeviceInfo;
|
} DeviceInfo;
|
||||||
|
|
||||||
extern int InitLib(void(*)(const char *msg));
|
extern int InitLib(void(*)(const char *msg));
|
||||||
@@ -45,6 +47,11 @@ extern const char *GetPreviewData();
|
|||||||
|
|
||||||
extern const char *GetDeviceInfo(DeviceInfo infoType);
|
extern const char *GetDeviceInfo(DeviceInfo infoType);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
extern void StopDevice();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
#define APP_VALUES()\
|
#define APP_VALUES()\
|
||||||
ADD_APP_VALUE(InProcessing)\
|
ADD_APP_VALUE(InProcessing)\
|
||||||
ADD_APP_VALUE(LastOperationTime)\
|
ADD_APP_VALUE(LastOperationTime)\
|
||||||
ADD_APP_VALUE(LastOperation)
|
ADD_APP_VALUE(LastOperation)\
|
||||||
|
ADD_APP_VALUE(EmptyScanFlag)\
|
||||||
|
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
|
|||||||
@@ -3,9 +3,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include "AccountRoleComboDelegate.h"
|
#include "AccountRoleComboDelegate.h"
|
||||||
#include <QComboBox>
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QStyleOptionViewItem>
|
|
||||||
#include "db/SQLHelper.h"
|
#include "db/SQLHelper.h"
|
||||||
AccountRoleComboDelegate::AccountRoleComboDelegate(QWidget *parent):QItemDelegate(parent) {
|
AccountRoleComboDelegate::AccountRoleComboDelegate(QWidget *parent):QItemDelegate(parent) {
|
||||||
SQLHelper::QueryMap("select RoleID,RoleName from Role",map);
|
SQLHelper::QueryMap("select RoleID,RoleName from Role",map);
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QFont>
|
|
||||||
#include <qdebug.h>
|
#include <qdebug.h>
|
||||||
const int fontSize = 80;
|
const int fontSize = 80;
|
||||||
SlidePickerBox::SlidePickerBox(QWidget *parent):QWidget(parent) {
|
SlidePickerBox::SlidePickerBox(QWidget *parent):QWidget(parent) {
|
||||||
@@ -143,7 +143,7 @@ void SlidePickerBox::paintText(QString txt, int x, int y, const QColor& color) {
|
|||||||
painter.drawText(x,y,txt);
|
painter.drawText(x,y,txt);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlidePickerBox::setItems(QStringList itemsList) {
|
void SlidePickerBox::setItems(const QStringList& itemsList) {
|
||||||
this->items = itemsList;
|
this->items = itemsList;
|
||||||
hideLabel(selectedLbl);
|
hideLabel(selectedLbl);
|
||||||
hideLabel(prevLbl);
|
hideLabel(prevLbl);
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class SlidePickerBox:public QWidget {
|
|||||||
public:
|
public:
|
||||||
explicit SlidePickerBox(QWidget *parent = nullptr);
|
explicit SlidePickerBox(QWidget *parent = nullptr);
|
||||||
QString getSelectedValue();
|
QString getSelectedValue();
|
||||||
void setItems(QStringList itemsList);
|
void setItems(const QStringList& itemsList);
|
||||||
void addItem(QString& item) {
|
void addItem(QString& item) {
|
||||||
this->items.append(item);
|
this->items.append(item);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <QScrollBar>
|
#include <QScrollBar>
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
|
|
||||||
SlideableTableView::SlideableTableView(QWidget *parent) : QTableView(parent) {
|
SlideableTableView::SlideableTableView(QWidget *parent) : QTableView(parent) {
|
||||||
|
|
||||||
|
|||||||
@@ -229,23 +229,23 @@ QColor Battery::getNormalColorEnd() const
|
|||||||
|
|
||||||
QSize Battery::sizeHint() const
|
QSize Battery::sizeHint() const
|
||||||
{
|
{
|
||||||
return QSize(90, 120);
|
return {90, 120};
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize Battery::minimumSizeHint() const
|
QSize Battery::minimumSizeHint() const
|
||||||
{
|
{
|
||||||
return QSize(10, 30);
|
return {10, 30};
|
||||||
}
|
}
|
||||||
|
|
||||||
void Battery::setRange(double minValue, double maxValue)
|
void Battery::setRange(double minVal, double maxVal)
|
||||||
{
|
{
|
||||||
//如果最小值大于或者等于最大值则不设置
|
//如果最小值大于或者等于最大值则不设置
|
||||||
if (minValue >= maxValue) {
|
if (minVal >= maxVal) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->minValue = minValue;
|
this->minValue = minVal;
|
||||||
this->maxValue = maxValue;
|
this->maxValue = maxVal;
|
||||||
|
|
||||||
//如果目标值不在范围值内,则重新设置目标值
|
//如果目标值不在范围值内,则重新设置目标值
|
||||||
//值小于最小值则取最小值,大于最大值则取最大值
|
//值小于最小值则取最小值,大于最大值则取最大值
|
||||||
@@ -259,19 +259,19 @@ void Battery::setRange(double minValue, double maxValue)
|
|||||||
this->update();
|
this->update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Battery::setRange(int minValue, int maxValue)
|
void Battery::setRange(int minVal, int maxVal)
|
||||||
{
|
{
|
||||||
setRange((double)minValue, (double)maxValue);
|
setRange((double)minVal, (double)maxVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Battery::setMinValue(double minValue)
|
void Battery::setMinValue(double minVal)
|
||||||
{
|
{
|
||||||
setRange(minValue, maxValue);
|
setRange(minVal, maxValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Battery::setMaxValue(double maxValue)
|
void Battery::setMaxValue(double maxVal)
|
||||||
{
|
{
|
||||||
setRange(minValue, maxValue);
|
setRange(minValue, maxVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Battery::setValue(double value)
|
void Battery::setValue(double value)
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ ImageSwitch::ButtonStyle ImageSwitch::getButtonStyle() const
|
|||||||
|
|
||||||
QSize ImageSwitch::sizeHint() const
|
QSize ImageSwitch::sizeHint() const
|
||||||
{
|
{
|
||||||
return QSize(100, 50);
|
return {100, 50};
|
||||||
}
|
}
|
||||||
|
|
||||||
QSize ImageSwitch::minimumSizeHint() const
|
QSize ImageSwitch::minimumSizeHint() const
|
||||||
@@ -53,19 +53,19 @@ QSize ImageSwitch::minimumSizeHint() const
|
|||||||
return sizeHint();
|
return sizeHint();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImageSwitch::setChecked(bool isChecked)
|
void ImageSwitch::setChecked(bool value)
|
||||||
{
|
{
|
||||||
if (this->isChecked != isChecked) {
|
if (this->isChecked != value) {
|
||||||
this->isChecked = isChecked;
|
this->isChecked = value;
|
||||||
imgFile = isChecked ? imgOnFile : imgOffFile;
|
imgFile = isChecked ? imgOnFile : imgOffFile;
|
||||||
this->update();
|
this->update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ImageSwitch::setButtonStyle(const ImageSwitch::ButtonStyle& buttonStyle)
|
void ImageSwitch::setButtonStyle(const ImageSwitch::ButtonStyle& style)
|
||||||
{
|
{
|
||||||
if (this->buttonStyle != buttonStyle) {
|
if (this->buttonStyle != style) {
|
||||||
this->buttonStyle = buttonStyle;
|
this->buttonStyle = style;
|
||||||
|
|
||||||
if (buttonStyle == ButtonStyle_1) {
|
if (buttonStyle == ButtonStyle_1) {
|
||||||
imgOffFile = ":/icons/imageswitch/btncheckoff1.png";
|
imgOffFile = ":/icons/imageswitch/btncheckoff1.png";
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <qdebug.h>
|
#include <qdebug.h>
|
||||||
#include "appvals/AppGlobalValues.h"
|
#include "appvals/AppGlobalValues.h"
|
||||||
|
#include "json/ScanJson.h"
|
||||||
#define TRIGGER_EVENT EventCenter::Default()->triggerEvent
|
#define TRIGGER_EVENT EventCenter::Default()->triggerEvent
|
||||||
|
|
||||||
#define THROW_ERROR(errormsg)\
|
#define THROW_ERROR(errormsg)\
|
||||||
@@ -31,7 +32,6 @@ const char* getStatusString(int status)
|
|||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
std::string getJsonFromPatInf(QObject* obj)
|
std::string getJsonFromPatInf(QObject* obj)
|
||||||
{
|
{
|
||||||
return ((QString*)obj)->toStdString();
|
return ((QString*)obj)->toStdString();
|
||||||
@@ -58,10 +58,6 @@ void DeviceManager::initDevice() {
|
|||||||
// empty scan
|
// empty scan
|
||||||
connect(EventCenter::Default(), &EventCenter::RequestEmptyScan, [=](QObject* sender, QObject* detail) {
|
connect(EventCenter::Default(), &EventCenter::RequestEmptyScan, [=](QObject* sender, QObject* detail) {
|
||||||
std::string json = getJsonFromPatInf(detail);
|
std::string json = getJsonFromPatInf(detail);
|
||||||
// qDebug()<<json.c_str();
|
|
||||||
// void * jss = malloc(json.size());
|
|
||||||
// memcpy(jss,json.c_str(),json.size());
|
|
||||||
// processScan((char*)jss,true);
|
|
||||||
processScan(json.c_str(), true);
|
processScan(json.c_str(), true);
|
||||||
});
|
});
|
||||||
// Patient scan
|
// Patient scan
|
||||||
@@ -70,12 +66,13 @@ void DeviceManager::initDevice() {
|
|||||||
qDebug() << json.c_str();
|
qDebug() << json.c_str();
|
||||||
if (!json.empty())
|
if (!json.empty())
|
||||||
{
|
{
|
||||||
// void * jss = malloc(json.size());
|
|
||||||
// memcpy(jss,json.c_str(),json.size());
|
|
||||||
// processScan((char*)jss);
|
|
||||||
processScan(json.c_str());
|
processScan(json.c_str());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
// Continue Scan
|
||||||
|
connect(EventCenter::Default(), &EventCenter::RequestContinueScan, [=](QObject* sender, QObject* detail) {
|
||||||
|
postContinueCommand(true);
|
||||||
|
});
|
||||||
// stop
|
// stop
|
||||||
connect(EventCenter::Default(), &EventCenter::RequestStop, [=]() {
|
connect(EventCenter::Default(), &EventCenter::RequestStop, [=]() {
|
||||||
qDebug() << "GetStatus";
|
qDebug() << "GetStatus";
|
||||||
@@ -93,11 +90,6 @@ void DeviceManager::initDevice() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if (inf.status == BUSY) {
|
|
||||||
// QString msg("Device is busy, Stop operation fail!");
|
|
||||||
// THROW_ERROR(msg);
|
|
||||||
// return;
|
|
||||||
// };
|
|
||||||
AppGlobalValues::setInProcessing(true);
|
AppGlobalValues::setInProcessing(true);
|
||||||
TRIGGER_EVENT(GUIEvents::InvokeOperationStart, nullptr, nullptr);
|
TRIGGER_EVENT(GUIEvents::InvokeOperationStart, nullptr, nullptr);
|
||||||
//ScanControl fail
|
//ScanControl fail
|
||||||
@@ -203,9 +195,6 @@ void DeviceManager::timerEvent(QTimerEvent* event) {
|
|||||||
//error exit, callback error
|
//error exit, callback error
|
||||||
if (errorOccurred)
|
if (errorOccurred)
|
||||||
{
|
{
|
||||||
// qDebug() << "Error occurred, exit progress timer";
|
|
||||||
// QString msg("Error occurred, exit current operation!");
|
|
||||||
// THROW_ERROR(msg);
|
|
||||||
goto exitTimer;
|
goto exitTimer;
|
||||||
}
|
}
|
||||||
// previewing exit
|
// previewing exit
|
||||||
@@ -222,13 +211,36 @@ void DeviceManager::timerEvent(QTimerEvent* event) {
|
|||||||
qDebug() << "Scanning request status, status:" << getStatusString(inf.status);
|
qDebug() << "Scanning request status, status:" << getStatusString(inf.status);
|
||||||
//设备正常扫描中
|
//设备正常扫描中
|
||||||
if (inf.status == SCANNING) {
|
if (inf.status == SCANNING) {
|
||||||
lastStatus = SCANNING;
|
qDebug() << "current output path:" << getScanOutputPath();
|
||||||
//normal scan
|
lastStatus = SCANNING;
|
||||||
QVariant var(inf.progress);
|
|
||||||
qDebug() << "Normal scan, invoke InvokeOperationProgress:" << inf.progress;
|
//normal scan pending
|
||||||
TRIGGER_EVENT(GUIEvents::InvokeOperationProgress, nullptr, (QObject*)&var);
|
int phase = inf.progress/100 + 1;
|
||||||
return;
|
int progress = inf.progress % 100;
|
||||||
}
|
QString extraMsg = (AppGlobalValues::EmptyScanFlag().toBool()||(scanPhase != 3))?"":", patient can leave";
|
||||||
|
QVariant var(QString("Phase %1%3\r\n progress:%2%").arg(scanPhase).arg(progress).arg(extraMsg));
|
||||||
|
TRIGGER_EVENT(GUIEvents::InvokeOperationProgress, nullptr, (QObject *) &var);
|
||||||
|
if (scanPhase != phase) {
|
||||||
|
if (phase > 3 || scanPhase > phase ){
|
||||||
|
QString errorMsg = QString("Error Scan Phase code, current Phase code:%1, new Phase code:%2!").arg(scanPhase,phase);
|
||||||
|
THROW_ERROR(errorMsg)
|
||||||
|
goto exitTimer;
|
||||||
|
}
|
||||||
|
scanPhase = phase;
|
||||||
|
if (scanPhase == 2){
|
||||||
|
if (!AppGlobalValues::EmptyScanFlag().toBool()) {
|
||||||
|
var.setValue(QString("Scan phase 2 waiting for patient!\r\n Click \"Next\" to continue!"));
|
||||||
|
TRIGGER_EVENT(GUIEvents::InvokeOperationPending, nullptr, (QObject *) &var);
|
||||||
|
goto exitTimer;
|
||||||
|
}
|
||||||
|
//empty scan no pending, auto continue
|
||||||
|
else {
|
||||||
|
postContinueCommand();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
//未发生错误并且,之前状态是扫描,代表正常扫描完成
|
//未发生错误并且,之前状态是扫描,代表正常扫描完成
|
||||||
if (lastStatus == SCANNING) {
|
if (lastStatus == SCANNING) {
|
||||||
@@ -243,6 +255,22 @@ void DeviceManager::timerEvent(QTimerEvent* event) {
|
|||||||
QString s("%1 %2");
|
QString s("%1 %2");
|
||||||
s = s.arg(QDateTime::currentDateTime().toString("yyyy/MM/dd HH:mm:ss")).arg("Scan finished");
|
s = s.arg(QDateTime::currentDateTime().toString("yyyy/MM/dd HH:mm:ss")).arg("Scan finished");
|
||||||
TRIGGER_EVENT(GUIEvents::GlobalBannerMessage, nullptr, (QObject*)&s);
|
TRIGGER_EVENT(GUIEvents::GlobalBannerMessage, nullptr, (QObject*)&s);
|
||||||
|
QString outputPath = GetDeviceInfo(DeviceInfo::DEV_OUTPATH);
|
||||||
|
outputPath = outputPath.replace("\\","/");
|
||||||
|
if (outputPath.endsWith('/')) outputPath = outputPath.remove(outputPath.length()-1,1);
|
||||||
|
QStringList list = outputPath.split('/');
|
||||||
|
if (list.length()){
|
||||||
|
if (AppGlobalValues::EmptyScanFlag().toBool()){
|
||||||
|
ScanJson::Current()->setEmptyScanID(list.last().toStdString().c_str());
|
||||||
|
}else{
|
||||||
|
ScanJson::Current()->setScanID(list.last().toStdString().c_str());
|
||||||
|
}
|
||||||
|
ScanJson::Current()->save();
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
QString msg("Scan Output Path error!");
|
||||||
|
THROW_ERROR(msg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//一般不会出现其他情况
|
//一般不会出现其他情况
|
||||||
else {
|
else {
|
||||||
@@ -281,6 +309,7 @@ void DeviceManager::processScan(const char* json, bool empty) {
|
|||||||
AppGlobalValues::setInProcessing(true);
|
AppGlobalValues::setInProcessing(true);
|
||||||
TRIGGER_EVENT(GUIEvents::InvokeOperationStart, nullptr, (QObject*)&msg);
|
TRIGGER_EVENT(GUIEvents::InvokeOperationStart, nullptr, (QObject*)&msg);
|
||||||
qDebug() << "SetScanInfo>>>>>>>>>>>>>>>>>>>>";
|
qDebug() << "SetScanInfo>>>>>>>>>>>>>>>>>>>>";
|
||||||
|
AppGlobalValues::setEmptyScanFlag(empty);
|
||||||
int ret = SetScanInfo(json, empty ? 1 : 0);
|
int ret = SetScanInfo(json, empty ? 1 : 0);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
qDebug() << ">>>>>>>>>>>>>>>>>>>>SetScanInfo failed";
|
qDebug() << ">>>>>>>>>>>>>>>>>>>>SetScanInfo failed";
|
||||||
@@ -290,23 +319,42 @@ void DeviceManager::processScan(const char* json, bool empty) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
qDebug() << ">>>>>>>>>>>>>>>>>>>>SetScanInfo success";
|
qDebug() << ">>>>>>>>>>>>>>>>>>>>SetScanInfo success";
|
||||||
//ScanControl fail
|
|
||||||
qDebug() << "ScanControl start>>>>>>>>>>>>>>>>>>>>>";
|
postScanCommand();
|
||||||
if (!ScanControl(SCAN)) {
|
}
|
||||||
qDebug() << ">>>>>>>>>>>>>>>>>>>>>ScanControl success";
|
|
||||||
//set current state
|
void DeviceManager::postScanCommand() {
|
||||||
lastStatus = SCANNING;
|
qDebug() << "ScanControl start>>>>>>>>>>>>>>>>>>>>>";
|
||||||
previewing = false;
|
if (!ScanControl(SCAN)) {
|
||||||
qDebug() << "Start progress timer";
|
qDebug() << ">>>>>>>>>>>>>>>>>>>>>ScanControl success";
|
||||||
timerID = startTimer(500);
|
//set current state
|
||||||
return;
|
lastStatus = SCANNING;
|
||||||
}
|
previewing = false;
|
||||||
QString errmsg("ScanControl start fail!");
|
scanPhase = 1;
|
||||||
THROW_ERROR(errmsg);
|
qDebug() << "Start progress timer";
|
||||||
qDebug() << ">>>>>>>>>>>>>>>>>>>>>ScanControl failed";
|
timerID = startTimer(500);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//ScanControl fail
|
||||||
|
QString errmsg("ScanControl start fail!");
|
||||||
|
THROW_ERROR(errmsg);
|
||||||
|
qDebug() << ">>>>>>>>>>>>>>>>>>>>>ScanControl failed";
|
||||||
|
}
|
||||||
|
|
||||||
|
void DeviceManager::postContinueCommand(bool useTimer) {
|
||||||
|
if (!ScanControl(SCAN_CONTINUE)) {
|
||||||
|
if (useTimer)timerID = startTimer(500);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//ScanControl fail
|
||||||
|
QString errmsg("ScanControl start fail!");
|
||||||
|
THROW_ERROR(errmsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DeviceManager::close() {
|
void DeviceManager::close() {
|
||||||
|
#ifdef _WIN32
|
||||||
|
StopDevice();
|
||||||
|
#endif
|
||||||
previewDataCaller->terminate();
|
previewDataCaller->terminate();
|
||||||
delete previewDataCaller;
|
delete previewDataCaller;
|
||||||
}
|
}
|
||||||
@@ -314,3 +362,9 @@ void DeviceManager::close() {
|
|||||||
QString DeviceManager::getSoftwareVersion() {
|
QString DeviceManager::getSoftwareVersion() {
|
||||||
return GetDeviceInfo(VERSION);
|
return GetDeviceInfo(VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString DeviceManager::getScanOutputPath() {
|
||||||
|
return GetDeviceInfo(DEV_OUTPATH);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ public:
|
|||||||
errorOccurred = v;
|
errorOccurred = v;
|
||||||
}
|
}
|
||||||
QString getSoftwareVersion();
|
QString getSoftwareVersion();
|
||||||
|
QString getScanOutputPath();
|
||||||
bool getErrorOccurred(){
|
bool getErrorOccurred(){
|
||||||
return errorOccurred;
|
return errorOccurred;
|
||||||
}
|
}
|
||||||
@@ -33,6 +34,9 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
void processScan(const char* json, bool empty = false);
|
void processScan(const char* json, bool empty = false);
|
||||||
|
void postScanCommand();
|
||||||
|
void postContinueCommand(bool useTimer = false);
|
||||||
|
int scanPhase = 1;
|
||||||
int timerID = -1;
|
int timerID = -1;
|
||||||
int deviceInfTimerID = -1;
|
int deviceInfTimerID = -1;
|
||||||
int lastStatus = -1;
|
int lastStatus = -1;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ bool SelectDialog::updateReferenceData() {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SelectDialog::setValues(QStringList dates) {
|
void SelectDialog::setValues(const QStringList& dates) {
|
||||||
box->setItems(dates);
|
box->setItems(dates);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ class SelectDialog :public GUIFormBaseDialog{
|
|||||||
public:
|
public:
|
||||||
explicit SelectDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
explicit SelectDialog(QWidget *parent = nullptr, Qt::WindowFlags f = Qt::WindowFlags());
|
||||||
~SelectDialog() override;
|
~SelectDialog() override;
|
||||||
void setValues(QStringList values);
|
void setValues(const QStringList& values);
|
||||||
QString getSelectedValue();
|
QString getSelectedValue();
|
||||||
void setSelectedValue(const QString& val);
|
void setSelectedValue(const QString& val);
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
#include "guimessagedialog.h"
|
#include "guimessagedialog.h"
|
||||||
#include "ui_guimessagedialog.h"
|
#include "ui_guimessagedialog.h"
|
||||||
#include "event/EventCenter.h"
|
#include "event/EventCenter.h"
|
||||||
|
#include <QToolButton>
|
||||||
|
#include <QHBoxLayout>
|
||||||
GUIMessageDialog::GUIMessageDialog(QWidget *parent) :
|
GUIMessageDialog::GUIMessageDialog(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
ui(new Ui::GUIMessageDialog)
|
ui(new Ui::GUIMessageDialog)
|
||||||
@@ -12,8 +14,21 @@ GUIMessageDialog::GUIMessageDialog(QWidget *parent) :
|
|||||||
this->showFullScreen ();
|
this->showFullScreen ();
|
||||||
ui->lbl_msg->setVisible(false);
|
ui->lbl_msg->setVisible(false);
|
||||||
ui->lbl_progressicon->setVisible(false);
|
ui->lbl_progressicon->setVisible(false);
|
||||||
ui->btn_main->setVisible(false);
|
btn_main = new QToolButton(this);
|
||||||
ui->btn_main->setText("OK");
|
btn_main->setObjectName("btn_main");
|
||||||
|
btn_main->setVisible(false);
|
||||||
|
btn_main->setText("OK");
|
||||||
|
btn_Append = new QToolButton(this);
|
||||||
|
btn_Append->setObjectName("btn_main");
|
||||||
|
btn_Append->setVisible(false);
|
||||||
|
btn_Append->setText("Stop");
|
||||||
|
QWidget* btnContainer = new QWidget(this);
|
||||||
|
QHBoxLayout* hlayout = new QHBoxLayout(btnContainer);
|
||||||
|
hlayout->setMargin(0);
|
||||||
|
hlayout->addWidget(btn_main);
|
||||||
|
hlayout->addWidget(btn_Append);
|
||||||
|
|
||||||
|
ui->widget_2->layout()->addWidget(btnContainer);
|
||||||
this->setWindowOpacity(0.6);
|
this->setWindowOpacity(0.6);
|
||||||
for (int i=1; i<=6;i++)
|
for (int i=1; i<=6;i++)
|
||||||
{
|
{
|
||||||
@@ -51,14 +66,14 @@ void GUIMessageDialog::stopLoading() {
|
|||||||
killTimer(timerID);
|
killTimer(timerID);
|
||||||
timerID=-1;
|
timerID=-1;
|
||||||
}
|
}
|
||||||
disconnect(ui->btn_main,0,0,0);
|
disconnect(btn_main,0,0,0);
|
||||||
ui->lbl_progressicon->setVisible(false);
|
ui->lbl_progressicon->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUIMessageDialog::startLoading() {
|
void GUIMessageDialog::startLoading() {
|
||||||
ui->lbl_progressicon->setVisible(true);
|
ui->lbl_progressicon->setVisible(true);
|
||||||
disconnect(ui->btn_main,0,0,0);
|
disconnect(btn_main,0,0,0);
|
||||||
connect(ui->btn_main,&QToolButton::clicked,[=](){
|
connect(btn_main,&QToolButton::clicked,[=](){
|
||||||
if (timerID != -1){
|
if (timerID != -1){
|
||||||
killTimer(timerID);
|
killTimer(timerID);
|
||||||
timerID = -1;
|
timerID = -1;
|
||||||
@@ -68,9 +83,8 @@ void GUIMessageDialog::startLoading() {
|
|||||||
LOG_USER_OPERATION(Stop);
|
LOG_USER_OPERATION(Stop);
|
||||||
});
|
});
|
||||||
timerID = startTimer(100);
|
timerID = startTimer(100);
|
||||||
ui->btn_main->setText("Stop");
|
btn_main->setText("Stop");
|
||||||
ui->btn_main->setVisible(true);
|
btn_main->setVisible(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUIMessageDialog::showMessage(QString msg) {
|
void GUIMessageDialog::showMessage(QString msg) {
|
||||||
@@ -79,10 +93,10 @@ void GUIMessageDialog::showMessage(QString msg) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GUIMessageDialog::showExitButton() {
|
void GUIMessageDialog::showExitButton() {
|
||||||
ui->btn_main->setText("OK");
|
btn_main->setText("OK");
|
||||||
ui->btn_main->setVisible(true);
|
btn_main->setVisible(true);
|
||||||
disconnect(ui->btn_main,0,0,0);
|
disconnect(btn_main,0,0,0);
|
||||||
connect(ui->btn_main,&QToolButton::clicked,[=](){
|
connect(btn_main,&QToolButton::clicked,[=](){
|
||||||
if (timerID != -1){
|
if (timerID != -1){
|
||||||
killTimer(timerID);
|
killTimer(timerID);
|
||||||
timerID = -1;
|
timerID = -1;
|
||||||
@@ -98,10 +112,27 @@ void GUIMessageDialog::hideMessage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void GUIMessageDialog::hideExitButton() {
|
void GUIMessageDialog::hideExitButton() {
|
||||||
ui->btn_main->setVisible(false);
|
btn_main->setVisible(false);
|
||||||
disconnect(ui->btn_main,0,0,0);
|
disconnect(btn_main,0,0,0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GUIMessageDialog::setOpacity(double opacity) {
|
void GUIMessageDialog::setOpacity(double opacity) {
|
||||||
this->setWindowOpacity(opacity);
|
this->setWindowOpacity(opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void GUIMessageDialog::startPending() {
|
||||||
|
disconnect(btn_Append,0,0,0);
|
||||||
|
connect(btn_Append,&QToolButton::clicked,[=](){
|
||||||
|
EventCenter::Default()->triggerEvent(GUIEvents::RequestContinueScan, nullptr, nullptr);
|
||||||
|
stopPending();
|
||||||
|
});
|
||||||
|
btn_Append->setText("Next");
|
||||||
|
btn_Append->setVisible(true);
|
||||||
|
pending = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIMessageDialog::stopPending() {
|
||||||
|
disconnect(btn_Append,0,0,0);
|
||||||
|
btn_Append->setVisible(false);
|
||||||
|
pending = false;
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
namespace Ui {
|
namespace Ui {
|
||||||
class GUIMessageDialog;
|
class GUIMessageDialog;
|
||||||
}
|
}
|
||||||
|
class QToolButton;
|
||||||
class GUIMessageDialog : public QDialog
|
class GUIMessageDialog : public QDialog
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
@@ -20,14 +20,22 @@ public:
|
|||||||
void hideExitButton();
|
void hideExitButton();
|
||||||
void startLoading();
|
void startLoading();
|
||||||
void stopLoading();
|
void stopLoading();
|
||||||
|
void startPending();
|
||||||
|
void stopPending();
|
||||||
|
bool Pending(){
|
||||||
|
return pending;
|
||||||
|
}
|
||||||
void setOpacity(double);
|
void setOpacity(double);
|
||||||
protected:
|
protected:
|
||||||
void timerEvent(QTimerEvent* event) override ;
|
void timerEvent(QTimerEvent* event) override ;
|
||||||
private:
|
private:
|
||||||
Ui::GUIMessageDialog *ui;
|
Ui::GUIMessageDialog *ui;
|
||||||
QList<QString> frame;
|
QList<QString> frame;
|
||||||
|
QToolButton *btn_main;
|
||||||
|
QToolButton *btn_Append;
|
||||||
int frameIndex=0;
|
int frameIndex=0;
|
||||||
int timerID = -1;
|
int timerID = -1;
|
||||||
|
bool pending = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GUIMESSAGEDIALOG_H
|
#endif // GUIMESSAGEDIALOG_H
|
||||||
|
|||||||
@@ -96,13 +96,6 @@
|
|||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item alignment="Qt::AlignHCenter">
|
|
||||||
<widget class="QToolButton" name="btn_main">
|
|
||||||
<property name="text">
|
|
||||||
<string>...</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ ADD_EVENT_VALUE(PatientSelected)\
|
|||||||
ADD_EVENT_VALUE(RequestPreviewScan)\
|
ADD_EVENT_VALUE(RequestPreviewScan)\
|
||||||
ADD_EVENT_VALUE(RequestEmptyScan)\
|
ADD_EVENT_VALUE(RequestEmptyScan)\
|
||||||
ADD_EVENT_VALUE(RequestPatientScan)\
|
ADD_EVENT_VALUE(RequestPatientScan)\
|
||||||
|
ADD_EVENT_VALUE(RequestContinueScan)\
|
||||||
ADD_EVENT_VALUE(RequestStop)\
|
ADD_EVENT_VALUE(RequestStop)\
|
||||||
ADD_EVENT_VALUE(ResponseDeviceTemperature)\
|
ADD_EVENT_VALUE(ResponseDeviceTemperature)\
|
||||||
ADD_EVENT_VALUE(ResponsePreview)\
|
ADD_EVENT_VALUE(ResponsePreview)\
|
||||||
@@ -23,6 +24,7 @@ ADD_EVENT_VALUE(DeviceErrorRaise)\
|
|||||||
ADD_EVENT_VALUE(ShimLibInnerFault)\
|
ADD_EVENT_VALUE(ShimLibInnerFault)\
|
||||||
ADD_EVENT_VALUE(InvokeOperationStart)\
|
ADD_EVENT_VALUE(InvokeOperationStart)\
|
||||||
ADD_EVENT_VALUE(InvokeOperationProgress)\
|
ADD_EVENT_VALUE(InvokeOperationProgress)\
|
||||||
|
ADD_EVENT_VALUE(InvokeOperationPending)\
|
||||||
ADD_EVENT_VALUE(InvokeOperationEnd)\
|
ADD_EVENT_VALUE(InvokeOperationEnd)\
|
||||||
ADD_EVENT_VALUE(PromptDialogOpen)\
|
ADD_EVENT_VALUE(PromptDialogOpen)\
|
||||||
ADD_EVENT_VALUE(GlobalBannerMessage)\
|
ADD_EVENT_VALUE(GlobalBannerMessage)\
|
||||||
|
|||||||
@@ -2,17 +2,13 @@
|
|||||||
#include "ui_patientinformationform.h"
|
#include "ui_patientinformationform.h"
|
||||||
#include "json/cJSON.h"
|
#include "json/cJSON.h"
|
||||||
#include "event/EventCenter.h"
|
#include "event/EventCenter.h"
|
||||||
|
#include "json/ScanJson.h"
|
||||||
|
|
||||||
PatientInformationForm::PatientInformationForm(QWidget* parent) :
|
PatientInformationForm::PatientInformationForm(QWidget* parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
ui(new Ui::PatientInformationForm)
|
ui(new Ui::PatientInformationForm)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
//ui->lbl_ID->setText(tr(""));
|
|
||||||
//ui->lbl_Date->setText(tr(""));
|
|
||||||
//ui->lbl_Name->setText(tr(""));
|
|
||||||
//ui->lbl_Sex->setText(tr(""));
|
|
||||||
//ui->lbl_Acc->setText(tr(""));
|
|
||||||
|
|
||||||
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
|
connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() {
|
||||||
ui->retranslateUi(this);
|
ui->retranslateUi(this);
|
||||||
@@ -63,6 +59,6 @@ const char* PatientInformationForm::getCurrentPatientJsonString(bool empty) {
|
|||||||
cJSON_AddItemToObject(root, "InstitutionAddress", cJSON_CreateString("HZ"));
|
cJSON_AddItemToObject(root, "InstitutionAddress", cJSON_CreateString("HZ"));
|
||||||
delete jsonstr;
|
delete jsonstr;
|
||||||
jsonstr = cJSON_Print(root);
|
jsonstr = cJSON_Print(root);
|
||||||
cJSON_Delete(root);
|
ScanJson::Current()->store(root);
|
||||||
return jsonstr;
|
return jsonstr;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,13 +11,11 @@
|
|||||||
#include <QUuid>
|
#include <QUuid>
|
||||||
#include <QDate>
|
#include <QDate>
|
||||||
#include "db/SQLHelper.h"
|
#include "db/SQLHelper.h"
|
||||||
#include "editpatientform.h"
|
|
||||||
#include "guimacros.h"
|
#include "guimacros.h"
|
||||||
#include "event/EventCenter.h"
|
#include "event/EventCenter.h"
|
||||||
#include "src/dialogs/AccountFormDialog.h"
|
#include "src/dialogs/AccountFormDialog.h"
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include "log/UserOperationLog.h"
|
#include "log/UserOperationLog.h"
|
||||||
#include <QSortFilterProxyModel>
|
|
||||||
#include "src/components/VerticalTextToolButton.h"
|
#include "src/components/VerticalTextToolButton.h"
|
||||||
#include "dialogs/AlertDialog.h"
|
#include "dialogs/AlertDialog.h"
|
||||||
|
|
||||||
@@ -145,6 +143,10 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
connect(table->horizontalHeader(),&QHeaderView::sectionClicked,[=](int index){
|
connect(table->horizontalHeader(),&QHeaderView::sectionClicked,[=](int index){
|
||||||
edit_patient->clearPatientInformation();
|
edit_patient->clearPatientInformation();
|
||||||
prepareButtons(false);
|
prepareButtons(false);
|
||||||
|
if(model->rowCount()>0){
|
||||||
|
table->selectRow(0);
|
||||||
|
model->selectRow(0);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// btn add slot
|
// btn add slot
|
||||||
@@ -157,9 +159,10 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
if (dialog.exec() == QDialog::Accepted) {
|
if (dialog.exec() == QDialog::Accepted) {
|
||||||
table->selectRow(0);
|
table->selectRow(0);
|
||||||
model->selectRow(0);
|
model->selectRow(0);
|
||||||
|
LOG_USER_OPERATION(AddPatient)
|
||||||
|
btnSelect->setEnabled(true);
|
||||||
}
|
}
|
||||||
LOG_USER_OPERATION(AddPatient);
|
|
||||||
btnSelect->setEnabled(true);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// btn edit slot
|
// btn edit slot
|
||||||
@@ -183,7 +186,7 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
btnSelect->setEnabled(true);
|
btnSelect->setEnabled(true);
|
||||||
});
|
});
|
||||||
|
|
||||||
// btn add slot
|
// EditPatientForm editAccept slot
|
||||||
connect(edit_patient, &EditPatientForm::editAccept, [=](PatientInformation* inf, bool& result) {
|
connect(edit_patient, &EditPatientForm::editAccept, [=](PatientInformation* inf, bool& result) {
|
||||||
int selectedRow = table->currentIndex().row();
|
int selectedRow = table->currentIndex().row();
|
||||||
bool isAdd = inf->PatientUID.isEmpty();
|
bool isAdd = inf->PatientUID.isEmpty();
|
||||||
@@ -208,11 +211,11 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
//TODO:add some error handle logic
|
//TODO:add some error handle logic
|
||||||
}
|
}
|
||||||
if (isAdd) {
|
if (isAdd) {
|
||||||
LOG_USER_OPERATION(AddPatient);
|
LOG_USER_OPERATION(AddPatient)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_USER_OPERATION(ChangePatientInfo);
|
LOG_USER_OPERATION(ChangePatientInfo)
|
||||||
}
|
}
|
||||||
btnSelect->setEnabled(true);
|
btnSelect->setEnabled(true);
|
||||||
});
|
});
|
||||||
@@ -247,7 +250,7 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
table->selectRow(0);
|
table->selectRow(0);
|
||||||
model->selectRow(0);
|
model->selectRow(0);
|
||||||
setPatientDetail(table, model, edit_patient);
|
setPatientDetail(table, model, edit_patient);
|
||||||
LOG_USER_OPERATION(DeletePatient);
|
LOG_USER_OPERATION(DeletePatient)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//TODO:error handle
|
//TODO:error handle
|
||||||
@@ -265,7 +268,7 @@ SelectFormWidget::SelectFormWidget(QWidget* parent) :
|
|||||||
|
|
||||||
EventCenter::Default()->triggerEvent(GUIEvents::PatientSelected, nullptr, edit_patient->getPatientInformation()->Copy());
|
EventCenter::Default()->triggerEvent(GUIEvents::PatientSelected, nullptr, edit_patient->getPatientInformation()->Copy());
|
||||||
selectedPatientUID = edit_patient->getPatientInformation()->PatientUID;
|
selectedPatientUID = edit_patient->getPatientInformation()->PatientUID;
|
||||||
LOG_USER_OPERATION(SelectPatient);
|
LOG_USER_OPERATION(SelectPatient)
|
||||||
});
|
});
|
||||||
|
|
||||||
// btn account slot
|
// btn account slot
|
||||||
|
|||||||
@@ -7,13 +7,9 @@
|
|||||||
#include <QStackedWidget>
|
#include <QStackedWidget>
|
||||||
#include <QStringListModel>
|
#include <QStringListModel>
|
||||||
#include <QListWidget>
|
#include <QListWidget>
|
||||||
#include "src/forms/tabformwidget.h"
|
|
||||||
#include <QListWidgetItem>
|
|
||||||
#include "ui_tabformwidget.h"
|
#include "ui_tabformwidget.h"
|
||||||
#include <QLabel>
|
|
||||||
#include "UserOperationLogForm.h"
|
#include "UserOperationLogForm.h"
|
||||||
#include "generalform.h"
|
#include "generalform.h"
|
||||||
#include <QPushButton>
|
|
||||||
#include "systemsettingform.h"
|
#include "systemsettingform.h"
|
||||||
#include "AccountTableForm.h"
|
#include "AccountTableForm.h"
|
||||||
#include "event/EventCenter.h"
|
#include "event/EventCenter.h"
|
||||||
@@ -57,20 +53,6 @@ AdminSettingForm::AdminSettingForm(QWidget* parent, Qt::WindowFlags f) : TabForm
|
|||||||
systemSettingForm* systemSetting = new systemSettingForm(this);
|
systemSettingForm* systemSetting = new systemSettingForm(this);
|
||||||
stackedWidget->addWidget(systemSetting);
|
stackedWidget->addWidget(systemSetting);
|
||||||
|
|
||||||
//QLabel* systemSetting = new QLabel(this);
|
|
||||||
//systemSetting->setText("systemSetting");
|
|
||||||
//stackedWidget->addWidget(systemSetting);
|
|
||||||
|
|
||||||
//QLabel* Info = new QLabel(this);
|
|
||||||
//Info->setText("info");
|
|
||||||
//stackedWidget->addWidget(Info);
|
|
||||||
|
|
||||||
//UserOperationLogForm* operationLogForm = new UserOperationLogForm(this);
|
|
||||||
//stackedWidget->addWidget(operationLogForm);
|
|
||||||
|
|
||||||
//QLabel* about = new QLabel(this);
|
|
||||||
//about->setText(tr("About"));
|
|
||||||
|
|
||||||
AboutWidget* about = new AboutWidget(this);
|
AboutWidget* about = new AboutWidget(this);
|
||||||
stackedWidget->addWidget(about);
|
stackedWidget->addWidget(about);
|
||||||
|
|
||||||
|
|||||||
@@ -77,7 +77,8 @@ void AboutWidget::initUi()
|
|||||||
pMainLayout->addWidget(pGuiVer);
|
pMainLayout->addWidget(pGuiVer);
|
||||||
|
|
||||||
pEmbededSoftVer = new QLabel(this);
|
pEmbededSoftVer = new QLabel(this);
|
||||||
pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
|
// pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
|
||||||
|
pEmbededSoftVer->setText(tr("Embedded Software %1, Data store Path:%2").arg(getEmbVersion(), getDataStorePath()));
|
||||||
pEmbededSoftVer->setContentsMargins(subContentMargin, 0, 0, 0);
|
pEmbededSoftVer->setContentsMargins(subContentMargin, 0, 0, 0);
|
||||||
pMainLayout->addWidget(pEmbededSoftVer);
|
pMainLayout->addWidget(pEmbededSoftVer);
|
||||||
|
|
||||||
@@ -157,7 +158,8 @@ void AboutWidget::initUi()
|
|||||||
pBtnHelp->setText(tr("?"));
|
pBtnHelp->setText(tr("?"));
|
||||||
pCompanyCopyRight->setText(tr("Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed"));
|
pCompanyCopyRight->setText(tr("Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed"));
|
||||||
pGuiVer->setText(QString(tr("GUI Software V%1")).arg(getGUIVersion()));
|
pGuiVer->setText(QString(tr("GUI Software V%1")).arg(getGUIVersion()));
|
||||||
pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
|
// pEmbededSoftVer->setText(tr("Embedded Software %1").arg(getEmbVersion()));
|
||||||
|
pEmbededSoftVer->setText(tr("Embedded Software %1, Data store Path:%2").arg(getEmbVersion(), getDataStorePath()));
|
||||||
pReconSotfVer->setText(tr("Reconstruction Software V1.2"));
|
pReconSotfVer->setText(tr("Reconstruction Software V1.2"));
|
||||||
pFEBVer->setText(tr("FEB Information"));
|
pFEBVer->setText(tr("FEB Information"));
|
||||||
});
|
});
|
||||||
@@ -191,3 +193,7 @@ QString AboutWidget::getGUIVersion() {
|
|||||||
QString AboutWidget::getEmbVersion() {
|
QString AboutWidget::getEmbVersion() {
|
||||||
return DeviceManager::Default()->getSoftwareVersion();
|
return DeviceManager::Default()->getSoftwareVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString AboutWidget::getDataStorePath() {
|
||||||
|
return DeviceManager::Default()->getScanOutputPath();;
|
||||||
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ public:
|
|||||||
|
|
||||||
QString getGUIVersion();
|
QString getGUIVersion();
|
||||||
QString getEmbVersion();
|
QString getEmbVersion();
|
||||||
|
QString getDataStorePath();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void openHelpFile();
|
void openHelpFile();
|
||||||
|
|||||||
@@ -71,16 +71,16 @@ GeneralForm::GeneralForm(QWidget* parent) : QWidget(parent)
|
|||||||
lockTime->setText(JsonObject::Instance()->lockScreenTimeout());
|
lockTime->setText(JsonObject::Instance()->lockScreenTimeout());
|
||||||
|
|
||||||
//connection
|
//connection
|
||||||
connect(instName, &QLineEdit::textChanged, [=](QString str)
|
connect(instName, &QLineEdit::textChanged, [=](const QString& str)
|
||||||
{
|
{
|
||||||
JsonObject::Instance()->setInstitutionName(str);
|
JsonObject::Instance()->setInstitutionName(str);
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(instAddr, &QLineEdit::textChanged, [=](QString str)
|
connect(instAddr, &QLineEdit::textChanged, [=](const QString& str)
|
||||||
{
|
{
|
||||||
JsonObject::Instance()->setInstitutionAddr(str);
|
JsonObject::Instance()->setInstitutionAddr(str);
|
||||||
});
|
});
|
||||||
connect(lockTime, &QLineEdit::textChanged, [=](QString str)
|
connect(lockTime, &QLineEdit::textChanged, [=](const QString& str)
|
||||||
{
|
{
|
||||||
//take effect
|
//take effect
|
||||||
JsonObject::Instance()->setLockScreenTimeout(str);
|
JsonObject::Instance()->setLockScreenTimeout(str);
|
||||||
|
|||||||
@@ -2,16 +2,11 @@
|
|||||||
#include "ui_systemsettingform.h"
|
#include "ui_systemsettingform.h"
|
||||||
|
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QVBoxLayout>
|
|
||||||
#include <QHBoxLayout>
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QLabel>
|
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
#include <QEvent>
|
|
||||||
#include <QToolButton>
|
#include <QToolButton>
|
||||||
|
|
||||||
#include "src/dialogs/SelectDialog.h"
|
#include "src/dialogs/SelectDialog.h"
|
||||||
#include "components/imageswitch.h"
|
|
||||||
#include "network/networkcfgdialog.h"
|
#include "network/networkcfgdialog.h"
|
||||||
#include "network/dicomcfgdialog.h"
|
#include "network/dicomcfgdialog.h"
|
||||||
#include "network/getadminpsw.h"
|
#include "network/getadminpsw.h"
|
||||||
@@ -20,7 +15,6 @@
|
|||||||
#include "event/EventCenter.h"
|
#include "event/EventCenter.h"
|
||||||
#include "device/DeviceManager.h"
|
#include "device/DeviceManager.h"
|
||||||
#include "json/cmdhelper.h"
|
#include "json/cmdhelper.h"
|
||||||
#include "appvals/AppGlobalValues.h"
|
|
||||||
|
|
||||||
systemSettingForm::systemSettingForm(QWidget* parent) :
|
systemSettingForm::systemSettingForm(QWidget* parent) :
|
||||||
QWidget(parent),
|
QWidget(parent),
|
||||||
|
|||||||
20
src/json/ScanJson.cpp
Normal file
20
src/json/ScanJson.cpp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
//
|
||||||
|
// Created by Krad on 2022/5/11.
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "ScanJson.h"
|
||||||
|
#include <QFile>
|
||||||
|
#include <QDir>
|
||||||
|
#include <QCoreApplication>
|
||||||
|
void ScanJson::save() {
|
||||||
|
if (!root) return;
|
||||||
|
QFile f(QString("%1/%2.json").arg(QCoreApplication::applicationDirPath(),scanID.c_str()));
|
||||||
|
f.open(QFileDevice::ReadWrite);
|
||||||
|
cJSON_AddItemToObject(root, "EmptyScanID", cJSON_CreateString(emptyScanID.c_str()));
|
||||||
|
cJSON_AddItemToObject(root, "ScanID", cJSON_CreateString(scanID.c_str()));
|
||||||
|
char* content = cJSON_Print(root);
|
||||||
|
f.write(content);
|
||||||
|
f.flush();
|
||||||
|
f.close();
|
||||||
|
free(content);
|
||||||
|
}
|
||||||
44
src/json/ScanJson.h
Normal file
44
src/json/ScanJson.h
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
//
|
||||||
|
// Created by Krad on 2022/5/11.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef GUI_SCANJSON_H
|
||||||
|
#define GUI_SCANJSON_H
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
#include "cJSON.h"
|
||||||
|
|
||||||
|
class ScanJson {
|
||||||
|
public:
|
||||||
|
~ScanJson(){
|
||||||
|
if(root)cJSON_Delete(root);
|
||||||
|
}
|
||||||
|
void store(cJSON* json){
|
||||||
|
if(root){
|
||||||
|
cJSON_Delete(root);
|
||||||
|
root = nullptr;
|
||||||
|
}
|
||||||
|
root = json;
|
||||||
|
}
|
||||||
|
void setScanID(const char * id){
|
||||||
|
scanID.clear();
|
||||||
|
scanID.append(id);
|
||||||
|
}
|
||||||
|
void setEmptyScanID(const char * id){
|
||||||
|
emptyScanID.clear();
|
||||||
|
emptyScanID.append(id);
|
||||||
|
setScanID(id);
|
||||||
|
}
|
||||||
|
void save();
|
||||||
|
static ScanJson* Current(){
|
||||||
|
static ScanJson instance;
|
||||||
|
return &instance;
|
||||||
|
}
|
||||||
|
private:
|
||||||
|
std::string emptyScanID;
|
||||||
|
std::string scanID;
|
||||||
|
cJSON* root = nullptr;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif //GUI_SCANJSON_H
|
||||||
@@ -48,7 +48,7 @@ bool User::submitChange() {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool User::QueryUser(QString userID, QString Pwd) {
|
bool User::QueryUser(const QString& userID, const QString& Pwd) {
|
||||||
|
|
||||||
QString sql = QString("select * from Account where UserCode=:userID and Password=:pwd");
|
QString sql = QString("select * from Account where UserCode=:userID and Password=:pwd");
|
||||||
QMap<QString,QVariant> map;
|
QMap<QString,QVariant> map;
|
||||||
@@ -82,7 +82,7 @@ bool User::QueryUser(QString userID, QString Pwd) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool User::existsUser(QString userCode) {
|
bool User::existsUser(const QString& userCode) {
|
||||||
QString sql = QString("select * from Account where UserCode=:userID");
|
QString sql = QString("select * from Account where UserCode=:userID");
|
||||||
QMap<QString,QVariant> map;
|
QMap<QString,QVariant> map;
|
||||||
QMap<QString,QVariant> params;
|
QMap<QString,QVariant> params;
|
||||||
@@ -91,7 +91,7 @@ bool User::existsUser(QString userCode) {
|
|||||||
return !map.isEmpty();
|
return !map.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool User::getUser(QString userUID, User& user) {
|
bool User::getUser(const QString& userUID, User& user) {
|
||||||
QString sql = QString("select * from Account where UserID=:userUID");
|
QString sql = QString("select * from Account where UserID=:userUID");
|
||||||
QMap<QString,QVariant> map;
|
QMap<QString,QVariant> map;
|
||||||
QMap<QString,QVariant> params;
|
QMap<QString,QVariant> params;
|
||||||
@@ -113,7 +113,7 @@ bool User::getUser(QString userUID, User& user) {
|
|||||||
static bool LOAD_ALL_ROLE = false;
|
static bool LOAD_ALL_ROLE = false;
|
||||||
static QMap<QString,QString> roleCache;
|
static QMap<QString,QString> roleCache;
|
||||||
|
|
||||||
QString User::getRoleName(QString RoleID) {
|
QString User::getRoleName(const QString& RoleID) {
|
||||||
if (roleCache.contains(RoleID)) return roleCache[RoleID];
|
if (roleCache.contains(RoleID)) return roleCache[RoleID];
|
||||||
QString sql = QString("select RoleName from Role where RoleID=:RoleID");
|
QString sql = QString("select RoleName from Role where RoleID=:RoleID");
|
||||||
QMap<QString,QVariant> map;
|
QMap<QString,QVariant> map;
|
||||||
@@ -124,7 +124,7 @@ QString User::getRoleName(QString RoleID) {
|
|||||||
return map["RoleName"].toString();
|
return map["RoleName"].toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString User::getRoleID(QString RoleName) {
|
QString User::getRoleID(const QString& RoleName) {
|
||||||
if (roleCache.values().contains(RoleName)) {
|
if (roleCache.values().contains(RoleName)) {
|
||||||
int index = roleCache.values().indexOf(RoleName);
|
int index = roleCache.values().indexOf(RoleName);
|
||||||
return roleCache.keys()[index];
|
return roleCache.keys()[index];
|
||||||
@@ -155,7 +155,7 @@ QStringList User::getAllRoleName() {
|
|||||||
return roleCache.values();
|
return roleCache.values();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool User::insertUser(QString UserCode, User &user) {
|
bool User::insertUser(const QString& UserCode, User &user) {
|
||||||
user.m_UserID = QUuid::createUuid().toString();
|
user.m_UserID = QUuid::createUuid().toString();
|
||||||
user.m_UserCode = UserCode;
|
user.m_UserCode = UserCode;
|
||||||
static QString updateSQL = "insert into Account (%1) values (%2)";
|
static QString updateSQL = "insert into Account (%1) values (%2)";
|
||||||
|
|||||||
@@ -20,8 +20,8 @@ USER_PROPERTY(Comment)
|
|||||||
class User:public QObject {
|
class User:public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
static bool QueryUser(QString userID, QString Pwd);
|
static bool QueryUser(const QString& userID, const QString& Pwd);
|
||||||
static bool existsUser(QString userCode);
|
static bool existsUser(const QString& userCode);
|
||||||
static QString getEncryptedPassword(const QString& password)
|
static QString getEncryptedPassword(const QString& password)
|
||||||
{
|
{
|
||||||
QByteArray bytePwd = password.toLatin1();
|
QByteArray bytePwd = password.toLatin1();
|
||||||
@@ -31,8 +31,8 @@ public:
|
|||||||
static User* Current(){
|
static User* Current(){
|
||||||
return currentUser;
|
return currentUser;
|
||||||
}
|
}
|
||||||
static bool getUser(QString userUID,User& user);
|
static bool getUser(const QString& userUID,User& user);
|
||||||
static bool insertUser(QString UserCode,User& user);
|
static bool insertUser(const QString& UserCode,User& user);
|
||||||
explicit User(QObject *parent=nullptr);
|
explicit User(QObject *parent=nullptr);
|
||||||
~User();
|
~User();
|
||||||
QString getIndexName(){
|
QString getIndexName(){
|
||||||
@@ -65,8 +65,8 @@ public:
|
|||||||
bool isAdmin();
|
bool isAdmin();
|
||||||
bool isEngineer();
|
bool isEngineer();
|
||||||
bool resetPassword();
|
bool resetPassword();
|
||||||
static QString getRoleName(QString RoleID);
|
static QString getRoleName(const QString& RoleID);
|
||||||
static QString getRoleID(QString RoleName);
|
static QString getRoleID(const QString& RoleName);
|
||||||
static QStringList getAllRoleName();
|
static QStringList getAllRoleName();
|
||||||
private:
|
private:
|
||||||
static User* currentUser;
|
static User* currentUser;
|
||||||
|
|||||||
@@ -6,8 +6,10 @@
|
|||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QtWidgets/QLineEdit>
|
#include <QtWidgets/QLineEdit>
|
||||||
#include "getadminpsw.h"
|
#include "getadminpsw.h"
|
||||||
#include "device/networkmanager.h"
|
|
||||||
#include "device/networkmanager.h"
|
#ifndef WIN32
|
||||||
|
#include <src/device/networkmanager.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
GetAdminPsw::GetAdminPsw(QWidget* parent, Qt::WindowFlags f) : GUIFormBaseDialog(parent, f) {
|
GetAdminPsw::GetAdminPsw(QWidget* parent, Qt::WindowFlags f) : GUIFormBaseDialog(parent, f) {
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -15,6 +15,10 @@
|
|||||||
<source>Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed</source>
|
<source>Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>GUI Software V1.3</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Embedded Software V1.5</source>
|
<source>Embedded Software V1.5</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
@@ -51,10 +55,6 @@
|
|||||||
<source>Loading...</source>
|
<source>Loading...</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>GUI Software V%1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>AccountFormDialog</name>
|
<name>AccountFormDialog</name>
|
||||||
@@ -587,10 +587,6 @@ parameters
|
|||||||
<source>Comment</source>
|
<source>Comment</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<source>Delete Patient "%1" ?</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>TabFormWidget</name>
|
<name>TabFormWidget</name>
|
||||||
|
|||||||
@@ -4,74 +4,74 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>AboutWidget</name>
|
<name>AboutWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="57"/>
|
<location filename="../aboutwidget.cpp" line="56"/>
|
||||||
<location filename="../aboutwidget.cpp" line="155"/>
|
<location filename="../aboutwidget.cpp" line="154"/>
|
||||||
<source>HJ-USCT-01 V1.0</source>
|
<source>HJ-USCT-01 V1.0</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="61"/>
|
<location filename="../aboutwidget.cpp" line="60"/>
|
||||||
<location filename="../aboutwidget.cpp" line="156"/>
|
<location filename="../aboutwidget.cpp" line="155"/>
|
||||||
<source>?</source>
|
<source>?</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="133"/>
|
<location filename="../aboutwidget.cpp" line="132"/>
|
||||||
<source>cJSON</source>
|
<source>cJSON</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="157"/>
|
<location filename="../aboutwidget.cpp" line="156"/>
|
||||||
<source>Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed</source>
|
<source>Copyright © 2017-2020 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="67"/>
|
<location filename="../aboutwidget.cpp" line="73"/>
|
||||||
|
<location filename="../aboutwidget.cpp" line="157"/>
|
||||||
|
<source>GUI Software V1.3</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../aboutwidget.cpp" line="66"/>
|
||||||
<source>Copyright © 2017-2022 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed</source>
|
<source>Copyright © 2017-2022 Zhejiang Equilibrium Nine Medical Equipment Co., Ltd. All Rights Reversed</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="74"/>
|
<location filename="../aboutwidget.cpp" line="78"/>
|
||||||
<location filename="../aboutwidget.cpp" line="158"/>
|
<location filename="../aboutwidget.cpp" line="158"/>
|
||||||
<source>GUI Software V%1</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
<message>
|
|
||||||
<location filename="../aboutwidget.cpp" line="79"/>
|
|
||||||
<location filename="../aboutwidget.cpp" line="159"/>
|
|
||||||
<source>Embedded Software V1.5</source>
|
<source>Embedded Software V1.5</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="84"/>
|
<location filename="../aboutwidget.cpp" line="83"/>
|
||||||
<location filename="../aboutwidget.cpp" line="160"/>
|
<location filename="../aboutwidget.cpp" line="159"/>
|
||||||
<source>Reconstruction Software V1.2</source>
|
<source>Reconstruction Software V1.2</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="90"/>
|
<location filename="../aboutwidget.cpp" line="89"/>
|
||||||
<location filename="../aboutwidget.cpp" line="161"/>
|
<location filename="../aboutwidget.cpp" line="160"/>
|
||||||
<source>FEB Information</source>
|
<source>FEB Information</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="96"/>
|
<location filename="../aboutwidget.cpp" line="95"/>
|
||||||
<source>Qt 5.12.0</source>
|
<source>Qt 5.12.0</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="117"/>
|
<location filename="../aboutwidget.cpp" line="116"/>
|
||||||
<location filename="../aboutwidget.cpp" line="122"/>
|
<location filename="../aboutwidget.cpp" line="121"/>
|
||||||
<source>Loading...</source>
|
<source>Loading...</source>
|
||||||
<translation>正在加载</translation>
|
<translation>正在加载</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="126"/>
|
<location filename="../aboutwidget.cpp" line="125"/>
|
||||||
<source>Copyright (c) 1994-2021, OFFIS e.V.</source>
|
<source>Copyright (c) 1994-2021, OFFIS e.V.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../aboutwidget.cpp" line="137"/>
|
<location filename="../aboutwidget.cpp" line="136"/>
|
||||||
<source>Copyright (c) 2009-2017 Dave Gamble</source>
|
<source>Copyright (c) 2009-2017 Dave Gamble</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -145,18 +145,18 @@
|
|||||||
<translation type="vanished">医生</translation>
|
<translation type="vanished">医生</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="146"/>
|
<location filename="../AccountFormDialog.cpp" line="143"/>
|
||||||
<source>Reset password to "123456" ?</source>
|
<source>Reset password to "123456" ?</source>
|
||||||
<translation>密码重置为"123456"?</translation>
|
<translation>密码重置为"123456"?</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="151"/>
|
<location filename="../AccountFormDialog.cpp" line="148"/>
|
||||||
<source>Inner error, can't find reference user!</source>
|
<source>Inner error, can't find reference user!</source>
|
||||||
<translation>内部错误!</translation>
|
<translation>内部错误!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="156"/>
|
<location filename="../AccountFormDialog.cpp" line="153"/>
|
||||||
<location filename="../AccountFormDialog.cpp" line="194"/>
|
<location filename="../AccountFormDialog.cpp" line="191"/>
|
||||||
<source>Submit change to database fail!</source>
|
<source>Submit change to database fail!</source>
|
||||||
<translation>修改提交至数据库失败!</translation>
|
<translation>修改提交至数据库失败!</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -166,34 +166,34 @@
|
|||||||
<translation>备注</translation>
|
<translation>备注</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="182"/>
|
<location filename="../AccountFormDialog.cpp" line="179"/>
|
||||||
<location filename="../AccountFormDialog.cpp" line="204"/>
|
<location filename="../AccountFormDialog.cpp" line="201"/>
|
||||||
<location filename="../AccountFormDialog.cpp" line="225"/>
|
<location filename="../AccountFormDialog.cpp" line="222"/>
|
||||||
<source>User Name can't be empty!</source>
|
<source>User Name can't be empty!</source>
|
||||||
<translation>用户名不能为空!</translation>
|
<translation>用户名不能为空!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="221"/>
|
<location filename="../AccountFormDialog.cpp" line="218"/>
|
||||||
<source>User ID can't be empty!</source>
|
<source>User ID can't be empty!</source>
|
||||||
<translation>用户ID不能为空!</translation>
|
<translation>用户ID不能为空!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="229"/>
|
<location filename="../AccountFormDialog.cpp" line="226"/>
|
||||||
<source>Password can't be empty!</source>
|
<source>Password can't be empty!</source>
|
||||||
<translation>密码不能为空!</translation>
|
<translation>密码不能为空!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="233"/>
|
<location filename="../AccountFormDialog.cpp" line="230"/>
|
||||||
<source>Inner error ,unset data model!</source>
|
<source>Inner error ,unset data model!</source>
|
||||||
<translation>内部错误!</translation>
|
<translation>内部错误!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="237"/>
|
<location filename="../AccountFormDialog.cpp" line="234"/>
|
||||||
<source>User Id exists!</source>
|
<source>User Id exists!</source>
|
||||||
<translation>用户ID已存在!</translation>
|
<translation>用户ID已存在!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountFormDialog.cpp" line="273"/>
|
<location filename="../AccountFormDialog.cpp" line="270"/>
|
||||||
<source>Submit to data base fail!</source>
|
<source>Submit to data base fail!</source>
|
||||||
<translation>提交至数据库失败!</translation>
|
<translation>提交至数据库失败!</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -207,47 +207,47 @@
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="37"/>
|
<location filename="../AccountTableForm.cpp" line="37"/>
|
||||||
<location filename="../AccountTableForm.cpp" line="129"/>
|
<location filename="../AccountTableForm.cpp" line="128"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation>姓名</translation>
|
<translation>姓名</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="38"/>
|
<location filename="../AccountTableForm.cpp" line="38"/>
|
||||||
<location filename="../AccountTableForm.cpp" line="130"/>
|
<location filename="../AccountTableForm.cpp" line="129"/>
|
||||||
<source>Role</source>
|
<source>Role</source>
|
||||||
<translation>角色</translation>
|
<translation>角色</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="39"/>
|
<location filename="../AccountTableForm.cpp" line="39"/>
|
||||||
<location filename="../AccountTableForm.cpp" line="131"/>
|
<location filename="../AccountTableForm.cpp" line="130"/>
|
||||||
<source>Comment</source>
|
<source>Comment</source>
|
||||||
<translation>备注</translation>
|
<translation>备注</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="64"/>
|
<location filename="../AccountTableForm.cpp" line="63"/>
|
||||||
<location filename="../AccountTableForm.cpp" line="133"/>
|
<location filename="../AccountTableForm.cpp" line="132"/>
|
||||||
<source>Add</source>
|
<source>Add</source>
|
||||||
<translation>新增</translation>
|
<translation>新增</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="65"/>
|
<location filename="../AccountTableForm.cpp" line="64"/>
|
||||||
<location filename="../AccountTableForm.cpp" line="134"/>
|
<location filename="../AccountTableForm.cpp" line="133"/>
|
||||||
<source>Edit</source>
|
<source>Edit</source>
|
||||||
<translation>编辑</translation>
|
<translation>编辑</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="66"/>
|
<location filename="../AccountTableForm.cpp" line="65"/>
|
||||||
<location filename="../AccountTableForm.cpp" line="135"/>
|
<location filename="../AccountTableForm.cpp" line="134"/>
|
||||||
<source>Delete</source>
|
<source>Delete</source>
|
||||||
<translation>删除</translation>
|
<translation>删除</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="112"/>
|
<location filename="../AccountTableForm.cpp" line="111"/>
|
||||||
<source>Can't delete current log in account!</source>
|
<source>Can't delete current log in account!</source>
|
||||||
<translation>当前用户无法删除日志!</translation>
|
<translation>当前用户无法删除日志!</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AccountTableForm.cpp" line="119"/>
|
<location filename="../AccountTableForm.cpp" line="118"/>
|
||||||
<source>Delete account with ID:"%1"!</source>
|
<source>Delete account with ID:"%1"!</source>
|
||||||
<translation>删除账户ID:"%1"!</translation>
|
<translation>删除账户ID:"%1"!</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -255,20 +255,20 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>AdminSettingForm</name>
|
<name>AdminSettingForm</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AdminSettingForm.cpp" line="33"/>
|
<location filename="../AdminSettingForm.cpp" line="32"/>
|
||||||
<location filename="../AdminSettingForm.cpp" line="84"/>
|
<location filename="../AdminSettingForm.cpp" line="82"/>
|
||||||
<source>General</source>
|
<source>General</source>
|
||||||
<translation>通用</translation>
|
<translation>通用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AdminSettingForm.cpp" line="33"/>
|
<location filename="../AdminSettingForm.cpp" line="32"/>
|
||||||
<location filename="../AdminSettingForm.cpp" line="84"/>
|
<location filename="../AdminSettingForm.cpp" line="82"/>
|
||||||
<source>Account</source>
|
<source>Account</source>
|
||||||
<translation>用户</translation>
|
<translation>用户</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AdminSettingForm.cpp" line="33"/>
|
<location filename="../AdminSettingForm.cpp" line="32"/>
|
||||||
<location filename="../AdminSettingForm.cpp" line="84"/>
|
<location filename="../AdminSettingForm.cpp" line="82"/>
|
||||||
<source>System</source>
|
<source>System</source>
|
||||||
<translation>系统</translation>
|
<translation>系统</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -297,8 +297,8 @@
|
|||||||
<translation type="vanished">操作日志</translation>
|
<translation type="vanished">操作日志</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../AdminSettingForm.cpp" line="33"/>
|
<location filename="../AdminSettingForm.cpp" line="32"/>
|
||||||
<location filename="../AdminSettingForm.cpp" line="84"/>
|
<location filename="../AdminSettingForm.cpp" line="82"/>
|
||||||
<source>About</source>
|
<source>About</source>
|
||||||
<translation>关于</translation>
|
<translation>关于</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -362,37 +362,37 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>EditPatientForm</name>
|
<name>EditPatientForm</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_editpatientform.h" line="142"/>
|
<location filename="../../out/build/x64-Debug/ui_editpatientform.h" line="142"/>
|
||||||
<source>Form</source>
|
<source>Form</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_editpatientform.h" line="143"/>
|
<location filename="../../out/build/x64-Debug/ui_editpatientform.h" line="143"/>
|
||||||
<source>...</source>
|
<source>...</source>
|
||||||
<translation type="unfinished">DICOM</translation>
|
<translation type="unfinished">DICOM</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_editpatientform.h" line="144"/>
|
<location filename="../../out/build/x64-Debug/ui_editpatientform.h" line="144"/>
|
||||||
<source>ID</source>
|
<source>ID</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_editpatientform.h" line="145"/>
|
<location filename="../../out/build/x64-Debug/ui_editpatientform.h" line="145"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation>姓名</translation>
|
<translation>姓名</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_editpatientform.h" line="147"/>
|
<location filename="../../out/build/x64-Debug/ui_editpatientform.h" line="147"/>
|
||||||
<source>Date Of Birth</source>
|
<source>Date Of Birth</source>
|
||||||
<translation>出生日期</translation>
|
<translation>出生日期</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_editpatientform.h" line="148"/>
|
<location filename="../../out/build/x64-Debug/ui_editpatientform.h" line="148"/>
|
||||||
<source>Comment</source>
|
<source>Comment</source>
|
||||||
<translation>备注</translation>
|
<translation>备注</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_editpatientform.h" line="146"/>
|
<location filename="../../out/build/x64-Debug/ui_editpatientform.h" line="146"/>
|
||||||
<source>Gender</source>
|
<source>Gender</source>
|
||||||
<translation>性别</translation>
|
<translation>性别</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -442,12 +442,12 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>GUIMessageDialog</name>
|
<name>GUIMessageDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_guimessagedialog.h" line="106"/>
|
<location filename="../../out/build/x64-Debug/ui_guimessagedialog.h" line="106"/>
|
||||||
<source>Dialog</source>
|
<source>Dialog</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_guimessagedialog.h" line="109"/>
|
<location filename="../../out/build/x64-Debug/ui_guimessagedialog.h" line="109"/>
|
||||||
<source>...</source>
|
<source>...</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -555,7 +555,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>InputObject</name>
|
<name>InputObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_inputobject.h" line="113"/>
|
<location filename="../../out/build/x64-Debug/ui_inputobject.h" line="113"/>
|
||||||
<source>Form</source>
|
<source>Form</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -590,7 +590,7 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_mainwindow.h" line="40"/>
|
<location filename="../../out/build/x64-Debug/ui_mainwindow.h" line="40"/>
|
||||||
<source>MainWindow</source>
|
<source>MainWindow</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -626,47 +626,47 @@
|
|||||||
<context>
|
<context>
|
||||||
<name>PatientInformationForm</name>
|
<name>PatientInformationForm</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="118"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="118"/>
|
||||||
<source>Form</source>
|
<source>Form</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="119"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="119"/>
|
||||||
<source>Patient Information</source>
|
<source>Patient Information</source>
|
||||||
<translation>患者信息</translation>
|
<translation>患者信息</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="120"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="120"/>
|
||||||
<source><html><head/><body><p>PatientID:</p></body></html></source>
|
<source><html><head/><body><p>PatientID:</p></body></html></source>
|
||||||
<translation><html><head/><body><p>患者ID:</p></body></html></translation>
|
<translation><html><head/><body><p>患者ID:</p></body></html></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="121"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="121"/>
|
||||||
<source>Someone Somebody</source>
|
<source>Someone Somebody</source>
|
||||||
<translation>XXX</translation>
|
<translation>XXX</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="122"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="122"/>
|
||||||
<source>2021/11/11</source>
|
<source>2021/11/11</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="123"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="123"/>
|
||||||
<source>Female</source>
|
<source>Female</source>
|
||||||
<translation>女</translation>
|
<translation>女</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="124"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="124"/>
|
||||||
<source>Acc# 27812398</source>
|
<source>Acc# 27812398</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="127"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="127"/>
|
||||||
<source>Current Protocol</source>
|
<source>Current Protocol</source>
|
||||||
<translation>当前协议</translation>
|
<translation>当前协议</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_patientinformationform.h" line="128"/>
|
<location filename="../../out/build/x64-Debug/ui_patientinformationform.h" line="128"/>
|
||||||
<location filename="../patientinformationform.cpp" line="42"/>
|
<location filename="../patientinformationform.cpp" line="42"/>
|
||||||
<source>LEFT ONLY</source>
|
<source>LEFT ONLY</source>
|
||||||
<translation>左侧</translation>
|
<translation>左侧</translation>
|
||||||
@@ -769,80 +769,75 @@ parameters
|
|||||||
<context>
|
<context>
|
||||||
<name>SelectFormWidget</name>
|
<name>SelectFormWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="48"/>
|
<location filename="../SelectFormWidget.cpp" line="45"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="301"/>
|
<location filename="../SelectFormWidget.cpp" line="288"/>
|
||||||
<source>Account</source>
|
<source>Account</source>
|
||||||
<translation>账户</translation>
|
<translation>账户</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="49"/>
|
<location filename="../SelectFormWidget.cpp" line="46"/>
|
||||||
<source>Worklist</source>
|
<source>Worklist</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="60"/>
|
<location filename="../SelectFormWidget.cpp" line="57"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="303"/>
|
<location filename="../SelectFormWidget.cpp" line="290"/>
|
||||||
<source>Add</source>
|
<source>Add</source>
|
||||||
<translation>新增</translation>
|
<translation>新增</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="61"/>
|
<location filename="../SelectFormWidget.cpp" line="58"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="304"/>
|
<location filename="../SelectFormWidget.cpp" line="291"/>
|
||||||
<source>Edit</source>
|
<source>Edit</source>
|
||||||
<translation>编辑</translation>
|
<translation>编辑</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="62"/>
|
<location filename="../SelectFormWidget.cpp" line="59"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="305"/>
|
<location filename="../SelectFormWidget.cpp" line="292"/>
|
||||||
<source>Delete</source>
|
<source>Delete</source>
|
||||||
<translation>删除</translation>
|
<translation>删除</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="63"/>
|
<location filename="../SelectFormWidget.cpp" line="60"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="306"/>
|
<location filename="../SelectFormWidget.cpp" line="293"/>
|
||||||
<source>Select</source>
|
<source>Select</source>
|
||||||
<translation>选择</translation>
|
<translation>选择</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="87"/>
|
<location filename="../SelectFormWidget.cpp" line="82"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="295"/>
|
<location filename="../SelectFormWidget.cpp" line="282"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation>姓名</translation>
|
<translation>姓名</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="88"/>
|
<location filename="../SelectFormWidget.cpp" line="83"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="296"/>
|
<location filename="../SelectFormWidget.cpp" line="283"/>
|
||||||
<source>Birth Date</source>
|
<source>Birth Date</source>
|
||||||
<translation>出生日期</translation>
|
<translation>出生日期</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="89"/>
|
<location filename="../SelectFormWidget.cpp" line="84"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="297"/>
|
<location filename="../SelectFormWidget.cpp" line="284"/>
|
||||||
<source>Gender</source>
|
<source>Gender</source>
|
||||||
<translation>性别</translation>
|
<translation>性别</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="90"/>
|
<location filename="../SelectFormWidget.cpp" line="85"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="298"/>
|
<location filename="../SelectFormWidget.cpp" line="285"/>
|
||||||
<source>Add Date</source>
|
<source>Add Date</source>
|
||||||
<translation>添加日期</translation>
|
<translation>添加日期</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../SelectFormWidget.cpp" line="91"/>
|
<location filename="../SelectFormWidget.cpp" line="86"/>
|
||||||
<location filename="../SelectFormWidget.cpp" line="299"/>
|
<location filename="../SelectFormWidget.cpp" line="286"/>
|
||||||
<source>Comment</source>
|
<source>Comment</source>
|
||||||
<translation>备注</translation>
|
<translation>备注</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
|
||||||
<location filename="../SelectFormWidget.cpp" line="236"/>
|
|
||||||
<source>Delete Patient "%1" ?</source>
|
|
||||||
<translation type="unfinished"></translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>TabFormWidget</name>
|
<name>TabFormWidget</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_tabformwidget.h" line="54"/>
|
<location filename="../../out/build/x64-Debug/ui_tabformwidget.h" line="54"/>
|
||||||
<source>Form</source>
|
<source>Form</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -899,7 +894,7 @@ parameters
|
|||||||
<context>
|
<context>
|
||||||
<name>dicomCfgDialog</name>
|
<name>dicomCfgDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="321"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="321"/>
|
||||||
<source>Dialog</source>
|
<source>Dialog</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -908,57 +903,57 @@ parameters
|
|||||||
<translation type="vanished">DICOM 设置</translation>
|
<translation type="vanished">DICOM 设置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="322"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="322"/>
|
||||||
<source>DICOM Settings</source>
|
<source>DICOM Settings</source>
|
||||||
<translation>DICOM 配置</translation>
|
<translation>DICOM 配置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="326"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="326"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="329"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="329"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="337"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="337"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="323"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="323"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="330"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="330"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="336"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="336"/>
|
||||||
<source>IP</source>
|
<source>IP</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="325"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="325"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="332"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="332"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="335"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="335"/>
|
||||||
<source>Port</source>
|
<source>Port</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="324"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="324"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="331"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="331"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="338"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="338"/>
|
||||||
<source>AE</source>
|
<source>AE</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="328"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="328"/>
|
||||||
<source>Worklist</source>
|
<source>Worklist</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="327"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="327"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="333"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="333"/>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="339"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="339"/>
|
||||||
<source>...</source>
|
<source>...</source>
|
||||||
<translation>DICOM</translation>
|
<translation>DICOM</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="334"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="334"/>
|
||||||
<source>PACS</source>
|
<source>PACS</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_dicomcfgdialog.h" line="340"/>
|
<location filename="../../out/build/x64-Debug/ui_dicomcfgdialog.h" line="340"/>
|
||||||
<source>3D Recon</source>
|
<source>3D Recon</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -976,18 +971,18 @@ parameters
|
|||||||
<context>
|
<context>
|
||||||
<name>networkCfgDialog</name>
|
<name>networkCfgDialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="453"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="453"/>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="454"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="454"/>
|
||||||
<source>Network Settings</source>
|
<source>Network Settings</source>
|
||||||
<translation>网络配置</translation>
|
<translation>网络配置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="464"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="464"/>
|
||||||
<source>Address</source>
|
<source>Address</source>
|
||||||
<translation>IP配置</translation>
|
<translation>IP配置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="455"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="455"/>
|
||||||
<location filename="../network/networkcfgdialog.cpp" line="33"/>
|
<location filename="../network/networkcfgdialog.cpp" line="33"/>
|
||||||
<source>IP Address</source>
|
<source>IP Address</source>
|
||||||
<translation>IP地址</translation>
|
<translation>IP地址</translation>
|
||||||
@@ -1001,85 +996,85 @@ parameters
|
|||||||
<translation type="vanished">动态地址</translation>
|
<translation type="vanished">动态地址</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="457"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="457"/>
|
||||||
<source>Dev</source>
|
<source>Dev</source>
|
||||||
<translation>设备</translation>
|
<translation>设备</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="459"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="459"/>
|
||||||
<source>Subnet Mask</source>
|
<source>Subnet Mask</source>
|
||||||
<translation>子网掩码</translation>
|
<translation>子网掩码</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="460"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="460"/>
|
||||||
<source>Additional Address</source>
|
<source>Additional Address</source>
|
||||||
<translation>额外地址</translation>
|
<translation>额外地址</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="461"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="461"/>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="468"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="468"/>
|
||||||
<source>Add</source>
|
<source>Add</source>
|
||||||
<translation>新增</translation>
|
<translation>新增</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="462"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="462"/>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="469"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="469"/>
|
||||||
<source>Edit</source>
|
<source>Edit</source>
|
||||||
<translation>编辑</translation>
|
<translation>编辑</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="463"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="463"/>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="470"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="470"/>
|
||||||
<source>Delete</source>
|
<source>Delete</source>
|
||||||
<translation>删除</translation>
|
<translation>删除</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="471"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="471"/>
|
||||||
<source>Routing</source>
|
<source>Routing</source>
|
||||||
<translation>路由配置</translation>
|
<translation>路由配置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="466"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="466"/>
|
||||||
<source>Default IPv4 Gateway</source>
|
<source>Default IPv4 Gateway</source>
|
||||||
<translation>默认网关</translation>
|
<translation>默认网关</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="456"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="456"/>
|
||||||
<source>DHCP</source>
|
<source>DHCP</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="467"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="467"/>
|
||||||
<source>Routing Table</source>
|
<source>Routing Table</source>
|
||||||
<translation>路由表</translation>
|
<translation>路由表</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="472"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="472"/>
|
||||||
<source>Name</source>
|
<source>Name</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="473"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="473"/>
|
||||||
<source>Port</source>
|
<source>Port</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="474"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="474"/>
|
||||||
<source>AE</source>
|
<source>AE</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="475"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="475"/>
|
||||||
<source>IP</source>
|
<source>IP</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="476"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="476"/>
|
||||||
<source>DICOM</source>
|
<source>DICOM</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_networkcfgdialog.h" line="477"/>
|
<location filename="../../out/build/x64-Debug/ui_networkcfgdialog.h" line="477"/>
|
||||||
<source>Result</source>
|
<source>Result</source>
|
||||||
<translation>结果</translation>
|
<translation>结果</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -1113,7 +1108,7 @@ parameters
|
|||||||
<context>
|
<context>
|
||||||
<name>systemSettingForm</name>
|
<name>systemSettingForm</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_systemsettingform.h" line="281"/>
|
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="281"/>
|
||||||
<source>Form</source>
|
<source>Form</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -1122,17 +1117,17 @@ parameters
|
|||||||
<translation type="vanished">网络配置</translation>
|
<translation type="vanished">网络配置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_systemsettingform.h" line="282"/>
|
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="282"/>
|
||||||
<source>Protocal</source>
|
<source>Protocal</source>
|
||||||
<translation>默认扫描协议</translation>
|
<translation>默认扫描协议</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_systemsettingform.h" line="286"/>
|
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="286"/>
|
||||||
<source>Worklist Filter</source>
|
<source>Worklist Filter</source>
|
||||||
<translation>Worklist过滤器</translation>
|
<translation>Worklist过滤器</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_systemsettingform.h" line="289"/>
|
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="289"/>
|
||||||
<source>Disk Storage</source>
|
<source>Disk Storage</source>
|
||||||
<translation>磁盘存储</translation>
|
<translation>磁盘存储</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -1141,7 +1136,7 @@ parameters
|
|||||||
<translation type="vanished">DICOM</translation>
|
<translation type="vanished">DICOM</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_systemsettingform.h" line="284"/>
|
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="284"/>
|
||||||
<source>Auto Verify</source>
|
<source>Auto Verify</source>
|
||||||
<translation>自动验证</translation>
|
<translation>自动验证</translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -1150,7 +1145,7 @@ parameters
|
|||||||
<translation type="vanished">配置</translation>
|
<translation type="vanished">配置</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_systemsettingform.h" line="285"/>
|
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="285"/>
|
||||||
<source>IP</source>
|
<source>IP</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
@@ -1167,7 +1162,7 @@ parameters
|
|||||||
<translation type="vanished">接受</translation>
|
<translation type="vanished">接受</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../cmake-build-debug/ui_systemsettingform.h" line="288"/>
|
<location filename="../../out/build/x64-Debug/ui_systemsettingform.h" line="288"/>
|
||||||
<source>DICOM</source>
|
<source>DICOM</source>
|
||||||
<translation></translation>
|
<translation></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
#include "InputObject.h"
|
#include "InputObject.h"
|
||||||
#include "ui_inputobject.h"
|
#include "ui_inputobject.h"
|
||||||
//#include "qdesktopwidget.h"
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
|
|||||||
@@ -29,9 +29,8 @@ void LanguageSwitcher::setDefaultLanguage(QString str)
|
|||||||
QString lan = QString(":/translations/" + str + ".qm");
|
QString lan = QString(":/translations/" + str + ".qm");
|
||||||
if (translator->load(lan))
|
if (translator->load(lan))
|
||||||
{
|
{
|
||||||
//qDebug() << "installTranslator";
|
EventCenter::Default()->triggerEvent(ReloadLanguage, nullptr, nullptr);
|
||||||
//QApplication::installTranslator(translator);
|
|
||||||
}
|
}
|
||||||
EventCenter::Default()->triggerEvent(ReloadLanguage, nullptr, nullptr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -126,7 +126,8 @@ MainWindow::MainWindow(QWidget* parent) :
|
|||||||
if (msg)
|
if (msg)
|
||||||
{
|
{
|
||||||
QVariant* var = (QVariant*)msg;
|
QVariant* var = (QVariant*)msg;
|
||||||
msgDialog->showMessage(QString("Scanning %1%").arg((int)(var->toFloat() * 100.0f)));
|
if (msgDialog->Pending())msgDialog->stopPending();
|
||||||
|
msgDialog->showMessage(var->toString());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
msgDialog->hideMessage();
|
msgDialog->hideMessage();
|
||||||
@@ -134,6 +135,14 @@ MainWindow::MainWindow(QWidget* parent) :
|
|||||||
// msgDialog->showFullScreen();
|
// msgDialog->showFullScreen();
|
||||||
if (msgDialog->isHidden())msgDialog->show();
|
if (msgDialog->isHidden())msgDialog->show();
|
||||||
});
|
});
|
||||||
|
connect(EventCenter::Default(), &EventCenter::InvokeOperationPending, [=](QObject*, QObject* msg) {
|
||||||
|
if (!msgDialog) return;
|
||||||
|
if (!msgDialog->Pending()){
|
||||||
|
msgDialog->startPending();
|
||||||
|
QVariant* var = (QVariant*)msg;
|
||||||
|
msgDialog->showMessage(var->toString());
|
||||||
|
}
|
||||||
|
});
|
||||||
connect(EventCenter::Default(), &EventCenter::InvokeOperationEnd, [=]() {
|
connect(EventCenter::Default(), &EventCenter::InvokeOperationEnd, [=]() {
|
||||||
if (!msgDialog) return;
|
if (!msgDialog) return;
|
||||||
if (!msgDialog->isHidden())msgDialog->accept();
|
if (!msgDialog->isHidden())msgDialog->accept();
|
||||||
|
|||||||
Reference in New Issue
Block a user