hlp:桂林国际齿轮泵代码
This commit is contained in:
@@ -0,0 +1,592 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/
|
||||
**
|
||||
** This file is part of the QtCore module of the Qt Toolkit.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** GNU Lesser General Public License Usage
|
||||
** This file may be used under the terms of the GNU Lesser General Public
|
||||
** License version 2.1 as published by the Free Software Foundation and
|
||||
** appearing in the file LICENSE.LGPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU Lesser
|
||||
** General Public License version 2.1 requirements will be met:
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU General
|
||||
** Public License version 3.0 as published by the Free Software Foundation
|
||||
** and appearing in the file LICENSE.GPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU General
|
||||
** Public License version 3.0 requirements will be met:
|
||||
** http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Other Usage
|
||||
** Alternatively, this file may be used in accordance with the terms and
|
||||
** conditions contained in a signed written agreement between you and Nokia.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "qjsonobject.h"
|
||||
#include "qjsonvalue.h"
|
||||
#include "qjsonarray.h"
|
||||
#include <qvariant.h>
|
||||
#include <qstringlist.h>
|
||||
#include <qdebug.h>
|
||||
|
||||
#include "qjson_p.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
/*!
|
||||
\class QJsonValue
|
||||
\ingroup json
|
||||
\reentrant
|
||||
\since 5.0
|
||||
|
||||
\brief The QJsonValue class encapsulates a value in JSON.
|
||||
|
||||
A value in JSON can be one of 6 basic types:
|
||||
|
||||
JSON is a format to store structured data. It has 6 basic data types:
|
||||
|
||||
\list
|
||||
\o bool QJsonValue::Bool
|
||||
\o double QJsonValue::Double
|
||||
\o string QJsonValue::String
|
||||
\o array QJsonValue::Array
|
||||
\o object QJsonValue::Object
|
||||
\o null QJsonValue::Null
|
||||
\endlist
|
||||
|
||||
A value can represent any of the above data types. In addition, QJsonValue has one special
|
||||
flag to represent undefined values. This can be queried with isUndefined().
|
||||
|
||||
The type of the value can be queried with type() or accessors like isBool(), isString(), and so on.
|
||||
Likewise, the value can be converted to the type stored in it using the toBool(), toString() and so on.
|
||||
|
||||
Values are strictly typed internally and contrary to QVariant will not attempt to do any implicit type
|
||||
conversions. This implies that converting to a type that is not stored in the value will return a default
|
||||
constructed return value.
|
||||
*/
|
||||
|
||||
/*!
|
||||
Creates a QJsonValue of type \a type.
|
||||
|
||||
The default is to create a Null value.
|
||||
*/
|
||||
QJsonValue::QJsonValue(Type type)
|
||||
: ui(0), d(0), t(type)
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
QJsonValue::QJsonValue(QJsonPrivate::Data *data, QJsonPrivate::Base *base, const QJsonPrivate::Value &v)
|
||||
: d(0)
|
||||
{
|
||||
t = (Type)(uint)v.type;
|
||||
switch (t) {
|
||||
case Undefined:
|
||||
case Null:
|
||||
dbl = 0;
|
||||
break;
|
||||
case Bool:
|
||||
b = v.toBoolean();
|
||||
break;
|
||||
case Double:
|
||||
dbl = v.toDouble(base);
|
||||
break;
|
||||
case String: {
|
||||
/*
|
||||
QString s = v.toString(base);
|
||||
stringData = s.data_ptr();
|
||||
stringData->ref.ref();
|
||||
*/
|
||||
stringValue = v.toString(base);
|
||||
break;
|
||||
}
|
||||
case Array:
|
||||
case Object:
|
||||
d = data;
|
||||
this->base = v.base(base);
|
||||
break;
|
||||
}
|
||||
if (d)
|
||||
d->ref.ref();
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a value of type Bool, with value \a b.
|
||||
*/
|
||||
QJsonValue::QJsonValue(bool b)
|
||||
: d(0), t(Bool)
|
||||
{
|
||||
this->b = b;
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a value of type Double, with value \a n.
|
||||
*/
|
||||
QJsonValue::QJsonValue(double n)
|
||||
: d(0), t(Double)
|
||||
{
|
||||
this->dbl = n;
|
||||
}
|
||||
|
||||
/*!
|
||||
\overload
|
||||
Creates a value of type Double, with value \a n.
|
||||
*/
|
||||
QJsonValue::QJsonValue(int n)
|
||||
: d(0), t(Double)
|
||||
{
|
||||
this->dbl = n;
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a value of type String, with value \a s.
|
||||
*/
|
||||
QJsonValue::QJsonValue(const QString &s)
|
||||
: d(0), t(String)
|
||||
{
|
||||
/*
|
||||
stringData = *(QStringData **)(&s);
|
||||
stringData->ref.ref();
|
||||
*/
|
||||
stringValue = s;
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a value of type String, with value \a s.
|
||||
*/
|
||||
QJsonValue::QJsonValue(const QLatin1String &s)
|
||||
: d(0), t(String)
|
||||
{
|
||||
// ### FIXME: Avoid creating the temp QString below
|
||||
/*
|
||||
QString str(s);
|
||||
stringData = *(QStringData **)(&str);
|
||||
stringData->ref.ref();
|
||||
*/
|
||||
stringValue = s;
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a value of type Array, with value \a a.
|
||||
*/
|
||||
QJsonValue::QJsonValue(const QJsonArray &a)
|
||||
: d(a.d), t(Array)
|
||||
{
|
||||
base = a.a;
|
||||
if (d)
|
||||
d->ref.ref();
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a value of type Object, with value \a o.
|
||||
*/
|
||||
QJsonValue::QJsonValue(const QJsonObject &o)
|
||||
: d(o.d), t(Object)
|
||||
{
|
||||
base = o.o;
|
||||
if (d)
|
||||
d->ref.ref();
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
Destroys the value.
|
||||
*/
|
||||
QJsonValue::~QJsonValue()
|
||||
{
|
||||
/*
|
||||
if (t == String && stringData && !stringData->ref.deref())
|
||||
free(stringData);
|
||||
*/
|
||||
|
||||
if (d && !d->ref.deref())
|
||||
delete d;
|
||||
}
|
||||
|
||||
/*!
|
||||
Creates a copy of \a other.
|
||||
*/
|
||||
QJsonValue::QJsonValue(const QJsonValue &other)
|
||||
{
|
||||
t = other.t;
|
||||
d = other.d;
|
||||
ui = other.ui;
|
||||
stringValue = other.stringValue;
|
||||
|
||||
if (d)
|
||||
d->ref.ref();
|
||||
|
||||
/*
|
||||
if (t == String && stringData)
|
||||
stringData->ref.ref();
|
||||
*/
|
||||
}
|
||||
|
||||
/*!
|
||||
Assigns the value stored in \a other to this object.
|
||||
*/
|
||||
QJsonValue &QJsonValue::operator =(const QJsonValue &other)
|
||||
{
|
||||
/*
|
||||
if (t == String && stringData && !stringData->ref.deref())
|
||||
free(stringData);
|
||||
*/
|
||||
|
||||
t = other.t;
|
||||
dbl = other.dbl;
|
||||
stringValue = other.stringValue;
|
||||
|
||||
if (d != other.d) {
|
||||
|
||||
if (d && !d->ref.deref())
|
||||
delete d;
|
||||
d = other.d;
|
||||
if (d)
|
||||
d->ref.ref();
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
if (t == String && stringData)
|
||||
stringData->ref.ref();
|
||||
*/
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
/*!
|
||||
Converts \a variant to a QJsonValue and returns it.
|
||||
|
||||
The conversion will convert QVariant types as follows:
|
||||
|
||||
\list
|
||||
\o QVariant::Bool to Bool
|
||||
\o QVariant::Int
|
||||
\o QVariant::Double
|
||||
\o QVariant::LongLong
|
||||
\o QVariant::ULongLong
|
||||
\o QVariant::UInt to Double
|
||||
\o QVariant::String to String
|
||||
\o QVariant::StringList
|
||||
\o QVariant::VariantList to Array
|
||||
\o QVariant::VariantMap to Object
|
||||
\endlist
|
||||
|
||||
For all other QVariant types a conversion to a QString will be attempted. If the returned string
|
||||
is empty, a Null QJsonValue will be stored, otherwise a String value using the returned QString.
|
||||
|
||||
\sa toVariant()
|
||||
*/
|
||||
QJsonValue QJsonValue::fromVariant(const QVariant &variant)
|
||||
{
|
||||
switch (variant.type()) {
|
||||
case QVariant::Bool:
|
||||
return QJsonValue(variant.toBool());
|
||||
case QVariant::Int:
|
||||
case QVariant::Double:
|
||||
case QVariant::LongLong:
|
||||
case QVariant::ULongLong:
|
||||
case QVariant::UInt:
|
||||
return QJsonValue(variant.toDouble());
|
||||
case QVariant::String:
|
||||
return QJsonValue(variant.toString());
|
||||
case QVariant::StringList:
|
||||
return QJsonValue(QJsonArray::fromStringList(variant.toStringList()));
|
||||
case QVariant::List:
|
||||
return QJsonValue(QJsonArray::fromVariantList(variant.toList()));
|
||||
case QVariant::Map:
|
||||
return QJsonValue(QJsonObject::fromVariantMap(variant.toMap()));
|
||||
default:
|
||||
break;
|
||||
}
|
||||
QString string = variant.toString();
|
||||
if (string.isEmpty())
|
||||
return QJsonValue();
|
||||
return QJsonValue(string);
|
||||
}
|
||||
|
||||
/*!
|
||||
Converts the value to a QVariant.
|
||||
|
||||
The QJsonValue types will be converted as follows:
|
||||
|
||||
\value Null QVariant()
|
||||
\value Bool QVariant::Bool
|
||||
\value Double QVariant::Double
|
||||
\value String QVariant::String
|
||||
\value Array QVariantList
|
||||
\value Object QVariantMap
|
||||
\value Undefined QVariant()
|
||||
|
||||
\sa fromVariant()
|
||||
*/
|
||||
QVariant QJsonValue::toVariant() const
|
||||
{
|
||||
switch (t) {
|
||||
case Bool:
|
||||
return b;
|
||||
case Double:
|
||||
return dbl;
|
||||
case String:
|
||||
return toString();
|
||||
case Array:
|
||||
return QJsonArray(d, static_cast<QJsonPrivate::Array *>(base)).toVariantList();
|
||||
case Object:
|
||||
return QJsonObject(d, static_cast<QJsonPrivate::Object *>(base)).toVariantMap();
|
||||
case Null:
|
||||
case Undefined:
|
||||
break;
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
/*!
|
||||
\enum QJsonValue::Type
|
||||
|
||||
This enum describes the type of the JSON value.
|
||||
|
||||
\value Null A Null value
|
||||
\value Bool A boolean value. Use toBool() to convert to a bool.
|
||||
\value Double A double. Use toDouble() to convert to a double.
|
||||
\value String A string. Use toString() to convert to a QString.
|
||||
\value Array An array. Use toArray() to convert to a QJsonArray.
|
||||
\value Object An object. Use toObject() to convert to a QJsonObject.
|
||||
\value Undefined The value is undefined. This is usually returned as an
|
||||
error condition, when trying to read an out of bounds value
|
||||
in an array or a non existant key in an object.
|
||||
*/
|
||||
|
||||
/*!
|
||||
Returns the type of the value.
|
||||
|
||||
\sa QJsonValue::Type
|
||||
*/
|
||||
QJsonValue::Type QJsonValue::type() const
|
||||
{
|
||||
return t;
|
||||
}
|
||||
|
||||
/*!
|
||||
Converts the value to a bool and returns it.
|
||||
|
||||
If type() is not bool, false will be returned.
|
||||
*/
|
||||
bool QJsonValue::toBool() const
|
||||
{
|
||||
if (t != Bool)
|
||||
return false;
|
||||
return b;
|
||||
}
|
||||
|
||||
/*!
|
||||
Converts the value to a double and returns it.
|
||||
|
||||
If type() is not Double, 0. will be returned.
|
||||
*/
|
||||
double QJsonValue::toDouble() const
|
||||
{
|
||||
if (t != Double)
|
||||
return 0;
|
||||
return dbl;
|
||||
}
|
||||
|
||||
/*!
|
||||
Converts the value to a QString and returns it.
|
||||
|
||||
If type() is not String, a QString() will be returned.
|
||||
*/
|
||||
QString QJsonValue::toString() const
|
||||
{
|
||||
if (t != String)
|
||||
return QString();
|
||||
|
||||
/*
|
||||
stringData->ref.ref(); // the constructor below doesn't add a ref.
|
||||
return QString(*(const QConstStringData<1> *)stringData);
|
||||
*/
|
||||
return stringValue;
|
||||
}
|
||||
|
||||
/*!
|
||||
Converts the value to an array and returns it.
|
||||
|
||||
If type() is not Array, a QJsonArray() will be returned.
|
||||
*/
|
||||
QJsonArray QJsonValue::toArray() const
|
||||
{
|
||||
if (!d || t != Array)
|
||||
return QJsonArray();
|
||||
|
||||
return QJsonArray(d, static_cast<QJsonPrivate::Array *>(base));
|
||||
}
|
||||
|
||||
/*!
|
||||
Converts the value to an object and returns it.
|
||||
|
||||
If type() is not Object, a QJsonObject() will be returned.
|
||||
*/
|
||||
QJsonObject QJsonValue::toObject() const
|
||||
{
|
||||
if (!d || t != Object)
|
||||
return QJsonObject();
|
||||
|
||||
return QJsonObject(d, static_cast<QJsonPrivate::Object *>(base));
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns true if the value is equal to \a other.
|
||||
*/
|
||||
bool QJsonValue::operator==(const QJsonValue &other) const
|
||||
{
|
||||
if (t != other.t)
|
||||
return false;
|
||||
|
||||
switch (t) {
|
||||
case Undefined:
|
||||
case Null:
|
||||
break;
|
||||
case Bool:
|
||||
return b == other.b;
|
||||
case Double:
|
||||
return dbl == other.dbl;
|
||||
case String:
|
||||
return toString() == other.toString();
|
||||
case Array:
|
||||
return QJsonArray(d, static_cast<QJsonPrivate::Array *>(base))
|
||||
== QJsonArray(other.d, static_cast<QJsonPrivate::Array *>(other.base));
|
||||
case Object:
|
||||
return QJsonObject(d, static_cast<QJsonPrivate::Object *>(base))
|
||||
== QJsonObject(other.d, static_cast<QJsonPrivate::Object *>(other.base));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/*!
|
||||
Returns true if the value is not equal to \a other.
|
||||
*/
|
||||
bool QJsonValue::operator!=(const QJsonValue &other) const
|
||||
{
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
void QJsonValue::detach()
|
||||
{
|
||||
if (!d)
|
||||
return;
|
||||
|
||||
QJsonPrivate::Data *x = d->clone(base);
|
||||
x->ref.ref();
|
||||
if (!d->ref.deref())
|
||||
delete d;
|
||||
d = x;
|
||||
base = static_cast<QJsonPrivate::Object *>(d->header->root());
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\class QJsonValueRef
|
||||
\reentrant
|
||||
\brief The QJsonValueRef class is a helper class for QJsonValue.
|
||||
|
||||
\internal
|
||||
|
||||
\ingroup json
|
||||
|
||||
When you get an object of type QJsonValueRef, if you can assign to it,
|
||||
the assignment will apply to the character in the string from
|
||||
which you got the reference. That is its whole purpose in life.
|
||||
|
||||
You can use it exactly in the same way as a reference to a QJsonValue.
|
||||
|
||||
The QJsonValueRef becomes invalid once modifications are made to the
|
||||
string: if you want to keep the character, copy it into a QJsonValue.
|
||||
|
||||
Most of the QJsonValue member functions also exist in QJsonValueRef.
|
||||
However, they are not explicitly documented here.
|
||||
*/
|
||||
|
||||
|
||||
QJsonValueRef &QJsonValueRef::operator =(const QJsonValue &val)
|
||||
{
|
||||
if (is_object)
|
||||
o->setValueAt(index, val);
|
||||
else
|
||||
a->replace(index, val);
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
QJsonArray QJsonValueRef::toArray() const
|
||||
{
|
||||
return toValue().toArray();
|
||||
}
|
||||
|
||||
QJsonObject QJsonValueRef::toObject() const
|
||||
{
|
||||
return toValue().toObject();
|
||||
}
|
||||
|
||||
QJsonValue QJsonValueRef::toValue() const
|
||||
{
|
||||
if (!is_object)
|
||||
return a->at(index);
|
||||
return o->valueAt(index);
|
||||
}
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
QDebug operator<<(QDebug dbg, const QJsonValue &o)
|
||||
{
|
||||
switch (o.t) {
|
||||
case QJsonValue::Undefined:
|
||||
dbg.nospace() << "QJsonValue(undefined)";
|
||||
break;
|
||||
case QJsonValue::Null:
|
||||
dbg.nospace() << "QJsonValue(null)";
|
||||
break;
|
||||
case QJsonValue::Bool:
|
||||
dbg.nospace() << "QJsonValue(bool, " << o.toBool() << ")";
|
||||
break;
|
||||
case QJsonValue::Double:
|
||||
dbg.nospace() << "QJsonValue(double, " << o.toDouble() << ")";
|
||||
break;
|
||||
case QJsonValue::String:
|
||||
dbg.nospace() << "QJsonValue(string, " << o.toString() << ")";
|
||||
break;
|
||||
case QJsonValue::Array:
|
||||
dbg.nospace() << "QJsonValue(array, ";
|
||||
dbg.nospace() << o.toArray();
|
||||
dbg.nospace() << ")";
|
||||
break;
|
||||
case QJsonValue::Object:
|
||||
dbg.nospace() << "QJsonValue(object, ";
|
||||
dbg.nospace() << o.toObject();
|
||||
dbg.nospace() << ")";
|
||||
break;
|
||||
}
|
||||
return dbg.space();
|
||||
}
|
||||
#endif
|
||||
|
||||
QT_END_NAMESPACE
|
||||
Binary file not shown.
@@ -0,0 +1,240 @@
|
||||
|
||||
#include "logger.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <QDateTime>
|
||||
#include <QThread>
|
||||
#include <QObject>
|
||||
|
||||
Logger* Logger::defaultLogger=nullptr;
|
||||
|
||||
|
||||
QThreadStorage<QHash<QString,QString>*> Logger::logVars;
|
||||
|
||||
|
||||
QMutex Logger::mutex;
|
||||
|
||||
|
||||
Logger::Logger(QObject* parent)
|
||||
: QObject(parent),
|
||||
msgFormat("{timestamp} {type} {msg}"),
|
||||
timestampFormat("dd.MM.yyyy hh:mm:ss.zzz"),
|
||||
minLevel(QtDebugMsg),
|
||||
bufferSize(0)
|
||||
{}
|
||||
|
||||
|
||||
Logger::Logger(const QString msgFormat, const QString timestampFormat, const QtMsgType minLevel, const int bufferSize, QObject* parent)
|
||||
:QObject(parent)
|
||||
{
|
||||
this->msgFormat=msgFormat;
|
||||
this->timestampFormat=timestampFormat;
|
||||
this->minLevel=minLevel;
|
||||
this->bufferSize=bufferSize;
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
static QRecursiveMutex recursiveMutex;
|
||||
static QMutex nonRecursiveMutex;
|
||||
#else
|
||||
static QMutex recursiveMutex(QMutex::Recursive);
|
||||
static QMutex nonRecursiveMutex(QMutex::NonRecursive);
|
||||
#endif
|
||||
|
||||
void Logger::msgHandler(const QtMsgType type, const QString &message, const QString &file, const QString &function, const int line)
|
||||
{
|
||||
|
||||
recursiveMutex.lock();
|
||||
|
||||
if (defaultLogger && nonRecursiveMutex.tryLock())
|
||||
{
|
||||
defaultLogger->log(type, message, file, function, line);
|
||||
nonRecursiveMutex.unlock();
|
||||
}
|
||||
else
|
||||
{
|
||||
fputs(qPrintable(message),stderr);
|
||||
fflush(stderr);
|
||||
}
|
||||
|
||||
if (type==QtFatalMsg)
|
||||
{
|
||||
abort();
|
||||
}
|
||||
|
||||
recursiveMutex.unlock();
|
||||
}
|
||||
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
void Logger::msgHandler5(const QtMsgType type, const QMessageLogContext &context, const QString &message)
|
||||
{
|
||||
(void)(context);
|
||||
msgHandler(type,message,context.file,context.function,context.line);
|
||||
}
|
||||
#else
|
||||
void Logger::msgHandler4(const QtMsgType type, const char* message)
|
||||
{
|
||||
msgHandler(type,message);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Logger::~Logger()
|
||||
{
|
||||
if (defaultLogger==this)
|
||||
{
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
qInstallMessageHandler(nullptr);
|
||||
#else
|
||||
qInstallMsgHandler(nullptr);
|
||||
#endif
|
||||
defaultLogger=nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void Logger::write(const LogMessage* logMessage)
|
||||
{
|
||||
fputs(qPrintable(logMessage->toString(msgFormat,timestampFormat)),stderr);
|
||||
fflush(stderr);
|
||||
}
|
||||
|
||||
|
||||
void Logger::installMsgHandler()
|
||||
{
|
||||
defaultLogger=this;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
|
||||
qInstallMessageHandler(msgHandler5);
|
||||
#else
|
||||
qInstallMsgHandler(msgHandler4);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
void Logger::set(const QString& name, const QString& value)
|
||||
{
|
||||
mutex.lock();
|
||||
if (!logVars.hasLocalData())
|
||||
{
|
||||
logVars.setLocalData(new QHash<QString,QString>);
|
||||
}
|
||||
logVars.localData()->insert(name,value);
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
|
||||
void Logger::clear(const bool buffer, const bool variables)
|
||||
{
|
||||
mutex.lock();
|
||||
if (buffer && buffers.hasLocalData())
|
||||
{
|
||||
QList<LogMessage*>* buffer=buffers.localData();
|
||||
while (buffer && !buffer->isEmpty())
|
||||
{
|
||||
LogMessage* logMessage=buffer->takeLast();
|
||||
delete logMessage;
|
||||
}
|
||||
}
|
||||
if (variables && logVars.hasLocalData())
|
||||
{
|
||||
logVars.localData()->clear();
|
||||
}
|
||||
mutex.unlock();
|
||||
}
|
||||
|
||||
|
||||
void Logger::log(const QtMsgType type, const QString& message, const QString &file, const QString &function, const int line)
|
||||
{
|
||||
bool toPrint=false;
|
||||
switch (type)
|
||||
{
|
||||
case QtDebugMsg:
|
||||
if (minLevel==QtDebugMsg)
|
||||
{
|
||||
toPrint=true;
|
||||
}
|
||||
break;
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
|
||||
case QtInfoMsg:
|
||||
if (minLevel==QtDebugMsg ||
|
||||
minLevel==QtInfoMsg)
|
||||
{
|
||||
toPrint=true;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
|
||||
case QtWarningMsg:
|
||||
if (minLevel==QtDebugMsg ||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
|
||||
minLevel==QtInfoMsg ||
|
||||
#endif
|
||||
minLevel==QtWarningMsg)
|
||||
{
|
||||
toPrint=true;
|
||||
}
|
||||
break;
|
||||
|
||||
case QtCriticalMsg:
|
||||
if (minLevel==QtDebugMsg ||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
|
||||
minLevel==QtInfoMsg ||
|
||||
#endif
|
||||
minLevel==QtWarningMsg ||
|
||||
minLevel==QtCriticalMsg)
|
||||
{
|
||||
toPrint=true;
|
||||
}
|
||||
break;
|
||||
|
||||
case QtFatalMsg:
|
||||
toPrint=true;
|
||||
break;
|
||||
|
||||
default:
|
||||
toPrint=true;
|
||||
}
|
||||
|
||||
mutex.lock();
|
||||
|
||||
if (bufferSize>0)
|
||||
{
|
||||
|
||||
if (!buffers.hasLocalData())
|
||||
{
|
||||
buffers.setLocalData(new QList<LogMessage*>());
|
||||
}
|
||||
QList<LogMessage*>* buffer=buffers.localData();
|
||||
|
||||
LogMessage* logMessage=new LogMessage(type,message,logVars.localData(),file,function,line);
|
||||
buffer->append(logMessage);
|
||||
|
||||
if (buffer->size()>bufferSize)
|
||||
{
|
||||
delete buffer->takeFirst();
|
||||
}
|
||||
|
||||
if (toPrint)
|
||||
{
|
||||
|
||||
while (!buffer->isEmpty())
|
||||
{
|
||||
LogMessage* logMessage=buffer->takeFirst();
|
||||
write(logMessage);
|
||||
delete logMessage;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if (toPrint)
|
||||
{
|
||||
LogMessage logMessage(type,message,logVars.localData(),file,function,line);
|
||||
write(&logMessage);
|
||||
}
|
||||
}
|
||||
mutex.unlock();
|
||||
}
|
||||
@@ -0,0 +1,666 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'triggerctrl.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 4.8.5
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_TRIGGERCTRL_H
|
||||
#define UI_TRIGGERCTRL_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QCheckBox>
|
||||
#include <QtGui/QComboBox>
|
||||
#include <QtGui/QFrame>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QGroupBox>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QRadioButton>
|
||||
#include <QtGui/QSpacerItem>
|
||||
#include <QtGui/QSpinBox>
|
||||
#include <QtGui/QVBoxLayout>
|
||||
#include <QtGui/QWidget>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_TriggerCtrl
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout_2;
|
||||
QVBoxLayout *verticalLayout;
|
||||
QGroupBox *groupBox;
|
||||
QGridLayout *gridLayout_3;
|
||||
QGridLayout *gridLayout;
|
||||
QRadioButton *radioButtonEleEyeLevelTrigger;
|
||||
QRadioButton *radioButtonEleEyeEdgetTrigger;
|
||||
QRadioButton *radioButtonSynTrigger;
|
||||
QRadioButton *radioButtonDelayTrigger;
|
||||
QLabel *label;
|
||||
QGridLayout *gridLayout_5;
|
||||
QLabel *labelEleMaskTime;
|
||||
QSpinBox *spinBoxDelayTriggerValue;
|
||||
QLabel *labelTriggerPulsePerMm;
|
||||
QComboBox *comboBoxAltMirrType;
|
||||
QSpinBox *spinBoxEleMaskTime;
|
||||
QLineEdit *lineEditTriggerPulsePerMm;
|
||||
QComboBox *comboBoxTimeTriggerMode;
|
||||
QLabel *label_2;
|
||||
QSpinBox *spinBoxSynTriggerPrintLenRatio;
|
||||
QCheckBox *checkBoxSynMakeClean;
|
||||
QPushButton *pushButtonApplyPulseFix;
|
||||
QSpinBox *spinBoxOuputPulseCol;
|
||||
QSpinBox *spinBoxEleEyeTriggerIntervalMs;
|
||||
QLabel *label_miv12;
|
||||
QCheckBox *checkBoxPulseOutputEnable;
|
||||
QLabel *labelEleEyeTriggerIntervalMs;
|
||||
QLabel *labelOutputPulseDelayMs;
|
||||
QLabel *labelSynTriggerPrintLenRatio;
|
||||
QCheckBox *checkEyeTriggerSynPrintEn;
|
||||
QLineEdit *spinBoxSynTriggerPrintLen;
|
||||
QFrame *line_5;
|
||||
QLabel *labelTimeTriggerMode;
|
||||
QSpinBox *spinBoxOutputPulseDelayMs;
|
||||
QLabel *labelProductCntPerOutputPulse;
|
||||
QLabel *labelDelayTriggerValue;
|
||||
QLabel *label_4;
|
||||
QComboBox *comboBoxSynPrintMode;
|
||||
QSpinBox *spinBoxEleEyeTriggerRepeatCnt;
|
||||
QComboBox *comboBoxEleEyeMakeClean;
|
||||
QLabel *labelSynPrintMode;
|
||||
QSpinBox *spinBoxAltMirrorGap;
|
||||
QLabel *labelEleEyeTriggerRepeatCnt;
|
||||
QFrame *line_7;
|
||||
QSpinBox *spinBoxEleEyeTriggerPrintDelay;
|
||||
QFrame *line_3;
|
||||
QLabel *labelEleEyeTriggerPrintDelay;
|
||||
QSpinBox *spinBoxProductCntPerOutputPulse;
|
||||
QComboBox *comboBoxSyncActType;
|
||||
QLabel *labelSynTriggerPrintLen;
|
||||
QCheckBox *checkBoxEleEyeMakeClean;
|
||||
QLabel *label_5;
|
||||
QSpinBox *spinBoxpluseSinal;
|
||||
QFrame *line_2;
|
||||
QHBoxLayout *horizontalLayout;
|
||||
QLabel *test_version;
|
||||
QSpacerItem *horizontalSpacer;
|
||||
QLabel *label_3;
|
||||
QPushButton *pushButtonApply;
|
||||
QFrame *line_6;
|
||||
|
||||
void setupUi(QWidget *TriggerCtrl)
|
||||
{
|
||||
if (TriggerCtrl->objectName().isEmpty())
|
||||
TriggerCtrl->setObjectName(QString::fromUtf8("TriggerCtrl"));
|
||||
TriggerCtrl->resize(800, 600);
|
||||
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
sizePolicy.setHorizontalStretch(0);
|
||||
sizePolicy.setVerticalStretch(0);
|
||||
sizePolicy.setHeightForWidth(TriggerCtrl->sizePolicy().hasHeightForWidth());
|
||||
TriggerCtrl->setSizePolicy(sizePolicy);
|
||||
TriggerCtrl->setFocusPolicy(Qt::StrongFocus);
|
||||
gridLayout_2 = new QGridLayout(TriggerCtrl);
|
||||
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
|
||||
verticalLayout = new QVBoxLayout();
|
||||
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
|
||||
groupBox = new QGroupBox(TriggerCtrl);
|
||||
groupBox->setObjectName(QString::fromUtf8("groupBox"));
|
||||
sizePolicy.setHeightForWidth(groupBox->sizePolicy().hasHeightForWidth());
|
||||
groupBox->setSizePolicy(sizePolicy);
|
||||
groupBox->setMinimumSize(QSize(0, 50));
|
||||
groupBox->setMaximumSize(QSize(16777215, 60));
|
||||
gridLayout_3 = new QGridLayout(groupBox);
|
||||
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
|
||||
gridLayout = new QGridLayout();
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
gridLayout->setHorizontalSpacing(0);
|
||||
gridLayout->setVerticalSpacing(10);
|
||||
radioButtonEleEyeLevelTrigger = new QRadioButton(groupBox);
|
||||
radioButtonEleEyeLevelTrigger->setObjectName(QString::fromUtf8("radioButtonEleEyeLevelTrigger"));
|
||||
QSizePolicy sizePolicy1(QSizePolicy::Minimum, QSizePolicy::Preferred);
|
||||
sizePolicy1.setHorizontalStretch(0);
|
||||
sizePolicy1.setVerticalStretch(0);
|
||||
sizePolicy1.setHeightForWidth(radioButtonEleEyeLevelTrigger->sizePolicy().hasHeightForWidth());
|
||||
radioButtonEleEyeLevelTrigger->setSizePolicy(sizePolicy1);
|
||||
radioButtonEleEyeLevelTrigger->setMinimumSize(QSize(0, 24));
|
||||
radioButtonEleEyeLevelTrigger->setMaximumSize(QSize(16777215, 40));
|
||||
radioButtonEleEyeLevelTrigger->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
gridLayout->addWidget(radioButtonEleEyeLevelTrigger, 1, 2, 1, 1);
|
||||
|
||||
radioButtonEleEyeEdgetTrigger = new QRadioButton(groupBox);
|
||||
radioButtonEleEyeEdgetTrigger->setObjectName(QString::fromUtf8("radioButtonEleEyeEdgetTrigger"));
|
||||
sizePolicy1.setHeightForWidth(radioButtonEleEyeEdgetTrigger->sizePolicy().hasHeightForWidth());
|
||||
radioButtonEleEyeEdgetTrigger->setSizePolicy(sizePolicy1);
|
||||
radioButtonEleEyeEdgetTrigger->setMinimumSize(QSize(0, 24));
|
||||
radioButtonEleEyeEdgetTrigger->setMaximumSize(QSize(16777215, 40));
|
||||
radioButtonEleEyeEdgetTrigger->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
gridLayout->addWidget(radioButtonEleEyeEdgetTrigger, 1, 3, 1, 1);
|
||||
|
||||
radioButtonSynTrigger = new QRadioButton(groupBox);
|
||||
radioButtonSynTrigger->setObjectName(QString::fromUtf8("radioButtonSynTrigger"));
|
||||
sizePolicy1.setHeightForWidth(radioButtonSynTrigger->sizePolicy().hasHeightForWidth());
|
||||
radioButtonSynTrigger->setSizePolicy(sizePolicy1);
|
||||
radioButtonSynTrigger->setMinimumSize(QSize(0, 24));
|
||||
radioButtonSynTrigger->setMaximumSize(QSize(16777215, 40));
|
||||
radioButtonSynTrigger->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
gridLayout->addWidget(radioButtonSynTrigger, 1, 0, 1, 1);
|
||||
|
||||
radioButtonDelayTrigger = new QRadioButton(groupBox);
|
||||
radioButtonDelayTrigger->setObjectName(QString::fromUtf8("radioButtonDelayTrigger"));
|
||||
sizePolicy1.setHeightForWidth(radioButtonDelayTrigger->sizePolicy().hasHeightForWidth());
|
||||
radioButtonDelayTrigger->setSizePolicy(sizePolicy1);
|
||||
radioButtonDelayTrigger->setMinimumSize(QSize(0, 24));
|
||||
radioButtonDelayTrigger->setMaximumSize(QSize(16777215, 40));
|
||||
radioButtonDelayTrigger->setLayoutDirection(Qt::RightToLeft);
|
||||
|
||||
gridLayout->addWidget(radioButtonDelayTrigger, 1, 4, 1, 1);
|
||||
|
||||
label = new QLabel(groupBox);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
|
||||
gridLayout->addWidget(label, 1, 5, 1, 1);
|
||||
|
||||
|
||||
gridLayout_3->addLayout(gridLayout, 0, 0, 1, 1);
|
||||
|
||||
|
||||
verticalLayout->addWidget(groupBox);
|
||||
|
||||
gridLayout_5 = new QGridLayout();
|
||||
gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
|
||||
gridLayout_5->setHorizontalSpacing(6);
|
||||
labelEleMaskTime = new QLabel(TriggerCtrl);
|
||||
labelEleMaskTime->setObjectName(QString::fromUtf8("labelEleMaskTime"));
|
||||
labelEleMaskTime->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelEleMaskTime, 11, 2, 1, 1);
|
||||
|
||||
spinBoxDelayTriggerValue = new QSpinBox(TriggerCtrl);
|
||||
spinBoxDelayTriggerValue->setObjectName(QString::fromUtf8("spinBoxDelayTriggerValue"));
|
||||
sizePolicy.setHeightForWidth(spinBoxDelayTriggerValue->sizePolicy().hasHeightForWidth());
|
||||
spinBoxDelayTriggerValue->setSizePolicy(sizePolicy);
|
||||
spinBoxDelayTriggerValue->setMaximumSize(QSize(16777215, 37));
|
||||
spinBoxDelayTriggerValue->setMinimum(6);
|
||||
spinBoxDelayTriggerValue->setMaximum(9999999);
|
||||
spinBoxDelayTriggerValue->setValue(10);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxDelayTriggerValue, 13, 1, 1, 1);
|
||||
|
||||
labelTriggerPulsePerMm = new QLabel(TriggerCtrl);
|
||||
labelTriggerPulsePerMm->setObjectName(QString::fromUtf8("labelTriggerPulsePerMm"));
|
||||
labelTriggerPulsePerMm->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelTriggerPulsePerMm, 0, 0, 1, 1);
|
||||
|
||||
comboBoxAltMirrType = new QComboBox(TriggerCtrl);
|
||||
comboBoxAltMirrType->setObjectName(QString::fromUtf8("comboBoxAltMirrType"));
|
||||
sizePolicy.setHeightForWidth(comboBoxAltMirrType->sizePolicy().hasHeightForWidth());
|
||||
comboBoxAltMirrType->setSizePolicy(sizePolicy);
|
||||
comboBoxAltMirrType->setMaximumSize(QSize(16777215, 37));
|
||||
|
||||
gridLayout_5->addWidget(comboBoxAltMirrType, 3, 1, 1, 1);
|
||||
|
||||
spinBoxEleMaskTime = new QSpinBox(TriggerCtrl);
|
||||
spinBoxEleMaskTime->setObjectName(QString::fromUtf8("spinBoxEleMaskTime"));
|
||||
sizePolicy1.setHeightForWidth(spinBoxEleMaskTime->sizePolicy().hasHeightForWidth());
|
||||
spinBoxEleMaskTime->setSizePolicy(sizePolicy1);
|
||||
spinBoxEleMaskTime->setMinimum(1);
|
||||
spinBoxEleMaskTime->setMaximum(65535);
|
||||
spinBoxEleMaskTime->setValue(1);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxEleMaskTime, 11, 3, 1, 1);
|
||||
|
||||
lineEditTriggerPulsePerMm = new QLineEdit(TriggerCtrl);
|
||||
lineEditTriggerPulsePerMm->setObjectName(QString::fromUtf8("lineEditTriggerPulsePerMm"));
|
||||
sizePolicy.setHeightForWidth(lineEditTriggerPulsePerMm->sizePolicy().hasHeightForWidth());
|
||||
lineEditTriggerPulsePerMm->setSizePolicy(sizePolicy);
|
||||
lineEditTriggerPulsePerMm->setMinimumSize(QSize(0, 30));
|
||||
lineEditTriggerPulsePerMm->setMaximumSize(QSize(16777215, 37));
|
||||
lineEditTriggerPulsePerMm->setInputMethodHints(Qt::ImhNone);
|
||||
|
||||
gridLayout_5->addWidget(lineEditTriggerPulsePerMm, 0, 1, 1, 1);
|
||||
|
||||
comboBoxTimeTriggerMode = new QComboBox(TriggerCtrl);
|
||||
comboBoxTimeTriggerMode->setObjectName(QString::fromUtf8("comboBoxTimeTriggerMode"));
|
||||
sizePolicy.setHeightForWidth(comboBoxTimeTriggerMode->sizePolicy().hasHeightForWidth());
|
||||
comboBoxTimeTriggerMode->setSizePolicy(sizePolicy);
|
||||
comboBoxTimeTriggerMode->setMaximumSize(QSize(16777215, 100));
|
||||
|
||||
gridLayout_5->addWidget(comboBoxTimeTriggerMode, 13, 3, 1, 1);
|
||||
|
||||
label_2 = new QLabel(TriggerCtrl);
|
||||
label_2->setObjectName(QString::fromUtf8("label_2"));
|
||||
label_2->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(label_2, 3, 0, 1, 1);
|
||||
|
||||
spinBoxSynTriggerPrintLenRatio = new QSpinBox(TriggerCtrl);
|
||||
spinBoxSynTriggerPrintLenRatio->setObjectName(QString::fromUtf8("spinBoxSynTriggerPrintLenRatio"));
|
||||
sizePolicy.setHeightForWidth(spinBoxSynTriggerPrintLenRatio->sizePolicy().hasHeightForWidth());
|
||||
spinBoxSynTriggerPrintLenRatio->setSizePolicy(sizePolicy);
|
||||
spinBoxSynTriggerPrintLenRatio->setMinimumSize(QSize(0, 30));
|
||||
spinBoxSynTriggerPrintLenRatio->setMaximumSize(QSize(16777215, 37));
|
||||
spinBoxSynTriggerPrintLenRatio->setMinimum(0);
|
||||
spinBoxSynTriggerPrintLenRatio->setMaximum(99);
|
||||
spinBoxSynTriggerPrintLenRatio->setValue(8);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxSynTriggerPrintLenRatio, 2, 3, 1, 1);
|
||||
|
||||
checkBoxSynMakeClean = new QCheckBox(TriggerCtrl);
|
||||
checkBoxSynMakeClean->setObjectName(QString::fromUtf8("checkBoxSynMakeClean"));
|
||||
sizePolicy1.setHeightForWidth(checkBoxSynMakeClean->sizePolicy().hasHeightForWidth());
|
||||
checkBoxSynMakeClean->setSizePolicy(sizePolicy1);
|
||||
checkBoxSynMakeClean->setLayoutDirection(Qt::LeftToRight);
|
||||
|
||||
gridLayout_5->addWidget(checkBoxSynMakeClean, 11, 4, 1, 2);
|
||||
|
||||
pushButtonApplyPulseFix = new QPushButton(TriggerCtrl);
|
||||
pushButtonApplyPulseFix->setObjectName(QString::fromUtf8("pushButtonApplyPulseFix"));
|
||||
sizePolicy1.setHeightForWidth(pushButtonApplyPulseFix->sizePolicy().hasHeightForWidth());
|
||||
pushButtonApplyPulseFix->setSizePolicy(sizePolicy1);
|
||||
pushButtonApplyPulseFix->setLayoutDirection(Qt::LeftToRight);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icon/pulse.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
pushButtonApplyPulseFix->setIcon(icon);
|
||||
|
||||
gridLayout_5->addWidget(pushButtonApplyPulseFix, 0, 4, 1, 2);
|
||||
|
||||
spinBoxOuputPulseCol = new QSpinBox(TriggerCtrl);
|
||||
spinBoxOuputPulseCol->setObjectName(QString::fromUtf8("spinBoxOuputPulseCol"));
|
||||
sizePolicy1.setHeightForWidth(spinBoxOuputPulseCol->sizePolicy().hasHeightForWidth());
|
||||
spinBoxOuputPulseCol->setSizePolicy(sizePolicy1);
|
||||
spinBoxOuputPulseCol->setMinimum(1);
|
||||
spinBoxOuputPulseCol->setMaximum(200);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxOuputPulseCol, 3, 5, 1, 1);
|
||||
|
||||
spinBoxEleEyeTriggerIntervalMs = new QSpinBox(TriggerCtrl);
|
||||
spinBoxEleEyeTriggerIntervalMs->setObjectName(QString::fromUtf8("spinBoxEleEyeTriggerIntervalMs"));
|
||||
sizePolicy.setHeightForWidth(spinBoxEleEyeTriggerIntervalMs->sizePolicy().hasHeightForWidth());
|
||||
spinBoxEleEyeTriggerIntervalMs->setSizePolicy(sizePolicy);
|
||||
spinBoxEleEyeTriggerIntervalMs->setMaximumSize(QSize(16777215, 100));
|
||||
spinBoxEleEyeTriggerIntervalMs->setMinimum(1);
|
||||
spinBoxEleEyeTriggerIntervalMs->setMaximum(65535);
|
||||
spinBoxEleEyeTriggerIntervalMs->setValue(1);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxEleEyeTriggerIntervalMs, 10, 3, 1, 1);
|
||||
|
||||
label_miv12 = new QLabel(TriggerCtrl);
|
||||
label_miv12->setObjectName(QString::fromUtf8("label_miv12"));
|
||||
QSizePolicy sizePolicy2(QSizePolicy::Expanding, QSizePolicy::Expanding);
|
||||
sizePolicy2.setHorizontalStretch(0);
|
||||
sizePolicy2.setVerticalStretch(0);
|
||||
sizePolicy2.setHeightForWidth(label_miv12->sizePolicy().hasHeightForWidth());
|
||||
label_miv12->setSizePolicy(sizePolicy2);
|
||||
label_miv12->setScaledContents(true);
|
||||
|
||||
gridLayout_5->addWidget(label_miv12, 3, 2, 2, 2);
|
||||
|
||||
checkBoxPulseOutputEnable = new QCheckBox(TriggerCtrl);
|
||||
checkBoxPulseOutputEnable->setObjectName(QString::fromUtf8("checkBoxPulseOutputEnable"));
|
||||
sizePolicy1.setHeightForWidth(checkBoxPulseOutputEnable->sizePolicy().hasHeightForWidth());
|
||||
checkBoxPulseOutputEnable->setSizePolicy(sizePolicy1);
|
||||
|
||||
gridLayout_5->addWidget(checkBoxPulseOutputEnable, 15, 4, 1, 2);
|
||||
|
||||
labelEleEyeTriggerIntervalMs = new QLabel(TriggerCtrl);
|
||||
labelEleEyeTriggerIntervalMs->setObjectName(QString::fromUtf8("labelEleEyeTriggerIntervalMs"));
|
||||
labelEleEyeTriggerIntervalMs->setLayoutDirection(Qt::LeftToRight);
|
||||
labelEleEyeTriggerIntervalMs->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelEleEyeTriggerIntervalMs, 10, 2, 1, 1);
|
||||
|
||||
labelOutputPulseDelayMs = new QLabel(TriggerCtrl);
|
||||
labelOutputPulseDelayMs->setObjectName(QString::fromUtf8("labelOutputPulseDelayMs"));
|
||||
labelOutputPulseDelayMs->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelOutputPulseDelayMs, 15, 2, 1, 1);
|
||||
|
||||
labelSynTriggerPrintLenRatio = new QLabel(TriggerCtrl);
|
||||
labelSynTriggerPrintLenRatio->setObjectName(QString::fromUtf8("labelSynTriggerPrintLenRatio"));
|
||||
labelSynTriggerPrintLenRatio->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelSynTriggerPrintLenRatio, 2, 2, 1, 1);
|
||||
|
||||
checkEyeTriggerSynPrintEn = new QCheckBox(TriggerCtrl);
|
||||
checkEyeTriggerSynPrintEn->setObjectName(QString::fromUtf8("checkEyeTriggerSynPrintEn"));
|
||||
sizePolicy1.setHeightForWidth(checkEyeTriggerSynPrintEn->sizePolicy().hasHeightForWidth());
|
||||
checkEyeTriggerSynPrintEn->setSizePolicy(sizePolicy1);
|
||||
checkEyeTriggerSynPrintEn->setLayoutDirection(Qt::LeftToRight);
|
||||
|
||||
gridLayout_5->addWidget(checkEyeTriggerSynPrintEn, 10, 4, 1, 2);
|
||||
|
||||
spinBoxSynTriggerPrintLen = new QLineEdit(TriggerCtrl);
|
||||
spinBoxSynTriggerPrintLen->setObjectName(QString::fromUtf8("spinBoxSynTriggerPrintLen"));
|
||||
QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||
sizePolicy3.setHorizontalStretch(0);
|
||||
sizePolicy3.setVerticalStretch(0);
|
||||
sizePolicy3.setHeightForWidth(spinBoxSynTriggerPrintLen->sizePolicy().hasHeightForWidth());
|
||||
spinBoxSynTriggerPrintLen->setSizePolicy(sizePolicy3);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxSynTriggerPrintLen, 0, 3, 1, 1);
|
||||
|
||||
line_5 = new QFrame(TriggerCtrl);
|
||||
line_5->setObjectName(QString::fromUtf8("line_5"));
|
||||
line_5->setFrameShape(QFrame::HLine);
|
||||
line_5->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
gridLayout_5->addWidget(line_5, 12, 0, 1, 6);
|
||||
|
||||
labelTimeTriggerMode = new QLabel(TriggerCtrl);
|
||||
labelTimeTriggerMode->setObjectName(QString::fromUtf8("labelTimeTriggerMode"));
|
||||
labelTimeTriggerMode->setLayoutDirection(Qt::LeftToRight);
|
||||
labelTimeTriggerMode->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelTimeTriggerMode, 13, 2, 1, 1);
|
||||
|
||||
spinBoxOutputPulseDelayMs = new QSpinBox(TriggerCtrl);
|
||||
spinBoxOutputPulseDelayMs->setObjectName(QString::fromUtf8("spinBoxOutputPulseDelayMs"));
|
||||
sizePolicy.setHeightForWidth(spinBoxOutputPulseDelayMs->sizePolicy().hasHeightForWidth());
|
||||
spinBoxOutputPulseDelayMs->setSizePolicy(sizePolicy);
|
||||
spinBoxOutputPulseDelayMs->setMaximumSize(QSize(16777215, 100));
|
||||
spinBoxOutputPulseDelayMs->setMinimum(0);
|
||||
spinBoxOutputPulseDelayMs->setMaximum(65535);
|
||||
spinBoxOutputPulseDelayMs->setSingleStep(1);
|
||||
spinBoxOutputPulseDelayMs->setValue(10);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxOutputPulseDelayMs, 15, 3, 1, 1);
|
||||
|
||||
labelProductCntPerOutputPulse = new QLabel(TriggerCtrl);
|
||||
labelProductCntPerOutputPulse->setObjectName(QString::fromUtf8("labelProductCntPerOutputPulse"));
|
||||
|
||||
gridLayout_5->addWidget(labelProductCntPerOutputPulse, 15, 0, 1, 1);
|
||||
|
||||
labelDelayTriggerValue = new QLabel(TriggerCtrl);
|
||||
labelDelayTriggerValue->setObjectName(QString::fromUtf8("labelDelayTriggerValue"));
|
||||
sizePolicy.setHeightForWidth(labelDelayTriggerValue->sizePolicy().hasHeightForWidth());
|
||||
labelDelayTriggerValue->setSizePolicy(sizePolicy);
|
||||
labelDelayTriggerValue->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelDelayTriggerValue, 13, 0, 1, 1);
|
||||
|
||||
label_4 = new QLabel(TriggerCtrl);
|
||||
label_4->setObjectName(QString::fromUtf8("label_4"));
|
||||
label_4->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(label_4, 4, 0, 1, 1);
|
||||
|
||||
comboBoxSynPrintMode = new QComboBox(TriggerCtrl);
|
||||
comboBoxSynPrintMode->setObjectName(QString::fromUtf8("comboBoxSynPrintMode"));
|
||||
sizePolicy.setHeightForWidth(comboBoxSynPrintMode->sizePolicy().hasHeightForWidth());
|
||||
comboBoxSynPrintMode->setSizePolicy(sizePolicy);
|
||||
comboBoxSynPrintMode->setMinimumSize(QSize(0, 30));
|
||||
comboBoxSynPrintMode->setMaximumSize(QSize(16777215, 37));
|
||||
|
||||
gridLayout_5->addWidget(comboBoxSynPrintMode, 2, 1, 1, 1);
|
||||
|
||||
spinBoxEleEyeTriggerRepeatCnt = new QSpinBox(TriggerCtrl);
|
||||
spinBoxEleEyeTriggerRepeatCnt->setObjectName(QString::fromUtf8("spinBoxEleEyeTriggerRepeatCnt"));
|
||||
sizePolicy.setHeightForWidth(spinBoxEleEyeTriggerRepeatCnt->sizePolicy().hasHeightForWidth());
|
||||
spinBoxEleEyeTriggerRepeatCnt->setSizePolicy(sizePolicy);
|
||||
spinBoxEleEyeTriggerRepeatCnt->setMaximumSize(QSize(16777215, 37));
|
||||
spinBoxEleEyeTriggerRepeatCnt->setMinimum(1);
|
||||
spinBoxEleEyeTriggerRepeatCnt->setMaximum(253);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxEleEyeTriggerRepeatCnt, 10, 1, 1, 1);
|
||||
|
||||
comboBoxEleEyeMakeClean = new QComboBox(TriggerCtrl);
|
||||
comboBoxEleEyeMakeClean->setObjectName(QString::fromUtf8("comboBoxEleEyeMakeClean"));
|
||||
sizePolicy.setHeightForWidth(comboBoxEleEyeMakeClean->sizePolicy().hasHeightForWidth());
|
||||
comboBoxEleEyeMakeClean->setSizePolicy(sizePolicy);
|
||||
comboBoxEleEyeMakeClean->setMinimumSize(QSize(0, 30));
|
||||
comboBoxEleEyeMakeClean->setMaximumSize(QSize(16777215, 37));
|
||||
|
||||
gridLayout_5->addWidget(comboBoxEleEyeMakeClean, 2, 4, 1, 2);
|
||||
|
||||
labelSynPrintMode = new QLabel(TriggerCtrl);
|
||||
labelSynPrintMode->setObjectName(QString::fromUtf8("labelSynPrintMode"));
|
||||
labelSynPrintMode->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelSynPrintMode, 2, 0, 1, 1);
|
||||
|
||||
spinBoxAltMirrorGap = new QSpinBox(TriggerCtrl);
|
||||
spinBoxAltMirrorGap->setObjectName(QString::fromUtf8("spinBoxAltMirrorGap"));
|
||||
sizePolicy1.setHeightForWidth(spinBoxAltMirrorGap->sizePolicy().hasHeightForWidth());
|
||||
spinBoxAltMirrorGap->setSizePolicy(sizePolicy1);
|
||||
spinBoxAltMirrorGap->setMaximumSize(QSize(16777215, 37));
|
||||
spinBoxAltMirrorGap->setMaximum(65535);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxAltMirrorGap, 4, 1, 1, 1);
|
||||
|
||||
labelEleEyeTriggerRepeatCnt = new QLabel(TriggerCtrl);
|
||||
labelEleEyeTriggerRepeatCnt->setObjectName(QString::fromUtf8("labelEleEyeTriggerRepeatCnt"));
|
||||
labelEleEyeTriggerRepeatCnt->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelEleEyeTriggerRepeatCnt, 10, 0, 1, 1);
|
||||
|
||||
line_7 = new QFrame(TriggerCtrl);
|
||||
line_7->setObjectName(QString::fromUtf8("line_7"));
|
||||
line_7->setFrameShape(QFrame::HLine);
|
||||
line_7->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
gridLayout_5->addWidget(line_7, 8, 0, 1, 6);
|
||||
|
||||
spinBoxEleEyeTriggerPrintDelay = new QSpinBox(TriggerCtrl);
|
||||
spinBoxEleEyeTriggerPrintDelay->setObjectName(QString::fromUtf8("spinBoxEleEyeTriggerPrintDelay"));
|
||||
sizePolicy.setHeightForWidth(spinBoxEleEyeTriggerPrintDelay->sizePolicy().hasHeightForWidth());
|
||||
spinBoxEleEyeTriggerPrintDelay->setSizePolicy(sizePolicy);
|
||||
spinBoxEleEyeTriggerPrintDelay->setMaximumSize(QSize(16777215, 37));
|
||||
spinBoxEleEyeTriggerPrintDelay->setMinimum(1);
|
||||
spinBoxEleEyeTriggerPrintDelay->setMaximum(100000);
|
||||
spinBoxEleEyeTriggerPrintDelay->setSingleStep(1);
|
||||
spinBoxEleEyeTriggerPrintDelay->setValue(1);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxEleEyeTriggerPrintDelay, 11, 1, 1, 1);
|
||||
|
||||
line_3 = new QFrame(TriggerCtrl);
|
||||
line_3->setObjectName(QString::fromUtf8("line_3"));
|
||||
line_3->setFrameShape(QFrame::HLine);
|
||||
line_3->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
gridLayout_5->addWidget(line_3, 14, 0, 1, 6);
|
||||
|
||||
labelEleEyeTriggerPrintDelay = new QLabel(TriggerCtrl);
|
||||
labelEleEyeTriggerPrintDelay->setObjectName(QString::fromUtf8("labelEleEyeTriggerPrintDelay"));
|
||||
labelEleEyeTriggerPrintDelay->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelEleEyeTriggerPrintDelay, 11, 0, 1, 1);
|
||||
|
||||
spinBoxProductCntPerOutputPulse = new QSpinBox(TriggerCtrl);
|
||||
spinBoxProductCntPerOutputPulse->setObjectName(QString::fromUtf8("spinBoxProductCntPerOutputPulse"));
|
||||
sizePolicy.setHeightForWidth(spinBoxProductCntPerOutputPulse->sizePolicy().hasHeightForWidth());
|
||||
spinBoxProductCntPerOutputPulse->setSizePolicy(sizePolicy);
|
||||
spinBoxProductCntPerOutputPulse->setMaximumSize(QSize(16777215, 37));
|
||||
spinBoxProductCntPerOutputPulse->setMinimum(1);
|
||||
spinBoxProductCntPerOutputPulse->setMaximum(65535);
|
||||
spinBoxProductCntPerOutputPulse->setValue(6);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxProductCntPerOutputPulse, 15, 1, 1, 1);
|
||||
|
||||
comboBoxSyncActType = new QComboBox(TriggerCtrl);
|
||||
comboBoxSyncActType->setObjectName(QString::fromUtf8("comboBoxSyncActType"));
|
||||
sizePolicy.setHeightForWidth(comboBoxSyncActType->sizePolicy().hasHeightForWidth());
|
||||
comboBoxSyncActType->setSizePolicy(sizePolicy);
|
||||
|
||||
gridLayout_5->addWidget(comboBoxSyncActType, 13, 4, 1, 2);
|
||||
|
||||
labelSynTriggerPrintLen = new QLabel(TriggerCtrl);
|
||||
labelSynTriggerPrintLen->setObjectName(QString::fromUtf8("labelSynTriggerPrintLen"));
|
||||
labelSynTriggerPrintLen->setLayoutDirection(Qt::LeftToRight);
|
||||
labelSynTriggerPrintLen->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
gridLayout_5->addWidget(labelSynTriggerPrintLen, 0, 2, 1, 1);
|
||||
|
||||
checkBoxEleEyeMakeClean = new QCheckBox(TriggerCtrl);
|
||||
checkBoxEleEyeMakeClean->setObjectName(QString::fromUtf8("checkBoxEleEyeMakeClean"));
|
||||
sizePolicy1.setHeightForWidth(checkBoxEleEyeMakeClean->sizePolicy().hasHeightForWidth());
|
||||
checkBoxEleEyeMakeClean->setSizePolicy(sizePolicy1);
|
||||
|
||||
gridLayout_5->addWidget(checkBoxEleEyeMakeClean, 3, 4, 1, 1);
|
||||
|
||||
label_5 = new QLabel(TriggerCtrl);
|
||||
label_5->setObjectName(QString::fromUtf8("label_5"));
|
||||
|
||||
gridLayout_5->addWidget(label_5, 4, 4, 1, 1);
|
||||
|
||||
spinBoxpluseSinal = new QSpinBox(TriggerCtrl);
|
||||
spinBoxpluseSinal->setObjectName(QString::fromUtf8("spinBoxpluseSinal"));
|
||||
sizePolicy1.setHeightForWidth(spinBoxpluseSinal->sizePolicy().hasHeightForWidth());
|
||||
spinBoxpluseSinal->setSizePolicy(sizePolicy1);
|
||||
spinBoxpluseSinal->setMaximum(100);
|
||||
|
||||
gridLayout_5->addWidget(spinBoxpluseSinal, 4, 5, 1, 1);
|
||||
|
||||
|
||||
verticalLayout->addLayout(gridLayout_5);
|
||||
|
||||
line_2 = new QFrame(TriggerCtrl);
|
||||
line_2->setObjectName(QString::fromUtf8("line_2"));
|
||||
line_2->setFrameShape(QFrame::HLine);
|
||||
line_2->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
verticalLayout->addWidget(line_2);
|
||||
|
||||
horizontalLayout = new QHBoxLayout();
|
||||
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
|
||||
test_version = new QLabel(TriggerCtrl);
|
||||
test_version->setObjectName(QString::fromUtf8("test_version"));
|
||||
test_version->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
|
||||
|
||||
horizontalLayout->addWidget(test_version);
|
||||
|
||||
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Preferred, QSizePolicy::Minimum);
|
||||
|
||||
horizontalLayout->addItem(horizontalSpacer);
|
||||
|
||||
label_3 = new QLabel(TriggerCtrl);
|
||||
label_3->setObjectName(QString::fromUtf8("label_3"));
|
||||
|
||||
horizontalLayout->addWidget(label_3);
|
||||
|
||||
pushButtonApply = new QPushButton(TriggerCtrl);
|
||||
pushButtonApply->setObjectName(QString::fromUtf8("pushButtonApply"));
|
||||
pushButtonApply->setMinimumSize(QSize(0, 70));
|
||||
pushButtonApply->setMaximumSize(QSize(250, 16777215));
|
||||
QPalette palette;
|
||||
QBrush brush(QColor(255, 170, 127, 255));
|
||||
brush.setStyle(Qt::SolidPattern);
|
||||
palette.setBrush(QPalette::Active, QPalette::Button, brush);
|
||||
palette.setBrush(QPalette::Inactive, QPalette::Button, brush);
|
||||
palette.setBrush(QPalette::Disabled, QPalette::Button, brush);
|
||||
pushButtonApply->setPalette(palette);
|
||||
pushButtonApply->setLayoutDirection(Qt::LeftToRight);
|
||||
QIcon icon1;
|
||||
icon1.addFile(QString::fromUtf8(":/icon/apply.png"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
pushButtonApply->setIcon(icon1);
|
||||
|
||||
horizontalLayout->addWidget(pushButtonApply);
|
||||
|
||||
line_6 = new QFrame(TriggerCtrl);
|
||||
line_6->setObjectName(QString::fromUtf8("line_6"));
|
||||
line_6->setFrameShape(QFrame::HLine);
|
||||
line_6->setFrameShadow(QFrame::Sunken);
|
||||
|
||||
horizontalLayout->addWidget(line_6);
|
||||
|
||||
horizontalLayout->setStretch(1, 2);
|
||||
horizontalLayout->setStretch(3, 1);
|
||||
|
||||
verticalLayout->addLayout(horizontalLayout);
|
||||
|
||||
|
||||
gridLayout_2->addLayout(verticalLayout, 0, 0, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(TriggerCtrl);
|
||||
|
||||
comboBoxSynPrintMode->setCurrentIndex(0);
|
||||
|
||||
|
||||
QMetaObject::connectSlotsByName(TriggerCtrl);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QWidget *TriggerCtrl)
|
||||
{
|
||||
TriggerCtrl->setWindowTitle(QApplication::translate("TriggerCtrl", "Form", 0, QApplication::UnicodeUTF8));
|
||||
groupBox->setTitle(QApplication::translate("TriggerCtrl", "\350\247\246\345\217\221\346\250\241\345\274\217", 0, QApplication::UnicodeUTF8));
|
||||
radioButtonEleEyeLevelTrigger->setText(QApplication::translate("TriggerCtrl", "\345\205\211\347\224\265\347\224\265\345\271\263\350\247\246\345\217\221", 0, QApplication::UnicodeUTF8));
|
||||
radioButtonEleEyeEdgetTrigger->setText(QApplication::translate("TriggerCtrl", "\345\205\211\347\224\265\350\276\271\346\262\277\350\247\246\345\217\221", 0, QApplication::UnicodeUTF8));
|
||||
radioButtonSynTrigger->setText(QApplication::translate("TriggerCtrl", "\345\220\214\346\255\245\345\231\250\350\247\246\345\217\221", 0, QApplication::UnicodeUTF8));
|
||||
radioButtonDelayTrigger->setText(QApplication::translate("TriggerCtrl", "\345\273\266\346\227\266\350\247\246\345\217\221", 0, QApplication::UnicodeUTF8));
|
||||
label->setText(QString());
|
||||
labelEleMaskTime->setText(QApplication::translate("TriggerCtrl", "\345\260\201\351\224\201\346\227\266\351\227\264(\346\257\253\347\247\222)", 0, QApplication::UnicodeUTF8));
|
||||
labelTriggerPulsePerMm->setText(QApplication::translate("TriggerCtrl", "\350\204\211\345\206\262\346\225\260/\346\257\253\347\261\263", 0, QApplication::UnicodeUTF8));
|
||||
comboBoxAltMirrType->clear();
|
||||
comboBoxAltMirrType->insertItems(0, QStringList()
|
||||
<< QApplication::translate("TriggerCtrl", "\346\227\240\351\225\234\345\203\217\346\211\223\345\215\260", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\350\207\252\345\212\250\346\260\264\345\271\263\347\277\273\350\275\254 ", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\350\207\252\345\212\250\345\236\202\347\233\264\347\277\273\350\275\254", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\344\270\255\345\277\203\345\257\271\347\247\260\346\227\213\350\275\254", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
comboBoxTimeTriggerMode->clear();
|
||||
comboBoxTimeTriggerMode->insertItems(0, QStringList()
|
||||
<< QApplication::translate("TriggerCtrl", "\350\241\214\346\234\253<->\350\241\214\351\246\226", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\350\241\214\351\246\226<->\350\241\214\351\246\226", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
label_2->setText(QApplication::translate("TriggerCtrl", "\351\225\234\350\261\241\344\272\244\346\233\277\347\261\273\345\236\213", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxSynMakeClean->setText(QApplication::translate("TriggerCtrl", "\345\220\214\346\255\245\345\231\250\346\270\205\351\233\266", 0, QApplication::UnicodeUTF8));
|
||||
pushButtonApplyPulseFix->setText(QApplication::translate("TriggerCtrl", "\350\204\211\345\206\262\346\225\260\344\277\256\346\255\243", 0, QApplication::UnicodeUTF8));
|
||||
label_miv12->setText(QString());
|
||||
checkBoxPulseOutputEnable->setText(QApplication::translate("TriggerCtrl", "\350\204\211\345\206\262\350\276\223\345\207\272\344\275\277\350\203\275", 0, QApplication::UnicodeUTF8));
|
||||
labelEleEyeTriggerIntervalMs->setText(QApplication::translate("TriggerCtrl", "\351\207\215\345\244\215\351\227\264\351\232\224(\346\257\253\347\247\222)", 0, QApplication::UnicodeUTF8));
|
||||
labelOutputPulseDelayMs->setText(QApplication::translate("TriggerCtrl", "\345\273\266\346\227\266(\346\257\253\347\247\222):", 0, QApplication::UnicodeUTF8));
|
||||
labelSynTriggerPrintLenRatio->setText(QApplication::translate("TriggerCtrl", "\345\255\227\347\254\246\345\256\275\345\272\246:", 0, QApplication::UnicodeUTF8));
|
||||
checkEyeTriggerSynPrintEn->setText(QApplication::translate("TriggerCtrl", "\345\220\214\346\255\245\346\211\223\345\215\260", 0, QApplication::UnicodeUTF8));
|
||||
labelTimeTriggerMode->setText(QApplication::translate("TriggerCtrl", "\351\227\264\351\232\224\346\250\241\345\274\217:", 0, QApplication::UnicodeUTF8));
|
||||
labelProductCntPerOutputPulse->setText(QApplication::translate("TriggerCtrl", "\344\272\247\347\224\237\350\204\211\345\206\262\346\211\200\351\234\200\350\256\241\346\225\260:", 0, QApplication::UnicodeUTF8));
|
||||
labelDelayTriggerValue->setText(QApplication::translate("TriggerCtrl", "\351\207\215\345\244\215\351\227\264\351\232\224(\346\257\253\347\247\222)", 0, QApplication::UnicodeUTF8));
|
||||
label_4->setText(QApplication::translate("TriggerCtrl", "\351\225\234\345\203\217\344\272\244\346\233\277\351\227\264\351\232\224", 0, QApplication::UnicodeUTF8));
|
||||
comboBoxSynPrintMode->clear();
|
||||
comboBoxSynPrintMode->insertItems(0, QStringList()
|
||||
<< QApplication::translate("TriggerCtrl", "\346\214\211\345\255\227\347\254\246\345\256\275\345\272\246", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\346\214\211\345\226\267\345\215\260\346\257\224\344\276\213", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
comboBoxEleEyeMakeClean->clear();
|
||||
comboBoxEleEyeMakeClean->insertItems(0, QStringList()
|
||||
<< QApplication::translate("TriggerCtrl", "\347\246\201\346\255\242\347\224\265\347\234\274\346\270\205\351\233\266", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\345\205\201\350\256\270\347\224\265\347\234\274\345\244\215\344\275\215", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\345\205\201\350\256\270\347\224\265\347\234\274\347\253\213\345\215\263\345\244\215\344\275\215", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
labelSynPrintMode->setText(QApplication::translate("TriggerCtrl", "\345\220\214\346\255\245\345\226\267\345\215\260\346\250\241\345\274\217", 0, QApplication::UnicodeUTF8));
|
||||
labelEleEyeTriggerRepeatCnt->setText(QApplication::translate("TriggerCtrl", "\351\207\215\345\244\215\346\254\241\346\225\260", 0, QApplication::UnicodeUTF8));
|
||||
labelEleEyeTriggerPrintDelay->setText(QApplication::translate("TriggerCtrl", "\350\247\246\345\217\221\345\273\266\346\227\266(\346\257\253\347\247\222)", 0, QApplication::UnicodeUTF8));
|
||||
comboBoxSyncActType->clear();
|
||||
comboBoxSyncActType->insertItems(0, QStringList()
|
||||
<< QApplication::translate("TriggerCtrl", "\345\220\214\346\255\245\345\231\250\346\255\243\345\217\215\350\275\254\346\211\223\345\215\260", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\345\220\214\346\255\245\345\231\250\345\217\252\346\255\243\350\275\254\346\211\223\345\215\260", 0, QApplication::UnicodeUTF8)
|
||||
<< QApplication::translate("TriggerCtrl", "\345\220\214\346\255\245\345\231\250\345\217\252\345\217\215\350\275\254\346\211\223\345\215\260", 0, QApplication::UnicodeUTF8)
|
||||
);
|
||||
labelSynTriggerPrintLen->setText(QApplication::translate("TriggerCtrl", "\345\226\267\345\215\260\351\227\264\351\232\224(\346\257\253\347\261\263)", 0, QApplication::UnicodeUTF8));
|
||||
checkBoxEleEyeMakeClean->setText(QApplication::translate("TriggerCtrl", "\347\224\265\347\234\274\346\270\205\351\233\266", 0, QApplication::UnicodeUTF8));
|
||||
label_5->setText(QApplication::translate("TriggerCtrl", "\350\204\211\345\206\262\344\277\241\345\217\267\345\200\274:", 0, QApplication::UnicodeUTF8));
|
||||
spinBoxpluseSinal->setPrefix(QString());
|
||||
test_version->setText(QApplication::translate("TriggerCtrl", "20131228-1", 0, QApplication::UnicodeUTF8));
|
||||
label_3->setText(QString());
|
||||
pushButtonApply->setText(QApplication::translate("TriggerCtrl", "\345\272\224\347\224\250\345\275\223\345\211\215\351\205\215\347\275\256", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class TriggerCtrl: public Ui_TriggerCtrl {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_TRIGGERCTRL_H
|
||||
Reference in New Issue
Block a user