新二维码/条形码编辑逻辑
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
#include "SystemUpdate.h"
|
||||
#include "ui_SystemUpdate.h"
|
||||
#include "SystemManage.h"
|
||||
#include "Public.h"
|
||||
#include "InputMethod.h"
|
||||
#include <QMessageBox>
|
||||
|
||||
SystemUpdate::SystemUpdate(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
@@ -17,6 +20,11 @@ SystemUpdate::~SystemUpdate()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SystemUpdate::bindSysPara(SysPara *sysPara)
|
||||
{
|
||||
dlgLanguage.bindSysPara(sysPara);
|
||||
}
|
||||
|
||||
/*关闭按键*/
|
||||
void SystemUpdate::on_closeBtn_clicked()
|
||||
{
|
||||
@@ -92,3 +100,44 @@ void SystemUpdate::on_pushButtonUpdateCharLib_clicked()
|
||||
emit sendUpDateChARLIBSignal();
|
||||
}
|
||||
|
||||
|
||||
void SystemUpdate::on_pushButtonFontToUdisk_clicked()
|
||||
{
|
||||
QMessageBox::StandardButton ret;
|
||||
ret = QMessageBox::information(this, tr("警告"),
|
||||
tr("是否确认导出字库到U盘?"),
|
||||
QMessageBox::Ok | QMessageBox::Cancel);
|
||||
if (ret == QMessageBox::Ok)
|
||||
{
|
||||
QFile file("/udisk");
|
||||
if(!file.exists()){
|
||||
QMessageBox::warning(this, tr("错误"),
|
||||
tr("U盘不可识别!"));
|
||||
return;
|
||||
}
|
||||
|
||||
system((char *)((QString("cp /usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/* /udisk/.")).toLatin1().data()));
|
||||
system((char *)((QString("cp /usr/lib/fonts/* /udisk/.")).toLatin1().data()));//am335x
|
||||
system((char *)((QString("cp /usr/lib/fonts/* /udisk/.")).toLatin1().data()));
|
||||
system((char *)((QString("mkdir /udisk/zk")).toLatin1().data()));
|
||||
QMessageBox::information(this, tr("提示"),
|
||||
tr("字库导出完成!"));
|
||||
}
|
||||
}
|
||||
|
||||
void SystemUpdate::on_pushButtonInterFace_clicked()
|
||||
{
|
||||
QString s1 = Public::ReadLanguageName();
|
||||
if(s1 =="English") {
|
||||
dlgLanguage.LangIndex =INPUT_METHOD_TYPE_ENGLISH;
|
||||
}
|
||||
else if(s1 =="Korean") {
|
||||
dlgLanguage.LangIndex =INPUT_METHOD_TYPE_KOREAN;
|
||||
}
|
||||
else{
|
||||
dlgLanguage.LangIndex =INPUT_METHOD_TYPE_CHINESE;
|
||||
}
|
||||
|
||||
dlgLanguage.setCurrentLanguage();
|
||||
dlgLanguage.show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user