~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.2/doc/man/man3/QwtPicker.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH "QwtPicker" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
 
2
.ad l
 
3
.nh
 
4
.SH NAME
 
5
QwtPicker \- 
 
6
.SH SYNOPSIS
 
7
.br
 
8
.PP
 
9
Inherits \fBQwtEventPattern\fP.
 
10
.PP
 
11
Inherited by \fBQwtPlotPicker\fP.
 
12
.PP
 
13
.SH "Detailed Description"
 
14
.PP 
 
15
\fBQwtPicker\fP provides selections on a widget. 
 
16
 
 
17
\fBQwtPicker\fP filters all mouse and keyboard events of a widget and translates them into an array of selected points. Depending on the \fBQwtPicker::SelectionType\fP the selection might be a single point, a rectangle or a polygon. The selection process is supported by optional rubberbands (rubberband selection) and position trackers.
 
18
.PP
 
19
\fBQwtPicker\fP is useful for widgets where the event handlers can't be overloaded, like for components of composite widgets. It offers alternative handlers for mouse and key events.
 
20
.PP
 
21
\fBExample \fP.RS 4
 
22
 
 
23
.PP
 
24
.nf
 
25
#include <qwt_picker.h>
 
26
 
 
27
QwtPicker *picker = new QwtPicker(widget);
 
28
picker->setTrackerMode(QwtPicker::ActiveOnly);
 
29
connect(picker, SIGNAL(selected(const QwtPolygon &)), ...);
 
30
 
 
31
// emit the position of clicks on widget
 
32
picker->setSelectionFlags(QwtPicker::PointSelection | QwtPicker::ClickSelection);
 
33
 
 
34
    ...
 
35
    
 
36
// now select rectangles
 
37
picker->setSelectionFlags(QwtPicker::RectSelection | QwtPicker::DragSelection);
 
38
picker->setRubberBand(QwtPicker::RectRubberBand); 
 
39
.fi
 
40
.PP
 
41
 
 
42
.br
 
43
.RE
 
44
.PP
 
45
The selection process uses the commands \fBbegin()\fP, \fBappend()\fP, \fBmove()\fP and \fBend()\fP. \fBappend()\fP adds a new point to the selection, \fBmove()\fP changes the position of the latest point.
 
46
.PP
 
47
The commands are initiated from a small state machine (\fBQwtPickerMachine\fP) that translates mouse and key events. There are a couple of predefined state machines for point, rect and polygon selections. The \fBselectionFlags()\fP control which one should be used. It is possible to use other machines by overloading \fBstateMachine()\fP.
 
48
.PP
 
49
The picker is active (\fBisActive()\fP), between \fBbegin()\fP and \fBend()\fP. In active state the rubberband is displayed, and the tracker is visible in case of trackerMode is ActiveOnly or AlwaysOn.
 
50
.PP
 
51
The cursor can be moved using the arrow keys. All selections can be aborted using the abort key. (\fBQwtEventPattern::KeyPatternCode\fP)
 
52
.PP
 
53
\fBWarning:\fP
 
54
.RS 4
 
55
In case of QWidget::NoFocus the focus policy of the observed widget is set to QWidget::WheelFocus and mouse tracking will be manipulated for ClickSelection while the picker is active, or if \fBtrackerMode()\fP is AlwayOn. 
 
56
.RE
 
57
.PP
 
58
 
 
59
.PP
 
60
Definition at line 80 of file qwt_picker.h.
 
61
.SS "Public Types"
 
62
 
 
63
.in +1c
 
64
.ti -1c
 
65
.RI "enum \fBSelectionType\fP { \fBNoSelection\fP =  0, \fBPointSelection\fP =  1, \fBRectSelection\fP =  2, \fBPolygonSelection\fP =  4 }"
 
66
.br
 
67
.ti -1c
 
68
.RI "enum \fBRectSelectionType\fP { \fBCornerToCorner\fP =  64, \fBCenterToCorner\fP =  128, \fBCenterToRadius\fP =  256 }"
 
69
.br
 
70
.ti -1c
 
71
.RI "enum \fBSelectionMode\fP { \fBClickSelection\fP =  1024, \fBDragSelection\fP =  2048 }"
 
72
.br
 
73
.ti -1c
 
74
.RI "enum \fBRubberBand\fP { \fBNoRubberBand\fP =  0, \fBHLineRubberBand\fP, \fBVLineRubberBand\fP, \fBCrossRubberBand\fP, \fBRectRubberBand\fP, \fBEllipseRubberBand\fP, \fBPolygonRubberBand\fP, \fBUserRubberBand\fP =  100 }"
 
75
.br
 
76
.ti -1c
 
77
.RI "enum \fBDisplayMode\fP { \fBAlwaysOff\fP, \fBAlwaysOn\fP, \fBActiveOnly\fP, \fBImageMode\fP =  1, \fBContourMode\fP =  2 }"
 
78
.br
 
79
.ti -1c
 
80
.RI "enum \fBResizeMode\fP { \fBStretch\fP, \fBKeepSize\fP }"
 
81
.br
 
82
.in -1c
 
83
.SS "Signals"
 
84
 
 
85
.in +1c
 
86
.ti -1c
 
87
.RI "void \fBselected\fP (const QwtPolygon &pa)"
 
88
.br
 
89
.ti -1c
 
90
.RI "void \fBappended\fP (const QPoint &pos)"
 
91
.br
 
92
.ti -1c
 
93
.RI "void \fBmoved\fP (const QPoint &pos)"
 
94
.br
 
95
.ti -1c
 
96
.RI "void \fBchanged\fP (const QwtPolygon &pa)"
 
97
.br
 
98
.in -1c
 
99
.SS "Public Member Functions"
 
100
 
 
101
.in +1c
 
102
.ti -1c
 
103
.RI "\fBQwtPicker\fP (QWidget *parent)"
 
104
.br
 
105
.ti -1c
 
106
.RI "\fBQwtPicker\fP (int selectionFlags, \fBRubberBand\fP rubberBand, \fBDisplayMode\fP trackerMode, QWidget *)"
 
107
.br
 
108
.ti -1c
 
109
.RI "virtual \fB~QwtPicker\fP ()"
 
110
.br
 
111
.ti -1c
 
112
.RI "virtual void \fBsetSelectionFlags\fP (int)"
 
113
.br
 
114
.ti -1c
 
115
.RI "int \fBselectionFlags\fP () const"
 
116
.br
 
117
.ti -1c
 
118
.RI "virtual void \fBsetRubberBand\fP (\fBRubberBand\fP)"
 
119
.br
 
120
.ti -1c
 
121
.RI "\fBRubberBand\fP \fBrubberBand\fP () const"
 
122
.br
 
123
.ti -1c
 
124
.RI "virtual void \fBsetTrackerMode\fP (\fBDisplayMode\fP)"
 
125
.br
 
126
.ti -1c
 
127
.RI "\fBDisplayMode\fP \fBtrackerMode\fP () const"
 
128
.br
 
129
.ti -1c
 
130
.RI "virtual void \fBsetResizeMode\fP (\fBResizeMode\fP)"
 
131
.br
 
132
.ti -1c
 
133
.RI "\fBResizeMode\fP \fBresizeMode\fP () const"
 
134
.br
 
135
.ti -1c
 
136
.RI "virtual void \fBsetRubberBandPen\fP (const QPen &)"
 
137
.br
 
138
.ti -1c
 
139
.RI "QPen \fBrubberBandPen\fP () const"
 
140
.br
 
141
.ti -1c
 
142
.RI "virtual void \fBsetTrackerPen\fP (const QPen &)"
 
143
.br
 
144
.ti -1c
 
145
.RI "QPen \fBtrackerPen\fP () const"
 
146
.br
 
147
.ti -1c
 
148
.RI "virtual void \fBsetTrackerFont\fP (const QFont &)"
 
149
.br
 
150
.ti -1c
 
151
.RI "QFont \fBtrackerFont\fP () const"
 
152
.br
 
153
.ti -1c
 
154
.RI "bool \fBisEnabled\fP () const"
 
155
.br
 
156
.ti -1c
 
157
.RI "virtual void \fBsetEnabled\fP (bool)"
 
158
.br
 
159
.ti -1c
 
160
.RI "bool \fBisActive\fP () const"
 
161
.br
 
162
.ti -1c
 
163
.RI "virtual bool \fBeventFilter\fP (QObject *, QEvent *)"
 
164
.br
 
165
.ti -1c
 
166
.RI "QWidget * \fBparentWidget\fP ()"
 
167
.br
 
168
.ti -1c
 
169
.RI "const QWidget * \fBparentWidget\fP () const"
 
170
.br
 
171
.ti -1c
 
172
.RI "virtual QRect \fBpickRect\fP () const"
 
173
.br
 
174
.ti -1c
 
175
.RI "const QwtPolygon & \fBselection\fP () const"
 
176
.br
 
177
.ti -1c
 
178
.RI "virtual void \fBdrawRubberBand\fP (QPainter *) const"
 
179
.br
 
180
.ti -1c
 
181
.RI "virtual void \fBdrawTracker\fP (QPainter *) const"
 
182
.br
 
183
.ti -1c
 
184
.RI "virtual \fBQwtText\fP \fBtrackerText\fP (const QPoint &pos) const"
 
185
.br
 
186
.ti -1c
 
187
.RI "QPoint \fBtrackerPosition\fP () const"
 
188
.br
 
189
.ti -1c
 
190
.RI "QRect \fBtrackerRect\fP (const QFont &) const "
 
191
.br
 
192
.in -1c
 
193
.SS "Protected Member Functions"
 
194
 
 
195
.in +1c
 
196
.ti -1c
 
197
.RI "virtual bool \fBaccept\fP (QwtPolygon &selection) const"
 
198
.br
 
199
.ti -1c
 
200
.RI "virtual void \fBtransition\fP (const QEvent *)"
 
201
.br
 
202
.ti -1c
 
203
.RI "virtual void \fBbegin\fP ()"
 
204
.br
 
205
.ti -1c
 
206
.RI "virtual void \fBappend\fP (const QPoint &)"
 
207
.br
 
208
.ti -1c
 
209
.RI "virtual void \fBmove\fP (const QPoint &)"
 
210
.br
 
211
.ti -1c
 
212
.RI "virtual bool \fBend\fP (bool ok=true)"
 
213
.br
 
214
.ti -1c
 
215
.RI "virtual void \fBreset\fP ()"
 
216
.br
 
217
.ti -1c
 
218
.RI "virtual void \fBwidgetMousePressEvent\fP (QMouseEvent *)"
 
219
.br
 
220
.ti -1c
 
221
.RI "virtual void \fBwidgetMouseReleaseEvent\fP (QMouseEvent *)"
 
222
.br
 
223
.ti -1c
 
224
.RI "virtual void \fBwidgetMouseDoubleClickEvent\fP (QMouseEvent *)"
 
225
.br
 
226
.ti -1c
 
227
.RI "virtual void \fBwidgetMouseMoveEvent\fP (QMouseEvent *)"
 
228
.br
 
229
.ti -1c
 
230
.RI "virtual void \fBwidgetWheelEvent\fP (QWheelEvent *)"
 
231
.br
 
232
.ti -1c
 
233
.RI "virtual void \fBwidgetKeyPressEvent\fP (QKeyEvent *)"
 
234
.br
 
235
.ti -1c
 
236
.RI "virtual void \fBwidgetKeyReleaseEvent\fP (QKeyEvent *)"
 
237
.br
 
238
.ti -1c
 
239
.RI "virtual void \fBwidgetLeaveEvent\fP (QEvent *)"
 
240
.br
 
241
.ti -1c
 
242
.RI "virtual void \fBstretchSelection\fP (const QSize &oldSize, const QSize &newSize)"
 
243
.br
 
244
.ti -1c
 
245
.RI "virtual \fBQwtPickerMachine\fP * \fBstateMachine\fP (int) const "
 
246
.br
 
247
.ti -1c
 
248
.RI "virtual void \fBupdateDisplay\fP ()"
 
249
.br
 
250
.ti -1c
 
251
.RI "const QWidget * \fBrubberBandWidget\fP () const"
 
252
.br
 
253
.ti -1c
 
254
.RI "const QWidget * \fBtrackerWidget\fP () const"
 
255
.br
 
256
.in -1c
 
257
.SH "Member Enumeration Documentation"
 
258
.PP 
 
259
.SS "enum \fBQwtPicker::SelectionType\fP"
 
260
.PP
 
261
This enum type describes the type of a selection. It can be or'd with \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP and passed to \fBQwtPicker::setSelectionFlags()\fP
 
262
.IP "\(bu" 2
 
263
NoSelection
 
264
.br
 
265
 Selection is disabled. Note this is different to the disabled state, as you might have a tracker.
 
266
.IP "\(bu" 2
 
267
PointSelection
 
268
.br
 
269
 Select a single point.
 
270
.IP "\(bu" 2
 
271
RectSelection
 
272
.br
 
273
 Select a rectangle.
 
274
.IP "\(bu" 2
 
275
PolygonSelection
 
276
.br
 
277
 Select a polygon.
 
278
.PP
 
279
.PP
 
280
The default value is NoSelection. 
 
281
.PP
 
282
\fBSee also:\fP
 
283
.RS 4
 
284
\fBQwtPicker::setSelectionFlags()\fP, \fBQwtPicker::selectionFlags()\fP 
 
285
.RE
 
286
.PP
 
287
 
 
288
.PP
 
289
Definition at line 117 of file qwt_picker.h.
 
290
.SS "enum \fBQwtPicker::RectSelectionType\fP"
 
291
.PP
 
292
Selection subtype for RectSelection This enum type describes the type of rectangle selections. It can be or'd with \fBQwtPicker::RectSelectionType\fP and \fBQwtPicker::SelectionMode\fP and passed to \fBQwtPicker::setSelectionFlags()\fP.
 
293
.IP "\(bu" 2
 
294
CornerToCorner
 
295
.br
 
296
 The first and the second selected point are the corners of the rectangle.
 
297
.IP "\(bu" 2
 
298
CenterToCorner
 
299
.br
 
300
 The first point is the center, the second a corner of the rectangle.
 
301
.IP "\(bu" 2
 
302
CenterToRadius
 
303
.br
 
304
 The first point is the center of a quadrat, calculated by the maximum of the x- and y-distance. 
 
305
.PP
 
306
 
 
307
.PP
 
308
The default value is CornerToCorner. 
 
309
.PP
 
310
\fBSee also:\fP
 
311
.RS 4
 
312
\fBQwtPicker::setSelectionFlags()\fP, \fBQwtPicker::selectionFlags()\fP 
 
313
.RE
 
314
.PP
 
315
 
 
316
.PP
 
317
Definition at line 143 of file qwt_picker.h.
 
318
.SS "enum \fBQwtPicker::SelectionMode\fP"
 
319
.PP
 
320
Values of this enum type or'd together with a SelectionType value identifies which state machine should be used for the selection.
 
321
.PP
 
322
The default value is ClickSelection. 
 
323
.PP
 
324
\fBSee also:\fP
 
325
.RS 4
 
326
\fBstateMachine()\fP 
 
327
.RE
 
328
.PP
 
329
 
 
330
.PP
 
331
Definition at line 157 of file qwt_picker.h.
 
332
.SS "enum \fBQwtPicker::RubberBand\fP"
 
333
.PP
 
334
Rubberband style
 
335
.IP "\(bu" 2
 
336
NoRubberBand
 
337
.br
 
338
 No rubberband.
 
339
.IP "\(bu" 2
 
340
HLineRubberBand & PointSelection
 
341
.br
 
342
 A horizontal line.
 
343
.IP "\(bu" 2
 
344
VLineRubberBand & PointSelection
 
345
.br
 
346
 A vertical line.
 
347
.IP "\(bu" 2
 
348
CrossRubberBand & PointSelection
 
349
.br
 
350
 A horizontal and a vertical line.
 
351
.IP "\(bu" 2
 
352
RectRubberBand & RectSelection
 
353
.br
 
354
 A rectangle.
 
355
.IP "\(bu" 2
 
356
EllipseRubberBand & RectSelection
 
357
.br
 
358
 An ellipse.
 
359
.IP "\(bu" 2
 
360
PolygonRubberBand &PolygonSelection
 
361
.br
 
362
 A polygon.
 
363
.IP "\(bu" 2
 
364
UserRubberBand
 
365
.br
 
366
 Values >= UserRubberBand can be used to define additional rubber bands.
 
367
.PP
 
368
.PP
 
369
The default value is NoRubberBand. 
 
370
.PP
 
371
\fBSee also:\fP
 
372
.RS 4
 
373
\fBQwtPicker::setRubberBand()\fP, \fBQwtPicker::rubberBand()\fP 
 
374
.RE
 
375
.PP
 
376
 
 
377
.PP
 
378
Definition at line 187 of file qwt_picker.h.
 
379
.SS "enum \fBQwtPicker::DisplayMode\fP"
 
380
.PP
 
381
.IP "\(bu" 2
 
382
AlwaysOff
 
383
.br
 
384
 Display never.
 
385
.IP "\(bu" 2
 
386
AlwaysOn
 
387
.br
 
388
 Display always.
 
389
.IP "\(bu" 2
 
390
ActiveOnly
 
391
.br
 
392
 Display only when the selection is active.
 
393
.PP
 
394
.PP
 
395
\fBSee also:\fP
 
396
.RS 4
 
397
\fBQwtPicker::setTrackerMode()\fP, \fBQwtPicker::trackerMode()\fP, \fBQwtPicker::isActive()\fP 
 
398
.RE
 
399
.PP
 
400
 
 
401
.PP
 
402
Definition at line 217 of file qwt_picker.h.
 
403
.SS "enum \fBQwtPicker::ResizeMode\fP"
 
404
.PP
 
405
Controls what to do with the selected points of an active selection when the observed widget is resized.
 
406
.IP "\(bu" 2
 
407
Stretch
 
408
.br
 
409
 All points are scaled according to the new size,
 
410
.IP "\(bu" 2
 
411
KeepSize
 
412
.br
 
413
 All points remain unchanged.
 
414
.PP
 
415
.PP
 
416
The default value is Stretch. 
 
417
.PP
 
418
\fBSee also:\fP
 
419
.RS 4
 
420
\fBQwtPicker::setResizeMode()\fP, QwtPicker::resize() 
 
421
.RE
 
422
.PP
 
423
 
 
424
.PP
 
425
Definition at line 236 of file qwt_picker.h.
 
426
.SH "Constructor & Destructor Documentation"
 
427
.PP 
 
428
.SS "QwtPicker::QwtPicker (QWidget * parent)\fC [explicit]\fP"
 
429
.PP
 
430
Constructor
 
431
.PP
 
432
Creates an picker that is enabled, but where selection flag is set to NoSelection, rubberband and tracker are disabled.
 
433
.PP
 
434
\fBParameters:\fP
 
435
.RS 4
 
436
\fIparent\fP Parent widget, that will be observed 
 
437
.RE
 
438
.PP
 
439
 
 
440
.PP
 
441
Definition at line 249 of file qwt_picker.cpp.
 
442
.SS "QwtPicker::QwtPicker (int selectionFlags, \fBRubberBand\fP rubberBand, \fBDisplayMode\fP trackerMode, QWidget * parent)\fC [explicit]\fP"
 
443
.PP
 
444
Constructor
 
445
.PP
 
446
\fBParameters:\fP
 
447
.RS 4
 
448
\fIselectionFlags\fP Or'd value of SelectionType, RectSelectionType and SelectionMode 
 
449
.br
 
450
\fIrubberBand\fP Rubberband style 
 
451
.br
 
452
\fItrackerMode\fP Tracker mode 
 
453
.br
 
454
\fIparent\fP Parent widget, that will be observed 
 
455
.RE
 
456
.PP
 
457
 
 
458
.PP
 
459
Definition at line 264 of file qwt_picker.cpp.
 
460
.SS "QwtPicker::~QwtPicker ()\fC [virtual]\fP"
 
461
.PP
 
462
Destructor. 
 
463
.PP
 
464
Definition at line 272 of file qwt_picker.cpp.
 
465
.SH "Member Function Documentation"
 
466
.PP 
 
467
.SS "void QwtPicker::setSelectionFlags (int flags)\fC [virtual]\fP"
 
468
.PP
 
469
Set the selection flags
 
470
.PP
 
471
\fBParameters:\fP
 
472
.RS 4
 
473
\fIflags\fP Or'd value of SelectionType, RectSelectionType and SelectionMode. The default value is NoSelection.
 
474
.RE
 
475
.PP
 
476
\fBSee also:\fP
 
477
.RS 4
 
478
\fBselectionFlags()\fP, \fBSelectionType\fP, \fBRectSelectionType\fP, \fBSelectionMode\fP 
 
479
.RE
 
480
.PP
 
481
 
 
482
.PP
 
483
Reimplemented in \fBQwtPlotZoomer\fP.
 
484
.PP
 
485
Definition at line 403 of file qwt_picker.cpp.
 
486
.PP
 
487
References stateMachine().
 
488
.PP
 
489
Referenced by QwtPlotZoomer::setSelectionFlags().
 
490
.SS "int QwtPicker::selectionFlags () const"
 
491
.PP
 
492
\fBReturns:\fP
 
493
.RS 4
 
494
Selection flags, an Or'd value of SelectionType, RectSelectionType and SelectionMode. 
 
495
.RE
 
496
.PP
 
497
\fBSee also:\fP
 
498
.RS 4
 
499
\fBsetSelectionFlags()\fP, \fBSelectionType\fP, \fBRectSelectionType\fP, \fBSelectionMode\fP 
 
500
.RE
 
501
.PP
 
502
 
 
503
.PP
 
504
Definition at line 414 of file qwt_picker.cpp.
 
505
.PP
 
506
Referenced by drawRubberBand(), and QwtPlotPicker::end().
 
507
.SS "void QwtPicker::setRubberBand (\fBRubberBand\fP rubberBand)\fC [virtual]\fP"
 
508
.PP
 
509
Set the rubberband style
 
510
.PP
 
511
\fBParameters:\fP
 
512
.RS 4
 
513
\fIrubberBand\fP Rubberband style The default value is NoRubberBand.
 
514
.RE
 
515
.PP
 
516
\fBSee also:\fP
 
517
.RS 4
 
518
\fBrubberBand()\fP, \fBRubberBand\fP, \fBsetRubberBandPen()\fP 
 
519
.RE
 
520
.PP
 
521
 
 
522
.PP
 
523
Definition at line 427 of file qwt_picker.cpp.
 
524
.SS "\fBQwtPicker::RubberBand\fP QwtPicker::rubberBand () const"
 
525
.PP
 
526
\fBReturns:\fP
 
527
.RS 4
 
528
Rubberband style 
 
529
.RE
 
530
.PP
 
531
\fBSee also:\fP
 
532
.RS 4
 
533
\fBsetRubberBand()\fP, \fBRubberBand\fP, \fBrubberBandPen()\fP 
 
534
.RE
 
535
.PP
 
536
 
 
537
.PP
 
538
Definition at line 436 of file qwt_picker.cpp.
 
539
.PP
 
540
Referenced by drawRubberBand(), trackerRect(), QwtPlotPicker::trackerText(), trackerText(), and updateDisplay().
 
541
.SS "void QwtPicker::setTrackerMode (\fBDisplayMode\fP mode)\fC [virtual]\fP"
 
542
.PP
 
543
Set the display mode of the tracker. 
 
544
.PP
 
545
A tracker displays information about current position of the cursor as a string. The display mode controls if the tracker has to be displayed whenever the observed widget has focus and cursor (AlwaysOn), never (AlwaysOff), or only when the selection is active (ActiveOnly).
 
546
.PP
 
547
\fBParameters:\fP
 
548
.RS 4
 
549
\fImode\fP Tracker display mode
 
550
.RE
 
551
.PP
 
552
\fBWarning:\fP
 
553
.RS 4
 
554
In case of AlwaysOn, mouseTracking will be enabled for the observed widget. 
 
555
.RE
 
556
.PP
 
557
\fBSee also:\fP
 
558
.RS 4
 
559
\fBtrackerMode()\fP, \fBDisplayMode\fP 
 
560
.RE
 
561
.PP
 
562
 
 
563
.PP
 
564
Definition at line 457 of file qwt_picker.cpp.
 
565
.SS "\fBQwtPicker::DisplayMode\fP QwtPicker::trackerMode () const"
 
566
.PP
 
567
\fBReturns:\fP
 
568
.RS 4
 
569
Tracker display mode 
 
570
.RE
 
571
.PP
 
572
\fBSee also:\fP
 
573
.RS 4
 
574
\fBsetTrackerMode()\fP, \fBDisplayMode\fP 
 
575
.RE
 
576
.PP
 
577
 
 
578
.PP
 
579
Definition at line 470 of file qwt_picker.cpp.
 
580
.PP
 
581
Referenced by begin(), end(), trackerRect(), and updateDisplay().
 
582
.SS "void QwtPicker::setResizeMode (\fBResizeMode\fP mode)\fC [virtual]\fP"
 
583
.PP
 
584
Set the resize mode. 
 
585
.PP
 
586
The resize mode controls what to do with the selected points of an active selection when the observed widget is resized.
 
587
.PP
 
588
Stretch means the points are scaled according to the new size, KeepSize means the points remain unchanged.
 
589
.PP
 
590
The default mode is Stretch.
 
591
.PP
 
592
\fBParameters:\fP
 
593
.RS 4
 
594
\fImode\fP Resize mode 
 
595
.RE
 
596
.PP
 
597
\fBSee also:\fP
 
598
.RS 4
 
599
\fBresizeMode()\fP, \fBResizeMode\fP 
 
600
.RE
 
601
.PP
 
602
 
 
603
.PP
 
604
Definition at line 489 of file qwt_picker.cpp.
 
605
.SS "\fBQwtPicker::ResizeMode\fP QwtPicker::resizeMode () const"
 
606
.PP
 
607
\fBReturns:\fP
 
608
.RS 4
 
609
Resize mode 
 
610
.RE
 
611
.PP
 
612
\fBSee also:\fP
 
613
.RS 4
 
614
\fBsetResizeMode()\fP, \fBResizeMode\fP 
 
615
.RE
 
616
.PP
 
617
 
 
618
.PP
 
619
Definition at line 499 of file qwt_picker.cpp.
 
620
.SS "void QwtPicker::setRubberBandPen (const QPen & pen)\fC [virtual]\fP"
 
621
.PP
 
622
Set the pen for the rubberband
 
623
.PP
 
624
\fBParameters:\fP
 
625
.RS 4
 
626
\fIpen\fP Rubberband pen 
 
627
.RE
 
628
.PP
 
629
\fBSee also:\fP
 
630
.RS 4
 
631
\fBrubberBandPen()\fP, \fBsetRubberBand()\fP 
 
632
.RE
 
633
.PP
 
634
 
 
635
.PP
 
636
Definition at line 597 of file qwt_picker.cpp.
 
637
.PP
 
638
References updateDisplay().
 
639
.SS "QPen QwtPicker::rubberBandPen () const"
 
640
.PP
 
641
\fBReturns:\fP
 
642
.RS 4
 
643
Rubberband pen 
 
644
.RE
 
645
.PP
 
646
\fBSee also:\fP
 
647
.RS 4
 
648
\fBsetRubberBandPen()\fP, \fBrubberBand()\fP 
 
649
.RE
 
650
.PP
 
651
 
 
652
.PP
 
653
Definition at line 610 of file qwt_picker.cpp.
 
654
.PP
 
655
Referenced by drawRubberBand(), and updateDisplay().
 
656
.SS "void QwtPicker::setTrackerPen (const QPen & pen)\fC [virtual]\fP"
 
657
.PP
 
658
Set the pen for the tracker
 
659
.PP
 
660
\fBParameters:\fP
 
661
.RS 4
 
662
\fIpen\fP Tracker pen 
 
663
.RE
 
664
.PP
 
665
\fBSee also:\fP
 
666
.RS 4
 
667
\fBtrackerPen()\fP, \fBsetTrackerMode()\fP, \fBsetTrackerFont()\fP 
 
668
.RE
 
669
.PP
 
670
 
 
671
.PP
 
672
Definition at line 573 of file qwt_picker.cpp.
 
673
.PP
 
674
References updateDisplay().
 
675
.SS "QPen QwtPicker::trackerPen () const"
 
676
.PP
 
677
\fBReturns:\fP
 
678
.RS 4
 
679
Tracker pen 
 
680
.RE
 
681
.PP
 
682
\fBSee also:\fP
 
683
.RS 4
 
684
\fBsetTrackerPen()\fP, \fBtrackerMode()\fP, \fBtrackerFont()\fP 
 
685
.RE
 
686
.PP
 
687
 
 
688
.PP
 
689
Definition at line 586 of file qwt_picker.cpp.
 
690
.PP
 
691
Referenced by updateDisplay().
 
692
.SS "void QwtPicker::setTrackerFont (const QFont & font)\fC [virtual]\fP"
 
693
.PP
 
694
Set the font for the tracker
 
695
.PP
 
696
\fBParameters:\fP
 
697
.RS 4
 
698
\fIfont\fP Tracker font 
 
699
.RE
 
700
.PP
 
701
\fBSee also:\fP
 
702
.RS 4
 
703
\fBtrackerFont()\fP, \fBsetTrackerMode()\fP, \fBsetTrackerPen()\fP 
 
704
.RE
 
705
.PP
 
706
 
 
707
.PP
 
708
Definition at line 548 of file qwt_picker.cpp.
 
709
.PP
 
710
References updateDisplay().
 
711
.SS "QFont QwtPicker::trackerFont () const"
 
712
.PP
 
713
\fBReturns:\fP
 
714
.RS 4
 
715
Tracker font 
 
716
.RE
 
717
.PP
 
718
\fBSee also:\fP
 
719
.RS 4
 
720
\fBsetTrackerFont()\fP, \fBtrackerMode()\fP, \fBtrackerPen()\fP 
 
721
.RE
 
722
.PP
 
723
 
 
724
.PP
 
725
Definition at line 562 of file qwt_picker.cpp.
 
726
.SS "bool QwtPicker::isEnabled () const"
 
727
.PP
 
728
\fBReturns:\fP
 
729
.RS 4
 
730
true when enabled, false otherwise 
 
731
.RE
 
732
.PP
 
733
\fBSee also:\fP
 
734
.RS 4
 
735
\fBsetEnabled\fP, \fBeventFilter()\fP 
 
736
.RE
 
737
.PP
 
738
 
 
739
.PP
 
740
Definition at line 537 of file qwt_picker.cpp.
 
741
.SS "void QwtPicker::setEnabled (bool enabled)\fC [virtual]\fP"
 
742
.PP
 
743
En/disable the picker. 
 
744
.PP
 
745
When enabled is true an event filter is installed for the observed widget, otherwise the event filter is removed.
 
746
.PP
 
747
\fBParameters:\fP
 
748
.RS 4
 
749
\fIenabled\fP true or false 
 
750
.RE
 
751
.PP
 
752
\fBSee also:\fP
 
753
.RS 4
 
754
\fBisEnabled()\fP, \fBeventFilter()\fP 
 
755
.RE
 
756
.PP
 
757
 
 
758
.PP
 
759
Definition at line 513 of file qwt_picker.cpp.
 
760
.PP
 
761
References parentWidget(), and updateDisplay().
 
762
.SS "bool QwtPicker::isActive () const"
 
763
.PP
 
764
A picker is active between \fBbegin()\fP and \fBend()\fP. 
 
765
.PP
 
766
\fBReturns:\fP
 
767
.RS 4
 
768
true if the selection is active. 
 
769
.RE
 
770
.PP
 
771
 
 
772
.PP
 
773
Definition at line 1265 of file qwt_picker.cpp.
 
774
.PP
 
775
Referenced by drawRubberBand(), reset(), trackerRect(), updateDisplay(), QwtPlotZoomer::widgetKeyPressEvent(), widgetLeaveEvent(), and widgetMouseMoveEvent().
 
776
.SS "bool QwtPicker::eventFilter (QObject * o, QEvent * e)\fC [virtual]\fP"
 
777
.PP
 
778
Event filter. 
 
779
.PP
 
780
When \fBisEnabled()\fP == true all events of the observed widget are filtered. Mouse and keyboard events are translated into widgetMouse- and widgetKey- and widgetWheel-events. Paint and Resize events are handled to keep rubberband and tracker up to date.
 
781
.PP
 
782
\fBSee also:\fP
 
783
.RS 4
 
784
event(), \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
 
785
.RE
 
786
.PP
 
787
 
 
788
.PP
 
789
Definition at line 852 of file qwt_picker.cpp.
 
790
.PP
 
791
References parentWidget(), stretchSelection(), widgetKeyPressEvent(), widgetKeyReleaseEvent(), widgetLeaveEvent(), widgetMouseDoubleClickEvent(), widgetMouseMoveEvent(), widgetMousePressEvent(), widgetMouseReleaseEvent(), and widgetWheelEvent().
 
792
.SS "QWidget * QwtPicker::parentWidget ()"
 
793
.PP
 
794
Return the parent widget, where the selection happens. 
 
795
.PP
 
796
Definition at line 375 of file qwt_picker.cpp.
 
797
.PP
 
798
Referenced by begin(), QwtPlotPicker::canvas(), eventFilter(), pickRect(), setEnabled(), transition(), updateDisplay(), and widgetKeyPressEvent().
 
799
.SS "const QWidget * QwtPicker::parentWidget () const"
 
800
.PP
 
801
Return the parent widget, where the selection happens. 
 
802
.PP
 
803
Definition at line 385 of file qwt_picker.cpp.
 
804
.SS "QRect QwtPicker::pickRect () const\fC [virtual]\fP"
 
805
.PP
 
806
Find the area of the observed widget, where selection might happen.
 
807
.PP
 
808
\fBReturns:\fP
 
809
.RS 4
 
810
QFrame::contentsRect() if it is a QFrame, QWidget::rect() otherwise. 
 
811
.RE
 
812
.PP
 
813
 
 
814
.PP
 
815
Definition at line 1344 of file qwt_picker.cpp.
 
816
.PP
 
817
References parentWidget().
 
818
.PP
 
819
Referenced by drawRubberBand(), trackerRect(), widgetKeyPressEvent(), widgetMouseMoveEvent(), and widgetWheelEvent().
 
820
.SS "const QwtPolygon & QwtPicker::selection () const"
 
821
.PP
 
822
Return Selected points. 
 
823
.PP
 
824
Definition at line 1271 of file qwt_picker.cpp.
 
825
.PP
 
826
Referenced by QwtPlotZoomer::end(), and QwtPlotPicker::end().
 
827
.SS "void QwtPicker::drawRubberBand (QPainter * painter) const\fC [virtual]\fP"
 
828
.PP
 
829
Draw a rubberband , depending on \fBrubberBand()\fP and \fBselectionFlags()\fP
 
830
.PP
 
831
\fBParameters:\fP
 
832
.RS 4
 
833
\fIpainter\fP Painter, initialized with clip rect
 
834
.RE
 
835
.PP
 
836
\fBSee also:\fP
 
837
.RS 4
 
838
\fBrubberBand()\fP, \fBRubberBand\fP, \fBselectionFlags()\fP 
 
839
.RE
 
840
.PP
 
841
 
 
842
.PP
 
843
Definition at line 654 of file qwt_picker.cpp.
 
844
.PP
 
845
References QwtPainter::drawEllipse(), QwtPainter::drawLine(), QwtPainter::drawRect(), isActive(), pickRect(), rubberBand(), rubberBandPen(), and selectionFlags().
 
846
.SS "void QwtPicker::drawTracker (QPainter * painter) const\fC [virtual]\fP"
 
847
.PP
 
848
Draw the tracker
 
849
.PP
 
850
\fBParameters:\fP
 
851
.RS 4
 
852
\fIpainter\fP Painter 
 
853
.RE
 
854
.PP
 
855
\fBSee also:\fP
 
856
.RS 4
 
857
\fBtrackerRect()\fP, \fBtrackerText()\fP 
 
858
.RE
 
859
.PP
 
860
 
 
861
.PP
 
862
Definition at line 749 of file qwt_picker.cpp.
 
863
.PP
 
864
References QwtText::draw(), QwtText::isEmpty(), QwtText::setFont(), trackerRect(), trackerText(), and QwtText::usedFont().
 
865
.SS "\fBQwtText\fP QwtPicker::trackerText (const QPoint & pos) const\fC [virtual]\fP"
 
866
.PP
 
867
Return the label for a position. 
 
868
.PP
 
869
In case of HLineRubberBand the label is the value of the y position, in case of VLineRubberBand the value of the x position. Otherwise the label contains x and y position separated by a ',' .
 
870
.PP
 
871
The format for the string conversion is '%d'.
 
872
.PP
 
873
\fBParameters:\fP
 
874
.RS 4
 
875
\fIpos\fP Position 
 
876
.RE
 
877
.PP
 
878
\fBReturns:\fP
 
879
.RS 4
 
880
Converted position as string 
 
881
.RE
 
882
.PP
 
883
 
 
884
.PP
 
885
Reimplemented in \fBQwtPlotPicker\fP.
 
886
.PP
 
887
Definition at line 628 of file qwt_picker.cpp.
 
888
.PP
 
889
References rubberBand().
 
890
.PP
 
891
Referenced by drawTracker(), and trackerRect().
 
892
.SS "void QwtPicker::selected (const QwtPolygon & pa)\fC [signal]\fP"
 
893
.PP
 
894
A signal emitting the selected points, at the end of a selection.
 
895
.PP
 
896
\fBParameters:\fP
 
897
.RS 4
 
898
\fIpa\fP Selected points 
 
899
.RE
 
900
.PP
 
901
 
 
902
.PP
 
903
Referenced by end().
 
904
.SS "void QwtPicker::appended (const QPoint & pos)\fC [signal]\fP"
 
905
.PP
 
906
A signal emitted when a point has been appended to the selection
 
907
.PP
 
908
\fBParameters:\fP
 
909
.RS 4
 
910
\fIpos\fP Position of the appended point. 
 
911
.RE
 
912
.PP
 
913
\fBSee also:\fP
 
914
.RS 4
 
915
\fBappend()\fP. \fBmoved()\fP 
 
916
.RE
 
917
.PP
 
918
 
 
919
.PP
 
920
Referenced by append().
 
921
.SS "void QwtPicker::moved (const QPoint & pos)\fC [signal]\fP"
 
922
.PP
 
923
A signal emitted whenever the last appended point of the selection has been moved.
 
924
.PP
 
925
\fBParameters:\fP
 
926
.RS 4
 
927
\fIpos\fP Position of the moved last point of the selection. 
 
928
.RE
 
929
.PP
 
930
\fBSee also:\fP
 
931
.RS 4
 
932
\fBmove()\fP, \fBappended()\fP 
 
933
.RE
 
934
.PP
 
935
 
 
936
.PP
 
937
Referenced by move().
 
938
.SS "void QwtPicker::changed (const QwtPolygon & pa)\fC [signal]\fP"
 
939
.PP
 
940
A signal emitted when the active selection has been changed. This might happen when the observed widget is resized.
 
941
.PP
 
942
\fBParameters:\fP
 
943
.RS 4
 
944
\fIpa\fP Changed selection 
 
945
.RE
 
946
.PP
 
947
\fBSee also:\fP
 
948
.RS 4
 
949
\fBstretchSelection()\fP 
 
950
.RE
 
951
.PP
 
952
 
 
953
.PP
 
954
Referenced by stretchSelection().
 
955
.SS "bool QwtPicker::accept (QwtPolygon & selection) const\fC [protected, virtual]\fP"
 
956
.PP
 
957
Validate and fixup the selection. 
 
958
.PP
 
959
Accepts all selections unmodified
 
960
.PP
 
961
\fBParameters:\fP
 
962
.RS 4
 
963
\fIselection\fP Selection to validate and fixup 
 
964
.RE
 
965
.PP
 
966
\fBReturns:\fP
 
967
.RS 4
 
968
true, when accepted, false otherwise 
 
969
.RE
 
970
.PP
 
971
 
 
972
.PP
 
973
Reimplemented in \fBQwtPlotZoomer\fP.
 
974
.PP
 
975
Definition at line 1256 of file qwt_picker.cpp.
 
976
.PP
 
977
Referenced by end().
 
978
.SS "void QwtPicker::transition (const QEvent * e)\fC [protected, virtual]\fP"
 
979
.PP
 
980
Passes an event to the state machine and executes the resulting commands. Append and Move commands use the current position of the cursor (QCursor::pos()).
 
981
.PP
 
982
\fBParameters:\fP
 
983
.RS 4
 
984
\fIe\fP Event 
 
985
.RE
 
986
.PP
 
987
 
 
988
.PP
 
989
Definition at line 1079 of file qwt_picker.cpp.
 
990
.PP
 
991
References append(), begin(), end(), move(), and parentWidget().
 
992
.PP
 
993
Referenced by widgetKeyPressEvent(), widgetKeyReleaseEvent(), widgetMouseDoubleClickEvent(), widgetMouseMoveEvent(), widgetMousePressEvent(), widgetMouseReleaseEvent(), and widgetWheelEvent().
 
994
.SS "void QwtPicker::begin ()\fC [protected, virtual]\fP"
 
995
.PP
 
996
Open a selection setting the state to active
 
997
.PP
 
998
\fBSee also:\fP
 
999
.RS 4
 
1000
\fBisActive\fP, \fBend()\fP, \fBappend()\fP, \fBmove()\fP 
 
1001
.RE
 
1002
.PP
 
1003
 
 
1004
.PP
 
1005
Reimplemented in \fBQwtPlotZoomer\fP.
 
1006
.PP
 
1007
Definition at line 1136 of file qwt_picker.cpp.
 
1008
.PP
 
1009
References parentWidget(), trackerMode(), and updateDisplay().
 
1010
.PP
 
1011
Referenced by QwtPlotZoomer::begin(), and transition().
 
1012
.SS "void QwtPicker::append (const QPoint & pos)\fC [protected, virtual]\fP"
 
1013
.PP
 
1014
Append a point to the selection and update rubberband and tracker. The \fBappended()\fP signal is emitted.
 
1015
.PP
 
1016
\fBParameters:\fP
 
1017
.RS 4
 
1018
\fIpos\fP Additional point
 
1019
.RE
 
1020
.PP
 
1021
\fBSee also:\fP
 
1022
.RS 4
 
1023
\fBisActive\fP, \fBbegin()\fP, \fBend()\fP, \fBmove()\fP, \fBappended()\fP 
 
1024
.RE
 
1025
.PP
 
1026
 
 
1027
.PP
 
1028
Reimplemented in \fBQwtPlotPicker\fP.
 
1029
.PP
 
1030
Definition at line 1215 of file qwt_picker.cpp.
 
1031
.PP
 
1032
References appended(), and updateDisplay().
 
1033
.PP
 
1034
Referenced by QwtPlotPicker::append(), and transition().
 
1035
.SS "void QwtPicker::move (const QPoint & pos)\fC [protected, virtual]\fP"
 
1036
.PP
 
1037
Move the last point of the selection The \fBmoved()\fP signal is emitted.
 
1038
.PP
 
1039
\fBParameters:\fP
 
1040
.RS 4
 
1041
\fIpos\fP New position 
 
1042
.RE
 
1043
.PP
 
1044
\fBSee also:\fP
 
1045
.RS 4
 
1046
\fBisActive\fP, \fBbegin()\fP, \fBend()\fP, \fBappend()\fP 
 
1047
.RE
 
1048
.PP
 
1049
 
 
1050
.PP
 
1051
Reimplemented in \fBQwtPlotPicker\fP.
 
1052
.PP
 
1053
Definition at line 1237 of file qwt_picker.cpp.
 
1054
.PP
 
1055
References moved(), and updateDisplay().
 
1056
.PP
 
1057
Referenced by QwtPlotPicker::move(), and transition().
 
1058
.SS "bool QwtPicker::end (bool ok = \fCtrue\fP)\fC [protected, virtual]\fP"
 
1059
.PP
 
1060
Close a selection setting the state to inactive. 
 
1061
.PP
 
1062
The selection is validated and maybe fixed by \fBQwtPicker::accept()\fP.
 
1063
.PP
 
1064
\fBParameters:\fP
 
1065
.RS 4
 
1066
\fIok\fP If true, complete the selection and emit a selected signal otherwise discard the selection. 
 
1067
.RE
 
1068
.PP
 
1069
\fBReturns:\fP
 
1070
.RS 4
 
1071
true if the selection is accepted, false otherwise 
 
1072
.RE
 
1073
.PP
 
1074
\fBSee also:\fP
 
1075
.RS 4
 
1076
\fBisActive\fP, \fBbegin()\fP, \fBappend()\fP, \fBmove()\fP, \fBselected()\fP, \fBaccept()\fP 
 
1077
.RE
 
1078
.PP
 
1079
 
 
1080
.PP
 
1081
Reimplemented in \fBQwtPlotPicker\fP, and \fBQwtPlotZoomer\fP.
 
1082
.PP
 
1083
Definition at line 1168 of file qwt_picker.cpp.
 
1084
.PP
 
1085
References accept(), selected(), trackerMode(), and updateDisplay().
 
1086
.PP
 
1087
Referenced by QwtPlotPicker::end(), reset(), and transition().
 
1088
.SS "void QwtPicker::reset ()\fC [protected, virtual]\fP"
 
1089
.PP
 
1090
Reset the state machine and terminate (end(false)) the selection 
 
1091
.PP
 
1092
Definition at line 1198 of file qwt_picker.cpp.
 
1093
.PP
 
1094
References end(), and isActive().
 
1095
.PP
 
1096
Referenced by widgetKeyPressEvent().
 
1097
.SS "void QwtPicker::widgetMousePressEvent (QMouseEvent * e)\fC [protected, virtual]\fP"
 
1098
.PP
 
1099
Handle a mouse press event for the observed widget.
 
1100
.PP
 
1101
Begin and/or end a selection depending on the selection flags.
 
1102
.PP
 
1103
\fBSee also:\fP
 
1104
.RS 4
 
1105
\fBQwtPicker\fP, \fBselectionFlags()\fP 
 
1106
.PP
 
1107
\fBeventFilter()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
 
1108
.RE
 
1109
.PP
 
1110
 
 
1111
.PP
 
1112
Definition at line 912 of file qwt_picker.cpp.
 
1113
.PP
 
1114
References transition().
 
1115
.PP
 
1116
Referenced by eventFilter().
 
1117
.SS "void QwtPicker::widgetMouseReleaseEvent (QMouseEvent * e)\fC [protected, virtual]\fP"
 
1118
.PP
 
1119
Handle a mouse relase event for the observed widget.
 
1120
.PP
 
1121
End a selection depending on the selection flags.
 
1122
.PP
 
1123
\fBSee also:\fP
 
1124
.RS 4
 
1125
\fBQwtPicker\fP, \fBselectionFlags()\fP 
 
1126
.PP
 
1127
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
 
1128
.RE
 
1129
.PP
 
1130
 
 
1131
.PP
 
1132
Reimplemented in \fBQwtPlotZoomer\fP.
 
1133
.PP
 
1134
Definition at line 963 of file qwt_picker.cpp.
 
1135
.PP
 
1136
References transition().
 
1137
.PP
 
1138
Referenced by eventFilter(), and QwtPlotZoomer::widgetMouseReleaseEvent().
 
1139
.SS "void QwtPicker::widgetMouseDoubleClickEvent (QMouseEvent * me)\fC [protected, virtual]\fP"
 
1140
.PP
 
1141
Handle mouse double click event for the observed widget.
 
1142
.PP
 
1143
Empty implementation, does nothing.
 
1144
.PP
 
1145
\fBSee also:\fP
 
1146
.RS 4
 
1147
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
 
1148
.RE
 
1149
.PP
 
1150
 
 
1151
.PP
 
1152
Definition at line 977 of file qwt_picker.cpp.
 
1153
.PP
 
1154
References transition().
 
1155
.PP
 
1156
Referenced by eventFilter().
 
1157
.SS "void QwtPicker::widgetMouseMoveEvent (QMouseEvent * e)\fC [protected, virtual]\fP"
 
1158
.PP
 
1159
Handle a mouse move event for the observed widget.
 
1160
.PP
 
1161
Move the last point of the selection in case of \fBisActive()\fP == true
 
1162
.PP
 
1163
\fBSee also:\fP
 
1164
.RS 4
 
1165
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
 
1166
.RE
 
1167
.PP
 
1168
 
 
1169
.PP
 
1170
Definition at line 926 of file qwt_picker.cpp.
 
1171
.PP
 
1172
References isActive(), pickRect(), transition(), and updateDisplay().
 
1173
.PP
 
1174
Referenced by eventFilter().
 
1175
.SS "void QwtPicker::widgetWheelEvent (QWheelEvent * e)\fC [protected, virtual]\fP"
 
1176
.PP
 
1177
Handle a wheel event for the observed widget.
 
1178
.PP
 
1179
Move the last point of the selection in case of \fBisActive()\fP == true
 
1180
.PP
 
1181
\fBSee also:\fP
 
1182
.RS 4
 
1183
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
 
1184
.RE
 
1185
.PP
 
1186
 
 
1187
.PP
 
1188
Definition at line 992 of file qwt_picker.cpp.
 
1189
.PP
 
1190
References pickRect(), transition(), and updateDisplay().
 
1191
.PP
 
1192
Referenced by eventFilter().
 
1193
.SS "void QwtPicker::widgetKeyPressEvent (QKeyEvent * ke)\fC [protected, virtual]\fP"
 
1194
.PP
 
1195
Handle a key press event for the observed widget.
 
1196
.PP
 
1197
Selections can be completely done by the keyboard. The arrow keys move the cursor, the abort key aborts a selection. All other keys are handled by the current state machine.
 
1198
.PP
 
1199
\fBSee also:\fP
 
1200
.RS 4
 
1201
\fBQwtPicker\fP, \fBselectionFlags()\fP 
 
1202
.PP
 
1203
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyReleaseEvent()\fP, \fBstateMachine()\fP, \fBQwtEventPattern::KeyPatternCode\fP 
 
1204
.RE
 
1205
.PP
 
1206
 
 
1207
.PP
 
1208
Reimplemented in \fBQwtPlotZoomer\fP.
 
1209
.PP
 
1210
Definition at line 1017 of file qwt_picker.cpp.
 
1211
.PP
 
1212
References QwtEventPattern::keyMatch(), parentWidget(), pickRect(), reset(), and transition().
 
1213
.PP
 
1214
Referenced by eventFilter(), and QwtPlotZoomer::widgetKeyPressEvent().
 
1215
.SS "void QwtPicker::widgetKeyReleaseEvent (QKeyEvent * ke)\fC [protected, virtual]\fP"
 
1216
.PP
 
1217
Handle a key release event for the observed widget.
 
1218
.PP
 
1219
Passes the event to the state machine.
 
1220
.PP
 
1221
\fBSee also:\fP
 
1222
.RS 4
 
1223
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetMouseMoveEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBstateMachine()\fP 
 
1224
.RE
 
1225
.PP
 
1226
 
 
1227
.PP
 
1228
Definition at line 1067 of file qwt_picker.cpp.
 
1229
.PP
 
1230
References transition().
 
1231
.PP
 
1232
Referenced by eventFilter().
 
1233
.SS "void QwtPicker::widgetLeaveEvent (QEvent *)\fC [protected, virtual]\fP"
 
1234
.PP
 
1235
Handle a leave event for the observed widget.
 
1236
.PP
 
1237
\fBSee also:\fP
 
1238
.RS 4
 
1239
\fBeventFilter()\fP, \fBwidgetMousePressEvent()\fP, \fBwidgetMouseReleaseEvent()\fP, \fBwidgetMouseDoubleClickEvent()\fP, \fBwidgetWheelEvent()\fP, \fBwidgetKeyPressEvent()\fP, \fBwidgetKeyReleaseEvent()\fP 
 
1240
.RE
 
1241
.PP
 
1242
 
 
1243
.PP
 
1244
Definition at line 946 of file qwt_picker.cpp.
 
1245
.PP
 
1246
References isActive(), and updateDisplay().
 
1247
.PP
 
1248
Referenced by eventFilter().
 
1249
.SS "void QwtPicker::stretchSelection (const QSize & oldSize, const QSize & newSize)\fC [protected, virtual]\fP"
 
1250
.PP
 
1251
Scale the selection by the ratios of oldSize and newSize The \fBchanged()\fP signal is emitted.
 
1252
.PP
 
1253
\fBParameters:\fP
 
1254
.RS 4
 
1255
\fIoldSize\fP Previous size 
 
1256
.br
 
1257
\fInewSize\fP Current size
 
1258
.RE
 
1259
.PP
 
1260
\fBSee also:\fP
 
1261
.RS 4
 
1262
\fBResizeMode\fP, \fBsetResizeMode()\fP, \fBresizeMode()\fP 
 
1263
.RE
 
1264
.PP
 
1265
 
 
1266
.PP
 
1267
Definition at line 1285 of file qwt_picker.cpp.
 
1268
.PP
 
1269
References changed().
 
1270
.PP
 
1271
Referenced by eventFilter().
 
1272
.SS "\fBQwtPickerMachine\fP * QwtPicker::stateMachine (int flags) const\fC [protected, virtual]\fP"
 
1273
.PP
 
1274
Create a state machine depending on the selection flags.
 
1275
.PP
 
1276
.IP "\(bu" 2
 
1277
PointSelection | ClickSelection
 
1278
.br
 
1279
 QwtPickerClickPointMachine()
 
1280
.IP "\(bu" 2
 
1281
PointSelection | DragSelection
 
1282
.br
 
1283
 QwtPickerDragPointMachine()
 
1284
.IP "\(bu" 2
 
1285
RectSelection | ClickSelection
 
1286
.br
 
1287
 QwtPickerClickRectMachine()
 
1288
.IP "\(bu" 2
 
1289
RectSelection | DragSelection
 
1290
.br
 
1291
 QwtPickerDragRectMachine()
 
1292
.IP "\(bu" 2
 
1293
PolygonSelection
 
1294
.br
 
1295
 QwtPickerPolygonMachine()
 
1296
.PP
 
1297
.PP
 
1298
\fBSee also:\fP
 
1299
.RS 4
 
1300
\fBsetSelectionFlags()\fP 
 
1301
.RE
 
1302
.PP
 
1303
 
 
1304
.PP
 
1305
Definition at line 351 of file qwt_picker.cpp.
 
1306
.PP
 
1307
Referenced by setSelectionFlags().
 
1308
 
 
1309
.SH "Author"
 
1310
.PP 
 
1311
Generated automatically by Doxygen for Qwt User's Guide from the source code.