资源简介
附带qt-embedded-free-3.3.8.tar.bz2安装包,附带安装所需要的全部文件,附带安装说明
代码片段和文件信息
/****************************************************************************
** $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 install\qmousetslib_qws.cpp
文件 1745 2008-10-22 00:55 qt install\qmousetslib_qws.h
文件 19897760 2008-10-22 00:52 qt install\qt-em
文件 1792 2010-07-11 20:43 qt install\smath.txt
文件 234 2010-07-05 20:46 qt install\Text file.txt
文件 487041 2008-10-22 00:52 qt install\tslib.tar.gz
目录 0 2010-07-21 21:13 qt install
----------- --------- ---------- ----- ----
20395035 7
- 上一篇:Arcgis地图底图加载插件
- 下一篇:志愿者小助手微信小程序_源码及数据库.zip
相关资源
- SteamVR离线安装包
- mongoDB安装包
- canal 1.1.4 安装包合集,包括deployer a
- OpenCV3.4.1-1安装包
- gcc6.3.0版本的mingw离线安装压缩包
- Neo4j windows安装包 完整版
- STM32\\H7\\F7\\L0库安装包
- NextCloud官方源代码安装包nextcloud-18.
- strawberry-perl-5.28.0.1-64bit.msi
- Tina90-TI_zh.9.3.150.328安装包.zip
- erlang安装包otp_win64_17.3.exe
- 谷歌浏览器安装包.zip
- PGPDesktop完整练习安装包请勿商用.zi
- Navicat12.1.12安装包与注册激活工具.z
- WPS解压即可使用
- gcc离线安装包
- genesis2000安装包
- RobotWare安装包zip格式软件
- git32位和64位的安装包
- Sharepoint 2016 server 必备安装包
- Greenplum安装包
- Win 10系统自带 Microsoft Store安装包,方
- E-prime安装包
- PSCAD安装包
- 人人商城ewei_shopv23.14.28开源版一键安
- weka3.8安装包
- win10应用商店独立安装包
- arm-linux-gcc交叉编译器安装包及详细安
- 3D魔方VOD修正版安装包+注册机
- Netron-Setup-4.5.0.zip
评论
共有 条评论