-
Notifications
You must be signed in to change notification settings - Fork 0
/
qchartviewer.cpp
1188 lines (1084 loc) · 24.4 KB
/
qchartviewer.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include "qchartviewer.h"
#include <QMouseEvent>
#include <QToolTip>
#include <QCursor>
#include <QBitmap>
/////////////////////////////////////////////////////////////////////////////
// QChartViewer
//
// Build in mouse cursors for zooming and scrolling support
//
static QCursor &getZoomInCursor();
static QCursor &getZoomOutCursor();
static QCursor &getNoZoomCursor();
static QCursor &getNoMove2DCursor();
static QCursor &getNoMoveHorizCursor();
static QCursor &getNoMoveVertCursor();
QChartViewer::QChartViewer(QWidget *parent) :
QLabel(parent)
{
// current chart and hot spot tester
m_currentChart = 0;
m_hotSpotTester = 0;
// initialize chart configuration
m_selectBoxLineColor = QColor(0, 0, 0);
m_selectBoxLineWidth = 2;
m_mouseUsage = Chart::MouseUsageDefault;
m_zoomDirection = Chart::DirectionHorizontal;
m_zoomInRatio = 2;
m_zoomOutRatio = 0.5;
m_scrollDirection = Chart::DirectionHorizontal;
m_minDragAmount = 5;
m_updateInterval = 20;
// current state of the mouse
m_isOnPlotArea = false;
m_isPlotAreaMouseDown = false;
m_isDragScrolling = false;
m_currentHotSpot = -1;
m_isClickable = false;
// chart update rate support
m_needUpdateChart = false;
m_needUpdateImageMap = false;
m_holdTimerActive = false;
m_isInViewPortChanged = false;
// selection rectangle
m_LeftLine = 0;
m_RightLine = 0;
m_TopLine = 0;
m_BottomLine = 0;
setMouseTracking(true);
}
QChartViewer::~QChartViewer()
{
delete m_hotSpotTester;
}
/////////////////////////////////////////////////////////////////////////////
// QChartViewer message handlers
//
// MouseMove event handler
//
void QChartViewer::mouseMoveEvent(QMouseEvent *event)
{
emit mouseMove(event);
//
// Call OnPlotAreaMouseDrag if mouse is dragging inside the plot area
//
m_isOnPlotArea = m_isPlotAreaMouseDown || inPlotArea(event->x(), event->y());
if (m_isPlotAreaMouseDown)
onPlotAreaMouseDrag(event);
//
// Show hot spot tool tips if necessary
//
if (event->buttons() != Qt::NoButton)
{
// Hide tool tips if mouse button is pressed.
QToolTip::hideText();
}
else
{
// Use the ChartDirector ImageMapHandler to determine if the mouse is over a hot spot
int hotSpotNo = 0;
if (0 != m_hotSpotTester)
hotSpotNo = m_hotSpotTester->getHotSpot(event->x(), event->y());
// If the mouse is in the same hot spot since the last mouse move event, there is no need
// to update the tool tip.
if (hotSpotNo != m_currentHotSpot)
{
// Hot spot has changed - update tool tip text
m_currentHotSpot = hotSpotNo;
if (hotSpotNo == 0)
{
// Mouse is not actually on hanlder hot spot - use default tool tip text and reset
// the clickable flag.
QToolTip::showText(event->globalPos(), m_defaultToolTip);
m_isClickable = false;
}
else
{
// Mouse is on a hot spot. In this implementation, we consider the hot spot as
// clickable if its href ("path") parameter is not empty.
const char *path = m_hotSpotTester->getValue("path");
m_isClickable = ((0 != path) && (0 != *path));
// Use the title attribute as the tool tip.
QToolTip::showText(event->globalPos(), QString::fromUtf8(m_hotSpotTester->getValue("title")));
}
}
}
onSetCursor();
}
//
// Change the mouse cursor.
//
void QChartViewer::onSetCursor()
{
if (this->m_isDragScrolling)
{
switch (m_scrollDirection)
{
case Chart::DirectionHorizontal:
setCursor(getNoMoveHorizCursor());
break;
case Chart::DirectionVertical:
setCursor(getNoMoveVertCursor());
break;
default :
setCursor(getNoMove2DCursor());
break;
}
return;
}
if (m_isOnPlotArea)
{
switch (m_mouseUsage)
{
case Chart::MouseUsageZoomIn:
if (canZoomIn(m_zoomDirection))
setCursor(getZoomInCursor());
else
setCursor(getNoZoomCursor());
return;
case Chart::MouseUsageZoomOut:
if (canZoomOut(m_zoomDirection))
setCursor(getZoomOutCursor());
else
setCursor(getNoZoomCursor());
return;
}
}
if (m_isClickable)
setCursor(Qt::PointingHandCursor);
else
unsetCursor();
}
//
// Mouse left button down event.
//
void QChartViewer::mousePressEvent(QMouseEvent *event)
{
if ((event->button() == Qt::LeftButton) && inPlotArea(event->x(), event->y()) &&
(m_mouseUsage != Chart::MouseUsageDefault))
{
// Mouse usage is for drag to zoom/scroll. Capture the mouse to prepare for dragging and
// save the mouse down position to draw the selection rectangle.
m_isPlotAreaMouseDown = true;
m_plotAreaMouseDownXPos = event->x();
m_plotAreaMouseDownYPos = event->y();
startDrag();
}
}
//
// Mouse left button up event.
//
void QChartViewer::mouseReleaseEvent(QMouseEvent *event)
{
if ((event->button() == Qt::LeftButton) && m_isPlotAreaMouseDown)
{
// Release the mouse capture.
m_isPlotAreaMouseDown = false;
setRectVisible(false);
bool hasUpdate = false;
switch (m_mouseUsage)
{
case Chart::MouseUsageZoomIn :
if (canZoomIn(m_zoomDirection))
{
if (isDrag(m_zoomDirection, event))
// Zoom to the drag selection rectangle.
hasUpdate = zoomTo(m_zoomDirection,
m_plotAreaMouseDownXPos, m_plotAreaMouseDownYPos, event->x(), event->y());
else
// User just click on a point. Zoom-in around the mouse cursor position.
hasUpdate = zoomAt(m_zoomDirection, event->x(), event->y(), m_zoomInRatio);
}
break;
case Chart::MouseUsageZoomOut:
// Zoom out around the mouse cursor position.
if (canZoomOut(m_zoomDirection))
hasUpdate = zoomAt(m_zoomDirection, event->x(), event->y(), m_zoomOutRatio);
break;
default :
if (m_isDragScrolling)
// Drag to scroll. We can update the image map now as scrolling has finished.
updateViewPort(false, true);
else
// Is not zooming or scrolling, so is just a normal click event.
emit clicked(event);
break;
}
m_isDragScrolling = false;
if (hasUpdate)
// View port has changed - update it.
updateViewPort(true, true);
}
else
emit clicked(event);
onSetCursor();
}
//
// Chart hold timer.
//
void QChartViewer::timerEvent(QTimerEvent *event)
{
// Reset the timer
if (m_holdTimerActive && (event->timerId() == m_holdTimerId))
{
killTimer(m_holdTimerId);
m_holdTimerActive = false;
// If has pending chart update request, handles them now.
if (m_needUpdateChart || m_needUpdateImageMap)
updateViewPort(m_needUpdateChart, m_needUpdateImageMap);
}
}
//
// Set the chart to the control
//
void QChartViewer::setChart(BaseChart *c)
{
// Get the image and metrics for the chart
QPixmap image;
const char *chartMetrics = 0;
if (0 != c)
{
// Output chart as Device Indpendent Bitmap with file headers
MemBlock m = c->makeChart(Chart::BMP);
image.loadFromData((uchar *)m.data, (uint)m.len);
setFixedSize(c->getWidth(), c->getHeight());
// Get chart metrics
chartMetrics = c->getChartMetrics();
}
// Set the HBITMAP for display
m_currentChart = c;
setPixmap(image);
// Set the chart metrics and clear the image map
setChartMetrics(chartMetrics);
setImageMap(0);
}
/////////////////////////////////////////////////////////////////////////////
// QChartViewer properties
//
// Get back the same BaseChart pointer provided by the previous setChart call.
//
BaseChart *QChartViewer::getChart()
{
return m_currentChart;
}
//
// Set image map used by the chart
//
void QChartViewer::setImageMap(const char *imageMap)
{
//delete the existing ImageMapHandler
if (0 != m_hotSpotTester)
delete m_hotSpotTester;
m_currentHotSpot = -1;
m_isClickable = false;
//create a new ImageMapHandler to represent the image map
if ((0 == imageMap) || (0 == *imageMap))
m_hotSpotTester = 0;
else
m_hotSpotTester = new ImageMapHandler(imageMap);
}
//
// Get the image map handler for the chart
//
ImageMapHandler *QChartViewer::getImageMapHandler()
{
return m_hotSpotTester;
}
//
// Set the default tool tip to use
//
void QChartViewer::setDefaultToolTip(QString text)
{
m_defaultToolTip = text;
}
//
// Set the border width of the selection box
//
void QChartViewer::setSelectionBorderWidth(int width)
{
m_selectBoxLineWidth = width;
}
//
// Get the border with of the selection box.
//
int QChartViewer::getSelectionBorderWidth()
{
return m_selectBoxLineWidth;
}
//
// Set the border color of the selection box
//
void QChartViewer::setSelectionBorderColor(QColor c)
{
m_selectBoxLineColor = c;
if (m_TopLine != 0)
{
QPalette p(c, c);
m_TopLine->setPalette(p);
m_LeftLine->setPalette(p);
m_BottomLine->setPalette(p);
m_RightLine->setPalette(p);
}
}
//
// Get the border color of the selection box.
//
QColor QChartViewer::getSelectionBorderColor()
{
return m_selectBoxLineColor;
}
//
// Set the mouse usage mode
//
void QChartViewer::setMouseUsage(int mouseUsage)
{
m_mouseUsage = mouseUsage;
}
//
// Get the mouse usage mode
//
int QChartViewer::getMouseUsage()
{
return m_mouseUsage;
}
//
// Set the zoom direction
//
void QChartViewer::setZoomDirection(int direction)
{
m_zoomDirection = direction;
}
//
// Get the zoom direction
//
int QChartViewer::getZoomDirection()
{
return m_zoomDirection;
}
//
// Set the scroll direction
//
void QChartViewer::setScrollDirection(int direction)
{
m_scrollDirection = direction;
}
//
// Get the scroll direction
//
int QChartViewer::getScrollDirection()
{
return m_scrollDirection;
}
//
// Set the zoom-in ratio for mouse click zoom-in
//
void QChartViewer::setZoomInRatio(double ratio)
{
m_zoomInRatio = ratio;
}
//
// Get the zoom-in ratio for mouse click zoom-in
//
double QChartViewer::getZoomInRatio()
{
return m_zoomInRatio;
}
//
// Set the zoom-out ratio
//
void QChartViewer::setZoomOutRatio(double ratio)
{
m_zoomOutRatio = ratio;
}
//
// Get the zoom-out ratio
//
double QChartViewer::getZoomOutRatio()
{
return m_zoomOutRatio;
}
//
// Set the minimum mouse drag before the dragging is considered as real. This is to avoid small
// mouse vibrations triggering a mouse drag.
//
void QChartViewer::setMinimumDrag(int offset)
{
m_minDragAmount = offset;
}
//
// Get the minimum mouse drag before the dragging is considered as real.
//
int QChartViewer::getMinimumDrag()
{
return m_minDragAmount;
}
//
// Set the minimum interval between ViewPortChanged events. This is to avoid the chart being
// updated too frequently. (Default is 20ms between chart updates.) Multiple update events
// arrived during the interval will be merged into one chart update and executed at the end
// of the interval.
//
void QChartViewer::setUpdateInterval(int interval)
{
m_updateInterval = interval;
}
//
// Get the minimum interval between ViewPortChanged events.
//
int QChartViewer::getUpdateInterval()
{
return m_updateInterval;
}
//
// Check if there is a pending chart update request.
//
bool QChartViewer::needUpdateChart()
{
return m_needUpdateChart;
}
//
// Check if there is a pending image map update request.
//
bool QChartViewer::needUpdateImageMap()
{
return m_needUpdateImageMap;
}
/////////////////////////////////////////////////////////////////////////////
// QChartViewer methods
//
// Create the edges for the selection rectangle
//
void QChartViewer::initRect()
{
m_LeftLine = new QLabel(this);
m_LeftLine->setAutoFillBackground(true);
m_RightLine = new QLabel(this);
m_RightLine->setAutoFillBackground(true);
m_TopLine = new QLabel(this);
m_TopLine->setAutoFillBackground(true);
m_BottomLine = new QLabel(this);
m_BottomLine->setAutoFillBackground(true);
setSelectionBorderColor(getSelectionBorderColor());
}
//
// Set selection rectangle position and size
//
void QChartViewer::drawRect(int x, int y, int width, int height)
{
// Create the edges of the rectangle if not already created
if (m_TopLine == 0)
initRect();
// width < 0 is interpreted as the rectangle extends to the left or x.
// height <0 is interpreted as the rectangle extends to above y.
if (width < 0)
x -= (width = -width);
if (height < 0)
y -= (height = -height);
// Put the edges along the sides of the rectangle
m_TopLine->move(x, y);
m_TopLine->setFixedSize(width, m_selectBoxLineWidth);
m_LeftLine->move(x, y);
m_LeftLine->setFixedSize(m_selectBoxLineWidth, height);
m_BottomLine->move(x, y + height - m_selectBoxLineWidth + 1);
m_BottomLine->setFixedSize(width, m_selectBoxLineWidth);
m_RightLine->move(x + width - m_selectBoxLineWidth + 1, y);
m_RightLine->setFixedSize(m_selectBoxLineWidth, height);
}
//
// Show/hide selection rectangle
//
void QChartViewer::setRectVisible(bool b)
{
// Create the edges of the rectangle if not already created
if (b && (m_TopLine == 0))
initRect();
// Show/hide the edges
if (m_TopLine != 0)
{
m_TopLine->setVisible(b);
m_LeftLine->setVisible(b);
m_BottomLine->setVisible(b);
m_RightLine->setVisible(b);
}
}
//
// Determines if the mouse is dragging.
//
bool QChartViewer::isDrag(int direction, QMouseEvent *event)
{
// We only consider the mouse is dragging it is has dragged more than m_minDragAmount. This is
// to avoid small mouse vibrations triggering a mouse drag.
int spanX = abs(event->x() - m_plotAreaMouseDownXPos);
int spanY = abs(event->y() - m_plotAreaMouseDownYPos);
return ((direction != Chart::DirectionVertical) && (spanX >= m_minDragAmount)) ||
((direction != Chart::DirectionHorizontal) && (spanY >= m_minDragAmount));
}
//
// Process mouse dragging over the plot area
//
void QChartViewer::onPlotAreaMouseDrag(QMouseEvent *event)
{
switch (m_mouseUsage)
{
case Chart::MouseUsageZoomIn :
{
//
// Mouse is used for zoom in. Draw the selection rectangle if necessary.
//
bool isDragZoom = canZoomIn(m_zoomDirection) && isDrag(m_zoomDirection, event);
if (isDragZoom)
{
int spanX = m_plotAreaMouseDownXPos - event->x();
int spanY = m_plotAreaMouseDownYPos - event->y();
switch (m_zoomDirection)
{
case Chart::DirectionHorizontal:
drawRect(event->x(), getPlotAreaTop(), spanX, getPlotAreaHeight());
break;
case Chart::DirectionVertical:
drawRect(getPlotAreaLeft(), event->y(), getPlotAreaWidth(), spanY);
break;
default:
drawRect(event->x(), event->y(), spanX, spanY);
break;
}
}
setRectVisible(isDragZoom);
break;
}
case Chart::MouseUsageScroll :
{
//
// Mouse is used for drag scrolling. Scroll and update the view port.
//
if (m_isDragScrolling || isDrag(m_scrollDirection, event))
{
m_isDragScrolling = true;
if (dragTo(m_scrollDirection,
event->x() - m_plotAreaMouseDownXPos, event->y() - m_plotAreaMouseDownYPos))
updateViewPort(true, false);
}
}
}
}
//
// Trigger the ViewPortChanged event
//
void QChartViewer::updateViewPort(bool needUpdateChart, bool needUpdateImageMap)
{
// Already updating, no need to update again
if (m_isInViewPortChanged)
return;
// Merge the current update requests with any pending requests.
m_needUpdateChart = m_needUpdateChart || needUpdateChart;
m_needUpdateImageMap = needUpdateImageMap;
// Hold timer has not expired, so do not update chart immediately. Keep the requests pending.
if (m_holdTimerActive)
return;
// Can update chart now. Trigger the ViewPortChanged event.
validateViewPort();
m_isInViewPortChanged = true;
emit viewPortChanged();
m_isInViewPortChanged = false;
// Clear any pending updates.
m_needUpdateChart = false;
m_needUpdateImageMap = false;
// Set hold timer to prevent multiple chart updates within a short period.
if (m_updateInterval > 0)
{
m_holdTimerActive = true;
m_holdTimerId = startTimer(m_updateInterval);
}
}
/////////////////////////////////////////////////////////////////////////////
// Build in mouse cursors for zooming and scrolling support
//
static const int zoomInCursorA[] =
{
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xff3ff8ff,
0xff0fe0ff,
0xff07c0ff,
0xff07c0ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff07c0ff,
0xff07c0ff,
0xff01e0ff,
0xff30f8ff,
0x7ff0ffff,
0x3ff8ffff,
0x1ffcffff,
0x0ffeffff,
0x0fffffff,
0x9fffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff
};
static const int zoomInCursorB[] =
{
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00c00700,
0x00f01f00,
0x00f01e00,
0x00f83e00,
0x00f83e00,
0x00183000,
0x00f83e00,
0x00f83e00,
0x00f01e00,
0x00f01f00,
0x00c00700,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000
};
static const int zoomOutCursorA[] =
{
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xff3ff8ff,
0xff0fe0ff,
0xff07c0ff,
0xff07c0ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff07c0ff,
0xff07c0ff,
0xff01e0ff,
0xff30f8ff,
0x7ff0ffff,
0x3ff8ffff,
0x1ffcffff,
0x0ffeffff,
0x0fffffff,
0x9fffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff
};
static const int zoomOutCursorB[] =
{
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00c00700,
0x00f01f00,
0x00f01f00,
0x00f83f00,
0x00f83f00,
0x00183000,
0x00f83f00,
0x00f83f00,
0x00f01f00,
0x00f01f00,
0x00c00700,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000
};
static const int noZoomCursorA[] =
{
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xff3ff8ff,
0xff0fe0ff,
0xff07c0ff,
0xff07c0ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff0380ff,
0xff07c0ff,
0xff07c0ff,
0xff01e0ff,
0xff30f8ff,
0x7ff0ffff,
0x3ff8ffff,
0x1ffcffff,
0x0ffeffff,
0x0fffffff,
0x9fffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff
};
static const int noZoomCursorB[] =
{
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00c00700,
0x00f01f00,
0x00f01f00,
0x00f83f00,
0x00f83f00,
0x00f83f00,
0x00f83f00,
0x00f83f00,
0x00f01f00,
0x00f01f00,
0x00c00700,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000,
0x00000000
};
static int noMove2DCursorA[] =
{
0xffffffff,
0xffffffff,
0xffffffff,
0xff7ffeff,
0xff3ffcff,
0xff1ff8ff,
0xff0ff0ff,
0xff07e0ff,
0xff03c0ff,
0xff03c0ff,
0xfffc3fff,
0x7ffc3ffe,
0x3ffc3ffc,
0x1f7c3ef8,
0x0f3c3cf0,
0x071c38e0,
0x071c38e0,
0x0f3c3cf0,
0x1f7c3ef8,
0x3ffc3ffc,
0x7ffc3ffe,
0xfffc3fff,
0xff03c0ff,
0xff03c0ff,
0xff07e0ff,
0xff0ff0ff,
0xff1ff8ff,
0xff3ffcff,
0xff7ffeff,
0xffffffff,
0xffffffff,
0xffffffff
};
static int noMove2DCursorB[] =
{
0x00000000,
0x00000000,
0x00000000,
0x00800100,
0x00400200,
0x00200400,
0x00100800,
0x00081000,
0x00042000,
0x00fc3f00,
0x0003c000,
0x80024001,
0x40024002,
0x20824104,
0x10424208,
0x08224410,
0x08224410,
0x10424208,
0x20824104,
0x40024002,
0x80024001,
0x0003c000,
0x00fc3f00,
0x00042000,
0x00081000,
0x00100800,
0x00200400,
0x00400200,
0x00800100,
0x00000000,
0x00000000,
0x00000000
};
static int noMoveHorizCursorA[] =
{
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xfffc3fff,
0x7ffc3ffe,
0x3ffc3ffc,
0x1f7c3ef8,
0x0f3c3cf0,
0x071c38e0,
0x071c38e0,
0x0f3c3cf0,
0x1f7c3ef8,
0x3ffc3ffc,
0x7ffc3ffe,
0xfffc3fff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,
0xffffffff,