~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to libs/flake/KoInputDevice.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 * A user can manipulate flake-shapes using a large variety of input devices. This ranges from
33
33
 * a mouse to a paintbrush-like tool connected to a tablet.  All of those need to be handled
34
34
 * separately and be given their own tool instance to do their work.
35
 
 * @see KoToolFactory::inputDeviceAgnostic()
 
35
 * @see KoToolFactoryBase::inputDeviceAgnostic()
36
36
 */
37
37
class FLAKE_EXPORT KoInputDevice
38
38
{
41
41
     * Copy constructor.
42
42
     */
43
43
    KoInputDevice(const KoInputDevice &other);
 
44
 
44
45
    /**
45
46
     * Constructor for a tablet.
46
47
     * Create a new input device with one of the many types that the tablet can have.
49
50
     * @param uniqueTabletId the uniqueId as found on a QTabletEvent
50
51
     */
51
52
    explicit KoInputDevice(QTabletEvent::TabletDevice device, QTabletEvent::PointerType pointer, qint64 uniqueTabletId = -1);
 
53
 
52
54
    /**
53
55
     * Constructor for the mouse as input device.
54
56
     */
93
95
    Private * const d;
94
96
};
95
97
 
96
 
Q_DECLARE_METATYPE( KoInputDevice )
 
98
Q_DECLARE_METATYPE(KoInputDevice)
97
99
 
98
100
FLAKE_EXPORT QDebug operator<<(QDebug debug, const KoInputDevice &device);
99
101
 
100
 
inline uint qHash(const KoInputDevice & key)
 
102
inline uint qHash(const KoInputDevice &key)
101
103
{
102
104
    return qHash(QString(":%1:%2:%3:%4")
103
105
                 .arg(key.device())