-
Notifications
You must be signed in to change notification settings - Fork 4
/
ClassesDiagram.graphml
1631 lines (1383 loc) · 76.3 KB
/
ClassesDiagram.graphml
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:java="http://www.yworks.com/xml/yfiles-common/1.0/java" xmlns:sys="http://www.yworks.com/xml/yfiles-common/markup/primitives/2.0" xmlns:x="http://www.yworks.com/xml/yfiles-common/markup/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:y="http://www.yworks.com/xml/graphml" xmlns:yed="http://www.yworks.com/xml/yed/3" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://www.yworks.com/xml/schema/graphml/1.1/ygraphml.xsd">
<!--Created by yEd 3.23.2-->
<key attr.name="Description" attr.type="string" for="graph" id="d0"/>
<key for="port" id="d1" yfiles.type="portgraphics"/>
<key for="port" id="d2" yfiles.type="portgeometry"/>
<key for="port" id="d3" yfiles.type="portuserdata"/>
<key attr.name="url" attr.type="string" for="node" id="d4"/>
<key attr.name="description" attr.type="string" for="node" id="d5"/>
<key for="node" id="d6" yfiles.type="nodegraphics"/>
<key for="graphml" id="d7" yfiles.type="resources"/>
<key attr.name="url" attr.type="string" for="edge" id="d8"/>
<key attr.name="description" attr.type="string" for="edge" id="d9"/>
<key for="edge" id="d10" yfiles.type="edgegraphics"/>
<graph edgedefault="directed" id="G">
<data key="d0" xml:space="preserve"/>
<node id="n0">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="659.25" width="522.5" x="-651.25" y="1230.375"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="116.68994140625" x="202.905029296875" xml:space="preserve" y="26.701171875">ViewerApplication<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="QObject" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
std::unique_ptr<CanvasWidget> mCanvasWidget = nullptr;
std::unique_ptr<QThread> mBackgroundThread = nullptr;
QString mOpenedName;
QDir mDirectory;
QFileSystemWatcher mDirWatcher;
QStringList mFilesInDirectory;
QStringList::const_iterator mCurrentFile;
size_t mCurrentIdx = 0;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
ViewerApplication(std::chrono::steady_clock::time_point t);
~ViewerApplication();
void open(const QString & path);
signals:
void eventLoadImage(const QString & path);
void eventCancelTransition();
void eventImageDirScanned(size_t imgIdx, size_t totalCount);
public slots:
void onNextImage();
void onPrevImage();
void onFirstImage();
void onLastImage();
void onReloadImage();
void onOpenImage();
void onError(const QString & what);
void onDirectoryChanged(const QString &path);
private:
void loadImageAsync(const QString & path, size_t imgIdx, size_t totalCount);
void scanDirectory();</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n1">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="2433.208333333333" width="623.75" x="558.125" y="-766.6041666666665"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="93.57177734375" x="265.089111328125" xml:space="preserve" y="26.701171875">CanvasWidget<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="QObject" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
template <typename Enum_, size_t Length_ = static_cast<size_t>(Enum_::length_)>
using ActionsArray = EnumArray<QWidgetAction*, Enum_, Length_>;
using TMActionsArray = ActionsArray<FREE_IMAGE_TMO, 5>;
QColor mBackgroundColor;
ImagePtr mImage;
std::unique_ptr<ImageDescription> mImageDescription;
std::unique_ptr<ImageProcessor> mImageProcessor;
bool mTransitionRequested = true;
bool mTransitionIsReload = false;
bool mFullScreen = false;
bool mClick = false;
bool mDragging = false;
QPoint mMenuPos { 0, 0 };
QPoint mClickPos{ 0, 0 };
bool mStretching = false;
BorderPosition mHoveredBorder;
QRect mClickGeometry;
std::chrono::steady_clock::time_point mStartTime;
bool mStartup = true;
bool mShowInfo = false;
QPoint mOffset{ 0, 0 };
std::unique_ptr<ZoomController> mZoomController;
ZoomMode mZoomMode;
bool mRememberZoom = false;
bool mBrowsing = false;
QPoint mCursorPosition;
TextWidget* mInfoText = nullptr;
bool mInfoIsValid = false;
TextWidget* mErrorText = nullptr;
TextWidget* mPageText = nullptr;
std::unique_ptr<Tooltip> mTooltip;
FilteringMode mFilteringMode;
GammaType mGammaType = GammaType::eLinear;
QMenu* mContextMenu = nullptr;
bool mEnableAnimation = true;
uint32_t mAnimIndex = 0;
bool mShowTransparencyCheckboard = false;
std::shared_future<QPixmap> mCheckboard;
// Actions
std::shared_future<ActionsArray<Rotation>> mActRotate;
std::shared_future<ActionsArray<FlipType>> mActFlip;
std::shared_future<ActionsArray<ZoomMode>> mActZoom;
std::shared_future<TMActionsArray> mActToneMapping;
std::shared_future<ActionsArray<GammaType>> mActGammaType;
std::shared_future<ActionsArray<ChannelSwizzle>> mActSwizzle;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
CanvasWidget(std::chrono::steady_clock::time_point t);
~CanvasWidget();
public slots:
void onImageReady(ImagePtr image, size_t imgIdx, size_t totalCount);
void onImageDirScanned(size_t imgIdx, size_t totalCount);
void onTransitionCanceled();
void applicationStateChanged(Qt::ApplicationState state);
// Actions
void onActNoFilter(bool checked);
void onActAntialiasing(bool checked);
void onActRotation(bool checked, Rotation r);
void onActFlip(bool checked, FlipType f);
void onActZoomMode(bool checked, ZoomMode z);
void onActRememberZoom(bool checked);
void onActToneMapping(bool checked, FREE_IMAGE_TMO m);
void onActGammaType(bool checked, GammaType g);
void onActSwizzle(bool checked, ChannelSwizzle s);
void onActTransparency(bool checked);
void onShowContextMenu(const QPoint &pos);
void onAnimationTick(uint64_t imgId);
signals:
void eventInfoText(QString s);
void eventNextImage();
void eventPrevImage();
void eventFirstImage();
void eventLastImage();
void eventReloadImage();
void eventOpenImage();
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
void keyReleaseEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
private:
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseDoubleClickEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent* event) Q_DECL_OVERRIDE;
void leaveEvent(QEvent* event) Q_DECL_OVERRIDE;
void invalidateImageDescription();
void updateZoomLabel();
QRect calculateImageRegion() const;
void resetOffsets();
void updateOffsets();
QRect fitWidth(int w, int h) const;
void recalculateFittingScale();
bool setFullscreenGeometry();
void zoomToTarget(QPoint target, int dir);
void repositionPageText();
QWidgetAction* createMenuAction(const QString & text);
ActionsArray<Rotation> initRotationActions();
ActionsArray<FlipType> initFlipActions();
ActionsArray<ZoomMode> initZoomActions();
TMActionsArray initToneMappingActions();
ActionsArray<GammaType> initGammaTypeActions();
ActionsArray<ChannelSwizzle> initSwizzleActions();
QMenu* createContextMenu();
void invalidateTooltip();
void invalidateExif();
</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n2">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="370.1875000000002" width="486.5624999999999" x="-633.2812499999999" y="624.9062499999999"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="84.91357421875" x="200.82446289062494" xml:space="preserve" y="26.701171875">ImageLoader<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="QObject" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
QString mName;
size_t mImgIdx;
size_t mImgCount;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
explicit
ImageLoader(const QString & name);
ImageLoader(const QString & name, size_t imgIdx, size_t imgCount);
~ImageLoader();
signals:
void eventResult(ImagePtr image, size_t imgIdx, size_t imgCount);
void eventError(QString what);
public slots:
void onRun(const QString & path);
</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n3">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="243.4544351724137" width="387.2311789189188" x="196.38441054054056" y="-1441.7272175862067"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="84.86279296875" x="151.1841929750844" xml:space="preserve" y="26.701171875">AboutWidget<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="QObject" use3DEffect="false">
<y:AttributeLabel xml:space="preserve"/>
<y:MethodLabel xml:space="preserve">public:
AboutWidget(QWidget* parent = nullptr);
~AboutWidget() override;
private:
void keyPressEvent(QKeyEvent *event)</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n4">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="370.1875000000002" width="486.5624999999999" x="3806.71875" y="984.90625"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="92.130859375" x="197.21582031249994" xml:space="preserve" y="3.0">BitmapSource<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
FREE_IMAGE_FORMAT mImageFormat;
FIBITMAP* mBitmap;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
BitmapSource(const QString & filename, FREE_IMAGE_FORMAT fif);
~BitmapSource() Q_DECL_OVERRIDE;
private:
uint32_t doPagesCount() const Q_DECL_OVERRIDE;
const ImagePage* doDecodePage(uint32_t pageIdx) Q_DECL_OVERRIDE;
void doReleasePage(const ImagePage* page) Q_DECL_OVERRIDE;
bool doStoresDifference() const Q_DECL_OVERRIDE;</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n5">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="370.1875000000002" width="486.5624999999999" x="4106.71875" y="264.9062499999999"/>
<y:Fill color="#FFFF00" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="85.6435546875" x="200.45947265624994" xml:space="preserve" y="3.0">ImageSource<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">using ImagePagePtr = std::unique_ptr<const ImagePage, ImagePageDeleter>;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
virtual ~ImageSource() = default;
uint32_t pagesCount() const
bool storesDiffernece() const
ImagePagePtr lockPage(uint32_t pageIdx)
static
std::shared_ptr<ImageSource> Load(const QString& filename) Q_DECL_NOEXCEPT;
static
void Save(FIBITMAP* bmp, const QString& filename);
protected:
ImageSource() = default;
virtual uint32_t doPagesCount() const = 0;
virtual const ImagePage* doDecodePage(uint32_t pageIdx) = 0;
virtual void doReleasePage(const ImagePage* page) = 0;
virtual bool doStoresDifference() const = 0;</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n6">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="568.1438244913329" width="513.6804075041945" x="4093.1597962479027" y="-494.07191224566645"/>
<y:Fill color="#FFFF00" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="72.6435546875" x="220.51842640834724" xml:space="preserve" y="3.0">ImagePage<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
FIBITMAP* mBitmap;
uint32_t mIndex;
FIBITMAP* mConvertedBitmap;
bool mFrameNeedsUnload = false;
FrameFlags mFlags;
AnimationInfo mAnimation;
mutable std::unique_ptr<Exif> mExif;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
ImagePage(FIBITMAP* bmp, uint32_t index);
virtual ~ImagePage();
QString describeFormat() const
FIBITMAP* getSourceBitmap() const
FIBITMAP* getBitmap() const
uint32_t index() const
void setAnimation(AnimationInfo anim)
const AnimationInfo& animation() const
bool getPixel(uint32_t y, uint32_t x, Pixel* pixel) const
const FrameFlags& flags() const
const Exif& getExif() const;
size_t getMemorySize() const;
UniqueBitmap getOrMakeThumbnail(uint32_t maxSize) const;</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n7">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="192.1875000000004" width="302.5624999999999" x="4888.71875" y="-426.0937500000002"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="91.37548828125" x="105.59350585937494" xml:space="preserve" y="26.701171875">AnimationInfo<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="struct" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">uint16_t offsetX
uint16_t offsetY
uint32_t duration
DisposalType disposal</y:AttributeLabel>
<y:MethodLabel xml:space="preserve"/>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n8">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="188.2812500000004" width="560.3749999999999" x="4069.8125000000005" y="-784.1406250000002"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="27.841796875" x="266.26660156249994" xml:space="preserve" y="3.0">Exif<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">public:
std::array<std::vector<std::tuple<QString, QVariant>>, FIMD_EXIF_RAW + 1> sections;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
static
Exif load(FIBITMAP* dib);</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n9">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="579.5625000000002" width="486.5624999999999" x="1406.7187500000002" y="-469.7812500000001"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="113.08447265625" x="186.73901367187494" xml:space="preserve" y="3.0">ImageDescription<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
ImageInfo mFileInfo;
QString mFormat;
float mZoomFactor = 1.0f;
FREE_IMAGE_TMO mToneMapping = FITMO_CLAMP;
double mGammaValue = 1.0;
bool mChangedFlag = false;
size_t mImageIndex = 0;
size_t mImagesCount = 0;
bool mDisplayPath = false;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
ImageDescription()
void setImageInfo(ImageInfo info)
void setFormat(QString fmt)
void setToneMapping(FREE_IMAGE_TMO mode)
void setGammaValue(double value)
void setZoom(float factor)
void setChanged(bool flag)
void setImageIndex(size_t idx, size_t count)
void setDisplayPath(bool enable = true)
bool displayPath() const
QVector<QString> toLines() const;</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n10">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="989.7187499999998" width="468.9843749999999" x="1415.5078125000002" y="675.1406250000002"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="105.16259765625" x="181.91088867187494" xml:space="preserve" y="3.0">ImageProcessor<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
QWeakPointer<Image> mSrcImage;
UniqueBitmap mProcessBuffer;
QPixmap mDstPixmap;
bool mIsValid = false;
bool mIsBuffered = false;
Rotation mRotation = Rotation::eDegree0;
EnumArray<bool, FlipType> mFlips = { false };
FREE_IMAGE_TMO mToneMapping = FITMO_CLAMP;
double mGammaValue = 1.0;
ChannelSwizzle mSwizzleType = ChannelSwizzle::eRGB;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
ImageProcessor();
ImageProcessor(QWeakPointer<Image> image)
~ImageProcessor();
void attachSource(QWeakPointer<Image> image);
void detachSource();
Rotation rotation() const
void setRotation(Rotation r)
void setFlip(FlipType flip, bool value)
FREE_IMAGE_TMO toneMappingMode() const
void setToneMappingMode(FREE_IMAGE_TMO mode)
void setGamma(double value)
double getGamma() const
void setChannelSwizzle(ChannelSwizzle swizzle)
ChannelSwizzle getChannelSwizzle() const
bool getPixel(uint32_t y, uint32_t x, Pixel* p) const;
uint32_t width() const;
uint32_t height() const;
const QPixmap& getResultPixmap();
const UniqueBitmap& getResultBitmap();
private:
void onInvalidated(Image* emitter) override;
FIBITMAP* process(const ImageFrame& frame);</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n11">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="702.2187500000007" width="384.6093749999999" x="2537.6953125" y="98.89062499999966"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="41.57177734375" x="171.51879882812494" xml:space="preserve" y="3.0">Image<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
uint64_t mId;
std::shared_ptr<ImageSource> mImageSource;
std::unique_ptr<Player> mImagePlayer;
ImageInfo mInfo;
std::vector<ImageListener*> mListeners;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
Image(QString name, QString filename) noexcept;
~Image();
const ImageInfo & info() const
bool getPixel(uint32_t y, uint32_t x, Pixel* p) const
uint32_t width() const
uint32_t height() const
uint32_t channels() const;
bool isNull() const
bool notNull() const
FIBITMAP* getBitmap() const
uint32_t pagesCount() const
const ImagePage& currentPage() const;
void next();
void prev();
uint64_t id() const
void addListener(ImageListener* listener);
void removeListener(ImageListener* listener);</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n12">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="183.07812500000023" width="388.9062499999999" x="2535.546875" y="1198.4609374999998"/>
<y:Fill color="#FF00FF" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="92.1435546875" x="148.38134765624994" xml:space="preserve" y="3.0">ImageListener<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve"/>
<y:MethodLabel xml:space="preserve">public:
virtual ~ImageListener() = default;
virtual void onInvalidated(Image*)</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n13">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="589.1140648625351" width="601.0111921901206" x="3179.4944039049396" y="155.44296756873246"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="43.03173828125" x="278.9897269544353" xml:space="preserve" y="3.0">Player<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
std::shared_ptr<ImageSource> mSource;
std::deque<std::unique_ptr<CacheEntry>> mFramesCache;
size_t mCacheIndex = 0;
size_t mMaxCacheSize = 1;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
Player(std::shared_ptr<ImageSource> src);
~Player();
const ImagePage& getCurrentPage() const;
FIBITMAP* getBlendedBitmap() const;
uint32_t framesNumber() const;
uint32_t getWidth() const;
uint32_t getHeight() const;
void next();
void prev();
private:
struct CacheEntry;
//-------------------------------------------------------------------------------------
std::unique_ptr<CacheEntry> loadZeroFrame(ImageSource* source);
std::unique_ptr<CacheEntry> loadNextFrame(ImageSource* source, const CacheEntry& prev);</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n14">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="189.55520522303846" width="393.6157852118539" x="3283.192107394073" y="-304.7776026115192"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="123.93896484375" x="134.83841018405195" xml:space="preserve" y="3.0">Player::CacheEntry<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">public:
ImageSource::ImagePagePtr page;
UniqueBitmap blendedImage;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
CacheEntry(ImageSource::ImagePagePtr page)</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n15">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="201.4375000000004" width="253.7499999999999" x="2123.125" y="79.2812499999998"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="65.39453125" x="94.17773437499994" xml:space="preserve" y="26.701171875">ImageInfo<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="struct" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">QString path;
QString name;
size_t bytes
QDateTime modified;
ImageSize dims;
bool animated</y:AttributeLabel>
<y:MethodLabel xml:space="preserve"/>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n16">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="123.3125000000004" width="177.1874999999999" x="2161.40625" y="-121.65625000000014"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="67.58447265625" x="54.80151367187494" xml:space="preserve" y="26.701171875">ImageSize<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="struct" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">uint32_t width
uint32_t height</y:AttributeLabel>
<y:MethodLabel xml:space="preserve"/>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n17">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="739.7187500000002" width="580.3124999999999" x="1359.84375" y="-1389.859375"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="101.49365234375" x="239.40942382812494" xml:space="preserve" y="3.0">ZoomController<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
int32_t mBaseValue;
int32_t mScale;
int32_t mMinScale;
int32_t mMaxScale;
int32_t mFitValue;
int32_t mFitScaleFloor;
int32_t mFitScaleCeil;
bool mAtFitValue;
float mFitFactor;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
ZoomController(int32_t baseValue, int32_t fitValue, int32_t scaleValue = 0);
~ZoomController();
ZoomController(const ZoomController&) = default;
ZoomController(ZoomController&&) = default;
ZoomController& operator=(const ZoomController&) = default;
ZoomController& operator=(ZoomController&&) = default;
float getFactor() const;
int32_t getValue() const;
int32_t getFitValue() const
void setFitValue(int32_t value);
void rebase(int32_t baseValue, int32_t fitValue);
void rebase(int32_t baseValue)
void zoomPlus();
void zoomMinus();
void moveToIdentity();
void moveToFit();
int32_t getScaleValue() const
</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n18">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="291.2812500000002" width="380.3124999999999" x="-580.1562499999999" y="-445.6406250000001"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="47.31640625" x="166.49804687499994" xml:space="preserve" y="3.0">Tooltip<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
std::unique_ptr<TextWidget> mTextWidget;
QPoint mDefaultOffset;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
Tooltip();
~Tooltip();
void hide();
void show();
void setText(const QVector<QString>& lines);
void move(const QPoint& position);
</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n19">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="950.3958333333333" width="533.4375" x="-1586.71875" y="-775.1979166666666"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="74.052734375" x="229.6923828125" xml:space="preserve" y="26.701171875">TextWidget<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="QObject" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
QRawFont mRawFont;
QPen mPen;
QPen mPenDisabled;
QBrush mBrush;
QBrush mBrushDisabled;
QVector<QString> mLines;
qreal mGlyphPadH = 3.75;
qreal mGlyphPadV = 5.0;
qreal mLineHeight;
qreal mWidth;
QRect mPaddings = QRect(0, 0, 0, 0);
QGraphicsDropShadowEffect* mShadow = nullptr;
QColor mBorderColor = Qt::transparent;
QColor mBackgroundColor = Qt::transparent;
uint mColumnSeparator = std::numeric_limits<uint>::max();
QVector<qreal> mColumnOffsets;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
explicit TextWidget(QWidget* parent = nullptr);
TextWidget(QWidget* parent, Qt::GlobalColor color, qreal fsize = 14.0, qreal padh = 1.0);
~TextWidget();
uint32_t textWidth() const
uint32_t textHeight() const
void enableShadow();
void setBackgroundColor(QColor color)
void setBorderColor(QColor color)
void setPaddings(int32_t left, int32_t right, int32_t top, int32_t bottom)
void setColor(QColor c)
bool setColumnSeperator(QChar c);
void appendColumnOffset(qreal offset)
public slots:
void setText(const QString & line);
void setText(const QVector<QString> & lines);
void setLine(uint32_t idx, const QString & line);
protected:
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
private:
void autoResize();</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n20">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="370.1875000000002" width="486.5624999999999" x="4406.71875" y="984.90625"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="121.00634765625" x="182.778076171875" xml:space="preserve" y="175.130615234375">MultibitmapSource<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
FREE_IMAGE_FORMAT mImageFormat;
FIMULTIBITMAP* mMultibitmap = nullptr;
std::unique_ptr<MultibitmapBuffer> mBuffer = nullptr;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">public:
MultibitmapSource(const QString & filename, FREE_IMAGE_FORMAT fif);
~MultibitmapSource() Q_DECL_OVERRIDE;
private:
uint32_t doPagesCount() const Q_DECL_OVERRIDE;
const ImagePage* doDecodePage(uint32_t pageIdx) Q_DECL_OVERRIDE;
void doReleasePage(const ImagePage* page) Q_DECL_OVERRIDE;
bool doStoresDifference() const Q_DECL_OVERRIDE;
</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n21">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="127.68750000000045" width="365.3124999999999" x="5037.34375" y="1106.1562499999998"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="115.2109375" x="125.05078125" xml:space="preserve" y="53.88061523437523">MultibitmapBuffer<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">std::vector<unsigned char> data;
FIMEMORY* stream = nullptr;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve"/>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n22">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="461.2812499999998" width="435.3124999999999" x="-607.6562499999999" y="-1130.640625"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="81.263671875" x="177.02441406249994" xml:space="preserve" y="3.0">MenuWidget<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">private:
QString text = "";
bool checked = false;
QLayout* mLayout;
TextWidget* mBulletWidget;
TextWidget* mTextWidget;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">signals:
void toggled(bool checked) const;
void activated() const;
public slots:
void onActionToggled(bool checked);
public:
MenuWidget(QWidget *parent = nullptr);
MenuWidget(const QString &text, QWidget *parent = nullptr);
~MenuWidget();
QSize minimumSizeHint() const Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent* e) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent* evt) Q_DECL_OVERRIDE;
private:
void init();</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n23">
<data key="d4" xml:space="preserve"/>
<data key="d6">
<y:UMLClassNode>
<y:Geometry height="183.07812500000023" width="431.8749999999999" x="4824.0625" y="-151.5390625000001"/>
<y:Fill color="#C3C3C3" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="13" fontStyle="bold" hasBackgroundColor="false" hasLineColor="false" height="19.92626953125" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="34.3544921875" x="198.76025390624994" xml:space="preserve" y="3.0">Pixel<y:LabelModel><y:SmartNodeLabelModel distance="4.0"/></y:LabelModel><y:ModelParameter><y:SmartNodeLabelModelParameter labelRatioX="0.0" labelRatioY="0.0" nodeRatioX="0.0" nodeRatioY="0.0" offsetX="0.0" offsetY="0.0" upX="0.0" upY="-1.0"/></y:ModelParameter></y:NodeLabel>
<y:UML clipContent="true" constraint="" hasDetailsColor="false" omitDetails="false" stereotype="" use3DEffect="false">
<y:AttributeLabel xml:space="preserve">public:
uint32_t y = 0;
uint32_t x = 0;
QString repr;</y:AttributeLabel>
<y:MethodLabel xml:space="preserve">private:
static
bool getBitmapPixel(FIBITMAP* src, uint32_t y, uint32_t x, Pixel* pixel);</y:MethodLabel>
</y:UML>
</y:UMLClassNode>
</data>
</node>
<node id="n24">