hlp:桂林国际齿轮泵代码
This commit is contained in:
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* FreeModbus Libary: Linux Port
|
||||
* Copyright (C) 2006 Christian Walter <wolti@sil.at>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*
|
||||
* File: $Id: porttimer.c,v 1.1 2006/08/01 20:58:50 wolti Exp $
|
||||
*/
|
||||
|
||||
/* ----------------------- Standard includes --------------------------------*/
|
||||
#include <stdlib.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "port.h"
|
||||
|
||||
/* ----------------------- Modbus includes ----------------------------------*/
|
||||
#include "mb.h"
|
||||
#include "mbport.h"
|
||||
|
||||
/* ----------------------- Defines ------------------------------------------*/
|
||||
|
||||
/* ----------------------- Static variables ---------------------------------*/
|
||||
ULONG ulTimeOut;
|
||||
BOOL bTimeoutEnable;
|
||||
|
||||
static struct timeval xTimeLast;
|
||||
|
||||
/* ----------------------- Start implementation -----------------------------*/
|
||||
BOOL
|
||||
xMBPortTimersInit( USHORT usTim1Timerout50us )
|
||||
{
|
||||
ulTimeOut = usTim1Timerout50us / 20U;
|
||||
if( ulTimeOut == 0 )
|
||||
ulTimeOut = 1;
|
||||
|
||||
return xMBPortSerialSetTimeout( ulTimeOut );
|
||||
}
|
||||
|
||||
void
|
||||
xMBPortTimersClose( )
|
||||
{
|
||||
/* Does not use any hardware resources. */
|
||||
}
|
||||
|
||||
void
|
||||
vMBPortTimerPoll( )
|
||||
{
|
||||
ULONG ulDeltaMS;
|
||||
struct timeval xTimeCur;
|
||||
|
||||
/* Timers are called from the serial layer because we have no high
|
||||
* res timer in Win32. */
|
||||
if( bTimeoutEnable )
|
||||
{
|
||||
if( gettimeofday( &xTimeCur, NULL ) != 0 )
|
||||
{
|
||||
/* gettimeofday failed - retry next time. */
|
||||
}
|
||||
else
|
||||
{
|
||||
ulDeltaMS = ( xTimeCur.tv_sec - xTimeLast.tv_sec ) * 1000L +
|
||||
( xTimeCur.tv_usec - xTimeLast.tv_usec ) * 1000L;
|
||||
if( ulDeltaMS > ulTimeOut )
|
||||
{
|
||||
bTimeoutEnable = FALSE;
|
||||
( void )pxMBPortCBTimerExpired( );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
vMBPortTimersEnable( )
|
||||
{
|
||||
int res = gettimeofday( &xTimeLast, NULL );
|
||||
|
||||
assert( res == 0 );
|
||||
bTimeoutEnable = TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
vMBPortTimersDisable( )
|
||||
{
|
||||
bTimeoutEnable = FALSE;
|
||||
}
|
||||
@@ -0,0 +1,346 @@
|
||||
#include "DialogFontSize.h"
|
||||
#include "ui_dialogfontsize.h"
|
||||
#include <QDebug>
|
||||
#include <QFileInfo>
|
||||
#include <QDateTime>
|
||||
#include <QString>
|
||||
#include <QDir>
|
||||
#include "myinclude.h"
|
||||
|
||||
DialogFontSize::DialogFontSize(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DialogFontSize)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->setFixedSize(this->geometry().width(),this->geometry().height());
|
||||
this->setWindowTitle(tr("选择字体大小"));
|
||||
//connect(ui->fontComboBox,SIGNAL(currentIndexChanged(QString)),SLOT(ChangeFont(QString)));
|
||||
font.setFamily("wenquanyi");
|
||||
font.setPixelSize(12);
|
||||
ui->lineEdit->setFont(font);
|
||||
connect(ui->radioButton7HoriL,SIGNAL(clicked(bool)),this,SLOT(Button7HoriL(bool)));
|
||||
connect(ui->radioButton7HoriR,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
connect(ui->radioButton7Bangla,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
connect(ui->radioButton7PointNum,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
|
||||
connect(ui->radioButton9HoriL,SIGNAL(clicked(bool)),this,SLOT(Button7HoriL(bool)));
|
||||
connect(ui->radioButton9HoriR,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
|
||||
connect(ui->radioButton5Point,SIGNAL(clicked(bool)),this,SLOT(Button7HoriL(bool)));
|
||||
connect(ui->radioButton7Point,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
|
||||
connect(ui->radioButton9Point,SIGNAL(clicked(bool)),this,SLOT(Button7HoriL(bool)));
|
||||
connect(ui->radioButton12Point,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
|
||||
connect(ui->radioButton16Point,SIGNAL(clicked(bool)),this,SLOT(Button7HoriL(bool)));
|
||||
connect(ui->radioButton24Point,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
connect(ui->radioButton21PointNum,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
connect(ui->radioButton32Point,SIGNAL(clicked(bool)),this,SLOT(Button7HoriR(bool)));
|
||||
|
||||
#ifdef VNLGXX
|
||||
ui->checkBoxBold->hide();
|
||||
ui->radioButton5Point->hide();
|
||||
ui->radioButton7Point->hide();
|
||||
ui->radioButton9Point->hide();
|
||||
ui->radioButton12Point->hide();
|
||||
ui->radioButton16Point->hide();
|
||||
ui->radioButton24Point->hide();
|
||||
#else
|
||||
// ui->checkBoxBold->hide();
|
||||
// ui->labelFont->hide();
|
||||
// ui->fontComboBox->hide();
|
||||
// ui->comboBoxFontSize->hide();
|
||||
#endif
|
||||
GetFileInfo();
|
||||
|
||||
#ifdef EnableBangla
|
||||
ui->radioButton7Bangla->setEnabled(1);
|
||||
#else
|
||||
ui->radioButton7Bangla->setEnabled(0);
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
DialogFontSize::~DialogFontSize()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void DialogFontSize::Button7HoriL(bool ok){
|
||||
int pixsize;
|
||||
getValue(&pixsize);
|
||||
|
||||
|
||||
//qDebug()<<ui->lineEdit->font().family()<<ui->lineEdit->font().pixelSize();
|
||||
|
||||
|
||||
}
|
||||
|
||||
void DialogFontSize::Button7HoriR(bool ok){
|
||||
int pixsize;
|
||||
getValue(&pixsize);
|
||||
|
||||
//qDebug()<<ui->lineEdit->font().family()<<ui->lineEdit->font().pixelSize();
|
||||
}
|
||||
|
||||
void DialogFontSize::ChangeFont(QString fontFamily){
|
||||
|
||||
font.setFamily(fontFamily);
|
||||
|
||||
//font.setPixelSize(pixelSize);
|
||||
ui->lineEdit->setFont(font); // 设置预览字体
|
||||
|
||||
// if(fontFamily=="wenquanyi" ){
|
||||
// ui->comboBoxFontSize->clear();
|
||||
// ui->comboBoxFontSize->addItem("12");
|
||||
// ui->comboBoxFontSize->addItem("16");
|
||||
// //ui->comboBoxFontSize->addItem("12");
|
||||
|
||||
|
||||
// }
|
||||
// else if(fontFamily=="biyang"){
|
||||
// ui->comboBoxFontSize->clear();
|
||||
// ui->comboBoxFontSize->addItem("5");
|
||||
// ui->comboBoxFontSize->addItem("7");
|
||||
// ui->comboBoxFontSize->addItem("9");
|
||||
// //ui->comboBoxFontSize->addItem("10");
|
||||
|
||||
// }
|
||||
// else {
|
||||
// ui->comboBoxFontSize->clear();
|
||||
// ui->comboBoxFontSize->addItem("14");
|
||||
// ui->comboBoxFontSize->addItem("16");
|
||||
// ui->comboBoxFontSize->addItem("18");
|
||||
// ui->comboBoxFontSize->addItem("20");
|
||||
// ui->comboBoxFontSize->addItem("24");
|
||||
// ui->comboBoxFontSize->addItem("28");
|
||||
// ui->comboBoxFontSize->addItem("32");
|
||||
// ui->comboBoxFontSize->addItem("36");
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
void DialogFontSize::GetFileInfo(){
|
||||
// /usr/local/Trolltech/QtEmbedded-4.6.3/include/QtCore/QObject:1: from /usr/local/Trolltech/QtEmbedded-4.6.3/include/QtCore/QObject:1,
|
||||
QString fileName;
|
||||
QString fileDate="";
|
||||
QString fontPath=
|
||||
#ifdef DEBUG_CNT
|
||||
"/usr/local/Trolltech/QtEmbedded-4.6.3/lib/fonts/"
|
||||
#else
|
||||
"/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/"
|
||||
#endif
|
||||
;
|
||||
QDir FontsFile("/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/");
|
||||
if(FontsFile.exists("/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/"))//2451
|
||||
{
|
||||
fontPath = "/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/fonts/";
|
||||
}
|
||||
if(FontsFile.exists("/usr/lib/fonts/"))//am335x
|
||||
{
|
||||
fontPath = "/usr/lib/fonts/";
|
||||
}
|
||||
fileName.sprintf("_%d_50.qpf2",font.pixelSize());
|
||||
|
||||
|
||||
QFileInfo fileInfo;
|
||||
|
||||
if(font.family()=="SerifL")
|
||||
fileName = fontPath +"serifl_7_50.qpf2";
|
||||
else if(font.family()=="SerifR")
|
||||
fileName = fontPath +"serifr_7_50.qpf2";
|
||||
else if(font.family()=="SerifL9")
|
||||
fileName = fontPath +"serifl_9_50.qpf2";
|
||||
else if(font.family()=="SerifR9")
|
||||
fileName = fontPath +"serifr_9_50.qpf2";
|
||||
else fileName = fontPath +font.family()+fileName;
|
||||
fileInfo.setFile(fileName);
|
||||
QDateTime dt= fileInfo.created();
|
||||
//fileInfo.lastModified();
|
||||
QString s = dt.toString("yyyy-MM-dd hh:mm:ss");
|
||||
//qDebug()<<"GetFileInfo"<<font.family()<<fileName;
|
||||
//qDebug()<< s<<fileInfo.baseName();
|
||||
|
||||
QFile fp;
|
||||
fp.setFileName(fileName);
|
||||
fp.open(QFile::ReadOnly);
|
||||
QByteArray fdat =fp.read(fp.size());
|
||||
unsigned int chsum = qChecksum(fdat,fp.size());
|
||||
//ui->labFontInfo->setText(fileInfo.fileName()+" "+s+"");
|
||||
ui->labFontInfo->setText( QString("%1").arg(chsum));
|
||||
}
|
||||
|
||||
void DialogFontSize::getValue(int *size){
|
||||
int pixelSize = 12;
|
||||
bool ok;
|
||||
font.setFamily("wenquanyi");
|
||||
#ifdef VNLGXX
|
||||
|
||||
int n = ui->comboBoxFontSize->currentText().toInt(&ok,10);
|
||||
if(ok) pixelSize = n;
|
||||
|
||||
#else
|
||||
if(ui->radioButton5Point->isChecked()){
|
||||
pixelSize = 5;
|
||||
font.setFamily("biyang");
|
||||
}
|
||||
else if(ui->radioButton7Point->isChecked()){
|
||||
pixelSize = 7;
|
||||
font.setFamily("biyang");
|
||||
}
|
||||
else if(ui->radioButton9Point->isChecked()){
|
||||
pixelSize = 9;
|
||||
font.setFamily("biyang");
|
||||
}
|
||||
else if(ui->radioButton12Point->isChecked()){
|
||||
pixelSize = 12;
|
||||
|
||||
}
|
||||
else if(ui->radioButton16Point->isChecked()){
|
||||
pixelSize = 16;
|
||||
}
|
||||
else if(ui->radioButton24Point->isChecked()){
|
||||
pixelSize = 24;
|
||||
}
|
||||
else if(ui->radioButton7HoriL->isChecked()){
|
||||
pixelSize = 5;
|
||||
font.setFamily("SerifL");
|
||||
|
||||
}
|
||||
else if(ui->radioButton7HoriR->isChecked()){
|
||||
pixelSize = 5;
|
||||
font.setFamily("SerifR");
|
||||
}
|
||||
else if(ui->radioButton9HoriL->isChecked()){
|
||||
pixelSize = 7;
|
||||
font.setFamily("SerifL9");
|
||||
|
||||
}
|
||||
else if(ui->radioButton9HoriR->isChecked()){
|
||||
pixelSize = 7;
|
||||
font.setFamily("SerifR9");
|
||||
}
|
||||
else if(ui->radioButton7Bangla->isChecked()){
|
||||
pixelSize = 7;
|
||||
font.setFamily("bangla");
|
||||
}
|
||||
else if(ui->radioButton7PointNum->isChecked()){
|
||||
pixelSize = 7;
|
||||
font.setFamily("biyangF");
|
||||
}
|
||||
else if(ui->radioButton21PointNum->isChecked()){
|
||||
pixelSize = 24;
|
||||
font.setFamily("biyangF");
|
||||
}
|
||||
else if(ui->radioButton12NewRoman->isChecked()){
|
||||
pixelSize = 12;
|
||||
font.setFamily("Roman");
|
||||
}
|
||||
else if(ui->radioButton32Point->isChecked()){
|
||||
pixelSize = 32;
|
||||
}
|
||||
|
||||
/* radioButton7Hori
|
||||
else if(ui->radioButton28Point->isChecked()){
|
||||
pixelSize = 28;
|
||||
}
|
||||
else if(ui->radioButton32Point->isChecked()){
|
||||
pixelSize = 32;
|
||||
}*/
|
||||
|
||||
#endif
|
||||
|
||||
font.setPixelSize(pixelSize);
|
||||
ui->lineEdit->setFont(font); // 设置预览字体
|
||||
|
||||
*size = pixelSize;
|
||||
|
||||
|
||||
}
|
||||
|
||||
void DialogFontSize::setValue(int value){
|
||||
|
||||
#ifdef VNLGXX
|
||||
//QString s;
|
||||
//s.sprintf("%d",value);
|
||||
//ui->comboBoxFontSize->setEditText(s);
|
||||
//if(value<12) ui->fontComboBox->setCurrentIndex(0);
|
||||
|
||||
#else
|
||||
if(value == 5 && font.family()=="biyang"){
|
||||
ui->radioButton5Point->setChecked(true);
|
||||
}
|
||||
else if(value == 5 && font.family()=="SerifL"){
|
||||
ui->radioButton7HoriL->setChecked(true);
|
||||
|
||||
}
|
||||
else if(value == 5 && font.family()=="SerifR" ){
|
||||
ui->radioButton7HoriR->setChecked(true);
|
||||
|
||||
}
|
||||
else if(value == 7 && font.family()=="SerifL9"){
|
||||
ui->radioButton9HoriL->setChecked(true);
|
||||
|
||||
}
|
||||
else if(value == 7 && font.family()=="SerifR9"){
|
||||
ui->radioButton9HoriR->setChecked(true);
|
||||
|
||||
}
|
||||
else if(value == 7 && font.family()=="bangla"){
|
||||
ui->radioButton7Bangla->setChecked(true);
|
||||
}
|
||||
else if(value == 7 && font.family()=="biyangF"){
|
||||
ui->radioButton7PointNum->setChecked(true);
|
||||
}
|
||||
else if(value == 21 && font.family()=="biyangF"){
|
||||
ui->radioButton21PointNum->setChecked(true);
|
||||
}
|
||||
else if(value == 12 && font.family()=="Roman"){
|
||||
ui->radioButton12NewRoman->setChecked(true);
|
||||
}
|
||||
else if(value == 7){
|
||||
ui->radioButton7Point->setChecked(true);
|
||||
}
|
||||
else if(value == 9){
|
||||
ui->radioButton9Point->setChecked(true);
|
||||
}
|
||||
else if(value == 12){
|
||||
ui->radioButton12Point->setChecked(true);
|
||||
}
|
||||
else if(value == 16){
|
||||
ui->radioButton16Point->setChecked(true);
|
||||
}
|
||||
|
||||
else if(value == 24){
|
||||
ui->radioButton24Point->setChecked(true);
|
||||
}
|
||||
else if(value == 32){
|
||||
ui->radioButton32Point->setChecked(true);
|
||||
}
|
||||
/*
|
||||
else if(value == 28){
|
||||
ui->radioButton28Point->setChecked(true);
|
||||
}
|
||||
else if(value == 32){
|
||||
ui->radioButton32Point->setChecked(true);
|
||||
}
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
QString DialogFontSize::getFontFamily(){
|
||||
|
||||
return ui->lineEdit->font().family();
|
||||
}
|
||||
|
||||
QFont DialogFontSize::getFont(){
|
||||
|
||||
return ui->lineEdit->font();
|
||||
}
|
||||
|
||||
void DialogFontSize::on_pushButton_pressed()
|
||||
{
|
||||
GetFileInfo();// 显示字库校验码
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'TriggerCtrl.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../TriggerCtrl.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'TriggerCtrl.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 63
|
||||
#error "This file was generated using the moc from 4.8.5. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
static const uint qt_meta_data_TriggerCtrl[] = {
|
||||
|
||||
// content:
|
||||
6, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
22, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
2, // signalCount
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
13, 12, 12, 12, 0x05,
|
||||
52, 12, 12, 12, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
78, 12, 12, 12, 0x08,
|
||||
115, 12, 12, 12, 0x08,
|
||||
142, 12, 12, 12, 0x08,
|
||||
181, 12, 12, 12, 0x08,
|
||||
224, 12, 12, 12, 0x08,
|
||||
267, 12, 12, 12, 0x08,
|
||||
302, 12, 12, 12, 0x08,
|
||||
339, 12, 12, 12, 0x08,
|
||||
370, 364, 12, 12, 0x08,
|
||||
419, 12, 12, 12, 0x08,
|
||||
448, 12, 12, 12, 0x08,
|
||||
495, 487, 12, 12, 0x08,
|
||||
538, 364, 12, 12, 0x08,
|
||||
581, 576, 12, 12, 0x08,
|
||||
631, 576, 12, 12, 0x08,
|
||||
681, 12, 12, 12, 0x08,
|
||||
724, 12, 12, 12, 0x08,
|
||||
767, 12, 12, 12, 0x08,
|
||||
804, 576, 12, 12, 0x08,
|
||||
843, 12, 12, 12, 0x08,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_TriggerCtrl[] = {
|
||||
"TriggerCtrl\0\0autoUpdateFontWidthByTriggerCtrl(uint)\0"
|
||||
"synDisableFontWidth(bool)\0"
|
||||
"on_radioButtonDelayTrigger_pressed()\0"
|
||||
"TriggerupdateSysParaToUI()\0"
|
||||
"on_checkEyeTriggerSynPrintEn_pressed()\0"
|
||||
"on_radioButtonEleEyeEdgetTrigger_pressed()\0"
|
||||
"on_radioButtonEleEyeLevelTrigger_pressed()\0"
|
||||
"on_radioButtonSynTrigger_pressed()\0"
|
||||
"on_pushButtonApplyPulseFix_clicked()\0"
|
||||
"onPulseNumFixDone(float)\0index\0"
|
||||
"on_comboBoxSynPrintMode_currentIndexChanged(int)\0"
|
||||
"on_pushButtonApply_pressed()\0"
|
||||
"on_checkBoxPulseOutputEnable_clicked()\0"
|
||||
"checked\0on_checkEyeTriggerSynPrintEn_clicked(bool)\0"
|
||||
"on_comboBoxSyncActType_activated(int)\0"
|
||||
"arg1\0on_lineEditTriggerPulsePerMm_textChanged(QString)\0"
|
||||
"on_spinBoxSynTriggerPrintLen_textChanged(QString)\0"
|
||||
"on_radioButtonEleEyeLevelTrigger_clicked()\0"
|
||||
"on_radioButtonEleEyeEdgetTrigger_clicked()\0"
|
||||
"on_radioButtonDelayTrigger_clicked()\0"
|
||||
"on_spinBoxpluseSinal_valueChanged(int)\0"
|
||||
"OutputPulse()\0"
|
||||
};
|
||||
|
||||
void TriggerCtrl::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
Q_ASSERT(staticMetaObject.cast(_o));
|
||||
TriggerCtrl *_t = static_cast<TriggerCtrl *>(_o);
|
||||
switch (_id) {
|
||||
case 0: _t->autoUpdateFontWidthByTriggerCtrl((*reinterpret_cast< const uint(*)>(_a[1]))); break;
|
||||
case 1: _t->synDisableFontWidth((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 2: _t->on_radioButtonDelayTrigger_pressed(); break;
|
||||
case 3: _t->TriggerupdateSysParaToUI(); break;
|
||||
case 4: _t->on_checkEyeTriggerSynPrintEn_pressed(); break;
|
||||
case 5: _t->on_radioButtonEleEyeEdgetTrigger_pressed(); break;
|
||||
case 6: _t->on_radioButtonEleEyeLevelTrigger_pressed(); break;
|
||||
case 7: _t->on_radioButtonSynTrigger_pressed(); break;
|
||||
case 8: _t->on_pushButtonApplyPulseFix_clicked(); break;
|
||||
case 9: _t->onPulseNumFixDone((*reinterpret_cast< float(*)>(_a[1]))); break;
|
||||
case 10: _t->on_comboBoxSynPrintMode_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 11: _t->on_pushButtonApply_pressed(); break;
|
||||
case 12: _t->on_checkBoxPulseOutputEnable_clicked(); break;
|
||||
case 13: _t->on_checkEyeTriggerSynPrintEn_clicked((*reinterpret_cast< bool(*)>(_a[1]))); break;
|
||||
case 14: _t->on_comboBoxSyncActType_activated((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 15: _t->on_lineEditTriggerPulsePerMm_textChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
|
||||
case 16: _t->on_spinBoxSynTriggerPrintLen_textChanged((*reinterpret_cast< const QString(*)>(_a[1]))); break;
|
||||
case 17: _t->on_radioButtonEleEyeLevelTrigger_clicked(); break;
|
||||
case 18: _t->on_radioButtonEleEyeEdgetTrigger_clicked(); break;
|
||||
case 19: _t->on_radioButtonDelayTrigger_clicked(); break;
|
||||
case 20: _t->on_spinBoxpluseSinal_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 21: _t->OutputPulse(); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObjectExtraData TriggerCtrl::staticMetaObjectExtraData = {
|
||||
0, qt_static_metacall
|
||||
};
|
||||
|
||||
const QMetaObject TriggerCtrl::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_TriggerCtrl,
|
||||
qt_meta_data_TriggerCtrl, &staticMetaObjectExtraData }
|
||||
};
|
||||
|
||||
#ifdef Q_NO_DATA_RELOCATION
|
||||
const QMetaObject &TriggerCtrl::getStaticMetaObject() { return staticMetaObject; }
|
||||
#endif //Q_NO_DATA_RELOCATION
|
||||
|
||||
const QMetaObject *TriggerCtrl::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *TriggerCtrl::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_TriggerCtrl))
|
||||
return static_cast<void*>(const_cast< TriggerCtrl*>(this));
|
||||
if (!strcmp(_clname, "ParaSettingUI"))
|
||||
return static_cast< ParaSettingUI*>(const_cast< TriggerCtrl*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int TriggerCtrl::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 22)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 22;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void TriggerCtrl::autoUpdateFontWidthByTriggerCtrl(const unsigned int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void TriggerCtrl::synDisableFontWidth(bool _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/bin/sh
|
||||
|
||||
export TSLIB_TSDEVICE=/dev/input/event0
|
||||
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
|
||||
export TSLIB_PLUGINDIR=/usr/local/lib/ts
|
||||
export TSLIB_CALIBFILE=/etc/pointercal
|
||||
export QTDIR=/opt/Qtopia
|
||||
export QPEDIR=/opt/Qtopia
|
||||
export PATH=$QTDIR/bin:$PATH
|
||||
export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH
|
||||
|
||||
|
||||
TS_INFO_FILE=/sys/devices/virtual/input/input0/uevent
|
||||
if [ -e $TS_INFO_FILE -a "/bin/grep -q TouchScreen < $TS_INFO_FILE" ]; then
|
||||
export QWS_MOUSE_PROTO="TPanel:/dev/input/event0 USB:/dev/input/mice"
|
||||
if [ -e /etc/pointercal -a ! -s /etc/pointercal ] ; then
|
||||
rm /etc/pointercal
|
||||
fi
|
||||
else
|
||||
export QWS_MOUSE_PROTO="USB:/dev/input/mice"
|
||||
>/etc/pointercal
|
||||
fi
|
||||
unset TS_INFO_FILE
|
||||
|
||||
export QWS_KEYBOARD=TTY:/dev/tty1
|
||||
export KDEDIR=/opt/kde
|
||||
|
||||
export HOME=/root
|
||||
|
||||
exec /opt/Qtopia/bin/SunJet -qws
|
||||
#exec $QPEDIR/bin/qpe 1>/dev/null 2>/dev/null
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user