~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to .pc/debian-changes-4:4.7.1-0ubuntu7/doc/html/demos-boxes-trackball-h.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2011-01-18 20:37:32 UTC
  • Revision ID: james.westby@ubuntu.com-20110118203732-butn2uvaa6hydoqu
Tags: 4:4.7.1-0ubuntu8
Add kubuntu_26_dbusconnection_pointer.diff,
kubuntu_27_dbus_signal_filter_passes_not_handled.diff from Qt 4.8
to add a way to obtain the DBusConnectionpointer from a
QDBusConnection.  Requested by Ryan Lortie

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
4
 
<head>
5
 
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
 
  <title>Qt 4.7: trackball.h Example File (demos/boxes/trackball.h)</title>
7
 
  <link rel="stylesheet" type="text/css" href="style/style.css" />
8
 
  <script src="scripts/jquery.js" type="text/javascript"></script>
9
 
  <script src="scripts/functions.js" type="text/javascript"></script>
10
 
</head>
11
 
<body class="offline narrow creator">
12
 
 <div class="header" id="qtdocheader">
13
 
    <div class="content"> 
14
 
    <div id="nav-logo">
15
 
      <a href="index.html">Home</a></div>
16
 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
17
 
    <div id="nav-topright">
18
 
      <ul>
19
 
        <li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
20
 
        <li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
21
 
        <li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
22
 
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
23
 
          DOC</a></li>
24
 
        <li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
25
 
      </ul>
26
 
    </div>
27
 
    <div id="shortCut">
28
 
      <ul>
29
 
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.7</a></span></li>
30
 
        <li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS        </a></li>
31
 
      </ul>
32
 
     </div>
33
 
 <ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu"> 
34
 
                 <li><a href="#">API Lookup</a> 
35
 
                         <ul id="topmenuLook"> 
36
 
                           <li><a href="classes.html">Class index</a></li> 
37
 
                          <li><a href="functions.html">Function index</a></li> 
38
 
                           <li><a href="modules.html">Modules</a></li> 
39
 
                           <li><a href="namespaces.html">Namespaces</a></li> 
40
 
                           <li><a href="qtglobal.html">Global Declarations</a></li> 
41
 
                           <li><a href="licensing.html">Licenses and Credits</a></li> 
42
 
                           </ul> 
43
 
                 </li> 
44
 
                 <li><a href="#">Qt Topics</a> 
45
 
                         <ul id="topmenuTopic"> 
46
 
                           <li><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
47
 
                           <li><a href="qtquick.html">Device UI's &amp; Qt Quick</a></li> 
48
 
                           <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
49
 
                           <li><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li> 
50
 
                           <li><a href="platform-specific.html">Platform-specific info</a></li> 
51
 
                           <li><a href="technology-apis.html">Qt and Key Technologies</a></li> 
52
 
                           <li><a href="best-practices.html">How-To's and Best Practices</a></li> 
53
 
                         </ul> 
54
 
                </li> 
55
 
                 <li><a href="#">Examples</a> 
56
 
                         <ul id="topmenuexample"> 
57
 
                                 <li><a href="all-examples.html">Examples</a></li> 
58
 
                                 <li><a href="tutorials.html">Tutorials</a></li> 
59
 
                                 <li><a href="demos.html">Demos</a></li> 
60
 
                                 <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
61
 
                         </ul> 
62
 
                 </li> 
63
 
 </ul> 
64
 
    </div>
65
 
  </div>
66
 
  <div class="wrapper">
67
 
    <div class="hd">
68
 
      <span></span>
69
 
    </div>
70
 
    <div class="bd group">
71
 
      <div class="sidebar">
72
 
        <div class="searchlabel">
73
 
          Search index:</div>
74
 
        <div class="search">
75
 
          <form id="qtdocsearch" action="" onsubmit="return false;">
76
 
            <fieldset>
77
 
              <input type="text" name="searchstring" id="pageType" value="" />
78
 
            </fieldset>
79
 
          </form>
80
 
        </div>
81
 
        <div class="box first bottombar" id="lookup">
82
 
          <h2 title="API Lookup"><span></span>
83
 
            API Lookup</h2>
84
 
          <div  id="list001" class="list">
85
 
          <ul id="ul001" >
86
 
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
87
 
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
88
 
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
89
 
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
90
 
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
91
 
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
92
 
            </ul> 
93
 
          </div>
94
 
        </div>
95
 
        <div class="box bottombar" id="topics">
96
 
          <h2 title="Qt Topics"><span></span>
97
 
            Qt Topics</h2>
98
 
          <div id="list002" class="list">
99
 
            <ul id="ul002" >
100
 
                           <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
101
 
                           <li class="defaultLink"><a href="qtquick.html">Device UI's &amp; Qt Quick</a></li> 
102
 
                           <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
103
 
                           <li class="defaultLink"><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li> 
104
 
                           <li class="defaultLink"><a href="platform-specific.html">Platform-specific info</a></li> 
105
 
                           <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
106
 
                           <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
107
 
            </ul>  
108
 
          </div>
109
 
        </div>
110
 
        <div class="box" id="examples">
111
 
          <h2 title="Examples"><span></span>
112
 
            Examples</h2>
113
 
          <div id="list003" class="list">
114
 
        <ul id="ul003">
115
 
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
116
 
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
117
 
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
118
 
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
119
 
            </ul> 
120
 
          </div>
121
 
        </div>
122
 
      </div>
123
 
      <div class="wrap">
124
 
        <div class="toolbar">
125
 
          <div class="breadcrumb toolblock">
126
 
            <ul>
127
 
              <li class="first"><a href="index.html">Home</a></li>
128
 
              <!--  Bread crumbs goes here -->
129
 
            </ul>
130
 
          </div>
131
 
          <div class="toolbuttons toolblock">
132
 
            <ul>
133
 
              <li id="smallA" class="t_button">A</li>
134
 
              <li id="medA" class="t_button active">A</li>
135
 
              <li id="bigA" class="t_button">A</li>
136
 
              <li id="print" class="t_button"><a href="javascript:this.print();">
137
 
                <span>Print</span></a></li>
138
 
            </ul>
139
 
        </div>
140
 
        </div>
141
 
        <div class="content">
142
 
<h1 class="title">trackball.h Example File</h1>
143
 
<span class="small-subtitle">demos/boxes/trackball.h</span>
144
 
<!-- $$$demos/boxes/trackball.h-description -->
145
 
<div class="descr"> <a name="details"></a>
146
 
<pre class="highlightedCode brush: cpp"><span class="comment"> /****************************************************************************
147
 
 **
148
 
 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
149
 
 ** All rights reserved.
150
 
 ** Contact: Nokia Corporation (qt-info@nokia.com)
151
 
 **
152
 
 ** This file is part of the demonstration applications of the Qt Toolkit.
153
 
 **
154
 
 ** $QT_BEGIN_LICENSE:LGPL$
155
 
 ** Commercial Usage
156
 
 ** Licensees holding valid Qt Commercial licenses may use this file in
157
 
 ** accordance with the Qt Commercial License Agreement provided with the
158
 
 ** Software or, alternatively, in accordance with the terms contained in
159
 
 ** a written agreement between you and Nokia.
160
 
 **
161
 
 ** GNU Lesser General Public License Usage
162
 
 ** Alternatively, this file may be used under the terms of the GNU Lesser
163
 
 ** General Public License version 2.1 as published by the Free Software
164
 
 ** Foundation and appearing in the file LICENSE.LGPL included in the
165
 
 ** packaging of this file.  Please review the following information to
166
 
 ** ensure the GNU Lesser General Public License version 2.1 requirements
167
 
 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
168
 
 **
169
 
 ** In addition, as a special exception, Nokia gives you certain additional
170
 
 ** rights.  These rights are described in the Nokia Qt LGPL Exception
171
 
 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
172
 
 **
173
 
 ** GNU General Public License Usage
174
 
 ** Alternatively, this file may be used under the terms of the GNU
175
 
 ** General Public License version 3.0 as published by the Free Software
176
 
 ** Foundation and appearing in the file LICENSE.GPL included in the
177
 
 ** packaging of this file.  Please review the following information to
178
 
 ** ensure the GNU General Public License version 3.0 requirements will be
179
 
 ** met: http://www.gnu.org/copyleft/gpl.html.
180
 
 **
181
 
 ** If you have questions regarding the use of this file, please contact
182
 
 ** Nokia at qt-info@nokia.com.
183
 
 ** $QT_END_LICENSE$
184
 
 **
185
 
 ****************************************************************************/</span>
186
 
 
187
 
 #ifndef TRACKBALL_H
188
 
 #define TRACKBALL_H
189
 
 
190
 
 #include &lt;QtGui&gt;
191
 
 
192
 
 #include &lt;QtGui/qvector3d.h&gt;
193
 
 #include &lt;QtGui/qquaternion.h&gt;
194
 
 
195
 
 class TrackBall
196
 
 {
197
 
 public:
198
 
     enum TrackMode
199
 
     {
200
 
         Plane,
201
 
         Sphere,
202
 
     };
203
 
     TrackBall(TrackMode mode = Sphere);
204
 
     TrackBall(float angularVelocity, const QVector3D&amp; axis, TrackMode mode = Sphere);
205
 
     <span class="comment">// coordinates in [-1,1]x[-1,1]</span>
206
 
     void push(const QPointF&amp; p, const QQuaternion &amp;transformation);
207
 
     void move(const QPointF&amp; p, const QQuaternion &amp;transformation);
208
 
     void release(const QPointF&amp; p, const QQuaternion &amp;transformation);
209
 
     void start(); <span class="comment">// starts clock</span>
210
 
     void stop(); <span class="comment">// stops clock</span>
211
 
     QQuaternion rotation() const;
212
 
 private:
213
 
     QQuaternion m_rotation;
214
 
     QVector3D m_axis;
215
 
     float m_angularVelocity;
216
 
 
217
 
     QPointF m_lastPos;
218
 
     QTime m_lastTime;
219
 
     bool m_paused;
220
 
     bool m_pressed;
221
 
     TrackMode m_mode;
222
 
 };
223
 
 
224
 
 #endif</pre>
225
 
</div>
226
 
<!-- @@@demos/boxes/trackball.h -->
227
 
        <div class="feedback t_button">
228
 
          [+] Documentation Feedback</div>
229
 
      </div>
230
 
    </div>
231
 
    </div> 
232
 
    <div class="ft">
233
 
      <span></span>
234
 
    </div>
235
 
  </div> 
236
 
  <div class="footer">
237
 
    <p>
238
 
      <acronym title="Copyright">&copy;</acronym> 2008-2010 Nokia Corporation and/or its
239
 
      subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
240
 
      in Finland and/or other countries worldwide.</p>
241
 
    <p>
242
 
      All other trademarks are property of their respective owners. <a title="Privacy Policy"
243
 
        href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
244
 
    <br />
245
 
    <p>
246
 
      Licensees holding valid Qt Commercial licenses may use this document in accordance with the      Qt Commercial License Agreement provided with the Software or, alternatively, in accordance      with the terms contained in a written agreement between you and Nokia.</p>
247
 
    <p>
248
 
      Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
249
 
      Free Documentation License version 1.3</a>
250
 
      as published by the Free Software Foundation.</p>
251
 
  </div>
252
 
  <div id="feedbackBox">
253
 
      <div id="feedcloseX" class="feedclose t_button">X</div>
254
 
    <form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
255
 
      <p id="noteHead">Thank you for giving your feedback.</p> <p class="note">Make sure it is related to this specific page. For more general bugs and 
256
 
      requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p>
257
 
      <p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
258
 
      <p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>
259
 
    </form>
260
 
  </div>
261
 
  <div id="blurpage">
262
 
  </div>
263
 
</body>
264
 
</html>