digiKam
showfotoitemviewdelegate_p.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2013-08-01
7  * Description : Qt model view for Showfoto item - the delegate
8  *
9  * Copyright (C) 2013 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef SHOW_FOTO_ITEM_VIEW_DELEGATE_P_H
25 #define SHOW_FOTO_ITEM_VIEW_DELEGATE_P_H
26 
28 
29 // Qt includes
30 
31 #include <QPainter>
32 #include <QApplication>
33 #include <QFont>
34 #include <QModelIndex>
35 
36 // KDE includes
37 
38 #include <klocalizedstring.h>
39 
40 // Local includes
41 
42 #include "thememanager.h"
43 #include "itempropertiestab.h"
44 #include "showfotoiteminfo.h"
45 #include "colorlabelwidget.h"
46 #include "digikam_debug.h"
47 #include "thumbnailsize.h"
48 #include "itemdelegateoverlay.h"
49 
50 using namespace Digikam;
51 
52 namespace ShowFoto
53 {
54 
55 class ShowfotoItemViewDelegate;
56 
58 {
59 public:
60 
62  virtual ~ShowfotoItemViewDelegatePrivate() = default;
63 
64  void init(ShowfotoItemViewDelegate* const _q);
65 
67  virtual void clearRects();
68 
69 public:
70 
71  int spacing;
72  QSize gridSize;
73 
74  QRect rect;
75 
76  QPixmap regPixmap;
77  QPixmap selPixmap;
78  QVector<QPixmap> ratingPixmaps;
79 
80  QFont font;
81  QFont fontReg;
82  QFont fontCom;
83  QFont fontXtra;
84 
86 
88 
92 
94  int radius;
95  int margin;
96 
97 private:
98 
99  Q_DISABLE_COPY(ShowfotoItemViewDelegatePrivate)
100 };
101 
102 } // namespace ShowFoto
103 
104 #endif // SHOW_FOTO_ITEM_VIEW_DELEGATE_P_H
Definition: thumbnailsize.h:42
Definition: showfotoitemviewdelegate_p.h:58
int margin
Definition: showfotoitemviewdelegate_p.h:95
QPixmap selPixmap
Definition: showfotoitemviewdelegate_p.h:77
int radius
constant values for drawing
Definition: showfotoitemviewdelegate_p.h:94
QRect oneRowXtraRect
Definition: showfotoitemviewdelegate_p.h:91
QRect oneRowComRect
Definition: showfotoitemviewdelegate_p.h:90
QRect oneRowRegRect
Definition: showfotoitemviewdelegate_p.h:89
virtual ~ShowfotoItemViewDelegatePrivate()=default
QSize gridSize
Definition: showfotoitemviewdelegate_p.h:72
ThumbnailSize thumbSize
Definition: showfotoitemviewdelegate_p.h:85
QFont fontXtra
Definition: showfotoitemviewdelegate_p.h:83
QPixmap regPixmap
Definition: showfotoitemviewdelegate_p.h:76
QFont fontReg
Definition: showfotoitemviewdelegate_p.h:81
ShowfotoItemViewDelegate * q
Definition: showfotoitemviewdelegate_p.h:87
QVector< QPixmap > ratingPixmaps
Definition: showfotoitemviewdelegate_p.h:78
QFont fontCom
Definition: showfotoitemviewdelegate_p.h:82
QFont font
Definition: showfotoitemviewdelegate_p.h:80
QRect rect
Definition: showfotoitemviewdelegate_p.h:74
int spacing
Definition: showfotoitemviewdelegate_p.h:71
Definition: showfotoitemviewdelegate.h:44
Definition: datefolderview.cpp:43
Definition: showfotofolderviewbar.cpp:52