~ubuntu-branches/ubuntu/oneiric/soqt/oneiric

« back to all changes in this revision

Viewing changes to build/msvc8/src/Inventor/Qt/SoQtCursor.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2009-03-01 11:41:00 UTC
  • mfrom: (1.1.4 upstream) (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090301114100-f4zz3n1oasa52fgk
Tags: 1.4.2~svn20090224-2
* Upload upstream SVN head version containing fixes to build with Coin 3
  (Closes: #515729, #515736, #515742).  Upstream indicated to me that
  SVN is stable enough to release.

* control: Update Standards-Version to 3.8.0; no changes required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**************************************************************************\
2
 
 *
3
 
 *  This file is part of the Coin 3D visualization library.
4
 
 *  Copyright (C) 1998-2005 by Systems in Motion.  All rights reserved.
5
 
 *
6
 
 *  This library is free software; you can redistribute it and/or
7
 
 *  modify it under the terms of the GNU General Public License
8
 
 *  ("GPL") version 2 as published by the Free Software Foundation.
9
 
 *  See the file LICENSE.GPL at the root directory of this source
10
 
 *  distribution for additional information about the GNU GPL.
11
 
 *
12
 
 *  For using Coin with software that can not be combined with the GNU
13
 
 *  GPL, and for taking advantage of the additional benefits of our
14
 
 *  support services, please contact Systems in Motion about acquiring
15
 
 *  a Coin Professional Edition License.
16
 
 *
17
 
 *  See <URL:http://www.coin3d.org/> for more information.
18
 
 *
19
 
 *  Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
20
 
 *  <URL:http://www.sim.no/>.
21
 
 *
22
 
\**************************************************************************/
23
 
 
24
 
#ifndef SOQT_CURSOR_H
25
 
#define SOQT_CURSOR_H
26
 
 
27
 
#include <Inventor/SbLinear.h>
28
 
#include <Inventor/Qt/SoQtBasic.h>
29
 
 
30
 
class SOQT_DLL_API SoQtCursor {
31
 
public:
32
 
  static void initClass(void);
33
 
 
34
 
  struct CustomCursor {
35
 
    SbVec2s dim;
36
 
    SbVec2s hotspot;
37
 
    unsigned char * bitmap;
38
 
    unsigned char * mask;
39
 
  };
40
 
 
41
 
 
42
 
  // FIXME: add more default shapes. 20011119 pederb.
43
 
  enum Shape {
44
 
    CUSTOM_BITMAP = -1,
45
 
    DEFAULT = 0,
46
 
    BUSY,
47
 
    CROSSHAIR,
48
 
    UPARROW
49
 
  };
50
 
  
51
 
  SoQtCursor(void);
52
 
  SoQtCursor(const Shape shape);
53
 
  SoQtCursor(const CustomCursor * cc);
54
 
  SoQtCursor(const SoQtCursor & cursor);
55
 
  ~SoQtCursor();
56
 
 
57
 
  SoQtCursor & operator=(const SoQtCursor & c);
58
 
 
59
 
  Shape getShape(void) const;
60
 
  void setShape(const Shape shape);
61
 
 
62
 
  const CustomCursor & getCustomCursor(void) const;
63
 
 
64
 
  static const SoQtCursor & getZoomCursor(void);
65
 
  static const SoQtCursor & getPanCursor(void);
66
 
  static const SoQtCursor & getRotateCursor(void);
67
 
  static const SoQtCursor & getBlankCursor(void);
68
 
  
69
 
private:
70
 
  void commonConstructor(const Shape shape, const CustomCursor * cc);
71
 
 
72
 
  Shape shape;
73
 
  CustomCursor * cc;
74
 
};
75
 
 
76
 
#endif // ! SOQT_CURSOR_H