附带qt-embedded-free-3.3.8.tar.bz2安装包,附带安装所需要的全部文件,附带安装说明
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6463 2008-10-22 00:55 qt installqmousetslib_qws.cpp
文件 1745 2008-10-22 00:55 qt installqmousetslib_qws.h
文件 19897760 2008-10-22 00:52 qt installqt-embedded-free-3.3.8.tar.bz2
文件 1792 2010-07-11 20:43 qt installsmath.txt
文件 234 2010-07-05 20:46 qt installText file.txt
文件 487041 2008-10-22 00:52 qt install slib.tar.gz
目录 0 2010-07-21 21:13 qt install
----------- --------- ---------- ----- ----
20395035 7
/****************************************************************************
** $Id: qt/qmousetslib_qws.cpp 3.3.8 edited Jan 11 14:37 $
**
** Implementation of Qt/embedded mouse drivers
**
** Created : 20020220
**
** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
**
** This file is part of the kernel module of the Qt GUI Toolkit.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
** licenses for Qt/embedded may use this file in accordance with the
** Qt embedded Commercial License Agreement provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND INCLUDING THE
** WARRANTY OF DESIGN MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
** information about Qt Commercial License Agreements.
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#include “qmousetslib_qws.h“
#ifndef QT_NO_QWS_TSLIB
#include “qwindowsystem_qws.h“
#include “qsocketnotifier.h“
#include “qtimer.h“
#include “qapplication.h“
#include “qgfx_qws.h“
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
typedef struct {
long y;
long x;
long pressure;
long long millisecs;
} TS_EVENT;
#define QT_QWS_TP_SAMPLE_SIZE 5
#define QT_QWS_TP_MINIMUM_SAMPLES 5
#define QT_QWS_TP_PRESSURE_THRESHOLD 1
#define QT_QWS_TP_MOVE_LIMIT 100
#define QT_QWS_TP_JITTER_LIMIT 2
class QWSTslibHandlerPrivate : public Qobject
{
Q_object
public:
QWSTslibHandlerPrivate( QWSTslibHandler *h );
~QWSTslibHandlerPrivate();
private:
bool m_raw : 1;
QSocketNotifier *m_notify;
static int sortByX( const void* const void* );
static int sortByY( const void* const void* );
struct tsdev *m_ts;
void interpolateSample();
QWSTslibHandler *handler;
private slots:
void readMouseData();
};
QWSTslibHandler::QWSTslibHandler( const QString & const QString & )
{
d = new QWSTslibHandlerPrivate( this );
}
QWSTslibHandler::~QWSTslibHandler()
{
delete d;
}
QWSTslibHandlerPrivate::QWSTslibHandlerPrivate( QWSTslibHandler *h )
: handler(h)
{
char *tsdevice;
if((tsdevice = getenv(“TSLIB_TSDEVICE“)) != NULL) {
m_ts = ts_open( tsdevice 0 ); //1 = nonblocking 0 = blocking mode
qWarning( “tslib:open“);
} else {
m_ts = ts_open( “/dev/ts“ 1 );
}
//m_raw = 1 ; //oyxin
if (!m_t
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 6463 2008-10-22 00:55 qt installqmousetslib_qws.cpp
文件 1745 2008-10-22 00:55 qt installqmousetslib_qws.h
文件 19897760 2008-10-22 00:52 qt installqt-em
文件 1792 2010-07-11 20:43 qt installsmath.txt
文件 234 2010-07-05 20:46 qt installText file.txt
文件 487041 2008-10-22 00:52 qt install slib.tar.gz
目录 0 2010-07-21 21:13 qt install
----------- --------- ---------- ----- ----
20395035 7
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)